copyWith method

WebApiModulesSettingsDepartmentLocationDepartmentLocation copyWith({
  1. int? id,
  2. String? departmentId,
  3. String? department,
  4. String? locationId,
  5. String? location,
  6. String? defaultOrderTypeId,
  7. String? defaultOrderType,
  8. String? defaultTransferTypeId,
  9. String? defaultTransferType,
  10. String? glPrefix,
  11. String? glSuffix,
  12. bool? creditCardFeeFlag,
  13. String? creditCardFeeId,
  14. String? creditCardFeeICode,
  15. String? creditCardFeeDescription,
  16. double? creditCardFeePercent,
  17. bool? allowDecreaseOrderQuantityWhenStaged,
  18. bool? allowDecreaseOrderQuantityWhenOut,
  19. bool? autoCreditOnSalesReturn,
  20. String? depositFeeRateId,
  21. String? depositFeeRateICode,
  22. String? depositFeeRateDescription,
  23. bool? updateEstimatedStartAndStopDatesOnSubPurchaseOrders,
  24. bool? promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders,
  25. bool? updateBillingStartAndStopDatesOnSubPurchaseOrders,
  26. bool? promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders,
  27. bool? purchaseOrderRequireFirstApproval,
  28. bool? purchaseOrderRequireSecondApproval,
  29. bool? purchaseOrderAllowSecondApprovalWithoutFirstApproval,
  30. double? purchaseOrderUnapproveIncreaseAmount,
  31. double? purchaseOrderUnapproveIncreasePercent,
  32. bool? purchaseOrderPreventReceiveUnapproved,
  33. double? purchaseOrderFirstApprovalThresholdRental,
  34. double? purchaseOrderFirstApprovalThresholdSales,
  35. double? purchaseOrderFirstApprovalThresholdParts,
  36. double? purchaseOrderFirstApprovalThresholdMiscellaneous,
  37. double? purchaseOrderFirstApprovalThresholdLabor,
  38. double? purchaseOrderFirstApprovalThresholdRepair,
  39. double? purchaseOrderFirstApprovalThresholdSubRental,
  40. double? purchaseOrderFirstApprovalThresholdSubSales,
  41. double? purchaseOrderFirstApprovalThresholdSubMiscellaneous,
  42. double? purchaseOrderFirstApprovalThresholdSubLabor,
  43. double? purchaseOrderSecondApprovalThresholdRental,
  44. double? purchaseOrderSecondApprovalThresholdSales,
  45. double? purchaseOrderSecondApprovalThresholdParts,
  46. double? purchaseOrderSecondApprovalThresholdMiscellaneous,
  47. double? purchaseOrderSecondApprovalThresholdLabor,
  48. double? purchaseOrderSecondApprovalThresholdRepair,
  49. double? purchaseOrderSecondApprovalThresholdSubRental,
  50. double? purchaseOrderSecondApprovalThresholdSubSales,
  51. double? purchaseOrderSecondApprovalThresholdSubMiscellaneous,
  52. double? purchaseOrderSecondApprovalThresholdSubLabor,
  53. bool? completeRentalWithLAndDOrder,
  54. bool? storefrontEnableInventoryInquiryEmails,
  55. String? storefrontInventoryInquiryEmailToAddress,
  56. bool? storefrontEnableQuoteRequestEmails,
  57. String? storefrontQuoteRequestEmailToAddress,
  58. bool? useResponsiblePerson,
  59. bool? requireResponsiblePerson,
  60. String? vendorInvoiceModificationsPushToPo,
  61. bool? inactive,
  62. String? dateStamp,
  63. String? auditNote,
  64. String? recordTitle,
  65. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  66. List<FwStandardDataFwCustomValue>? custom,
  67. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  68. List<FwStandardDataFwTranslatedValue>? translation,
})

Implementation

WebApiModulesSettingsDepartmentLocationDepartmentLocation copyWith(
    {int? id,
    String? departmentId,
    String? department,
    String? locationId,
    String? location,
    String? defaultOrderTypeId,
    String? defaultOrderType,
    String? defaultTransferTypeId,
    String? defaultTransferType,
    String? glPrefix,
    String? glSuffix,
    bool? creditCardFeeFlag,
    String? creditCardFeeId,
    String? creditCardFeeICode,
    String? creditCardFeeDescription,
    double? creditCardFeePercent,
    bool? allowDecreaseOrderQuantityWhenStaged,
    bool? allowDecreaseOrderQuantityWhenOut,
    bool? autoCreditOnSalesReturn,
    String? depositFeeRateId,
    String? depositFeeRateICode,
    String? depositFeeRateDescription,
    bool? updateEstimatedStartAndStopDatesOnSubPurchaseOrders,
    bool? promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders,
    bool? updateBillingStartAndStopDatesOnSubPurchaseOrders,
    bool? promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders,
    bool? purchaseOrderRequireFirstApproval,
    bool? purchaseOrderRequireSecondApproval,
    bool? purchaseOrderAllowSecondApprovalWithoutFirstApproval,
    double? purchaseOrderUnapproveIncreaseAmount,
    double? purchaseOrderUnapproveIncreasePercent,
    bool? purchaseOrderPreventReceiveUnapproved,
    double? purchaseOrderFirstApprovalThresholdRental,
    double? purchaseOrderFirstApprovalThresholdSales,
    double? purchaseOrderFirstApprovalThresholdParts,
    double? purchaseOrderFirstApprovalThresholdMiscellaneous,
    double? purchaseOrderFirstApprovalThresholdLabor,
    double? purchaseOrderFirstApprovalThresholdRepair,
    double? purchaseOrderFirstApprovalThresholdSubRental,
    double? purchaseOrderFirstApprovalThresholdSubSales,
    double? purchaseOrderFirstApprovalThresholdSubMiscellaneous,
    double? purchaseOrderFirstApprovalThresholdSubLabor,
    double? purchaseOrderSecondApprovalThresholdRental,
    double? purchaseOrderSecondApprovalThresholdSales,
    double? purchaseOrderSecondApprovalThresholdParts,
    double? purchaseOrderSecondApprovalThresholdMiscellaneous,
    double? purchaseOrderSecondApprovalThresholdLabor,
    double? purchaseOrderSecondApprovalThresholdRepair,
    double? purchaseOrderSecondApprovalThresholdSubRental,
    double? purchaseOrderSecondApprovalThresholdSubSales,
    double? purchaseOrderSecondApprovalThresholdSubMiscellaneous,
    double? purchaseOrderSecondApprovalThresholdSubLabor,
    bool? completeRentalWithLAndDOrder,
    bool? storefrontEnableInventoryInquiryEmails,
    String? storefrontInventoryInquiryEmailToAddress,
    bool? storefrontEnableQuoteRequestEmails,
    String? storefrontQuoteRequestEmailToAddress,
    bool? useResponsiblePerson,
    bool? requireResponsiblePerson,
    String? vendorInvoiceModificationsPushToPo,
    bool? inactive,
    String? dateStamp,
    String? auditNote,
    String? recordTitle,
    List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
    List<FwStandardDataFwCustomValue>? custom,
    List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
    List<FwStandardDataFwTranslatedValue>? translation}) {
  return WebApiModulesSettingsDepartmentLocationDepartmentLocation(
      id: id ?? this.id,
      departmentId: departmentId ?? this.departmentId,
      department: department ?? this.department,
      locationId: locationId ?? this.locationId,
      location: location ?? this.location,
      defaultOrderTypeId: defaultOrderTypeId ?? this.defaultOrderTypeId,
      defaultOrderType: defaultOrderType ?? this.defaultOrderType,
      defaultTransferTypeId:
          defaultTransferTypeId ?? this.defaultTransferTypeId,
      defaultTransferType: defaultTransferType ?? this.defaultTransferType,
      glPrefix: glPrefix ?? this.glPrefix,
      glSuffix: glSuffix ?? this.glSuffix,
      creditCardFeeFlag: creditCardFeeFlag ?? this.creditCardFeeFlag,
      creditCardFeeId: creditCardFeeId ?? this.creditCardFeeId,
      creditCardFeeICode: creditCardFeeICode ?? this.creditCardFeeICode,
      creditCardFeeDescription:
          creditCardFeeDescription ?? this.creditCardFeeDescription,
      creditCardFeePercent: creditCardFeePercent ?? this.creditCardFeePercent,
      allowDecreaseOrderQuantityWhenStaged: allowDecreaseOrderQuantityWhenStaged ??
          this.allowDecreaseOrderQuantityWhenStaged,
      allowDecreaseOrderQuantityWhenOut: allowDecreaseOrderQuantityWhenOut ??
          this.allowDecreaseOrderQuantityWhenOut,
      autoCreditOnSalesReturn:
          autoCreditOnSalesReturn ?? this.autoCreditOnSalesReturn,
      depositFeeRateId: depositFeeRateId ?? this.depositFeeRateId,
      depositFeeRateICode: depositFeeRateICode ?? this.depositFeeRateICode,
      depositFeeRateDescription:
          depositFeeRateDescription ?? this.depositFeeRateDescription,
      updateEstimatedStartAndStopDatesOnSubPurchaseOrders:
          updateEstimatedStartAndStopDatesOnSubPurchaseOrders ??
              this.updateEstimatedStartAndStopDatesOnSubPurchaseOrders,
      promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders:
          promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders ??
              this
                  .promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders,
      updateBillingStartAndStopDatesOnSubPurchaseOrders:
          updateBillingStartAndStopDatesOnSubPurchaseOrders ??
              this.updateBillingStartAndStopDatesOnSubPurchaseOrders,
      promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders:
          promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders ??
              this.promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders,
      purchaseOrderRequireFirstApproval: purchaseOrderRequireFirstApproval ??
          this.purchaseOrderRequireFirstApproval,
      purchaseOrderRequireSecondApproval: purchaseOrderRequireSecondApproval ??
          this.purchaseOrderRequireSecondApproval,
      purchaseOrderAllowSecondApprovalWithoutFirstApproval:
          purchaseOrderAllowSecondApprovalWithoutFirstApproval ??
              this.purchaseOrderAllowSecondApprovalWithoutFirstApproval,
      purchaseOrderUnapproveIncreaseAmount: purchaseOrderUnapproveIncreaseAmount ??
          this.purchaseOrderUnapproveIncreaseAmount,
      purchaseOrderUnapproveIncreasePercent:
          purchaseOrderUnapproveIncreasePercent ?? this.purchaseOrderUnapproveIncreasePercent,
      purchaseOrderPreventReceiveUnapproved: purchaseOrderPreventReceiveUnapproved ?? this.purchaseOrderPreventReceiveUnapproved,
      purchaseOrderFirstApprovalThresholdRental: purchaseOrderFirstApprovalThresholdRental ?? this.purchaseOrderFirstApprovalThresholdRental,
      purchaseOrderFirstApprovalThresholdSales: purchaseOrderFirstApprovalThresholdSales ?? this.purchaseOrderFirstApprovalThresholdSales,
      purchaseOrderFirstApprovalThresholdParts: purchaseOrderFirstApprovalThresholdParts ?? this.purchaseOrderFirstApprovalThresholdParts,
      purchaseOrderFirstApprovalThresholdMiscellaneous: purchaseOrderFirstApprovalThresholdMiscellaneous ?? this.purchaseOrderFirstApprovalThresholdMiscellaneous,
      purchaseOrderFirstApprovalThresholdLabor: purchaseOrderFirstApprovalThresholdLabor ?? this.purchaseOrderFirstApprovalThresholdLabor,
      purchaseOrderFirstApprovalThresholdRepair: purchaseOrderFirstApprovalThresholdRepair ?? this.purchaseOrderFirstApprovalThresholdRepair,
      purchaseOrderFirstApprovalThresholdSubRental: purchaseOrderFirstApprovalThresholdSubRental ?? this.purchaseOrderFirstApprovalThresholdSubRental,
      purchaseOrderFirstApprovalThresholdSubSales: purchaseOrderFirstApprovalThresholdSubSales ?? this.purchaseOrderFirstApprovalThresholdSubSales,
      purchaseOrderFirstApprovalThresholdSubMiscellaneous: purchaseOrderFirstApprovalThresholdSubMiscellaneous ?? this.purchaseOrderFirstApprovalThresholdSubMiscellaneous,
      purchaseOrderFirstApprovalThresholdSubLabor: purchaseOrderFirstApprovalThresholdSubLabor ?? this.purchaseOrderFirstApprovalThresholdSubLabor,
      purchaseOrderSecondApprovalThresholdRental: purchaseOrderSecondApprovalThresholdRental ?? this.purchaseOrderSecondApprovalThresholdRental,
      purchaseOrderSecondApprovalThresholdSales: purchaseOrderSecondApprovalThresholdSales ?? this.purchaseOrderSecondApprovalThresholdSales,
      purchaseOrderSecondApprovalThresholdParts: purchaseOrderSecondApprovalThresholdParts ?? this.purchaseOrderSecondApprovalThresholdParts,
      purchaseOrderSecondApprovalThresholdMiscellaneous: purchaseOrderSecondApprovalThresholdMiscellaneous ?? this.purchaseOrderSecondApprovalThresholdMiscellaneous,
      purchaseOrderSecondApprovalThresholdLabor: purchaseOrderSecondApprovalThresholdLabor ?? this.purchaseOrderSecondApprovalThresholdLabor,
      purchaseOrderSecondApprovalThresholdRepair: purchaseOrderSecondApprovalThresholdRepair ?? this.purchaseOrderSecondApprovalThresholdRepair,
      purchaseOrderSecondApprovalThresholdSubRental: purchaseOrderSecondApprovalThresholdSubRental ?? this.purchaseOrderSecondApprovalThresholdSubRental,
      purchaseOrderSecondApprovalThresholdSubSales: purchaseOrderSecondApprovalThresholdSubSales ?? this.purchaseOrderSecondApprovalThresholdSubSales,
      purchaseOrderSecondApprovalThresholdSubMiscellaneous: purchaseOrderSecondApprovalThresholdSubMiscellaneous ?? this.purchaseOrderSecondApprovalThresholdSubMiscellaneous,
      purchaseOrderSecondApprovalThresholdSubLabor: purchaseOrderSecondApprovalThresholdSubLabor ?? this.purchaseOrderSecondApprovalThresholdSubLabor,
      completeRentalWithLAndDOrder: completeRentalWithLAndDOrder ?? this.completeRentalWithLAndDOrder,
      storefrontEnableInventoryInquiryEmails: storefrontEnableInventoryInquiryEmails ?? this.storefrontEnableInventoryInquiryEmails,
      storefrontInventoryInquiryEmailToAddress: storefrontInventoryInquiryEmailToAddress ?? this.storefrontInventoryInquiryEmailToAddress,
      storefrontEnableQuoteRequestEmails: storefrontEnableQuoteRequestEmails ?? this.storefrontEnableQuoteRequestEmails,
      storefrontQuoteRequestEmailToAddress: storefrontQuoteRequestEmailToAddress ?? this.storefrontQuoteRequestEmailToAddress,
      useResponsiblePerson: useResponsiblePerson ?? this.useResponsiblePerson,
      requireResponsiblePerson: requireResponsiblePerson ?? this.requireResponsiblePerson,
      vendorInvoiceModificationsPushToPo: vendorInvoiceModificationsPushToPo ?? this.vendorInvoiceModificationsPushToPo,
      inactive: inactive ?? this.inactive,
      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);
}