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?>? dealType,
  27. Wrapped<String?>? departmentId,
  28. Wrapped<String?>? department,
  29. Wrapped<String?>? purchaseOrderNumber,
  30. Wrapped<String?>? workAuthorizationNumber,
  31. Wrapped<String?>? status,
  32. Wrapped<String?>? statusDate,
  33. Wrapped<bool?>? isNoCharge,
  34. Wrapped<bool?>? isAdjusted,
  35. Wrapped<bool?>? isBilledHiatus,
  36. Wrapped<int?>? episodeNumber,
  37. Wrapped<bool?>? hasLockedTotal,
  38. Wrapped<bool?>? isAlteredDates,
  39. Wrapped<String?>? officeLocationId,
  40. Wrapped<String?>? officeLocation,
  41. Wrapped<String?>? invoiceCreationBatchId,
  42. Wrapped<int?>? invoiceCreationBatchNumber,
  43. Wrapped<String?>? invoiceGroupNumber,
  44. Wrapped<bool?>? rentalSale,
  45. Wrapped<bool?>? lossAndDamage,
  46. Wrapped<bool?>? repair,
  47. Wrapped<String?>? inputByUserId,
  48. Wrapped<String?>? flatPoId,
  49. Wrapped<String?>? orderType,
  50. Wrapped<String?>? rebateCustomerId,
  51. Wrapped<String?>? orbitsapchgmajor,
  52. Wrapped<String?>? orbitsapchgsub,
  53. Wrapped<String?>? orbitsapchgdetail,
  54. Wrapped<String?>? orbitsapchgdeal,
  55. Wrapped<String?>? orbitsapchgset,
  56. Wrapped<bool?>? excludeFromFlatPo,
  57. Wrapped<bool?>? isSplitRental,
  58. Wrapped<bool?>? isRebateRental,
  59. Wrapped<double?>? invoiceListTotal,
  60. Wrapped<double?>? invoiceGrossTotal,
  61. Wrapped<double?>? invoiceDiscountTotal,
  62. Wrapped<double?>? invoiceDaysPerWeekDiscountTotal,
  63. Wrapped<String?>? referenceNumber,
  64. Wrapped<String?>? agentId,
  65. Wrapped<String?>? agent,
  66. Wrapped<String?>? projectManagerId,
  67. Wrapped<String?>? projectManager,
  68. Wrapped<String?>? billToAddressId,
  69. Wrapped<String?>? billToName,
  70. Wrapped<String?>? billToAttention1,
  71. Wrapped<String?>? billToAttention2,
  72. Wrapped<String?>? billToAddress1,
  73. Wrapped<String?>? billToAddress2,
  74. Wrapped<String?>? billToCity,
  75. Wrapped<String?>? billToState,
  76. Wrapped<String?>? billToZipCode,
  77. Wrapped<String?>? billToCountryId,
  78. Wrapped<String?>? billToCountry,
  79. Wrapped<String?>? billToCountryCodeIsoAlpha2,
  80. Wrapped<int?>? billToCountryCodePhone,
  81. Wrapped<String?>? invoiceClass,
  82. Wrapped<String?>? printNotes,
  83. Wrapped<String?>? paymentTermsId,
  84. Wrapped<String?>? paymentTerms,
  85. Wrapped<String?>? paymentTermsColor,
  86. Wrapped<String?>? paymentTypeId,
  87. Wrapped<String?>? paymentType,
  88. Wrapped<String?>? taxId,
  89. Wrapped<String?>? taxOptionId,
  90. Wrapped<String?>? taxOption,
  91. Wrapped<String?>? tax1Name,
  92. Wrapped<String?>? tax2Name,
  93. Wrapped<String?>? rentalTaxAlias,
  94. Wrapped<String?>? salesTaxAlias,
  95. Wrapped<String?>? laborTaxAlias,
  96. Wrapped<double?>? rentalTaxRate1,
  97. Wrapped<double?>? salesTaxRate1,
  98. Wrapped<double?>? laborTaxRate1,
  99. Wrapped<double?>? rentalTaxRate2,
  100. Wrapped<double?>? salesTaxRate2,
  101. Wrapped<double?>? laborTaxRate2,
  102. Wrapped<String?>? taxItemCode,
  103. Wrapped<String?>? taxVendor,
  104. Wrapped<String?>? taxCountry,
  105. Wrapped<String?>? chargeBatchId,
  106. Wrapped<String?>? chargeBatchNumber,
  107. Wrapped<bool?>? quikPayDiscount,
  108. Wrapped<double?>? quikPayRentalTotal,
  109. Wrapped<double?>? quikPayTotal,
  110. Wrapped<double?>? receivedTotal,
  111. Wrapped<String?>? rateType,
  112. Wrapped<double?>? consignmentRevenue,
  113. Wrapped<bool?>? isNonBillable,
  114. Wrapped<String?>? currencyId,
  115. Wrapped<String?>? currencyCode,
  116. Wrapped<String?>? currencySymbol,
  117. Wrapped<String?>? officeLocationDefaultCurrencyId,
  118. Wrapped<String?>? divisionId,
  119. Wrapped<String?>? outsideSalesRepresentativeId,
  120. Wrapped<String?>? outsideSalesRepresentative,
  121. Wrapped<bool?>? exportTaxAsLineItem,
  122. Wrapped<String?>? invoiceNumberColor,
  123. Wrapped<String?>? statusColor,
  124. Wrapped<String?>? orderNumberColor,
  125. Wrapped<String?>? purchaseOrderNumberColor,
  126. Wrapped<String?>? dealColor,
  127. Wrapped<String?>? billingStartDateColor,
  128. Wrapped<String?>? invoiceTotalColor,
  129. Wrapped<String?>? descriptionColor,
  130. Wrapped<bool?>? hasRentalItem,
  131. Wrapped<bool?>? hasMeterItem,
  132. Wrapped<bool?>? hasSalesItem,
  133. Wrapped<bool?>? hasLaborItem,
  134. Wrapped<bool?>? hasMiscellaneousItem,
  135. Wrapped<bool?>? hasFacilityItem,
  136. Wrapped<bool?>? hasTransportationItem,
  137. Wrapped<bool?>? hasRentalSaleItem,
  138. Wrapped<bool?>? hasRepairItem,
  139. Wrapped<bool?>? hasConsignment,
  140. Wrapped<bool?>? hasLossAndDamageItem,
  141. Wrapped<bool?>? hasInternalInvoice,
  142. Wrapped<bool?>? isInternal,
  143. Wrapped<double?>? rentalTotal,
  144. Wrapped<double?>? salesTotal,
  145. Wrapped<double?>? facilitiesTotal,
  146. Wrapped<double?>? miscellaneousTotal,
  147. Wrapped<double?>? laborTotal,
  148. Wrapped<double?>? partsTotal,
  149. Wrapped<double?>? assetSaleTotal,
  150. Wrapped<double?>? invoiceSubTotal,
  151. Wrapped<double?>? invoiceTax1,
  152. Wrapped<double?>? invoiceTax2,
  153. Wrapped<double?>? invoiceTax,
  154. Wrapped<double?>? invoiceTotal,
  155. Wrapped<double?>? remainingTotal,
  156. Wrapped<bool?>? isStandAloneInvoice,
  157. Wrapped<String?>? warehouseId,
  158. Wrapped<String?>? termsConditionsId,
  159. Wrapped<String?>? termsConditions,
  160. Wrapped<String?>? projectId,
  161. Wrapped<String?>? projectNumber,
  162. Wrapped<String?>? project,
  163. Wrapped<String?>? sourceId,
  164. Wrapped<String?>? sourceDate,
  165. Wrapped<String?>? dateStamp,
  166. Wrapped<String?>? auditNote,
  167. Wrapped<String?>? recordTitle,
  168. Wrapped? urlIdentifier,
  169. Wrapped<List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>?>? fields,
  170. Wrapped<List<FwStandardDataFwCustomValue>?>? custom,
  171. Wrapped<List<FwStandardDataFwDefaultAttribute>?>? defaultFieldAttributes,
  172. Wrapped<FwStandardBusinessLogicFwBusinessLogic?>? original,
  173. Wrapped<List<FwStandardDataFwTranslatedValue>?>? translation,
  174. Wrapped<bool?>? hasImport,
  175. Wrapped<bool?>? hasDocuments,
  176. Wrapped<String?>? createdByUserId,
  177. Wrapped<String?>? createdByUserName,
  178. Wrapped<String?>? createdDateTime,
  179. Wrapped<String?>? modifiedByUserId,
  180. Wrapped<String?>? modifiedByUserName,
  181. Wrapped<String?>? modifiedDateTime,
})

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?>? dealType,
  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?>? paymentTermsColor,
  Wrapped<String?>? paymentTypeId,
  Wrapped<String?>? paymentType,
  Wrapped<String?>? taxId,
  Wrapped<String?>? taxOptionId,
  Wrapped<String?>? taxOption,
  Wrapped<String?>? tax1Name,
  Wrapped<String?>? tax2Name,
  Wrapped<String?>? rentalTaxAlias,
  Wrapped<String?>? salesTaxAlias,
  Wrapped<String?>? laborTaxAlias,
  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?>? projectId,
  Wrapped<String?>? projectNumber,
  Wrapped<String?>? project,
  Wrapped<String?>? sourceId,
  Wrapped<String?>? sourceDate,
  Wrapped<String?>? dateStamp,
  Wrapped<String?>? auditNote,
  Wrapped<String?>? recordTitle,
  Wrapped<dynamic>? urlIdentifier,
  Wrapped<List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>?>?
  fields,
  Wrapped<List<FwStandardDataFwCustomValue>?>? custom,
  Wrapped<List<FwStandardDataFwDefaultAttribute>?>? defaultFieldAttributes,
  Wrapped<FwStandardBusinessLogicFwBusinessLogic?>? original,
  Wrapped<List<FwStandardDataFwTranslatedValue>?>? translation,
  Wrapped<bool?>? hasImport,
  Wrapped<bool?>? hasDocuments,
  Wrapped<String?>? createdByUserId,
  Wrapped<String?>? createdByUserName,
  Wrapped<String?>? createdDateTime,
  Wrapped<String?>? modifiedByUserId,
  Wrapped<String?>? modifiedByUserName,
  Wrapped<String?>? modifiedDateTime,
}) {
  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),
    dealType: (dealType != null ? dealType.value : this.dealType),
    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),
    paymentTermsColor: (paymentTermsColor != null
        ? paymentTermsColor.value
        : this.paymentTermsColor),
    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),
    rentalTaxAlias: (rentalTaxAlias != null
        ? rentalTaxAlias.value
        : this.rentalTaxAlias),
    salesTaxAlias: (salesTaxAlias != null
        ? salesTaxAlias.value
        : this.salesTaxAlias),
    laborTaxAlias: (laborTaxAlias != null
        ? laborTaxAlias.value
        : this.laborTaxAlias),
    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),
    projectId: (projectId != null ? projectId.value : this.projectId),
    projectNumber: (projectNumber != null
        ? projectNumber.value
        : this.projectNumber),
    project: (project != null ? project.value : this.project),
    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),
    urlIdentifier: (urlIdentifier != null
        ? urlIdentifier.value
        : this.urlIdentifier),
    fields: (fields != null ? fields.value : this.fields),
    custom: (custom != null ? custom.value : this.custom),
    defaultFieldAttributes: (defaultFieldAttributes != null
        ? defaultFieldAttributes.value
        : this.defaultFieldAttributes),
    original: (original != null ? original.value : this.original),
    translation: (translation != null ? translation.value : this.translation),
    hasImport: (hasImport != null ? hasImport.value : this.hasImport),
    hasDocuments: (hasDocuments != null
        ? hasDocuments.value
        : this.hasDocuments),
    createdByUserId: (createdByUserId != null
        ? createdByUserId.value
        : this.createdByUserId),
    createdByUserName: (createdByUserName != null
        ? createdByUserName.value
        : this.createdByUserName),
    createdDateTime: (createdDateTime != null
        ? createdDateTime.value
        : this.createdDateTime),
    modifiedByUserId: (modifiedByUserId != null
        ? modifiedByUserId.value
        : this.modifiedByUserId),
    modifiedByUserName: (modifiedByUserName != null
        ? modifiedByUserName.value
        : this.modifiedByUserName),
    modifiedDateTime: (modifiedDateTime != null
        ? modifiedDateTime.value
        : this.modifiedDateTime),
  );
}