copyWith method

WebApiModulesAgentCustomerCustomer copyWith({
  1. String? customerId,
  2. String? customerNumber,
  3. String? officeLocationId,
  4. String? officeLocation,
  5. String? departmentId,
  6. String? department,
  7. String? customerTypeId,
  8. String? customerType,
  9. String? customerCategoryId,
  10. String? customerCategory,
  11. String? customer,
  12. String? address1,
  13. String? address2,
  14. String? city,
  15. String? state,
  16. String? countryId,
  17. String? country,
  18. String? countryCodeIsoAlpha2,
  19. int? countryCodePhone,
  20. String? zipCode,
  21. String? parentCustomerId,
  22. String? parentCustomer,
  23. String? phone,
  24. String? fax,
  25. String? phoneTollFree,
  26. String? otherPhone,
  27. String? webAddress,
  28. String? customerStatusId,
  29. String? customerStatus,
  30. String? customerStatusType,
  31. String? statusAsOf,
  32. bool? termsAndConditionsOnFile,
  33. String? billingAddressType,
  34. String? billToAttention1,
  35. String? billToAttention2,
  36. String? billToAddress1,
  37. String? billToAddress2,
  38. String? billToCity,
  39. String? billToState,
  40. String? billToCountryId,
  41. String? billToCountry,
  42. String? billToCountryCodeIsoAlpha2,
  43. int? billToCountryCodePhone,
  44. String? billToZipCode,
  45. String? paymentTypeId,
  46. String? paymentType,
  47. String? paymentTermsId,
  48. String? paymentTerms,
  49. String? paymentTermsColor,
  50. bool? vehicleRentalAgreementComplete,
  51. bool? useDiscountTemplate,
  52. String? discountTemplateId,
  53. String? discountTemplate,
  54. String? creditStatusId,
  55. String? creditStatus,
  56. String? creditStatusThroughDate,
  57. bool? creditApplicationOnFile,
  58. bool? creditUnlimited,
  59. double? creditLimit,
  60. double? creditBalance,
  61. double? creditAvailable,
  62. bool? creditResponsiblePartyOnFile,
  63. String? creditResponsibleParty,
  64. bool? tradeReferencesVerified,
  65. String? tradeReferencesVerifiedBy,
  66. String? tradeReferencesVerifiedOn,
  67. String? creditCardTypeId,
  68. String? creditCardType,
  69. double? creditCardLimit,
  70. String? creditCardNo,
  71. String? creditCardCode,
  72. int? creditCardExpirationMonth,
  73. int? creditCardExpirationYear,
  74. String? creditCardName,
  75. bool? creditCardAuthorizationOnFile,
  76. bool? insuranceCertificationOnFile,
  77. String? insuranceCertificationValidThrough,
  78. double? insuranceCoverageLiability,
  79. double? insuranceCoverageLiabilityDeductible,
  80. double? insuranceCoveragePropertyValue,
  81. double? insuranceCoveragePropertyValueDeductible,
  82. String? insuranceCompanyId,
  83. String? insuranceCompany,
  84. String? insuranceAgent,
  85. String? insuranceCompanyAddress1,
  86. String? insuranceCompanyAddress2,
  87. String? insuranceCompanyCity,
  88. String? insuranceCompanyState,
  89. String? insuranceCompanyZipCode,
  90. String? insuranceCompanyCountryId,
  91. String? insuranceCompanyCountry,
  92. String? insuranceCompanyCountryCodeIsoAlpha2,
  93. int? insuranceCompanyCountryCodePhone,
  94. String? insuranceCompanyPhone,
  95. String? insuranceCompanyFax,
  96. bool? vehicleInsuranceCertficationOnFile,
  97. bool? taxable,
  98. String? taxStateOfIncorporationId,
  99. String? taxStateOfIncorporation,
  100. String? taxFederalNo,
  101. String? pstExemptionNumber,
  102. int? nonTaxableYear,
  103. String? nonTaxableCertificateNo,
  104. String? nonTaxableCertificateValidThrough,
  105. bool? nonTaxableCertificateOnFile,
  106. bool? disableQuoteOrderActivity,
  107. bool? disableRental,
  108. bool? disableSales,
  109. bool? disableFacilities,
  110. bool? disableTransportation,
  111. bool? disableLabor,
  112. bool? disableMisc,
  113. bool? disableRentalSale,
  114. bool? disableSubRental,
  115. bool? disableSubSale,
  116. bool? disableSubLabor,
  117. bool? disableSubMisc,
  118. bool? splitRental,
  119. bool? splitRentalTaxCustomer,
  120. int? ownedEquipmentSplitRentalPerecent,
  121. int? subRentalEquipmentSplitRentalPerecent,
  122. bool? rebateRental,
  123. int? ownedEquipmentRebateRentalPerecent,
  124. int? subRentalEquipmentRebateRentalPerecent,
  125. String? splitRentalLogoFileName,
  126. int? splitRentalLogoWidth,
  127. int? splitRentalLogoHeight,
  128. String? shippingAddressType,
  129. String? shipAttention,
  130. String? shipAddress1,
  131. String? shipAddress2,
  132. String? shipCity,
  133. String? shipState,
  134. String? shipCountryId,
  135. String? shipCountry,
  136. String? shipCountryCodeIsoAlpha2,
  137. int? shipCountryCodePhone,
  138. String? shipZipCode,
  139. String? email,
  140. bool? multipleCurrencies,
  141. String? currencyId,
  142. String? currencyCode,
  143. String? currencySymbol,
  144. double? securityDepositAmount,
  145. String? externalId,
  146. bool? inactive,
  147. String? paymentTypeType,
  148. String? taxOption,
  149. String? dateStamp,
  150. String? auditNote,
  151. String? recordTitle,
  152. dynamic urlIdentifier,
  153. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  154. List<FwStandardDataFwCustomValue>? custom,
  155. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  156. FwStandardBusinessLogicFwBusinessLogic? original,
  157. List<FwStandardDataFwTranslatedValue>? translation,
  158. bool? hasImport,
  159. bool? hasDocuments,
  160. String? createdByUserId,
  161. String? createdByUserName,
  162. String? createdDateTime,
  163. String? modifiedByUserId,
  164. String? modifiedByUserName,
  165. String? modifiedDateTime,
})

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,
  String? paymentTermsColor,
  bool? vehicleRentalAgreementComplete,
  bool? useDiscountTemplate,
  String? discountTemplateId,
  String? discountTemplate,
  String? creditStatusId,
  String? creditStatus,
  String? creditStatusThroughDate,
  bool? creditApplicationOnFile,
  bool? creditUnlimited,
  double? creditLimit,
  double? creditBalance,
  double? creditAvailable,
  bool? creditResponsiblePartyOnFile,
  String? creditResponsibleParty,
  bool? tradeReferencesVerified,
  String? tradeReferencesVerifiedBy,
  String? tradeReferencesVerifiedOn,
  String? creditCardTypeId,
  String? creditCardType,
  double? creditCardLimit,
  String? creditCardNo,
  String? creditCardCode,
  int? creditCardExpirationMonth,
  int? creditCardExpirationYear,
  String? creditCardName,
  bool? creditCardAuthorizationOnFile,
  bool? insuranceCertificationOnFile,
  String? insuranceCertificationValidThrough,
  double? insuranceCoverageLiability,
  double? insuranceCoverageLiabilityDeductible,
  double? insuranceCoveragePropertyValue,
  double? 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? taxOption,
  String? dateStamp,
  String? auditNote,
  String? recordTitle,
  dynamic urlIdentifier,
  List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  List<FwStandardDataFwCustomValue>? custom,
  List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  FwStandardBusinessLogicFwBusinessLogic? original,
  List<FwStandardDataFwTranslatedValue>? translation,
  bool? hasImport,
  bool? hasDocuments,
  String? createdByUserId,
  String? createdByUserName,
  String? createdDateTime,
  String? modifiedByUserId,
  String? modifiedByUserName,
  String? modifiedDateTime,
}) {
  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,
    paymentTermsColor: paymentTermsColor ?? this.paymentTermsColor,
    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,
    taxOption: taxOption ?? this.taxOption,
    dateStamp: dateStamp ?? this.dateStamp,
    auditNote: auditNote ?? this.auditNote,
    recordTitle: recordTitle ?? this.recordTitle,
    urlIdentifier: urlIdentifier ?? this.urlIdentifier,
    fields: fields ?? this.fields,
    custom: custom ?? this.custom,
    defaultFieldAttributes:
        defaultFieldAttributes ?? this.defaultFieldAttributes,
    original: original ?? this.original,
    translation: translation ?? this.translation,
    hasImport: hasImport ?? this.hasImport,
    hasDocuments: hasDocuments ?? this.hasDocuments,
    createdByUserId: createdByUserId ?? this.createdByUserId,
    createdByUserName: createdByUserName ?? this.createdByUserName,
    createdDateTime: createdDateTime ?? this.createdDateTime,
    modifiedByUserId: modifiedByUserId ?? this.modifiedByUserId,
    modifiedByUserName: modifiedByUserName ?? this.modifiedByUserName,
    modifiedDateTime: modifiedDateTime ?? this.modifiedDateTime,
  );
}