copyWith method

PaymentIntentResponseAttributes copyWith({
  1. int? amount,
  2. String? currency,
  3. String? description,
  4. String? statementDescriptor,
  5. String? status,
  6. bool? livemode,
  7. String? clientKey,
  8. DateTime? createdAt,
  9. DateTime? updatedAt,
  10. String? lastPaymentError,
  11. List<String>? paymentMethodAllowed,
  12. List<PaymentsIntentResponse>? payments,
  13. PaymentIntentNextAction? nextAction,
  14. PaymentMethodOptions? paymentMethodOptions,
  15. Map<String, dynamic>? metadata,
})

Implementation

PaymentIntentResponseAttributes copyWith({
  int? amount,
  String? currency,
  String? description,
  String? statementDescriptor,
  String? status,
  bool? livemode,
  String? clientKey,
  DateTime? createdAt,
  DateTime? updatedAt,
  String? lastPaymentError,
  List<String>? paymentMethodAllowed,
  List<PaymentsIntentResponse>? payments,
  PaymentIntentNextAction? nextAction,
  PaymentMethodOptions? paymentMethodOptions,
  Map<String, dynamic>? metadata,
}) {
  return PaymentIntentResponseAttributes(
    amount: amount ?? this.amount,
    currency: currency ?? this.currency,
    description: description ?? this.description,
    statementDescriptor: statementDescriptor ?? this.statementDescriptor,
    status: status ?? this.status,
    livemode: livemode ?? this.livemode,
    clientKey: clientKey ?? this.clientKey,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
    lastPaymentError: lastPaymentError ?? this.lastPaymentError,
    paymentMethodAllowed: paymentMethodAllowed ?? this.paymentMethodAllowed,
    payments: payments ?? this.payments,
    nextAction: nextAction ?? this.nextAction,
    paymentMethodOptions: paymentMethodOptions ?? this.paymentMethodOptions,
    metadata: metadata ?? this.metadata,
  );
}