copyWithWrapped method

WebApiModulesBillingInvoiceInvoice copyWithWrapped({
  1. Wrapped<String?>? invoiceId,
  2. Wrapped<String?>? invoiceNumber,
  3. Wrapped<String?>? invoiceDate,
  4. Wrapped<String?>? invoiceDueDate,
  5. Wrapped<String?>? invoiceType,
  6. Wrapped<String?>? billingStartDate,
  7. Wrapped<String?>? billingEndDate,
  8. Wrapped<String?>? usageStartDate,
  9. Wrapped<String?>? usageEndDate,
  10. Wrapped<String?>? orderId,
  11. Wrapped<String?>? orderNumber,
  12. Wrapped<String?>? orderDescription,
  13. Wrapped<String?>? orderDate,
  14. Wrapped<String?>? orderLocation,
  15. Wrapped<String?>? invoiceDescription,
  16. Wrapped<String?>? creditingInvoiceId,
  17. Wrapped<String?>? creditingInvoiceNumber,
  18. Wrapped<String?>? customerId,
  19. Wrapped<String?>? customer,
  20. Wrapped<String?>? customerTypeId,
  21. Wrapped<String?>? customerType,
  22. Wrapped<String?>? dealId,
  23. Wrapped<String?>? deal,
  24. Wrapped<String?>? dealNumber,
  25. Wrapped<String?>? dealTypeId,
  26. Wrapped<String?>? departmentId,
  27. Wrapped<String?>? department,
  28. Wrapped<String?>? purchaseOrderNumber,
  29. Wrapped<String?>? workAuthorizationNumber,
  30. Wrapped<String?>? status,
  31. Wrapped<String?>? statusDate,
  32. Wrapped<bool?>? isNoCharge,
  33. Wrapped<bool?>? isAdjusted,
  34. Wrapped<bool?>? isBilledHiatus,
  35. Wrapped<int?>? episodeNumber,
  36. Wrapped<bool?>? hasLockedTotal,
  37. Wrapped<bool?>? isAlteredDates,
  38. Wrapped<String?>? officeLocationId,
  39. Wrapped<String?>? officeLocation,
  40. Wrapped<String?>? invoiceCreationBatchId,
  41. Wrapped<int?>? invoiceCreationBatchNumber,
  42. Wrapped<String?>? invoiceGroupNumber,
  43. Wrapped<bool?>? rentalSale,
  44. Wrapped<bool?>? lossAndDamage,
  45. Wrapped<bool?>? repair,
  46. Wrapped<String?>? inputByUserId,
  47. Wrapped<String?>? flatPoId,
  48. Wrapped<String?>? orderType,
  49. Wrapped<String?>? rebateCustomerId,
  50. Wrapped<String?>? orbitsapchgmajor,
  51. Wrapped<String?>? orbitsapchgsub,
  52. Wrapped<String?>? orbitsapchgdetail,
  53. Wrapped<String?>? orbitsapchgdeal,
  54. Wrapped<String?>? orbitsapchgset,
  55. Wrapped<bool?>? excludeFromFlatPo,
  56. Wrapped<bool?>? isSplitRental,
  57. Wrapped<bool?>? isRebateRental,
  58. Wrapped<double?>? invoiceListTotal,
  59. Wrapped<double?>? invoiceGrossTotal,
  60. Wrapped<double?>? invoiceDiscountTotal,
  61. Wrapped<double?>? invoiceDaysPerWeekDiscountTotal,
  62. Wrapped<String?>? referenceNumber,
  63. Wrapped<String?>? agentId,
  64. Wrapped<String?>? agent,
  65. Wrapped<String?>? projectManagerId,
  66. Wrapped<String?>? projectManager,
  67. Wrapped<String?>? billToAddressId,
  68. Wrapped<String?>? billToName,
  69. Wrapped<String?>? billToAttention1,
  70. Wrapped<String?>? billToAttention2,
  71. Wrapped<String?>? billToAddress1,
  72. Wrapped<String?>? billToAddress2,
  73. Wrapped<String?>? billToCity,
  74. Wrapped<String?>? billToState,
  75. Wrapped<String?>? billToZipCode,
  76. Wrapped<String?>? billToCountryId,
  77. Wrapped<String?>? billToCountry,
  78. Wrapped<String?>? billToCountryCodeIsoAlpha2,
  79. Wrapped<int?>? billToCountryCodePhone,
  80. Wrapped<String?>? invoiceClass,
  81. Wrapped<String?>? printNotes,
  82. Wrapped<String?>? paymentTermsId,
  83. Wrapped<String?>? paymentTerms,
  84. Wrapped<String?>? paymentTypeId,
  85. Wrapped<String?>? paymentType,
  86. Wrapped<String?>? taxId,
  87. Wrapped<String?>? taxOptionId,
  88. Wrapped<String?>? taxOption,
  89. Wrapped<String?>? tax1Name,
  90. Wrapped<String?>? tax2Name,
  91. Wrapped<double?>? rentalTaxRate1,
  92. Wrapped<double?>? salesTaxRate1,
  93. Wrapped<double?>? laborTaxRate1,
  94. Wrapped<double?>? rentalTaxRate2,
  95. Wrapped<double?>? salesTaxRate2,
  96. Wrapped<double?>? laborTaxRate2,
  97. Wrapped<String?>? taxItemCode,
  98. Wrapped<String?>? taxVendor,
  99. Wrapped<String?>? taxCountry,
  100. Wrapped<String?>? chargeBatchId,
  101. Wrapped<String?>? chargeBatchNumber,
  102. Wrapped<bool?>? quikPayDiscount,
  103. Wrapped<double?>? quikPayRentalTotal,
  104. Wrapped<double?>? quikPayTotal,
  105. Wrapped<double?>? receivedTotal,
  106. Wrapped<String?>? rateType,
  107. Wrapped<double?>? consignmentRevenue,
  108. Wrapped<bool?>? isNonBillable,
  109. Wrapped<String?>? currencyId,
  110. Wrapped<String?>? currencyCode,
  111. Wrapped<String?>? currencySymbol,
  112. Wrapped<String?>? officeLocationDefaultCurrencyId,
  113. Wrapped<String?>? divisionId,
  114. Wrapped<String?>? outsideSalesRepresentativeId,
  115. Wrapped<String?>? outsideSalesRepresentative,
  116. Wrapped<bool?>? exportTaxAsLineItem,
  117. Wrapped<String?>? invoiceNumberColor,
  118. Wrapped<String?>? statusColor,
  119. Wrapped<String?>? orderNumberColor,
  120. Wrapped<String?>? purchaseOrderNumberColor,
  121. Wrapped<String?>? dealColor,
  122. Wrapped<String?>? billingStartDateColor,
  123. Wrapped<String?>? invoiceTotalColor,
  124. Wrapped<String?>? descriptionColor,
  125. Wrapped<bool?>? hasRentalItem,
  126. Wrapped<bool?>? hasMeterItem,
  127. Wrapped<bool?>? hasSalesItem,
  128. Wrapped<bool?>? hasLaborItem,
  129. Wrapped<bool?>? hasMiscellaneousItem,
  130. Wrapped<bool?>? hasFacilityItem,
  131. Wrapped<bool?>? hasTransportationItem,
  132. Wrapped<bool?>? hasRentalSaleItem,
  133. Wrapped<bool?>? hasRepairItem,
  134. Wrapped<bool?>? hasConsignment,
  135. Wrapped<bool?>? hasLossAndDamageItem,
  136. Wrapped<bool?>? hasInternalInvoice,
  137. Wrapped<bool?>? isInternal,
  138. Wrapped<double?>? rentalTotal,
  139. Wrapped<double?>? salesTotal,
  140. Wrapped<double?>? facilitiesTotal,
  141. Wrapped<double?>? miscellaneousTotal,
  142. Wrapped<double?>? laborTotal,
  143. Wrapped<double?>? partsTotal,
  144. Wrapped<double?>? assetSaleTotal,
  145. Wrapped<double?>? invoiceSubTotal,
  146. Wrapped<double?>? invoiceTax1,
  147. Wrapped<double?>? invoiceTax2,
  148. Wrapped<double?>? invoiceTax,
  149. Wrapped<double?>? invoiceTotal,
  150. Wrapped<double?>? remainingTotal,
  151. Wrapped<bool?>? isStandAloneInvoice,
  152. Wrapped<String?>? warehouseId,
  153. Wrapped<String?>? termsConditionsId,
  154. Wrapped<String?>? termsConditions,
  155. Wrapped<String?>? sourceId,
  156. Wrapped<String?>? sourceDate,
  157. Wrapped<String?>? dateStamp,
  158. Wrapped<String?>? auditNote,
  159. Wrapped<String?>? recordTitle,
  160. Wrapped<List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>?>? fields,
  161. Wrapped<List<FwStandardDataFwCustomValue>?>? custom,
  162. Wrapped<List<FwStandardDataFwDefaultAttribute>?>? defaultFieldAttributes,
  163. Wrapped<List<FwStandardDataFwTranslatedValue>?>? translation,
})

Implementation

WebApiModulesBillingInvoiceInvoice copyWithWrapped(
    {Wrapped<String?>? invoiceId,
    Wrapped<String?>? invoiceNumber,
    Wrapped<String?>? invoiceDate,
    Wrapped<String?>? invoiceDueDate,
    Wrapped<String?>? invoiceType,
    Wrapped<String?>? billingStartDate,
    Wrapped<String?>? billingEndDate,
    Wrapped<String?>? usageStartDate,
    Wrapped<String?>? usageEndDate,
    Wrapped<String?>? orderId,
    Wrapped<String?>? orderNumber,
    Wrapped<String?>? orderDescription,
    Wrapped<String?>? orderDate,
    Wrapped<String?>? orderLocation,
    Wrapped<String?>? invoiceDescription,
    Wrapped<String?>? creditingInvoiceId,
    Wrapped<String?>? creditingInvoiceNumber,
    Wrapped<String?>? customerId,
    Wrapped<String?>? customer,
    Wrapped<String?>? customerTypeId,
    Wrapped<String?>? customerType,
    Wrapped<String?>? dealId,
    Wrapped<String?>? deal,
    Wrapped<String?>? dealNumber,
    Wrapped<String?>? dealTypeId,
    Wrapped<String?>? departmentId,
    Wrapped<String?>? department,
    Wrapped<String?>? purchaseOrderNumber,
    Wrapped<String?>? workAuthorizationNumber,
    Wrapped<String?>? status,
    Wrapped<String?>? statusDate,
    Wrapped<bool?>? isNoCharge,
    Wrapped<bool?>? isAdjusted,
    Wrapped<bool?>? isBilledHiatus,
    Wrapped<int?>? episodeNumber,
    Wrapped<bool?>? hasLockedTotal,
    Wrapped<bool?>? isAlteredDates,
    Wrapped<String?>? officeLocationId,
    Wrapped<String?>? officeLocation,
    Wrapped<String?>? invoiceCreationBatchId,
    Wrapped<int?>? invoiceCreationBatchNumber,
    Wrapped<String?>? invoiceGroupNumber,
    Wrapped<bool?>? rentalSale,
    Wrapped<bool?>? lossAndDamage,
    Wrapped<bool?>? repair,
    Wrapped<String?>? inputByUserId,
    Wrapped<String?>? flatPoId,
    Wrapped<String?>? orderType,
    Wrapped<String?>? rebateCustomerId,
    Wrapped<String?>? orbitsapchgmajor,
    Wrapped<String?>? orbitsapchgsub,
    Wrapped<String?>? orbitsapchgdetail,
    Wrapped<String?>? orbitsapchgdeal,
    Wrapped<String?>? orbitsapchgset,
    Wrapped<bool?>? excludeFromFlatPo,
    Wrapped<bool?>? isSplitRental,
    Wrapped<bool?>? isRebateRental,
    Wrapped<double?>? invoiceListTotal,
    Wrapped<double?>? invoiceGrossTotal,
    Wrapped<double?>? invoiceDiscountTotal,
    Wrapped<double?>? invoiceDaysPerWeekDiscountTotal,
    Wrapped<String?>? referenceNumber,
    Wrapped<String?>? agentId,
    Wrapped<String?>? agent,
    Wrapped<String?>? projectManagerId,
    Wrapped<String?>? projectManager,
    Wrapped<String?>? billToAddressId,
    Wrapped<String?>? billToName,
    Wrapped<String?>? billToAttention1,
    Wrapped<String?>? billToAttention2,
    Wrapped<String?>? billToAddress1,
    Wrapped<String?>? billToAddress2,
    Wrapped<String?>? billToCity,
    Wrapped<String?>? billToState,
    Wrapped<String?>? billToZipCode,
    Wrapped<String?>? billToCountryId,
    Wrapped<String?>? billToCountry,
    Wrapped<String?>? billToCountryCodeIsoAlpha2,
    Wrapped<int?>? billToCountryCodePhone,
    Wrapped<String?>? invoiceClass,
    Wrapped<String?>? printNotes,
    Wrapped<String?>? paymentTermsId,
    Wrapped<String?>? paymentTerms,
    Wrapped<String?>? paymentTypeId,
    Wrapped<String?>? paymentType,
    Wrapped<String?>? taxId,
    Wrapped<String?>? taxOptionId,
    Wrapped<String?>? taxOption,
    Wrapped<String?>? tax1Name,
    Wrapped<String?>? tax2Name,
    Wrapped<double?>? rentalTaxRate1,
    Wrapped<double?>? salesTaxRate1,
    Wrapped<double?>? laborTaxRate1,
    Wrapped<double?>? rentalTaxRate2,
    Wrapped<double?>? salesTaxRate2,
    Wrapped<double?>? laborTaxRate2,
    Wrapped<String?>? taxItemCode,
    Wrapped<String?>? taxVendor,
    Wrapped<String?>? taxCountry,
    Wrapped<String?>? chargeBatchId,
    Wrapped<String?>? chargeBatchNumber,
    Wrapped<bool?>? quikPayDiscount,
    Wrapped<double?>? quikPayRentalTotal,
    Wrapped<double?>? quikPayTotal,
    Wrapped<double?>? receivedTotal,
    Wrapped<String?>? rateType,
    Wrapped<double?>? consignmentRevenue,
    Wrapped<bool?>? isNonBillable,
    Wrapped<String?>? currencyId,
    Wrapped<String?>? currencyCode,
    Wrapped<String?>? currencySymbol,
    Wrapped<String?>? officeLocationDefaultCurrencyId,
    Wrapped<String?>? divisionId,
    Wrapped<String?>? outsideSalesRepresentativeId,
    Wrapped<String?>? outsideSalesRepresentative,
    Wrapped<bool?>? exportTaxAsLineItem,
    Wrapped<String?>? invoiceNumberColor,
    Wrapped<String?>? statusColor,
    Wrapped<String?>? orderNumberColor,
    Wrapped<String?>? purchaseOrderNumberColor,
    Wrapped<String?>? dealColor,
    Wrapped<String?>? billingStartDateColor,
    Wrapped<String?>? invoiceTotalColor,
    Wrapped<String?>? descriptionColor,
    Wrapped<bool?>? hasRentalItem,
    Wrapped<bool?>? hasMeterItem,
    Wrapped<bool?>? hasSalesItem,
    Wrapped<bool?>? hasLaborItem,
    Wrapped<bool?>? hasMiscellaneousItem,
    Wrapped<bool?>? hasFacilityItem,
    Wrapped<bool?>? hasTransportationItem,
    Wrapped<bool?>? hasRentalSaleItem,
    Wrapped<bool?>? hasRepairItem,
    Wrapped<bool?>? hasConsignment,
    Wrapped<bool?>? hasLossAndDamageItem,
    Wrapped<bool?>? hasInternalInvoice,
    Wrapped<bool?>? isInternal,
    Wrapped<double?>? rentalTotal,
    Wrapped<double?>? salesTotal,
    Wrapped<double?>? facilitiesTotal,
    Wrapped<double?>? miscellaneousTotal,
    Wrapped<double?>? laborTotal,
    Wrapped<double?>? partsTotal,
    Wrapped<double?>? assetSaleTotal,
    Wrapped<double?>? invoiceSubTotal,
    Wrapped<double?>? invoiceTax1,
    Wrapped<double?>? invoiceTax2,
    Wrapped<double?>? invoiceTax,
    Wrapped<double?>? invoiceTotal,
    Wrapped<double?>? remainingTotal,
    Wrapped<bool?>? isStandAloneInvoice,
    Wrapped<String?>? warehouseId,
    Wrapped<String?>? termsConditionsId,
    Wrapped<String?>? termsConditions,
    Wrapped<String?>? sourceId,
    Wrapped<String?>? sourceDate,
    Wrapped<String?>? dateStamp,
    Wrapped<String?>? auditNote,
    Wrapped<String?>? recordTitle,
    Wrapped<List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>?>?
        fields,
    Wrapped<List<FwStandardDataFwCustomValue>?>? custom,
    Wrapped<List<FwStandardDataFwDefaultAttribute>?>? defaultFieldAttributes,
    Wrapped<List<FwStandardDataFwTranslatedValue>?>? translation}) {
  return WebApiModulesBillingInvoiceInvoice(
      invoiceId: (invoiceId != null ? invoiceId.value : this.invoiceId),
      invoiceNumber:
          (invoiceNumber != null ? invoiceNumber.value : this.invoiceNumber),
      invoiceDate:
          (invoiceDate != null ? invoiceDate.value : this.invoiceDate),
      invoiceDueDate: (invoiceDueDate != null
          ? invoiceDueDate.value
          : this.invoiceDueDate),
      invoiceType:
          (invoiceType != null ? invoiceType.value : this.invoiceType),
      billingStartDate: (billingStartDate != null
          ? billingStartDate.value
          : this.billingStartDate),
      billingEndDate: (billingEndDate != null
          ? billingEndDate.value
          : this.billingEndDate),
      usageStartDate: (usageStartDate != null
          ? usageStartDate.value
          : this.usageStartDate),
      usageEndDate:
          (usageEndDate != null ? usageEndDate.value : this.usageEndDate),
      orderId: (orderId != null ? orderId.value : this.orderId),
      orderNumber:
          (orderNumber != null ? orderNumber.value : this.orderNumber),
      orderDescription: (orderDescription != null
          ? orderDescription.value
          : this.orderDescription),
      orderDate: (orderDate != null ? orderDate.value : this.orderDate),
      orderLocation:
          (orderLocation != null ? orderLocation.value : this.orderLocation),
      invoiceDescription: (invoiceDescription != null
          ? invoiceDescription.value
          : this.invoiceDescription),
      creditingInvoiceId: (creditingInvoiceId != null
          ? creditingInvoiceId.value
          : this.creditingInvoiceId),
      creditingInvoiceNumber: (creditingInvoiceNumber != null
          ? creditingInvoiceNumber.value
          : this.creditingInvoiceNumber),
      customerId: (customerId != null ? customerId.value : this.customerId),
      customer: (customer != null ? customer.value : this.customer),
      customerTypeId: (customerTypeId != null
          ? customerTypeId.value
          : this.customerTypeId),
      customerType:
          (customerType != null ? customerType.value : this.customerType),
      dealId: (dealId != null ? dealId.value : this.dealId),
      deal: (deal != null ? deal.value : this.deal),
      dealNumber: (dealNumber != null ? dealNumber.value : this.dealNumber),
      dealTypeId: (dealTypeId != null ? dealTypeId.value : this.dealTypeId),
      departmentId:
          (departmentId != null ? departmentId.value : this.departmentId),
      department: (department != null ? department.value : this.department),
      purchaseOrderNumber: (purchaseOrderNumber != null
          ? purchaseOrderNumber.value
          : this.purchaseOrderNumber),
      workAuthorizationNumber: (workAuthorizationNumber != null
          ? workAuthorizationNumber.value
          : this.workAuthorizationNumber),
      status: (status != null ? status.value : this.status),
      statusDate: (statusDate != null ? statusDate.value : this.statusDate),
      isNoCharge: (isNoCharge != null ? isNoCharge.value : this.isNoCharge),
      isAdjusted: (isAdjusted != null ? isAdjusted.value : this.isAdjusted),
      isBilledHiatus: (isBilledHiatus != null
          ? isBilledHiatus.value
          : this.isBilledHiatus),
      episodeNumber:
          (episodeNumber != null ? episodeNumber.value : this.episodeNumber),
      hasLockedTotal: (hasLockedTotal != null
          ? hasLockedTotal.value
          : this.hasLockedTotal),
      isAlteredDates: (isAlteredDates != null
          ? isAlteredDates.value
          : this.isAlteredDates),
      officeLocationId: (officeLocationId != null
          ? officeLocationId.value
          : this.officeLocationId),
      officeLocation: (officeLocation != null
          ? officeLocation.value
          : this.officeLocation),
      invoiceCreationBatchId: (invoiceCreationBatchId != null
          ? invoiceCreationBatchId.value
          : this.invoiceCreationBatchId),
      invoiceCreationBatchNumber: (invoiceCreationBatchNumber != null
          ? invoiceCreationBatchNumber.value
          : this.invoiceCreationBatchNumber),
      invoiceGroupNumber: (invoiceGroupNumber != null
          ? invoiceGroupNumber.value
          : this.invoiceGroupNumber),
      rentalSale: (rentalSale != null ? rentalSale.value : this.rentalSale),
      lossAndDamage:
          (lossAndDamage != null ? lossAndDamage.value : this.lossAndDamage),
      repair: (repair != null ? repair.value : this.repair),
      inputByUserId:
          (inputByUserId != null ? inputByUserId.value : this.inputByUserId),
      flatPoId: (flatPoId != null ? flatPoId.value : this.flatPoId),
      orderType: (orderType != null ? orderType.value : this.orderType),
      rebateCustomerId: (rebateCustomerId != null
          ? rebateCustomerId.value
          : this.rebateCustomerId),
      orbitsapchgmajor: (orbitsapchgmajor != null
          ? orbitsapchgmajor.value
          : this.orbitsapchgmajor),
      orbitsapchgsub: (orbitsapchgsub != null
          ? orbitsapchgsub.value
          : this.orbitsapchgsub),
      orbitsapchgdetail: (orbitsapchgdetail != null
          ? orbitsapchgdetail.value
          : this.orbitsapchgdetail),
      orbitsapchgdeal: (orbitsapchgdeal != null
          ? orbitsapchgdeal.value
          : this.orbitsapchgdeal),
      orbitsapchgset: (orbitsapchgset != null
          ? orbitsapchgset.value
          : this.orbitsapchgset),
      excludeFromFlatPo: (excludeFromFlatPo != null
          ? excludeFromFlatPo.value
          : this.excludeFromFlatPo),
      isSplitRental:
          (isSplitRental != null ? isSplitRental.value : this.isSplitRental),
      isRebateRental: (isRebateRental != null
          ? isRebateRental.value
          : this.isRebateRental),
      invoiceListTotal: (invoiceListTotal != null
          ? invoiceListTotal.value
          : this.invoiceListTotal),
      invoiceGrossTotal: (invoiceGrossTotal != null
          ? invoiceGrossTotal.value
          : this.invoiceGrossTotal),
      invoiceDiscountTotal: (invoiceDiscountTotal != null
          ? invoiceDiscountTotal.value
          : this.invoiceDiscountTotal),
      invoiceDaysPerWeekDiscountTotal: (invoiceDaysPerWeekDiscountTotal != null
          ? invoiceDaysPerWeekDiscountTotal.value
          : this.invoiceDaysPerWeekDiscountTotal),
      referenceNumber: (referenceNumber != null
          ? referenceNumber.value
          : this.referenceNumber),
      agentId: (agentId != null ? agentId.value : this.agentId),
      agent: (agent != null ? agent.value : this.agent),
      projectManagerId: (projectManagerId != null
          ? projectManagerId.value
          : this.projectManagerId),
      projectManager: (projectManager != null
          ? projectManager.value
          : this.projectManager),
      billToAddressId: (billToAddressId != null
          ? billToAddressId.value
          : this.billToAddressId),
      billToName: (billToName != null ? billToName.value : this.billToName),
      billToAttention1: (billToAttention1 != null
          ? billToAttention1.value
          : this.billToAttention1),
      billToAttention2: (billToAttention2 != null
          ? billToAttention2.value
          : this.billToAttention2),
      billToAddress1: (billToAddress1 != null
          ? billToAddress1.value
          : this.billToAddress1),
      billToAddress2: (billToAddress2 != null
          ? billToAddress2.value
          : this.billToAddress2),
      billToCity: (billToCity != null ? billToCity.value : this.billToCity),
      billToState:
          (billToState != null ? billToState.value : this.billToState),
      billToZipCode:
          (billToZipCode != null ? billToZipCode.value : this.billToZipCode),
      billToCountryId: (billToCountryId != null
          ? billToCountryId.value
          : this.billToCountryId),
      billToCountry:
          (billToCountry != null ? billToCountry.value : this.billToCountry),
      billToCountryCodeIsoAlpha2: (billToCountryCodeIsoAlpha2 != null
          ? billToCountryCodeIsoAlpha2.value
          : this.billToCountryCodeIsoAlpha2),
      billToCountryCodePhone: (billToCountryCodePhone != null ? billToCountryCodePhone.value : this.billToCountryCodePhone),
      invoiceClass: (invoiceClass != null ? invoiceClass.value : this.invoiceClass),
      printNotes: (printNotes != null ? printNotes.value : this.printNotes),
      paymentTermsId: (paymentTermsId != null ? paymentTermsId.value : this.paymentTermsId),
      paymentTerms: (paymentTerms != null ? paymentTerms.value : this.paymentTerms),
      paymentTypeId: (paymentTypeId != null ? paymentTypeId.value : this.paymentTypeId),
      paymentType: (paymentType != null ? paymentType.value : this.paymentType),
      taxId: (taxId != null ? taxId.value : this.taxId),
      taxOptionId: (taxOptionId != null ? taxOptionId.value : this.taxOptionId),
      taxOption: (taxOption != null ? taxOption.value : this.taxOption),
      tax1Name: (tax1Name != null ? tax1Name.value : this.tax1Name),
      tax2Name: (tax2Name != null ? tax2Name.value : this.tax2Name),
      rentalTaxRate1: (rentalTaxRate1 != null ? rentalTaxRate1.value : this.rentalTaxRate1),
      salesTaxRate1: (salesTaxRate1 != null ? salesTaxRate1.value : this.salesTaxRate1),
      laborTaxRate1: (laborTaxRate1 != null ? laborTaxRate1.value : this.laborTaxRate1),
      rentalTaxRate2: (rentalTaxRate2 != null ? rentalTaxRate2.value : this.rentalTaxRate2),
      salesTaxRate2: (salesTaxRate2 != null ? salesTaxRate2.value : this.salesTaxRate2),
      laborTaxRate2: (laborTaxRate2 != null ? laborTaxRate2.value : this.laborTaxRate2),
      taxItemCode: (taxItemCode != null ? taxItemCode.value : this.taxItemCode),
      taxVendor: (taxVendor != null ? taxVendor.value : this.taxVendor),
      taxCountry: (taxCountry != null ? taxCountry.value : this.taxCountry),
      chargeBatchId: (chargeBatchId != null ? chargeBatchId.value : this.chargeBatchId),
      chargeBatchNumber: (chargeBatchNumber != null ? chargeBatchNumber.value : this.chargeBatchNumber),
      quikPayDiscount: (quikPayDiscount != null ? quikPayDiscount.value : this.quikPayDiscount),
      quikPayRentalTotal: (quikPayRentalTotal != null ? quikPayRentalTotal.value : this.quikPayRentalTotal),
      quikPayTotal: (quikPayTotal != null ? quikPayTotal.value : this.quikPayTotal),
      receivedTotal: (receivedTotal != null ? receivedTotal.value : this.receivedTotal),
      rateType: (rateType != null ? rateType.value : this.rateType),
      consignmentRevenue: (consignmentRevenue != null ? consignmentRevenue.value : this.consignmentRevenue),
      isNonBillable: (isNonBillable != null ? isNonBillable.value : this.isNonBillable),
      currencyId: (currencyId != null ? currencyId.value : this.currencyId),
      currencyCode: (currencyCode != null ? currencyCode.value : this.currencyCode),
      currencySymbol: (currencySymbol != null ? currencySymbol.value : this.currencySymbol),
      officeLocationDefaultCurrencyId: (officeLocationDefaultCurrencyId != null ? officeLocationDefaultCurrencyId.value : this.officeLocationDefaultCurrencyId),
      divisionId: (divisionId != null ? divisionId.value : this.divisionId),
      outsideSalesRepresentativeId: (outsideSalesRepresentativeId != null ? outsideSalesRepresentativeId.value : this.outsideSalesRepresentativeId),
      outsideSalesRepresentative: (outsideSalesRepresentative != null ? outsideSalesRepresentative.value : this.outsideSalesRepresentative),
      exportTaxAsLineItem: (exportTaxAsLineItem != null ? exportTaxAsLineItem.value : this.exportTaxAsLineItem),
      invoiceNumberColor: (invoiceNumberColor != null ? invoiceNumberColor.value : this.invoiceNumberColor),
      statusColor: (statusColor != null ? statusColor.value : this.statusColor),
      orderNumberColor: (orderNumberColor != null ? orderNumberColor.value : this.orderNumberColor),
      purchaseOrderNumberColor: (purchaseOrderNumberColor != null ? purchaseOrderNumberColor.value : this.purchaseOrderNumberColor),
      dealColor: (dealColor != null ? dealColor.value : this.dealColor),
      billingStartDateColor: (billingStartDateColor != null ? billingStartDateColor.value : this.billingStartDateColor),
      invoiceTotalColor: (invoiceTotalColor != null ? invoiceTotalColor.value : this.invoiceTotalColor),
      descriptionColor: (descriptionColor != null ? descriptionColor.value : this.descriptionColor),
      hasRentalItem: (hasRentalItem != null ? hasRentalItem.value : this.hasRentalItem),
      hasMeterItem: (hasMeterItem != null ? hasMeterItem.value : this.hasMeterItem),
      hasSalesItem: (hasSalesItem != null ? hasSalesItem.value : this.hasSalesItem),
      hasLaborItem: (hasLaborItem != null ? hasLaborItem.value : this.hasLaborItem),
      hasMiscellaneousItem: (hasMiscellaneousItem != null ? hasMiscellaneousItem.value : this.hasMiscellaneousItem),
      hasFacilityItem: (hasFacilityItem != null ? hasFacilityItem.value : this.hasFacilityItem),
      hasTransportationItem: (hasTransportationItem != null ? hasTransportationItem.value : this.hasTransportationItem),
      hasRentalSaleItem: (hasRentalSaleItem != null ? hasRentalSaleItem.value : this.hasRentalSaleItem),
      hasRepairItem: (hasRepairItem != null ? hasRepairItem.value : this.hasRepairItem),
      hasConsignment: (hasConsignment != null ? hasConsignment.value : this.hasConsignment),
      hasLossAndDamageItem: (hasLossAndDamageItem != null ? hasLossAndDamageItem.value : this.hasLossAndDamageItem),
      hasInternalInvoice: (hasInternalInvoice != null ? hasInternalInvoice.value : this.hasInternalInvoice),
      isInternal: (isInternal != null ? isInternal.value : this.isInternal),
      rentalTotal: (rentalTotal != null ? rentalTotal.value : this.rentalTotal),
      salesTotal: (salesTotal != null ? salesTotal.value : this.salesTotal),
      facilitiesTotal: (facilitiesTotal != null ? facilitiesTotal.value : this.facilitiesTotal),
      miscellaneousTotal: (miscellaneousTotal != null ? miscellaneousTotal.value : this.miscellaneousTotal),
      laborTotal: (laborTotal != null ? laborTotal.value : this.laborTotal),
      partsTotal: (partsTotal != null ? partsTotal.value : this.partsTotal),
      assetSaleTotal: (assetSaleTotal != null ? assetSaleTotal.value : this.assetSaleTotal),
      invoiceSubTotal: (invoiceSubTotal != null ? invoiceSubTotal.value : this.invoiceSubTotal),
      invoiceTax1: (invoiceTax1 != null ? invoiceTax1.value : this.invoiceTax1),
      invoiceTax2: (invoiceTax2 != null ? invoiceTax2.value : this.invoiceTax2),
      invoiceTax: (invoiceTax != null ? invoiceTax.value : this.invoiceTax),
      invoiceTotal: (invoiceTotal != null ? invoiceTotal.value : this.invoiceTotal),
      remainingTotal: (remainingTotal != null ? remainingTotal.value : this.remainingTotal),
      isStandAloneInvoice: (isStandAloneInvoice != null ? isStandAloneInvoice.value : this.isStandAloneInvoice),
      warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
      termsConditionsId: (termsConditionsId != null ? termsConditionsId.value : this.termsConditionsId),
      termsConditions: (termsConditions != null ? termsConditions.value : this.termsConditions),
      sourceId: (sourceId != null ? sourceId.value : this.sourceId),
      sourceDate: (sourceDate != null ? sourceDate.value : this.sourceDate),
      dateStamp: (dateStamp != null ? dateStamp.value : this.dateStamp),
      auditNote: (auditNote != null ? auditNote.value : this.auditNote),
      recordTitle: (recordTitle != null ? recordTitle.value : this.recordTitle),
      fields: (fields != null ? fields.value : this.fields),
      custom: (custom != null ? custom.value : this.custom),
      defaultFieldAttributes: (defaultFieldAttributes != null ? defaultFieldAttributes.value : this.defaultFieldAttributes),
      translation: (translation != null ? translation.value : this.translation));
}