copyWith method
PaymentAttributesResponse
copyWith({
- String? accessUrl,
- int? amount,
- String? balanceTransactionId,
- PayMongoBilling? billing,
- String? currency,
- String? description,
- bool? disputed,
- String? externalReferenceNumber,
- int? fee,
- int? foreignFee,
- bool? livemode,
- int? netAmount,
- String? origin,
- String? paymentIntentId,
- String? payout,
- PaymentAttributeSourceResponse? source,
- String? statementDescriptor,
- String? status,
- int? taxAmount,
- List<
PaymentRefundResponse> ? refunds, - List<
PaymentTaxResponse> ? taxes, - DateTime? availableAt,
- DateTime? createdAt,
- DateTime? paidAt,
- DateTime? updatedAt,
Implementation
PaymentAttributesResponse copyWith({
String? accessUrl,
int? amount,
String? balanceTransactionId,
PayMongoBilling? billing,
String? currency,
String? description,
bool? disputed,
String? externalReferenceNumber,
int? fee,
int? foreignFee,
bool? livemode,
int? netAmount,
String? origin,
String? paymentIntentId,
String? payout,
PaymentAttributeSourceResponse? source,
String? statementDescriptor,
String? status,
int? taxAmount,
List<PaymentRefundResponse>? refunds,
List<PaymentTaxResponse>? taxes,
DateTime? availableAt,
DateTime? createdAt,
DateTime? paidAt,
DateTime? updatedAt,
}) {
return PaymentAttributesResponse(
accessUrl: accessUrl ?? this.accessUrl,
amount: amount ?? this.amount,
balanceTransactionId: balanceTransactionId ?? this.balanceTransactionId,
billing: billing ?? this.billing,
currency: currency ?? this.currency,
description: description ?? this.description,
disputed: disputed ?? this.disputed,
externalReferenceNumber:
externalReferenceNumber ?? this.externalReferenceNumber,
fee: fee ?? this.fee,
foreignFee: foreignFee ?? this.foreignFee,
livemode: livemode ?? this.livemode,
netAmount: netAmount ?? this.netAmount,
origin: origin ?? this.origin,
paymentIntentId: paymentIntentId ?? this.paymentIntentId,
payout: payout ?? this.payout,
source: source ?? this.source,
statementDescriptor: statementDescriptor ?? this.statementDescriptor,
status: status ?? this.status,
taxAmount: taxAmount ?? this.taxAmount,
refunds: refunds ?? this.refunds,
taxes: taxes ?? this.taxes,
availableAt: availableAt ?? this.availableAt,
createdAt: createdAt ?? this.createdAt,
paidAt: paidAt ?? this.paidAt,
updatedAt: updatedAt ?? this.updatedAt,
);
}