copyWith method
WebApiModulesAgentCustomerCustomer
copyWith({
- String? customerId,
- String? customerNumber,
- String? officeLocationId,
- String? officeLocation,
- String? departmentId,
- String? department,
- String? customerTypeId,
- String? customerType,
- String? customerCategoryId,
- String? customerCategory,
- String? customer,
- String? address1,
- String? address2,
- String? city,
- String? state,
- String? countryId,
- String? country,
- String? countryCodeIsoAlpha2,
- int? countryCodePhone,
- String? zipCode,
- String? parentCustomerId,
- String? parentCustomer,
- String? phone,
- String? fax,
- String? phoneTollFree,
- String? otherPhone,
- String? webAddress,
- String? customerStatusId,
- String? customerStatus,
- String? customerStatusType,
- String? statusAsOf,
- bool? termsAndConditionsOnFile,
- String? billingAddressType,
- String? billToAttention1,
- String? billToAttention2,
- String? billToAddress1,
- String? billToAddress2,
- String? billToCity,
- String? billToState,
- String? billToCountryId,
- String? billToCountry,
- String? billToCountryCodeIsoAlpha2,
- int? billToCountryCodePhone,
- String? billToZipCode,
- String? paymentTypeId,
- String? paymentType,
- String? paymentTermsId,
- String? paymentTerms,
- bool? vehicleRentalAgreementComplete,
- bool? useDiscountTemplate,
- String? discountTemplateId,
- String? discountTemplate,
- String? creditStatusId,
- String? creditStatus,
- String? creditStatusThroughDate,
- bool? creditApplicationOnFile,
- bool? creditUnlimited,
- int? creditLimit,
- int? creditBalance,
- int? creditAvailable,
- bool? creditResponsiblePartyOnFile,
- String? creditResponsibleParty,
- bool? tradeReferencesVerified,
- String? tradeReferencesVerifiedBy,
- String? tradeReferencesVerifiedOn,
- String? creditCardTypeId,
- String? creditCardType,
- int? creditCardLimit,
- String? creditCardNo,
- String? creditCardCode,
- int? creditCardExpirationMonth,
- int? creditCardExpirationYear,
- String? creditCardName,
- bool? creditCardAuthorizationOnFile,
- bool? insuranceCertificationOnFile,
- String? insuranceCertificationValidThrough,
- int? insuranceCoverageLiability,
- int? insuranceCoverageLiabilityDeductible,
- int? insuranceCoveragePropertyValue,
- int? insuranceCoveragePropertyValueDeductible,
- String? insuranceCompanyId,
- String? insuranceCompany,
- String? insuranceAgent,
- String? insuranceCompanyAddress1,
- String? insuranceCompanyAddress2,
- String? insuranceCompanyCity,
- String? insuranceCompanyState,
- String? insuranceCompanyZipCode,
- String? insuranceCompanyCountryId,
- String? insuranceCompanyCountry,
- String? insuranceCompanyCountryCodeIsoAlpha2,
- int? insuranceCompanyCountryCodePhone,
- String? insuranceCompanyPhone,
- String? insuranceCompanyFax,
- bool? vehicleInsuranceCertficationOnFile,
- bool? taxable,
- String? taxStateOfIncorporationId,
- String? taxStateOfIncorporation,
- String? taxFederalNo,
- String? pstExemptionNumber,
- int? nonTaxableYear,
- String? nonTaxableCertificateNo,
- String? nonTaxableCertificateValidThrough,
- bool? nonTaxableCertificateOnFile,
- bool? disableQuoteOrderActivity,
- bool? disableRental,
- bool? disableSales,
- bool? disableFacilities,
- bool? disableTransportation,
- bool? disableLabor,
- bool? disableMisc,
- bool? disableRentalSale,
- bool? disableSubRental,
- bool? disableSubSale,
- bool? disableSubLabor,
- bool? disableSubMisc,
- bool? splitRental,
- bool? splitRentalTaxCustomer,
- int? ownedEquipmentSplitRentalPerecent,
- int? subRentalEquipmentSplitRentalPerecent,
- bool? rebateRental,
- int? ownedEquipmentRebateRentalPerecent,
- int? subRentalEquipmentRebateRentalPerecent,
- String? splitRentalLogoFileName,
- int? splitRentalLogoWidth,
- int? splitRentalLogoHeight,
- String? shippingAddressType,
- String? shipAttention,
- String? shipAddress1,
- String? shipAddress2,
- String? shipCity,
- String? shipState,
- String? shipCountryId,
- String? shipCountry,
- String? shipCountryCodeIsoAlpha2,
- int? shipCountryCodePhone,
- String? shipZipCode,
- String? email,
- bool? multipleCurrencies,
- String? currencyId,
- String? currencyCode,
- String? currencySymbol,
- double? securityDepositAmount,
- String? externalId,
- bool? inactive,
- String? paymentTypeType,
- String? dateStamp,
- String? auditNote,
- String? recordTitle,
- List<
FwStandardBusinessLogicFwBusinessLogicFieldDefinition> ? fields, - List<
FwStandardDataFwCustomValue> ? custom, - List<
FwStandardDataFwDefaultAttribute> ? defaultFieldAttributes, - List<
FwStandardDataFwTranslatedValue> ? translation,
Implementation
WebApiModulesAgentCustomerCustomer copyWith(
{String? customerId,
String? customerNumber,
String? officeLocationId,
String? officeLocation,
String? departmentId,
String? department,
String? customerTypeId,
String? customerType,
String? customerCategoryId,
String? customerCategory,
String? customer,
String? address1,
String? address2,
String? city,
String? state,
String? countryId,
String? country,
String? countryCodeIsoAlpha2,
int? countryCodePhone,
String? zipCode,
String? parentCustomerId,
String? parentCustomer,
String? phone,
String? fax,
String? phoneTollFree,
String? otherPhone,
String? webAddress,
String? customerStatusId,
String? customerStatus,
String? customerStatusType,
String? statusAsOf,
bool? termsAndConditionsOnFile,
String? billingAddressType,
String? billToAttention1,
String? billToAttention2,
String? billToAddress1,
String? billToAddress2,
String? billToCity,
String? billToState,
String? billToCountryId,
String? billToCountry,
String? billToCountryCodeIsoAlpha2,
int? billToCountryCodePhone,
String? billToZipCode,
String? paymentTypeId,
String? paymentType,
String? paymentTermsId,
String? paymentTerms,
bool? vehicleRentalAgreementComplete,
bool? useDiscountTemplate,
String? discountTemplateId,
String? discountTemplate,
String? creditStatusId,
String? creditStatus,
String? creditStatusThroughDate,
bool? creditApplicationOnFile,
bool? creditUnlimited,
int? creditLimit,
int? creditBalance,
int? creditAvailable,
bool? creditResponsiblePartyOnFile,
String? creditResponsibleParty,
bool? tradeReferencesVerified,
String? tradeReferencesVerifiedBy,
String? tradeReferencesVerifiedOn,
String? creditCardTypeId,
String? creditCardType,
int? creditCardLimit,
String? creditCardNo,
String? creditCardCode,
int? creditCardExpirationMonth,
int? creditCardExpirationYear,
String? creditCardName,
bool? creditCardAuthorizationOnFile,
bool? insuranceCertificationOnFile,
String? insuranceCertificationValidThrough,
int? insuranceCoverageLiability,
int? insuranceCoverageLiabilityDeductible,
int? insuranceCoveragePropertyValue,
int? insuranceCoveragePropertyValueDeductible,
String? insuranceCompanyId,
String? insuranceCompany,
String? insuranceAgent,
String? insuranceCompanyAddress1,
String? insuranceCompanyAddress2,
String? insuranceCompanyCity,
String? insuranceCompanyState,
String? insuranceCompanyZipCode,
String? insuranceCompanyCountryId,
String? insuranceCompanyCountry,
String? insuranceCompanyCountryCodeIsoAlpha2,
int? insuranceCompanyCountryCodePhone,
String? insuranceCompanyPhone,
String? insuranceCompanyFax,
bool? vehicleInsuranceCertficationOnFile,
bool? taxable,
String? taxStateOfIncorporationId,
String? taxStateOfIncorporation,
String? taxFederalNo,
String? pstExemptionNumber,
int? nonTaxableYear,
String? nonTaxableCertificateNo,
String? nonTaxableCertificateValidThrough,
bool? nonTaxableCertificateOnFile,
bool? disableQuoteOrderActivity,
bool? disableRental,
bool? disableSales,
bool? disableFacilities,
bool? disableTransportation,
bool? disableLabor,
bool? disableMisc,
bool? disableRentalSale,
bool? disableSubRental,
bool? disableSubSale,
bool? disableSubLabor,
bool? disableSubMisc,
bool? splitRental,
bool? splitRentalTaxCustomer,
int? ownedEquipmentSplitRentalPerecent,
int? subRentalEquipmentSplitRentalPerecent,
bool? rebateRental,
int? ownedEquipmentRebateRentalPerecent,
int? subRentalEquipmentRebateRentalPerecent,
String? splitRentalLogoFileName,
int? splitRentalLogoWidth,
int? splitRentalLogoHeight,
String? shippingAddressType,
String? shipAttention,
String? shipAddress1,
String? shipAddress2,
String? shipCity,
String? shipState,
String? shipCountryId,
String? shipCountry,
String? shipCountryCodeIsoAlpha2,
int? shipCountryCodePhone,
String? shipZipCode,
String? email,
bool? multipleCurrencies,
String? currencyId,
String? currencyCode,
String? currencySymbol,
double? securityDepositAmount,
String? externalId,
bool? inactive,
String? paymentTypeType,
String? dateStamp,
String? auditNote,
String? recordTitle,
List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
List<FwStandardDataFwCustomValue>? custom,
List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
List<FwStandardDataFwTranslatedValue>? translation}) {
return WebApiModulesAgentCustomerCustomer(
customerId: customerId ?? this.customerId,
customerNumber: customerNumber ?? this.customerNumber,
officeLocationId: officeLocationId ?? this.officeLocationId,
officeLocation: officeLocation ?? this.officeLocation,
departmentId: departmentId ?? this.departmentId,
department: department ?? this.department,
customerTypeId: customerTypeId ?? this.customerTypeId,
customerType: customerType ?? this.customerType,
customerCategoryId: customerCategoryId ?? this.customerCategoryId,
customerCategory: customerCategory ?? this.customerCategory,
customer: customer ?? this.customer,
address1: address1 ?? this.address1,
address2: address2 ?? this.address2,
city: city ?? this.city,
state: state ?? this.state,
countryId: countryId ?? this.countryId,
country: country ?? this.country,
countryCodeIsoAlpha2: countryCodeIsoAlpha2 ?? this.countryCodeIsoAlpha2,
countryCodePhone: countryCodePhone ?? this.countryCodePhone,
zipCode: zipCode ?? this.zipCode,
parentCustomerId: parentCustomerId ?? this.parentCustomerId,
parentCustomer: parentCustomer ?? this.parentCustomer,
phone: phone ?? this.phone,
fax: fax ?? this.fax,
phoneTollFree: phoneTollFree ?? this.phoneTollFree,
otherPhone: otherPhone ?? this.otherPhone,
webAddress: webAddress ?? this.webAddress,
customerStatusId: customerStatusId ?? this.customerStatusId,
customerStatus: customerStatus ?? this.customerStatus,
customerStatusType: customerStatusType ?? this.customerStatusType,
statusAsOf: statusAsOf ?? this.statusAsOf,
termsAndConditionsOnFile:
termsAndConditionsOnFile ?? this.termsAndConditionsOnFile,
billingAddressType: billingAddressType ?? this.billingAddressType,
billToAttention1: billToAttention1 ?? this.billToAttention1,
billToAttention2: billToAttention2 ?? this.billToAttention2,
billToAddress1: billToAddress1 ?? this.billToAddress1,
billToAddress2: billToAddress2 ?? this.billToAddress2,
billToCity: billToCity ?? this.billToCity,
billToState: billToState ?? this.billToState,
billToCountryId: billToCountryId ?? this.billToCountryId,
billToCountry: billToCountry ?? this.billToCountry,
billToCountryCodeIsoAlpha2:
billToCountryCodeIsoAlpha2 ?? this.billToCountryCodeIsoAlpha2,
billToCountryCodePhone:
billToCountryCodePhone ?? this.billToCountryCodePhone,
billToZipCode: billToZipCode ?? this.billToZipCode,
paymentTypeId: paymentTypeId ?? this.paymentTypeId,
paymentType: paymentType ?? this.paymentType,
paymentTermsId: paymentTermsId ?? this.paymentTermsId,
paymentTerms: paymentTerms ?? this.paymentTerms,
vehicleRentalAgreementComplete: vehicleRentalAgreementComplete ??
this.vehicleRentalAgreementComplete,
useDiscountTemplate: useDiscountTemplate ?? this.useDiscountTemplate,
discountTemplateId: discountTemplateId ?? this.discountTemplateId,
discountTemplate: discountTemplate ?? this.discountTemplate,
creditStatusId: creditStatusId ?? this.creditStatusId,
creditStatus: creditStatus ?? this.creditStatus,
creditStatusThroughDate:
creditStatusThroughDate ?? this.creditStatusThroughDate,
creditApplicationOnFile:
creditApplicationOnFile ?? this.creditApplicationOnFile,
creditUnlimited: creditUnlimited ?? this.creditUnlimited,
creditLimit: creditLimit ?? this.creditLimit,
creditBalance: creditBalance ?? this.creditBalance,
creditAvailable: creditAvailable ?? this.creditAvailable,
creditResponsiblePartyOnFile:
creditResponsiblePartyOnFile ?? this.creditResponsiblePartyOnFile,
creditResponsibleParty:
creditResponsibleParty ?? this.creditResponsibleParty,
tradeReferencesVerified:
tradeReferencesVerified ?? this.tradeReferencesVerified,
tradeReferencesVerifiedBy:
tradeReferencesVerifiedBy ?? this.tradeReferencesVerifiedBy,
tradeReferencesVerifiedOn:
tradeReferencesVerifiedOn ?? this.tradeReferencesVerifiedOn,
creditCardTypeId: creditCardTypeId ?? this.creditCardTypeId,
creditCardType: creditCardType ?? this.creditCardType,
creditCardLimit: creditCardLimit ?? this.creditCardLimit,
creditCardNo: creditCardNo ?? this.creditCardNo,
creditCardCode: creditCardCode ?? this.creditCardCode,
creditCardExpirationMonth:
creditCardExpirationMonth ?? this.creditCardExpirationMonth,
creditCardExpirationYear:
creditCardExpirationYear ?? this.creditCardExpirationYear,
creditCardName: creditCardName ?? this.creditCardName,
creditCardAuthorizationOnFile:
creditCardAuthorizationOnFile ?? this.creditCardAuthorizationOnFile,
insuranceCertificationOnFile:
insuranceCertificationOnFile ?? this.insuranceCertificationOnFile,
insuranceCertificationValidThrough: insuranceCertificationValidThrough ??
this.insuranceCertificationValidThrough,
insuranceCoverageLiability:
insuranceCoverageLiability ?? this.insuranceCoverageLiability,
insuranceCoverageLiabilityDeductible: insuranceCoverageLiabilityDeductible ??
this.insuranceCoverageLiabilityDeductible,
insuranceCoveragePropertyValue: insuranceCoveragePropertyValue ??
this.insuranceCoveragePropertyValue,
insuranceCoveragePropertyValueDeductible:
insuranceCoveragePropertyValueDeductible ??
this.insuranceCoveragePropertyValueDeductible,
insuranceCompanyId: insuranceCompanyId ?? this.insuranceCompanyId,
insuranceCompany: insuranceCompany ?? this.insuranceCompany,
insuranceAgent: insuranceAgent ?? this.insuranceAgent,
insuranceCompanyAddress1:
insuranceCompanyAddress1 ?? this.insuranceCompanyAddress1,
insuranceCompanyAddress2:
insuranceCompanyAddress2 ?? this.insuranceCompanyAddress2,
insuranceCompanyCity: insuranceCompanyCity ?? this.insuranceCompanyCity,
insuranceCompanyState:
insuranceCompanyState ?? this.insuranceCompanyState,
insuranceCompanyZipCode:
insuranceCompanyZipCode ?? this.insuranceCompanyZipCode,
insuranceCompanyCountryId:
insuranceCompanyCountryId ?? this.insuranceCompanyCountryId,
insuranceCompanyCountry:
insuranceCompanyCountry ?? this.insuranceCompanyCountry,
insuranceCompanyCountryCodeIsoAlpha2:
insuranceCompanyCountryCodeIsoAlpha2 ??
this.insuranceCompanyCountryCodeIsoAlpha2,
insuranceCompanyCountryCodePhone: insuranceCompanyCountryCodePhone ??
this.insuranceCompanyCountryCodePhone,
insuranceCompanyPhone:
insuranceCompanyPhone ?? this.insuranceCompanyPhone,
insuranceCompanyFax: insuranceCompanyFax ?? this.insuranceCompanyFax,
vehicleInsuranceCertficationOnFile: vehicleInsuranceCertficationOnFile ??
this.vehicleInsuranceCertficationOnFile,
taxable: taxable ?? this.taxable,
taxStateOfIncorporationId:
taxStateOfIncorporationId ?? this.taxStateOfIncorporationId,
taxStateOfIncorporation:
taxStateOfIncorporation ?? this.taxStateOfIncorporation,
taxFederalNo: taxFederalNo ?? this.taxFederalNo,
pstExemptionNumber: pstExemptionNumber ?? this.pstExemptionNumber,
nonTaxableYear: nonTaxableYear ?? this.nonTaxableYear,
nonTaxableCertificateNo:
nonTaxableCertificateNo ?? this.nonTaxableCertificateNo,
nonTaxableCertificateValidThrough: nonTaxableCertificateValidThrough ??
this.nonTaxableCertificateValidThrough,
nonTaxableCertificateOnFile:
nonTaxableCertificateOnFile ?? this.nonTaxableCertificateOnFile,
disableQuoteOrderActivity: disableQuoteOrderActivity ?? this.disableQuoteOrderActivity,
disableRental: disableRental ?? this.disableRental,
disableSales: disableSales ?? this.disableSales,
disableFacilities: disableFacilities ?? this.disableFacilities,
disableTransportation: disableTransportation ?? this.disableTransportation,
disableLabor: disableLabor ?? this.disableLabor,
disableMisc: disableMisc ?? this.disableMisc,
disableRentalSale: disableRentalSale ?? this.disableRentalSale,
disableSubRental: disableSubRental ?? this.disableSubRental,
disableSubSale: disableSubSale ?? this.disableSubSale,
disableSubLabor: disableSubLabor ?? this.disableSubLabor,
disableSubMisc: disableSubMisc ?? this.disableSubMisc,
splitRental: splitRental ?? this.splitRental,
splitRentalTaxCustomer: splitRentalTaxCustomer ?? this.splitRentalTaxCustomer,
ownedEquipmentSplitRentalPerecent: ownedEquipmentSplitRentalPerecent ?? this.ownedEquipmentSplitRentalPerecent,
subRentalEquipmentSplitRentalPerecent: subRentalEquipmentSplitRentalPerecent ?? this.subRentalEquipmentSplitRentalPerecent,
rebateRental: rebateRental ?? this.rebateRental,
ownedEquipmentRebateRentalPerecent: ownedEquipmentRebateRentalPerecent ?? this.ownedEquipmentRebateRentalPerecent,
subRentalEquipmentRebateRentalPerecent: subRentalEquipmentRebateRentalPerecent ?? this.subRentalEquipmentRebateRentalPerecent,
splitRentalLogoFileName: splitRentalLogoFileName ?? this.splitRentalLogoFileName,
splitRentalLogoWidth: splitRentalLogoWidth ?? this.splitRentalLogoWidth,
splitRentalLogoHeight: splitRentalLogoHeight ?? this.splitRentalLogoHeight,
shippingAddressType: shippingAddressType ?? this.shippingAddressType,
shipAttention: shipAttention ?? this.shipAttention,
shipAddress1: shipAddress1 ?? this.shipAddress1,
shipAddress2: shipAddress2 ?? this.shipAddress2,
shipCity: shipCity ?? this.shipCity,
shipState: shipState ?? this.shipState,
shipCountryId: shipCountryId ?? this.shipCountryId,
shipCountry: shipCountry ?? this.shipCountry,
shipCountryCodeIsoAlpha2: shipCountryCodeIsoAlpha2 ?? this.shipCountryCodeIsoAlpha2,
shipCountryCodePhone: shipCountryCodePhone ?? this.shipCountryCodePhone,
shipZipCode: shipZipCode ?? this.shipZipCode,
email: email ?? this.email,
multipleCurrencies: multipleCurrencies ?? this.multipleCurrencies,
currencyId: currencyId ?? this.currencyId,
currencyCode: currencyCode ?? this.currencyCode,
currencySymbol: currencySymbol ?? this.currencySymbol,
securityDepositAmount: securityDepositAmount ?? this.securityDepositAmount,
externalId: externalId ?? this.externalId,
inactive: inactive ?? this.inactive,
paymentTypeType: paymentTypeType ?? this.paymentTypeType,
dateStamp: dateStamp ?? this.dateStamp,
auditNote: auditNote ?? this.auditNote,
recordTitle: recordTitle ?? this.recordTitle,
fields: fields ?? this.fields,
custom: custom ?? this.custom,
defaultFieldAttributes: defaultFieldAttributes ?? this.defaultFieldAttributes,
translation: translation ?? this.translation);
}