copyWith method

QuickbooksPayment copyWith({
  1. String? id,
  2. double? totalAmt,
  3. QuickbooksReferenceType? customerRef,
  4. String? syncToken,
  5. QuickbooksReferenceType? currencyRef,
  6. String? privateNote,
  7. QuickbooksReferenceType? paymentMethodRef,
  8. double? unappliedAmt,
  9. QuickbooksReferenceType? depositToAccountRef,
  10. double? exchangeRate,
  11. List<QuickbooksPaymentLine>? line,
  12. String? txnSource,
  13. QuickbooksReferenceType? ARAccountRef,
  14. DateTime? txnDate,
  15. QuickbooksCreditCardPayment? creditCardPayment,
  16. String? transactionLocationType,
  17. Map<String, dynamic>? metaData,
  18. String? paymentRefNum,
  19. QuickbooksReferenceType? taxExempionRef,
  20. 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,
  );
}