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. bool? vehicleRentalAgreementComplete,
  50. bool? useDiscountTemplate,
  51. String? discountTemplateId,
  52. String? discountTemplate,
  53. String? creditStatusId,
  54. String? creditStatus,
  55. String? creditStatusThroughDate,
  56. bool? creditApplicationOnFile,
  57. bool? creditUnlimited,
  58. int? creditLimit,
  59. int? creditBalance,
  60. int? creditAvailable,
  61. bool? creditResponsiblePartyOnFile,
  62. String? creditResponsibleParty,
  63. bool? tradeReferencesVerified,
  64. String? tradeReferencesVerifiedBy,
  65. String? tradeReferencesVerifiedOn,
  66. String? creditCardTypeId,
  67. String? creditCardType,
  68. int? creditCardLimit,
  69. String? creditCardNo,
  70. String? creditCardCode,
  71. int? creditCardExpirationMonth,
  72. int? creditCardExpirationYear,
  73. String? creditCardName,
  74. bool? creditCardAuthorizationOnFile,
  75. bool? insuranceCertificationOnFile,
  76. String? insuranceCertificationValidThrough,
  77. int? insuranceCoverageLiability,
  78. int? insuranceCoverageLiabilityDeductible,
  79. int? insuranceCoveragePropertyValue,
  80. int? insuranceCoveragePropertyValueDeductible,
  81. String? insuranceCompanyId,
  82. String? insuranceCompany,
  83. String? insuranceAgent,
  84. String? insuranceCompanyAddress1,
  85. String? insuranceCompanyAddress2,
  86. String? insuranceCompanyCity,
  87. String? insuranceCompanyState,
  88. String? insuranceCompanyZipCode,
  89. String? insuranceCompanyCountryId,
  90. String? insuranceCompanyCountry,
  91. String? insuranceCompanyCountryCodeIsoAlpha2,
  92. int? insuranceCompanyCountryCodePhone,
  93. String? insuranceCompanyPhone,
  94. String? insuranceCompanyFax,
  95. bool? vehicleInsuranceCertficationOnFile,
  96. bool? taxable,
  97. String? taxStateOfIncorporationId,
  98. String? taxStateOfIncorporation,
  99. String? taxFederalNo,
  100. String? pstExemptionNumber,
  101. int? nonTaxableYear,
  102. String? nonTaxableCertificateNo,
  103. String? nonTaxableCertificateValidThrough,
  104. bool? nonTaxableCertificateOnFile,
  105. bool? disableQuoteOrderActivity,
  106. bool? disableRental,
  107. bool? disableSales,
  108. bool? disableFacilities,
  109. bool? disableTransportation,
  110. bool? disableLabor,
  111. bool? disableMisc,
  112. bool? disableRentalSale,
  113. bool? disableSubRental,
  114. bool? disableSubSale,
  115. bool? disableSubLabor,
  116. bool? disableSubMisc,
  117. bool? splitRental,
  118. bool? splitRentalTaxCustomer,
  119. int? ownedEquipmentSplitRentalPerecent,
  120. int? subRentalEquipmentSplitRentalPerecent,
  121. bool? rebateRental,
  122. int? ownedEquipmentRebateRentalPerecent,
  123. int? subRentalEquipmentRebateRentalPerecent,
  124. String? splitRentalLogoFileName,
  125. int? splitRentalLogoWidth,
  126. int? splitRentalLogoHeight,
  127. String? shippingAddressType,
  128. String? shipAttention,
  129. String? shipAddress1,
  130. String? shipAddress2,
  131. String? shipCity,
  132. String? shipState,
  133. String? shipCountryId,
  134. String? shipCountry,
  135. String? shipCountryCodeIsoAlpha2,
  136. int? shipCountryCodePhone,
  137. String? shipZipCode,
  138. String? email,
  139. bool? multipleCurrencies,
  140. String? currencyId,
  141. String? currencyCode,
  142. String? currencySymbol,
  143. double? securityDepositAmount,
  144. String? externalId,
  145. bool? inactive,
  146. String? paymentTypeType,
  147. String? dateStamp,
  148. String? auditNote,
  149. String? recordTitle,
  150. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  151. List<FwStandardDataFwCustomValue>? custom,
  152. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  153. 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);
}