copyWith method

QuickbooksInvoice copyWith({
  1. String? id,
  2. List<QuickbooksLine>? line,
  3. QuickbooksReferenceType? customerRef,
  4. String? syncToken,
  5. QuickbooksReferenceType? currencyRef,
  6. String? docNumber,
  7. QuickbooksEmailAddress? billEmail,
  8. DateTime? txnDate,
  9. QuickbooksPhysicalAddress? shipFromAddr,
  10. DateTime? shipDate,
  11. String? trackingNum,
  12. QuickbooksReferenceType? classRef,
  13. String? printStatus,
  14. QuickbooksReferenceType? salesTermRef,
  15. String? txnSource,
  16. List<QuickbooksLinkedTxn>? linkedTxn,
  17. QuickbooksReferenceType? depositeToAccountRef,
  18. QuickbooksGlobalTaxCalculationType? globalTaxalculation,
  19. bool? allowOnlineACHPayment,
  20. String? transactionLocationType,
  21. DateTime? dueDate,
  22. Map<String, dynamic>? metaData,
  23. String? privateNote,
  24. QuickbooksEmailAddress? billEmailCc,
  25. QuickbooksMemoRef? customerMemo,
  26. String? emailStatus,
  27. double? exchangeRate,
  28. double? deposit,
  29. QuickbooksTxnTaxDetails? txnTaxDetail,
  30. bool? allowOnlineCreditCardPayment,
  31. List<Map<String, dynamic>>? customField,
  32. QuickbooksPhysicalAddress? shipAddr,
  33. QuickbooksReferenceType? departmentRef,
  34. QuickbooksEmailAddress? billEmailBcc,
  35. QuickbooksReferenceType? shipMethodRef,
  36. QuickbooksPhysicalAddress? billAddr,
  37. bool? applyTaxAfterDiscount,
  38. double? homeBalance,
  39. QuickbooksDeliveryInfo? deliveryInfo,
  40. double? totalAmt,
  41. String? invoiceLink,
  42. QuickbooksReferenceType? recurDataRef,
  43. QuickbooksReferenceType? taxExemptionRef,
  44. double? balance,
  45. double? homeTotalAmt,
  46. bool? freeFormAddress,
})

Implementation

QuickbooksInvoice copyWith({
  String? id,
  List<QuickbooksLine>? line,
  QuickbooksReferenceType? customerRef,
  String? syncToken,
  QuickbooksReferenceType? currencyRef,
  String? docNumber,
  QuickbooksEmailAddress? billEmail,
  DateTime? txnDate,
  QuickbooksPhysicalAddress? shipFromAddr,
  DateTime? shipDate,
  String? trackingNum,
  QuickbooksReferenceType? classRef,
  String? printStatus,
  QuickbooksReferenceType? salesTermRef,
  String? txnSource,
  List<QuickbooksLinkedTxn>? linkedTxn,
  QuickbooksReferenceType? depositeToAccountRef,
  QuickbooksGlobalTaxCalculationType? globalTaxalculation,
  bool? allowOnlineACHPayment,
  String? transactionLocationType,
  DateTime? dueDate,
  Map<String, dynamic>? metaData,
  String? privateNote,
  QuickbooksEmailAddress? billEmailCc,
  QuickbooksMemoRef? customerMemo,
  String? emailStatus,
  double? exchangeRate,
  double? deposit,
  QuickbooksTxnTaxDetails? txnTaxDetail,
  bool? allowOnlineCreditCardPayment,
  List<Map<String, dynamic>>? customField,
  QuickbooksPhysicalAddress? shipAddr,
  QuickbooksReferenceType? departmentRef,
  QuickbooksEmailAddress? billEmailBcc,
  QuickbooksReferenceType? shipMethodRef,
  QuickbooksPhysicalAddress? billAddr,
  bool? applyTaxAfterDiscount,
  double? homeBalance,
  QuickbooksDeliveryInfo? deliveryInfo,
  double? totalAmt,
  String? invoiceLink,
  QuickbooksReferenceType? recurDataRef,
  QuickbooksReferenceType? taxExemptionRef,
  double? balance,
  double? homeTotalAmt,
  bool? freeFormAddress,
}) {
  return QuickbooksInvoice(
    id: id ?? this.id,
    line: line ?? this.line,
    customerRef: customerRef ?? this.customerRef,
    syncToken: syncToken ?? this.syncToken,
    currencyRef: currencyRef ?? this.currencyRef,
    docNumber: docNumber ?? this.docNumber,
    billEmail: billEmail ?? this.billEmail,
    txnDate: txnDate ?? this.txnDate,
    shipFromAddr: shipFromAddr ?? this.shipFromAddr,
    shipDate: shipDate ?? this.shipDate,
    trackingNum: trackingNum ?? this.trackingNum,
    classRef: classRef ?? this.classRef,
    printStatus: printStatus ?? this.printStatus,
    salesTermRef: salesTermRef ?? this.salesTermRef,
    txnSource: txnSource ?? this.txnSource,
    linkedTxn: linkedTxn ?? this.linkedTxn,
    depositToAccountRef: depositeToAccountRef ?? depositToAccountRef,
    globalTaxCalculation: globalTaxalculation ?? globalTaxCalculation,
    allowOnlineACHPayment:
        allowOnlineACHPayment ?? this.allowOnlineACHPayment,
    transactionLocationType:
        transactionLocationType ?? this.transactionLocationType,
    dueDate: dueDate ?? this.dueDate,
    metaData: metaData ?? this.metaData,
    privateNote: privateNote ?? this.privateNote,
    billEmailCc: billEmailCc ?? this.billEmailCc,
    customerMemo: customerMemo ?? this.customerMemo,
    emailStatus: emailStatus ?? this.emailStatus,
    exchangeRate: exchangeRate ?? this.exchangeRate,
    deposit: deposit ?? this.deposit,
    txnTaxDetail: txnTaxDetail ?? this.txnTaxDetail,
    allowOnlineCreditCardPayment:
        allowOnlineCreditCardPayment ?? this.allowOnlineCreditCardPayment,
    customField: customField ?? this.customField,
    shipAddr: shipAddr ?? this.shipAddr,
    departmentRef: departmentRef ?? this.departmentRef,
    billEmailBcc: billEmailBcc ?? this.billEmailBcc,
    shipMethodRef: shipMethodRef ?? this.shipMethodRef,
    billAddr: billAddr ?? this.billAddr,
    applyTaxAfterDiscount:
        applyTaxAfterDiscount ?? this.applyTaxAfterDiscount,
    homeBalance: homeBalance ?? this.homeBalance,
    deliveryInfo: deliveryInfo ?? this.deliveryInfo,
    totalAmt: totalAmt ?? this.totalAmt,
    invoiceLink: invoiceLink ?? this.invoiceLink,
    recurDataRef: recurDataRef ?? this.recurDataRef,
    taxExemptionRef: taxExemptionRef ?? this.taxExemptionRef,
    balance: balance ?? this.balance,
    homeTotalAmt: homeTotalAmt ?? this.homeTotalAmt,
    freeFormAddress: freeFormAddress ?? this.freeFormAddress,
  );
}