copyWith method
QuickbooksPurchase
copyWith({
- String? id,
- List<
QuickbooksLine> ? line, - String? paymentType,
- QuickbooksReferenceType? accountRef,
- String? syncToken,
- QuickbooksReferenceType? currencyRef,
- DateTime? txnDate,
- String? printStatus,
- QuickbooksPhysicalAddress? remitToAddr,
- String? txnSource,
- List<
QuickbooksLinkedTxn> ? linkedTxn, - String? globalTaxCalculation,
- String? transactionLocationType,
- Map<
String, dynamic> ? metaData, - String? docNumber,
- String? privateNote,
- bool? credit,
- QuickbooksTxnTaxDetails? txnTaxDetail,
- QuickbooksReferenceType? paymentMethodRef,
- double? exchangeRate,
- QuickbooksReferenceType? departmentRef,
- QuickbooksReferenceType? entityRef,
- bool? includeInAnnualTPAR,
- double? totalAmt,
- QuickbooksReferenceType? recurDataRef,
Implementation
QuickbooksPurchase copyWith({
String? id,
List<QuickbooksLine>? line,
String? paymentType,
QuickbooksReferenceType? accountRef,
String? syncToken,
QuickbooksReferenceType? currencyRef,
DateTime? txnDate,
String? printStatus,
QuickbooksPhysicalAddress? remitToAddr,
String? txnSource,
List<QuickbooksLinkedTxn>? linkedTxn,
String? globalTaxCalculation,
String? transactionLocationType,
Map<String, dynamic>? metaData,
String? docNumber,
String? privateNote,
bool? credit,
QuickbooksTxnTaxDetails? txnTaxDetail,
QuickbooksReferenceType? paymentMethodRef,
double? exchangeRate,
QuickbooksReferenceType? departmentRef,
QuickbooksReferenceType? entityRef,
bool? includeInAnnualTPAR,
double? totalAmt,
QuickbooksReferenceType? recurDataRef,
}) {
return QuickbooksPurchase(
id: id ?? this.id,
line: line ?? this.line,
paymentType: paymentType ?? this.paymentType,
accountRef: accountRef ?? this.accountRef,
syncToken: syncToken ?? this.syncToken,
currencyRef: currencyRef ?? this.currencyRef,
txnDate: txnDate ?? this.txnDate,
printStatus: printStatus ?? this.printStatus,
remitToAddr: remitToAddr ?? this.remitToAddr,
txnSource: txnSource ?? this.txnSource,
linkedTxn: linkedTxn ?? this.linkedTxn,
globalTaxCalculation: globalTaxCalculation ?? this.globalTaxCalculation,
transactionLocationType:
transactionLocationType ?? this.transactionLocationType,
metaData: metaData ?? this.metaData,
docNumber: docNumber ?? this.docNumber,
privateNote: privateNote ?? this.privateNote,
credit: credit ?? this.credit,
txnTaxDetail: txnTaxDetail ?? this.txnTaxDetail,
paymentMethodRef: paymentMethodRef ?? this.paymentMethodRef,
exchangeRate: exchangeRate ?? this.exchangeRate,
departmentRef: departmentRef ?? this.departmentRef,
entityRef: entityRef ?? this.entityRef,
includeInAnnualTPAR: includeInAnnualTPAR ?? this.includeInAnnualTPAR,
totalAmt: totalAmt ?? this.totalAmt,
recurDataRef: recurDataRef ?? this.recurDataRef,
);
}