copyWithWrapped method

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

Implementation

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