copyWith method
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< ? customField,String, dynamic> > - 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,
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,
);
}