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

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