copyWith method
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,
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,
);
}