copyWith method

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

Implementation

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