copyWith method
Customer
copyWith({
- String? id,
- String? syncToken,
- String? displayName,
- String? title,
- String? givenName,
- String? middleName,
- String? suffix,
- String? familyName,
- EmailAddress? primaryEmailAddr,
- String? resaleNum,
- String? secondaryTaxIdentifier,
- ReferenceType? aRAccountRef,
- ReferenceType? defaultTaxCodeRef,
- String? preferredDeliveryMethod,
- String? gSTIN,
- ReferenceType? salesTermRef,
- String? customerTypeRef,
- TelephoneNumber? fax,
- String? businessNumber,
- bool? billWithParent,
- CurrencyRefType? currencyRef,
- TelephoneNumber? mobile,
- bool? job,
- double? balanceWithJobs,
- TelephoneNumber? primaryPhone,
- String? openBalanceDate,
- bool? taxable,
- TelephoneNumber? alternatePhone,
- ModificationMetaData? metaData,
- ReferenceType? parentRef,
- String? notes,
- WebSiteAddress? webAddr,
- bool? active,
- String? companyName,
- double? balance,
- PhysicalAddress? shipAddr,
- ReferenceType? paymentMethodRef,
- bool? isProject,
- String? source,
- String? primaryTaxIdentifier,
- String? gSTRegistrationType,
- String? printOnCheckName,
- PhysicalAddress? billAddr,
- String? fullyQualifiedName,
- int? level,
- int? taxExemptionReasonId,
Implementation
Customer copyWith({
String? id,
String? syncToken,
String? displayName,
String? title,
String? givenName,
String? middleName,
String? suffix,
String? familyName,
EmailAddress? primaryEmailAddr,
String? resaleNum,
String? secondaryTaxIdentifier,
ReferenceType? aRAccountRef,
ReferenceType? defaultTaxCodeRef,
String? preferredDeliveryMethod,
String? gSTIN,
ReferenceType? salesTermRef,
String? customerTypeRef,
TelephoneNumber? fax,
String? businessNumber,
bool? billWithParent,
CurrencyRefType? currencyRef,
TelephoneNumber? mobile,
bool? job,
double? balanceWithJobs,
TelephoneNumber? primaryPhone,
String? openBalanceDate,
bool? taxable,
TelephoneNumber? alternatePhone,
ModificationMetaData? metaData,
ReferenceType? parentRef,
String? notes,
WebSiteAddress? webAddr,
bool? active,
String? companyName,
double? balance,
PhysicalAddress? shipAddr,
ReferenceType? paymentMethodRef,
bool? isProject,
String? source,
String? primaryTaxIdentifier,
String? gSTRegistrationType,
String? printOnCheckName,
PhysicalAddress? billAddr,
String? fullyQualifiedName,
int? level,
int? taxExemptionReasonId
}) {
return Customer(
id: id ?? this.id,
syncToken: syncToken ?? this.syncToken,
displayName: displayName ?? this.displayName,
title: title ?? this.title,
givenName: givenName ?? this.givenName,
middleName: middleName ?? this.middleName,
suffix: suffix ?? this.suffix,
familyName: familyName ?? this.familyName,
primaryEmailAddr: primaryEmailAddr ?? this.primaryEmailAddr,
resaleNum: resaleNum ?? this.resaleNum,
secondaryTaxIdentifier: secondaryTaxIdentifier ??
this.secondaryTaxIdentifier,
aRAccountRef: aRAccountRef ?? this.aRAccountRef,
defaultTaxCodeRef: defaultTaxCodeRef ?? this.defaultTaxCodeRef,
preferredDeliveryMethod: preferredDeliveryMethod ??
this.preferredDeliveryMethod,
gSTIN: gSTIN ?? this.gSTIN,
salesTermRef: salesTermRef ?? this.salesTermRef,
customerTypeRef: customerTypeRef ?? this.customerTypeRef,
fax: fax ?? this.fax,
businessNumber: businessNumber ?? this.businessNumber,
billWithParent: billWithParent ?? this.billWithParent,
currencyRef: currencyRef ?? this.currencyRef,
mobile: mobile ?? this.mobile,
job: job ?? this.job,
balanceWithJobs: balanceWithJobs ?? this.balanceWithJobs,
primaryPhone: primaryPhone ?? this.primaryPhone,
openBalanceDate: openBalanceDate ?? this.openBalanceDate,
taxable: taxable ?? this.taxable,
alternatePhone: alternatePhone ?? this.alternatePhone,
metaData: metaData ?? this.metaData,
parentRef: parentRef ?? this.parentRef,
notes: notes ?? this.notes,
webAddr: webAddr ?? this.webAddr,
active: active ?? this.active,
companyName: companyName ?? this.companyName,
balance: balance ?? this.balance,
shipAddr: shipAddr ?? this.shipAddr,
paymentMethodRef: paymentMethodRef ?? this.paymentMethodRef,
isProject: isProject ?? this.isProject,
source: source ?? this.source,
primaryTaxIdentifier: primaryTaxIdentifier ?? this.primaryTaxIdentifier,
gSTRegistrationType: gSTRegistrationType ?? this.gSTRegistrationType,
printOnCheckName: printOnCheckName ?? this.printOnCheckName,
billAddr: billAddr ?? this.billAddr,
fullyQualifiedName: fullyQualifiedName ?? this.fullyQualifiedName,
level: level ?? this.level,
taxExemptionReasonId: taxExemptionReasonId ?? this.taxExemptionReasonId
);
}