copyWith method
QuickbooksPayment
copyWith({
- String? id,
- double? totalAmt,
- QuickbooksReferenceType? customerRef,
- String? syncToken,
- QuickbooksReferenceType? currencyRef,
- String? privateNote,
- QuickbooksReferenceType? paymentMethodRef,
- double? unappliedAmt,
- QuickbooksReferenceType? depositToAccountRef,
- double? exchangeRate,
- List<
QuickbooksPaymentLine> ? line, - String? txnSource,
- QuickbooksReferenceType? ARAccountRef,
- DateTime? txnDate,
- QuickbooksCreditCardPayment? creditCardPayment,
- String? transactionLocationType,
- Map<
String, dynamic> ? metaData, - String? paymentRefNum,
- QuickbooksReferenceType? taxExempionRef,
- bool? active,
Implementation
QuickbooksPayment copyWith({
String? id,
double? totalAmt,
QuickbooksReferenceType? customerRef,
String? syncToken,
QuickbooksReferenceType? currencyRef,
String? privateNote,
QuickbooksReferenceType? paymentMethodRef,
double? unappliedAmt,
QuickbooksReferenceType? depositToAccountRef,
double? exchangeRate,
List<QuickbooksPaymentLine>? line,
String? txnSource,
QuickbooksReferenceType? ARAccountRef,
DateTime? txnDate,
QuickbooksCreditCardPayment? creditCardPayment,
String? transactionLocationType,
Map<String, dynamic>? metaData,
String? paymentRefNum,
QuickbooksReferenceType? taxExempionRef,
bool? active,
}) {
return QuickbooksPayment(
id: id ?? this.id,
totalAmt: totalAmt ?? this.totalAmt,
customerRef: customerRef ?? this.customerRef,
syncToken: syncToken ?? this.syncToken,
currencyRef: currencyRef ?? this.currencyRef,
privateNote: privateNote ?? this.privateNote,
paymentMethodRef: paymentMethodRef ?? this.paymentMethodRef,
unappliedAmt: unappliedAmt ?? this.unappliedAmt,
depositToAccountRef: depositToAccountRef ?? this.depositToAccountRef,
exchangeRate: exchangeRate ?? this.exchangeRate,
line: line ?? this.line,
txnSource: txnSource ?? this.txnSource,
ARAccountRef: ARAccountRef ?? this.ARAccountRef,
txnDate: txnDate ?? this.txnDate,
creditCardPayment: creditCardPayment ?? this.creditCardPayment,
transactionLocationType:
transactionLocationType ?? this.transactionLocationType,
metaData: metaData ?? this.metaData,
paymentRefNum: paymentRefNum ?? this.paymentRefNum,
taxExemptionRef: taxExempionRef ?? taxExemptionRef,
active: active ?? this.active,
);
}