yellowgrid-api-ts 3.2.60 → 3.2.61-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.openapi-generator/FILES +249 -229
  2. package/README.md +36 -1
  3. package/api.ts +2464 -213
  4. package/base.ts +2 -2
  5. package/common.ts +1 -1
  6. package/config.json +3 -3
  7. package/configuration.ts +1 -1
  8. package/dist/api.d.ts +1771 -106
  9. package/dist/api.js +1492 -106
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +2 -2
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/models/CourierEnum.d.ts +18 -0
  19. package/dist/models/CourierEnum.js +20 -0
  20. package/dist/models/PrinterEnum.d.ts +18 -0
  21. package/dist/models/PrinterEnum.js +20 -0
  22. package/docs/AccountsApi.md +1 -1
  23. package/docs/BatchDTO.md +59 -0
  24. package/docs/CRMApi.md +1 -1
  25. package/docs/Class3CXApi.md +1 -1
  26. package/docs/Class3CXInstallationWizardApi.md +1 -1
  27. package/docs/Class3CXInstallationsApi.md +1 -1
  28. package/docs/Class3CXIntegrationsApi.md +1 -1
  29. package/docs/Class3CXMultiTenantApi.md +1 -1
  30. package/docs/CreditNoteDTO.md +21 -0
  31. package/docs/CreditNoteEntity.md +29 -0
  32. package/docs/CreditNoteItemDTO.md +25 -0
  33. package/docs/CreditNoteItemEntity.md +29 -0
  34. package/docs/CreditNoteModel.md +29 -0
  35. package/docs/MyPBXToolsApi.md +1 -1
  36. package/docs/OAuth20Api.md +1 -1
  37. package/docs/OrderDetailsDTO.md +63 -0
  38. package/docs/OrderItemDTO.md +53 -0
  39. package/docs/OrderedItemModel.md +47 -0
  40. package/docs/OrdersApi.md +861 -23
  41. package/docs/PostAddOrderNoteRequest.md +20 -0
  42. package/docs/PostSplitOrderRequest.md +20 -0
  43. package/docs/PricingApi.md +1 -1
  44. package/docs/PrinterEntity.md +29 -0
  45. package/docs/ProductsApi.md +1 -1
  46. package/docs/ProvisioningApi.md +1 -1
  47. package/docs/PutAllocateItemsRequest.md +20 -0
  48. package/docs/PutAllocateItemsRequestItemsInner.md +22 -0
  49. package/docs/SIPTrunksApi.md +1 -1
  50. package/docs/SMSApi.md +1 -1
  51. package/docs/ServicesApi.md +1 -1
  52. package/docs/ShipmentDTO.md +31 -0
  53. package/docs/ShipmentItemDTO.md +23 -0
  54. package/docs/ShipmentItemModel.md +29 -0
  55. package/docs/ShipmentModel.md +43 -0
  56. package/docs/ShipmentRequestDTO.md +31 -0
  57. package/docs/ShippingApi.md +1 -1
  58. package/docs/ShippingRequestDTO.md +24 -0
  59. package/docs/StockManagementApi.md +1 -1
  60. package/docs/SupplierModel.md +37 -0
  61. package/docs/SystemApi.md +1 -1
  62. package/docs/TicketsApi.md +1 -1
  63. package/docs/WebhooksApi.md +1 -1
  64. package/getEnums.php +31 -31
  65. package/hs_err_pid58424.log +247 -0
  66. package/index.ts +1 -1
  67. package/models/CourierEnum.ts +19 -0
  68. package/models/PrinterEnum.ts +19 -0
  69. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Yellowgrid
6
- * Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `https://bitbucket.org` For questions or technical support, please contact support@yellowgrid.co.uk.
6
+ * Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `https://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
7
7
  *
8
8
  * The version of the OpenAPI document: 0
9
9
  *
@@ -84,9 +84,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
88
- exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = void 0;
89
- exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = void 0;
87
+ exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelRoleEnum = void 0;
88
+ exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = void 0;
89
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = void 0;
90
90
  var axios_1 = require("axios");
91
91
  // Some imports not used depending on template conditions
92
92
  // @ts-ignore
@@ -100,6 +100,87 @@ exports.AdminUserModelRoleEnum = {
100
100
  NUMBER_3: 3,
101
101
  NUMBER_4: 4
102
102
  };
103
+ exports.AuditLogEntityActionEnum = {
104
+ Create: 'CREATE',
105
+ Read: 'READ',
106
+ Update: 'UPDATE',
107
+ Delete: 'DELETE'
108
+ };
109
+ exports.AuditLogEntityTypeEnum = {
110
+ AuditLog: 'audit_log',
111
+ PopsOrders: 'pops_orders',
112
+ PopsAccountContacts: 'pops_account_contacts',
113
+ ApiLog: 'api_log',
114
+ PopsBatches: 'pops_batches',
115
+ PopsCourierPrices: 'pops_courier_prices',
116
+ PopsCreditAccounts: 'pops_credit_accounts',
117
+ PopsCreditNotes: 'pops_credit_notes',
118
+ PopsCreditNotesItems: 'pops_credit_notes_items',
119
+ EdtechproClients: 'edtechpro_clients',
120
+ EdtechproSchools: 'edtechpro_schools',
121
+ FreshdeskTickets: 'freshdesk_tickets',
122
+ PopsFtpAccounts: 'pops_ftp_accounts',
123
+ ServiceEvents: 'service_events',
124
+ ServiceEventUpdates: 'service_event_updates',
125
+ ServiceEventSubscriptions: 'service_event_subscriptions',
126
+ PopsInstanceFailoverIps: 'pops_instance_failover_ips',
127
+ PopsOvhDeleteSchedule: 'pops_ovh_delete_schedule',
128
+ PopsOvhInstances: 'pops_ovh_instances',
129
+ PopsInstanceFailover: 'pops_instance_failover',
130
+ PopsInstanceMonitoring: 'pops_instance_monitoring',
131
+ PopsInstanceMonitoringLog: 'pops_instance_monitoring_log',
132
+ PopsInstanceScheduledTasks: 'pops_instance_scheduled_tasks',
133
+ PopsInstance3cxDetails: 'pops_instance_3cx_details',
134
+ PopsInstanceUserCredentials: 'pops_instance_user_credentials',
135
+ IpBlacklist: 'ip_blacklist',
136
+ PopsItemDiscounts: 'pops_item_discounts',
137
+ PopsItems: 'pops_items',
138
+ PopsLinkedOrders: 'pops_linked_orders',
139
+ PopsOfflineInstances: 'pops_offline_instances',
140
+ PopsOrderedItems: 'pops_ordered_items',
141
+ PopsPrizes: 'pops_prizes',
142
+ PopsPrinters: 'pops_printers',
143
+ PopsPromoCodes: 'pops_promo_codes',
144
+ PopsPromoItems: 'pops_promo_items',
145
+ PopsProvisioning: 'pops_provisioning',
146
+ S3Buckets: 's3_buckets',
147
+ PopsShipmentAddress: 'pops_shipment_address',
148
+ PopsShipments: 'pops_shipments',
149
+ PopsShipmentItems: 'pops_shipment_items',
150
+ PopsSipTrunkChangeQueue: 'pops_sip_trunk_change_queue',
151
+ PopsSipTrunks: 'pops_sip_trunks',
152
+ PopsSms: 'pops_sms',
153
+ PopsSmsNumbers: 'pops_sms_numbers',
154
+ PopsSmsWhitelist: 'pops_sms_whitelist',
155
+ PopsDistCourier: 'pops_dist_courier',
156
+ PopsDistDeductions: 'pops_dist_deductions',
157
+ PopsDistOrder: 'pops_dist_order',
158
+ PopsDistItems: 'pops_dist_items',
159
+ PopsDistPrices: 'pops_dist_prices',
160
+ PopsDistManufacturer: 'pops_dist_manufacturer',
161
+ PopsStockTransactions: 'pops_stock_transactions',
162
+ PopsSuppliers: 'pops_suppliers',
163
+ PopsSupplierItems: 'pops_supplier_items',
164
+ Pops3cxBackup: 'pops_3cx_backup',
165
+ Pops3cxBilling: 'pops_3cx_billing',
166
+ PopsDeadLicences: 'pops_dead_licences',
167
+ Pops3cxExts: 'pops_3cx_exts',
168
+ PopsHostingPricing: 'pops_hosting_pricing',
169
+ Pops3cxKeys: 'pops_3cx_keys',
170
+ Pops3cxMacs: 'pops_3cx_macs',
171
+ Pops3cxNumbers: 'pops_3cx_numbers',
172
+ Pops3cxOfficeHours: 'pops_3cx_office_hours',
173
+ Pops3cxPhones: 'pops_3cx_phones',
174
+ Pops3cxSbc: 'pops_3cx_sbc',
175
+ Pops3cxSetup: 'pops_3cx_setup',
176
+ Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
177
+ Pops3cxUsers: 'pops_3cx_users',
178
+ PopsUsers: 'pops_users',
179
+ Webhook: 'webhook',
180
+ PopsXeroLog: 'pops_xero_log',
181
+ Oauth2Clients: 'oauth2_clients',
182
+ Oauth2Tokens: 'oauth2_tokens'
183
+ };
103
184
  exports.DivertResponseModelStatusEnum = {
104
185
  Enabled: 'enabled',
105
186
  Disabled: 'disabled'
@@ -196,6 +277,21 @@ exports.ServiceStatusDTOStatusEnum = {
196
277
  _1: '1',
197
278
  _2: '2'
198
279
  };
280
+ exports.ShipmentDTOCourierEnum = {
281
+ Dpd: 'DPD',
282
+ ChorltonPallet: 'Chorlton Pallet',
283
+ Pops: 'POPS'
284
+ };
285
+ exports.ShipmentRequestDTOCourierEnum = {
286
+ Dpd: 'DPD',
287
+ ChorltonPallet: 'Chorlton Pallet',
288
+ Pops: 'POPS'
289
+ };
290
+ exports.ShippingRequestDTOCourierEnum = {
291
+ Dpd: 'DPD',
292
+ ChorltonPallet: 'Chorlton Pallet',
293
+ Pops: 'POPS'
294
+ };
199
295
  exports.ShippingServiceDTOCourierEnum = {
200
296
  Dpd: 'DPD',
201
297
  ChorltonPallet: 'Chorlton Pallet',
@@ -8463,6 +8559,94 @@ exports.PostAuthoriseScopeEnum = {
8463
8559
  var OrdersApiAxiosParamCreator = function (configuration) {
8464
8560
  var _this = this;
8465
8561
  return {
8562
+ /**
8563
+ * Delete Shipment (Admin)
8564
+ * @summary Delete Shipment (Admin)
8565
+ * @param {number} id Order ID
8566
+ * @param {number} batchId Batch ID
8567
+ * @param {number} shipmentId Shipment ID
8568
+ * @param {*} [options] Override http request option.
8569
+ * @throws {RequiredError}
8570
+ */
8571
+ deleteCreateShipment: function (id_1, batchId_1, shipmentId_1) {
8572
+ var args_1 = [];
8573
+ for (var _i = 3; _i < arguments.length; _i++) {
8574
+ args_1[_i - 3] = arguments[_i];
8575
+ }
8576
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1], args_1, true), void 0, function (id, batchId, shipmentId, options) {
8577
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8578
+ if (options === void 0) { options = {}; }
8579
+ return __generator(this, function (_a) {
8580
+ // verify required parameter 'id' is not null or undefined
8581
+ (0, common_1.assertParamExists)('deleteCreateShipment', 'id', id);
8582
+ // verify required parameter 'batchId' is not null or undefined
8583
+ (0, common_1.assertParamExists)('deleteCreateShipment', 'batchId', batchId);
8584
+ // verify required parameter 'shipmentId' is not null or undefined
8585
+ (0, common_1.assertParamExists)('deleteCreateShipment', 'shipmentId', shipmentId);
8586
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments"
8587
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
8588
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
8589
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
8590
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8591
+ if (configuration) {
8592
+ baseOptions = configuration.baseOptions;
8593
+ }
8594
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
8595
+ localVarHeaderParameter = {};
8596
+ localVarQueryParameter = {};
8597
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8598
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8599
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8600
+ return [2 /*return*/, {
8601
+ url: (0, common_1.toPathString)(localVarUrlObj),
8602
+ options: localVarRequestOptions,
8603
+ }];
8604
+ });
8605
+ });
8606
+ },
8607
+ /**
8608
+ * Delete Batch (Admin)
8609
+ * @param {number} id Order ID
8610
+ * @param {number} batchId Batch ID
8611
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
8612
+ * @param {*} [options] Override http request option.
8613
+ * @throws {RequiredError}
8614
+ */
8615
+ deleteDeleteBatch: function (id_1, batchId_1, shipmentRequestDTO_1) {
8616
+ var args_1 = [];
8617
+ for (var _i = 3; _i < arguments.length; _i++) {
8618
+ args_1[_i - 3] = arguments[_i];
8619
+ }
8620
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentRequestDTO_1], args_1, true), void 0, function (id, batchId, shipmentRequestDTO, options) {
8621
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8622
+ if (options === void 0) { options = {}; }
8623
+ return __generator(this, function (_a) {
8624
+ // verify required parameter 'id' is not null or undefined
8625
+ (0, common_1.assertParamExists)('deleteDeleteBatch', 'id', id);
8626
+ // verify required parameter 'batchId' is not null or undefined
8627
+ (0, common_1.assertParamExists)('deleteDeleteBatch', 'batchId', batchId);
8628
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}"
8629
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
8630
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)));
8631
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8632
+ if (configuration) {
8633
+ baseOptions = configuration.baseOptions;
8634
+ }
8635
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
8636
+ localVarHeaderParameter = {};
8637
+ localVarQueryParameter = {};
8638
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8639
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8640
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8641
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8642
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shipmentRequestDTO, localVarRequestOptions, configuration);
8643
+ return [2 /*return*/, {
8644
+ url: (0, common_1.toPathString)(localVarUrlObj),
8645
+ options: localVarRequestOptions,
8646
+ }];
8647
+ });
8648
+ });
8649
+ },
8466
8650
  /**
8467
8651
  * Delete Orders (Beta)
8468
8652
  * @summary Delete Orders (Beta)
@@ -8537,6 +8721,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8537
8721
  });
8538
8722
  });
8539
8723
  },
8724
+ /**
8725
+ * Get Order Details (Admin)
8726
+ * @summary Get Order Details (Admin)
8727
+ * @param {number} id Order ID
8728
+ * @param {*} [options] Override http request option.
8729
+ * @throws {RequiredError}
8730
+ */
8731
+ getGetAdminOrderDetails: function (id_1) {
8732
+ var args_1 = [];
8733
+ for (var _i = 1; _i < arguments.length; _i++) {
8734
+ args_1[_i - 1] = arguments[_i];
8735
+ }
8736
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8737
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8738
+ if (options === void 0) { options = {}; }
8739
+ return __generator(this, function (_a) {
8740
+ // verify required parameter 'id' is not null or undefined
8741
+ (0, common_1.assertParamExists)('getGetAdminOrderDetails', 'id', id);
8742
+ localVarPath = "/admin/orders/{id}/details"
8743
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8744
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8745
+ if (configuration) {
8746
+ baseOptions = configuration.baseOptions;
8747
+ }
8748
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8749
+ localVarHeaderParameter = {};
8750
+ localVarQueryParameter = {};
8751
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8752
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8753
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8754
+ return [2 /*return*/, {
8755
+ url: (0, common_1.toPathString)(localVarUrlObj),
8756
+ options: localVarRequestOptions,
8757
+ }];
8758
+ });
8759
+ });
8760
+ },
8540
8761
  /**
8541
8762
  * Get Editable Order (Beta)
8542
8763
  * @summary Get Editable Order (Beta)
@@ -8574,6 +8795,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8574
8795
  });
8575
8796
  });
8576
8797
  },
8798
+ /**
8799
+ * Download Order PDF
8800
+ * @summary Download Order PDF
8801
+ * @param {number} id Order ID
8802
+ * @param {*} [options] Override http request option.
8803
+ * @throws {RequiredError}
8804
+ */
8805
+ getGetOrderPdf: function (id_1) {
8806
+ var args_1 = [];
8807
+ for (var _i = 1; _i < arguments.length; _i++) {
8808
+ args_1[_i - 1] = arguments[_i];
8809
+ }
8810
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8811
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8812
+ if (options === void 0) { options = {}; }
8813
+ return __generator(this, function (_a) {
8814
+ // verify required parameter 'id' is not null or undefined
8815
+ (0, common_1.assertParamExists)('getGetOrderPdf', 'id', id);
8816
+ localVarPath = "/orders/{id}/pdf"
8817
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8818
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8819
+ if (configuration) {
8820
+ baseOptions = configuration.baseOptions;
8821
+ }
8822
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8823
+ localVarHeaderParameter = {};
8824
+ localVarQueryParameter = {};
8825
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8826
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8827
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8828
+ return [2 /*return*/, {
8829
+ url: (0, common_1.toPathString)(localVarUrlObj),
8830
+ options: localVarRequestOptions,
8831
+ }];
8832
+ });
8833
+ });
8834
+ },
8577
8835
  /**
8578
8836
  * Get Orders (Beta)
8579
8837
  * @summary Get Orders (Beta)
@@ -8635,6 +8893,46 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8635
8893
  });
8636
8894
  });
8637
8895
  },
8896
+ /**
8897
+ * Add Order Note
8898
+ * @summary Add Order Note
8899
+ * @param {number} id Order ID
8900
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
8901
+ * @param {*} [options] Override http request option.
8902
+ * @throws {RequiredError}
8903
+ */
8904
+ postAddOrderNote: function (id_1, postAddOrderNoteRequest_1) {
8905
+ var args_1 = [];
8906
+ for (var _i = 2; _i < arguments.length; _i++) {
8907
+ args_1[_i - 2] = arguments[_i];
8908
+ }
8909
+ return __awaiter(_this, __spreadArray([id_1, postAddOrderNoteRequest_1], args_1, true), void 0, function (id, postAddOrderNoteRequest, options) {
8910
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8911
+ if (options === void 0) { options = {}; }
8912
+ return __generator(this, function (_a) {
8913
+ // verify required parameter 'id' is not null or undefined
8914
+ (0, common_1.assertParamExists)('postAddOrderNote', 'id', id);
8915
+ localVarPath = "/admin/orders/{id}/notes"
8916
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8917
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8918
+ if (configuration) {
8919
+ baseOptions = configuration.baseOptions;
8920
+ }
8921
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8922
+ localVarHeaderParameter = {};
8923
+ localVarQueryParameter = {};
8924
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8925
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8926
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8927
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8928
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postAddOrderNoteRequest, localVarRequestOptions, configuration);
8929
+ return [2 /*return*/, {
8930
+ url: (0, common_1.toPathString)(localVarUrlObj),
8931
+ options: localVarRequestOptions,
8932
+ }];
8933
+ });
8934
+ });
8935
+ },
8638
8936
  /**
8639
8937
  * Create An Order (Admin)
8640
8938
  * @summary Create An Order (Admin)
@@ -8676,23 +8974,30 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8676
8974
  });
8677
8975
  },
8678
8976
  /**
8679
- * Create An Order (Beta)
8680
- * @summary Create An Order (Beta)
8681
- * @param {boolean} [readonly] Readonly Order
8682
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8977
+ * Create Shipping Consignment
8978
+ * @summary Create Shipping Consignment
8979
+ * @param {number} id Order ID
8980
+ * @param {number} shipmentId Shipment ID
8981
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
8683
8982
  * @param {*} [options] Override http request option.
8684
8983
  * @throws {RequiredError}
8685
8984
  */
8686
- postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
8985
+ postCreateConsignment: function (id_1, shipmentId_1, shippingRequestDTO_1) {
8687
8986
  var args_1 = [];
8688
- for (var _i = 2; _i < arguments.length; _i++) {
8689
- args_1[_i - 2] = arguments[_i];
8987
+ for (var _i = 3; _i < arguments.length; _i++) {
8988
+ args_1[_i - 3] = arguments[_i];
8690
8989
  }
8691
- return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
8990
+ return __awaiter(_this, __spreadArray([id_1, shipmentId_1, shippingRequestDTO_1], args_1, true), void 0, function (id, shipmentId, shippingRequestDTO, options) {
8692
8991
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8693
8992
  if (options === void 0) { options = {}; }
8694
8993
  return __generator(this, function (_a) {
8695
- localVarPath = "/orders";
8994
+ // verify required parameter 'id' is not null or undefined
8995
+ (0, common_1.assertParamExists)('postCreateConsignment', 'id', id);
8996
+ // verify required parameter 'shipmentId' is not null or undefined
8997
+ (0, common_1.assertParamExists)('postCreateConsignment', 'shipmentId', shipmentId);
8998
+ localVarPath = "/admin/orders/{id}/shipments/{shipment_id}/consignment"
8999
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
9000
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
8696
9001
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8697
9002
  if (configuration) {
8698
9003
  baseOptions = configuration.baseOptions;
@@ -8700,14 +9005,11 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8700
9005
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8701
9006
  localVarHeaderParameter = {};
8702
9007
  localVarQueryParameter = {};
8703
- if (readonly !== undefined) {
8704
- localVarQueryParameter['readonly'] = readonly;
8705
- }
8706
9008
  localVarHeaderParameter['Content-Type'] = 'application/json';
8707
9009
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8708
9010
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8709
9011
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8710
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
9012
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingRequestDTO, localVarRequestOptions, configuration);
8711
9013
  return [2 /*return*/, {
8712
9014
  url: (0, common_1.toPathString)(localVarUrlObj),
8713
9015
  options: localVarRequestOptions,
@@ -8716,42 +9018,42 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8716
9018
  });
8717
9019
  },
8718
9020
  /**
8719
- * Update An Order (Admin)
8720
- * @summary Update An Order (Admin)
9021
+ * Create Shipment (Admin)
9022
+ * @summary Create Shipment (Admin)
8721
9023
  * @param {number} id Order ID
8722
- * @param {boolean} [readonly] Readonly Order
8723
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
9024
+ * @param {number} batchId Batch ID
9025
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
8724
9026
  * @param {*} [options] Override http request option.
8725
9027
  * @throws {RequiredError}
8726
9028
  */
8727
- putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
9029
+ postCreateShipment: function (id_1, batchId_1, shipmentRequestDTO_1) {
8728
9030
  var args_1 = [];
8729
9031
  for (var _i = 3; _i < arguments.length; _i++) {
8730
9032
  args_1[_i - 3] = arguments[_i];
8731
9033
  }
8732
- return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
9034
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentRequestDTO_1], args_1, true), void 0, function (id, batchId, shipmentRequestDTO, options) {
8733
9035
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8734
9036
  if (options === void 0) { options = {}; }
8735
9037
  return __generator(this, function (_a) {
8736
9038
  // verify required parameter 'id' is not null or undefined
8737
- (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
8738
- localVarPath = "/admin/orders/{id}"
8739
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9039
+ (0, common_1.assertParamExists)('postCreateShipment', 'id', id);
9040
+ // verify required parameter 'batchId' is not null or undefined
9041
+ (0, common_1.assertParamExists)('postCreateShipment', 'batchId', batchId);
9042
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments"
9043
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
9044
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)));
8740
9045
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8741
9046
  if (configuration) {
8742
9047
  baseOptions = configuration.baseOptions;
8743
9048
  }
8744
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9049
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8745
9050
  localVarHeaderParameter = {};
8746
9051
  localVarQueryParameter = {};
8747
- if (readonly !== undefined) {
8748
- localVarQueryParameter['readonly'] = readonly;
8749
- }
8750
9052
  localVarHeaderParameter['Content-Type'] = 'application/json';
8751
9053
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8752
9054
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8753
9055
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8754
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
9056
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shipmentRequestDTO, localVarRequestOptions, configuration);
8755
9057
  return [2 /*return*/, {
8756
9058
  url: (0, common_1.toPathString)(localVarUrlObj),
8757
9059
  options: localVarRequestOptions,
@@ -8760,32 +9062,28 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8760
9062
  });
8761
9063
  },
8762
9064
  /**
8763
- * Update An Order (Beta)
8764
- * @summary Update An Order (Beta)
8765
- * @param {number} id Order ID
9065
+ * Create An Order (Beta)
9066
+ * @summary Create An Order (Beta)
8766
9067
  * @param {boolean} [readonly] Readonly Order
8767
9068
  * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8768
9069
  * @param {*} [options] Override http request option.
8769
9070
  * @throws {RequiredError}
8770
9071
  */
8771
- putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
9072
+ postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
8772
9073
  var args_1 = [];
8773
- for (var _i = 3; _i < arguments.length; _i++) {
8774
- args_1[_i - 3] = arguments[_i];
9074
+ for (var _i = 2; _i < arguments.length; _i++) {
9075
+ args_1[_i - 2] = arguments[_i];
8775
9076
  }
8776
- return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
9077
+ return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
8777
9078
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8778
9079
  if (options === void 0) { options = {}; }
8779
9080
  return __generator(this, function (_a) {
8780
- // verify required parameter 'id' is not null or undefined
8781
- (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
8782
- localVarPath = "/orders/{id}"
8783
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9081
+ localVarPath = "/orders";
8784
9082
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8785
9083
  if (configuration) {
8786
9084
  baseOptions = configuration.baseOptions;
8787
9085
  }
8788
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9086
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8789
9087
  localVarHeaderParameter = {};
8790
9088
  localVarQueryParameter = {};
8791
9089
  if (readonly !== undefined) {
@@ -8803,157 +9101,891 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8803
9101
  });
8804
9102
  });
8805
9103
  },
8806
- };
8807
- };
8808
- exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
8809
- /**
8810
- * OrdersApi - functional programming interface
8811
- * @export
8812
- */
8813
- var OrdersApiFp = function (configuration) {
8814
- var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
8815
- return {
8816
9104
  /**
8817
- * Delete Orders (Beta)
8818
- * @summary Delete Orders (Beta)
9105
+ * Issue Credit (Admin)
9106
+ * @summary Issue Credit (Admin)
8819
9107
  * @param {number} id Order ID
9108
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
8820
9109
  * @param {*} [options] Override http request option.
8821
9110
  * @throws {RequiredError}
8822
9111
  */
8823
- deleteUpdateOrder: function (id, options) {
8824
- return __awaiter(this, void 0, void 0, function () {
8825
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8826
- var _a, _b, _c;
8827
- return __generator(this, function (_d) {
8828
- switch (_d.label) {
8829
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
8830
- case 1:
8831
- localVarAxiosArgs = _d.sent();
8832
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8833
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8834
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8835
- }
8836
- });
8837
- });
8838
- },
8839
- /**
9112
+ postIssueCredit: function (id_1, creditNoteDTO_1) {
9113
+ var args_1 = [];
9114
+ for (var _i = 2; _i < arguments.length; _i++) {
9115
+ args_1[_i - 2] = arguments[_i];
9116
+ }
9117
+ return __awaiter(_this, __spreadArray([id_1, creditNoteDTO_1], args_1, true), void 0, function (id, creditNoteDTO, options) {
9118
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9119
+ if (options === void 0) { options = {}; }
9120
+ return __generator(this, function (_a) {
9121
+ // verify required parameter 'id' is not null or undefined
9122
+ (0, common_1.assertParamExists)('postIssueCredit', 'id', id);
9123
+ localVarPath = "/admin/orders/{id}/credit"
9124
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9125
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9126
+ if (configuration) {
9127
+ baseOptions = configuration.baseOptions;
9128
+ }
9129
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9130
+ localVarHeaderParameter = {};
9131
+ localVarQueryParameter = {};
9132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9133
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9134
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9135
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9136
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(creditNoteDTO, localVarRequestOptions, configuration);
9137
+ return [2 /*return*/, {
9138
+ url: (0, common_1.toPathString)(localVarUrlObj),
9139
+ options: localVarRequestOptions,
9140
+ }];
9141
+ });
9142
+ });
9143
+ },
9144
+ /**
9145
+ * Print Shipment Label
9146
+ * @summary Print Shipment Label
9147
+ * @param {number} id Order ID
9148
+ * @param {number} shipmentId Shipment ID
9149
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
9150
+ * @param {*} [options] Override http request option.
9151
+ * @throws {RequiredError}
9152
+ */
9153
+ postPrintShippingLabel: function (id_1, shipmentId_1, printer_1) {
9154
+ var args_1 = [];
9155
+ for (var _i = 3; _i < arguments.length; _i++) {
9156
+ args_1[_i - 3] = arguments[_i];
9157
+ }
9158
+ return __awaiter(_this, __spreadArray([id_1, shipmentId_1, printer_1], args_1, true), void 0, function (id, shipmentId, printer, options) {
9159
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9160
+ if (options === void 0) { options = {}; }
9161
+ return __generator(this, function (_a) {
9162
+ // verify required parameter 'id' is not null or undefined
9163
+ (0, common_1.assertParamExists)('postPrintShippingLabel', 'id', id);
9164
+ // verify required parameter 'shipmentId' is not null or undefined
9165
+ (0, common_1.assertParamExists)('postPrintShippingLabel', 'shipmentId', shipmentId);
9166
+ // verify required parameter 'printer' is not null or undefined
9167
+ (0, common_1.assertParamExists)('postPrintShippingLabel', 'printer', printer);
9168
+ localVarPath = "/admin/orders/{id}/shipments/{shipment_id}/label/print"
9169
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
9170
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
9171
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9172
+ if (configuration) {
9173
+ baseOptions = configuration.baseOptions;
9174
+ }
9175
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9176
+ localVarHeaderParameter = {};
9177
+ localVarQueryParameter = {};
9178
+ if (printer !== undefined) {
9179
+ localVarQueryParameter['printer'] = printer;
9180
+ }
9181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9184
+ return [2 /*return*/, {
9185
+ url: (0, common_1.toPathString)(localVarUrlObj),
9186
+ options: localVarRequestOptions,
9187
+ }];
9188
+ });
9189
+ });
9190
+ },
9191
+ /**
9192
+ * Send Order Email
9193
+ * @summary Send Order Email
9194
+ * @param {number} id Order ID
9195
+ * @param {string} email Email Address
9196
+ * @param {*} [options] Override http request option.
9197
+ * @throws {RequiredError}
9198
+ */
9199
+ postSendOrderEmail: function (id_1, email_1) {
9200
+ var args_1 = [];
9201
+ for (var _i = 2; _i < arguments.length; _i++) {
9202
+ args_1[_i - 2] = arguments[_i];
9203
+ }
9204
+ return __awaiter(_this, __spreadArray([id_1, email_1], args_1, true), void 0, function (id, email, options) {
9205
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9206
+ if (options === void 0) { options = {}; }
9207
+ return __generator(this, function (_a) {
9208
+ // verify required parameter 'id' is not null or undefined
9209
+ (0, common_1.assertParamExists)('postSendOrderEmail', 'id', id);
9210
+ // verify required parameter 'email' is not null or undefined
9211
+ (0, common_1.assertParamExists)('postSendOrderEmail', 'email', email);
9212
+ localVarPath = "/admin/orders/{id}/email/send"
9213
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9214
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9215
+ if (configuration) {
9216
+ baseOptions = configuration.baseOptions;
9217
+ }
9218
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9219
+ localVarHeaderParameter = {};
9220
+ localVarQueryParameter = {};
9221
+ if (email !== undefined) {
9222
+ localVarQueryParameter['email'] = email;
9223
+ }
9224
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9225
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9226
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9227
+ return [2 /*return*/, {
9228
+ url: (0, common_1.toPathString)(localVarUrlObj),
9229
+ options: localVarRequestOptions,
9230
+ }];
9231
+ });
9232
+ });
9233
+ },
9234
+ /**
9235
+ * Send Supplier Email
9236
+ * @summary Send Supplier Email
9237
+ * @param {number} id Order ID
9238
+ * @param {number} batchId Batch ID
9239
+ * @param {*} [options] Override http request option.
9240
+ * @throws {RequiredError}
9241
+ */
9242
+ postSendSupplierEmail: function (id_1, batchId_1) {
9243
+ var args_1 = [];
9244
+ for (var _i = 2; _i < arguments.length; _i++) {
9245
+ args_1[_i - 2] = arguments[_i];
9246
+ }
9247
+ return __awaiter(_this, __spreadArray([id_1, batchId_1], args_1, true), void 0, function (id, batchId, options) {
9248
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9249
+ if (options === void 0) { options = {}; }
9250
+ return __generator(this, function (_a) {
9251
+ // verify required parameter 'id' is not null or undefined
9252
+ (0, common_1.assertParamExists)('postSendSupplierEmail', 'id', id);
9253
+ // verify required parameter 'batchId' is not null or undefined
9254
+ (0, common_1.assertParamExists)('postSendSupplierEmail', 'batchId', batchId);
9255
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/email/send"
9256
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
9257
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)));
9258
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9259
+ if (configuration) {
9260
+ baseOptions = configuration.baseOptions;
9261
+ }
9262
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9263
+ localVarHeaderParameter = {};
9264
+ localVarQueryParameter = {};
9265
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9266
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9267
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9268
+ return [2 /*return*/, {
9269
+ url: (0, common_1.toPathString)(localVarUrlObj),
9270
+ options: localVarRequestOptions,
9271
+ }];
9272
+ });
9273
+ });
9274
+ },
9275
+ /**
9276
+ * Split Order
9277
+ * @summary Split Order
9278
+ * @param {number} id Order ID
9279
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
9280
+ * @param {*} [options] Override http request option.
9281
+ * @throws {RequiredError}
9282
+ */
9283
+ postSplitOrder: function (id_1, postSplitOrderRequest_1) {
9284
+ var args_1 = [];
9285
+ for (var _i = 2; _i < arguments.length; _i++) {
9286
+ args_1[_i - 2] = arguments[_i];
9287
+ }
9288
+ return __awaiter(_this, __spreadArray([id_1, postSplitOrderRequest_1], args_1, true), void 0, function (id, postSplitOrderRequest, options) {
9289
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9290
+ if (options === void 0) { options = {}; }
9291
+ return __generator(this, function (_a) {
9292
+ // verify required parameter 'id' is not null or undefined
9293
+ (0, common_1.assertParamExists)('postSplitOrder', 'id', id);
9294
+ localVarPath = "/admin/orders/{id}/split"
9295
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9296
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9297
+ if (configuration) {
9298
+ baseOptions = configuration.baseOptions;
9299
+ }
9300
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9301
+ localVarHeaderParameter = {};
9302
+ localVarQueryParameter = {};
9303
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9304
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9305
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9306
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9307
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSplitOrderRequest, localVarRequestOptions, configuration);
9308
+ return [2 /*return*/, {
9309
+ url: (0, common_1.toPathString)(localVarUrlObj),
9310
+ options: localVarRequestOptions,
9311
+ }];
9312
+ });
9313
+ });
9314
+ },
9315
+ /**
9316
+ * Allocate Items To Supplier
9317
+ * @summary Allocate Items To Supplier
9318
+ * @param {number} id Order ID
9319
+ * @param {number} supplierId Supplier ID
9320
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
9321
+ * @param {*} [options] Override http request option.
9322
+ * @throws {RequiredError}
9323
+ */
9324
+ putAllocateItems: function (id_1, supplierId_1, putAllocateItemsRequest_1) {
9325
+ var args_1 = [];
9326
+ for (var _i = 3; _i < arguments.length; _i++) {
9327
+ args_1[_i - 3] = arguments[_i];
9328
+ }
9329
+ return __awaiter(_this, __spreadArray([id_1, supplierId_1, putAllocateItemsRequest_1], args_1, true), void 0, function (id, supplierId, putAllocateItemsRequest, options) {
9330
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9331
+ if (options === void 0) { options = {}; }
9332
+ return __generator(this, function (_a) {
9333
+ // verify required parameter 'id' is not null or undefined
9334
+ (0, common_1.assertParamExists)('putAllocateItems', 'id', id);
9335
+ // verify required parameter 'supplierId' is not null or undefined
9336
+ (0, common_1.assertParamExists)('putAllocateItems', 'supplierId', supplierId);
9337
+ localVarPath = "/admin/orders/{id}/items/allocate"
9338
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9339
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9340
+ if (configuration) {
9341
+ baseOptions = configuration.baseOptions;
9342
+ }
9343
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9344
+ localVarHeaderParameter = {};
9345
+ localVarQueryParameter = {};
9346
+ if (supplierId !== undefined) {
9347
+ localVarQueryParameter['supplierId'] = supplierId;
9348
+ }
9349
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9350
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9351
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9352
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9353
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putAllocateItemsRequest, localVarRequestOptions, configuration);
9354
+ return [2 /*return*/, {
9355
+ url: (0, common_1.toPathString)(localVarUrlObj),
9356
+ options: localVarRequestOptions,
9357
+ }];
9358
+ });
9359
+ });
9360
+ },
9361
+ /**
9362
+ * Update Shipment (Admin)
9363
+ * @summary Update Shipment (Admin)
9364
+ * @param {number} id Order ID
9365
+ * @param {number} batchId Batch ID
9366
+ * @param {number} shipmentId Shipment ID
9367
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
9368
+ * @param {*} [options] Override http request option.
9369
+ * @throws {RequiredError}
9370
+ */
9371
+ putCreateShipment: function (id_1, batchId_1, shipmentId_1, shipmentRequestDTO_1) {
9372
+ var args_1 = [];
9373
+ for (var _i = 4; _i < arguments.length; _i++) {
9374
+ args_1[_i - 4] = arguments[_i];
9375
+ }
9376
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1, shipmentRequestDTO_1], args_1, true), void 0, function (id, batchId, shipmentId, shipmentRequestDTO, options) {
9377
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9378
+ if (options === void 0) { options = {}; }
9379
+ return __generator(this, function (_a) {
9380
+ // verify required parameter 'id' is not null or undefined
9381
+ (0, common_1.assertParamExists)('putCreateShipment', 'id', id);
9382
+ // verify required parameter 'batchId' is not null or undefined
9383
+ (0, common_1.assertParamExists)('putCreateShipment', 'batchId', batchId);
9384
+ // verify required parameter 'shipmentId' is not null or undefined
9385
+ (0, common_1.assertParamExists)('putCreateShipment', 'shipmentId', shipmentId);
9386
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments"
9387
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
9388
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
9389
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
9390
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9391
+ if (configuration) {
9392
+ baseOptions = configuration.baseOptions;
9393
+ }
9394
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9395
+ localVarHeaderParameter = {};
9396
+ localVarQueryParameter = {};
9397
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9398
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9399
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9400
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9401
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shipmentRequestDTO, localVarRequestOptions, configuration);
9402
+ return [2 /*return*/, {
9403
+ url: (0, common_1.toPathString)(localVarUrlObj),
9404
+ options: localVarRequestOptions,
9405
+ }];
9406
+ });
9407
+ });
9408
+ },
9409
+ /**
9410
+ * Update An Order (Admin)
9411
+ * @summary Update An Order (Admin)
9412
+ * @param {number} id Order ID
9413
+ * @param {boolean} [readonly] Readonly Order
9414
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
9415
+ * @param {*} [options] Override http request option.
9416
+ * @throws {RequiredError}
9417
+ */
9418
+ putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
9419
+ var args_1 = [];
9420
+ for (var _i = 3; _i < arguments.length; _i++) {
9421
+ args_1[_i - 3] = arguments[_i];
9422
+ }
9423
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
9424
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9425
+ if (options === void 0) { options = {}; }
9426
+ return __generator(this, function (_a) {
9427
+ // verify required parameter 'id' is not null or undefined
9428
+ (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
9429
+ localVarPath = "/admin/orders/{id}"
9430
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9431
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9432
+ if (configuration) {
9433
+ baseOptions = configuration.baseOptions;
9434
+ }
9435
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9436
+ localVarHeaderParameter = {};
9437
+ localVarQueryParameter = {};
9438
+ if (readonly !== undefined) {
9439
+ localVarQueryParameter['readonly'] = readonly;
9440
+ }
9441
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9442
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9443
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9444
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9445
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
9446
+ return [2 /*return*/, {
9447
+ url: (0, common_1.toPathString)(localVarUrlObj),
9448
+ options: localVarRequestOptions,
9449
+ }];
9450
+ });
9451
+ });
9452
+ },
9453
+ /**
9454
+ * Update An Order (Beta)
9455
+ * @summary Update An Order (Beta)
9456
+ * @param {number} id Order ID
9457
+ * @param {boolean} [readonly] Readonly Order
9458
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9459
+ * @param {*} [options] Override http request option.
9460
+ * @throws {RequiredError}
9461
+ */
9462
+ putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
9463
+ var args_1 = [];
9464
+ for (var _i = 3; _i < arguments.length; _i++) {
9465
+ args_1[_i - 3] = arguments[_i];
9466
+ }
9467
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
9468
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9469
+ if (options === void 0) { options = {}; }
9470
+ return __generator(this, function (_a) {
9471
+ // verify required parameter 'id' is not null or undefined
9472
+ (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
9473
+ localVarPath = "/orders/{id}"
9474
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9475
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9476
+ if (configuration) {
9477
+ baseOptions = configuration.baseOptions;
9478
+ }
9479
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9480
+ localVarHeaderParameter = {};
9481
+ localVarQueryParameter = {};
9482
+ if (readonly !== undefined) {
9483
+ localVarQueryParameter['readonly'] = readonly;
9484
+ }
9485
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9486
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9487
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9488
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9489
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
9490
+ return [2 /*return*/, {
9491
+ url: (0, common_1.toPathString)(localVarUrlObj),
9492
+ options: localVarRequestOptions,
9493
+ }];
9494
+ });
9495
+ });
9496
+ },
9497
+ };
9498
+ };
9499
+ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
9500
+ /**
9501
+ * OrdersApi - functional programming interface
9502
+ * @export
9503
+ */
9504
+ var OrdersApiFp = function (configuration) {
9505
+ var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
9506
+ return {
9507
+ /**
9508
+ * Delete Shipment (Admin)
9509
+ * @summary Delete Shipment (Admin)
9510
+ * @param {number} id Order ID
9511
+ * @param {number} batchId Batch ID
9512
+ * @param {number} shipmentId Shipment ID
9513
+ * @param {*} [options] Override http request option.
9514
+ * @throws {RequiredError}
9515
+ */
9516
+ deleteCreateShipment: function (id, batchId, shipmentId, options) {
9517
+ return __awaiter(this, void 0, void 0, function () {
9518
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9519
+ var _a, _b, _c;
9520
+ return __generator(this, function (_d) {
9521
+ switch (_d.label) {
9522
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCreateShipment(id, batchId, shipmentId, options)];
9523
+ case 1:
9524
+ localVarAxiosArgs = _d.sent();
9525
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9526
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteCreateShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9527
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9528
+ }
9529
+ });
9530
+ });
9531
+ },
9532
+ /**
9533
+ * Delete Batch (Admin)
9534
+ * @param {number} id Order ID
9535
+ * @param {number} batchId Batch ID
9536
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
9537
+ * @param {*} [options] Override http request option.
9538
+ * @throws {RequiredError}
9539
+ */
9540
+ deleteDeleteBatch: function (id, batchId, shipmentRequestDTO, options) {
9541
+ return __awaiter(this, void 0, void 0, function () {
9542
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9543
+ var _a, _b, _c;
9544
+ return __generator(this, function (_d) {
9545
+ switch (_d.label) {
9546
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, shipmentRequestDTO, options)];
9547
+ case 1:
9548
+ localVarAxiosArgs = _d.sent();
9549
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9550
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9551
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9552
+ }
9553
+ });
9554
+ });
9555
+ },
9556
+ /**
9557
+ * Delete Orders (Beta)
9558
+ * @summary Delete Orders (Beta)
9559
+ * @param {number} id Order ID
9560
+ * @param {*} [options] Override http request option.
9561
+ * @throws {RequiredError}
9562
+ */
9563
+ deleteUpdateOrder: function (id, options) {
9564
+ return __awaiter(this, void 0, void 0, function () {
9565
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9566
+ var _a, _b, _c;
9567
+ return __generator(this, function (_d) {
9568
+ switch (_d.label) {
9569
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
9570
+ case 1:
9571
+ localVarAxiosArgs = _d.sent();
9572
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9573
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9574
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9575
+ }
9576
+ });
9577
+ });
9578
+ },
9579
+ /**
8840
9580
  * Get Editable Order (Admin)
8841
9581
  * @summary Get Editable Order (Admin)
8842
9582
  * @param {number} id Order ID
8843
9583
  * @param {*} [options] Override http request option.
8844
9584
  * @throws {RequiredError}
8845
9585
  */
8846
- getGetAdminEditableOrder: function (id, options) {
9586
+ getGetAdminEditableOrder: function (id, options) {
9587
+ return __awaiter(this, void 0, void 0, function () {
9588
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9589
+ var _a, _b, _c;
9590
+ return __generator(this, function (_d) {
9591
+ switch (_d.label) {
9592
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
9593
+ case 1:
9594
+ localVarAxiosArgs = _d.sent();
9595
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9596
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9597
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9598
+ }
9599
+ });
9600
+ });
9601
+ },
9602
+ /**
9603
+ * Get Order Details (Admin)
9604
+ * @summary Get Order Details (Admin)
9605
+ * @param {number} id Order ID
9606
+ * @param {*} [options] Override http request option.
9607
+ * @throws {RequiredError}
9608
+ */
9609
+ getGetAdminOrderDetails: function (id, options) {
9610
+ return __awaiter(this, void 0, void 0, function () {
9611
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9612
+ var _a, _b, _c;
9613
+ return __generator(this, function (_d) {
9614
+ switch (_d.label) {
9615
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminOrderDetails(id, options)];
9616
+ case 1:
9617
+ localVarAxiosArgs = _d.sent();
9618
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9619
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminOrderDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9620
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9621
+ }
9622
+ });
9623
+ });
9624
+ },
9625
+ /**
9626
+ * Get Editable Order (Beta)
9627
+ * @summary Get Editable Order (Beta)
9628
+ * @param {number} id Order ID
9629
+ * @param {*} [options] Override http request option.
9630
+ * @throws {RequiredError}
9631
+ */
9632
+ getGetEditableOrder: function (id, options) {
9633
+ return __awaiter(this, void 0, void 0, function () {
9634
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9635
+ var _a, _b, _c;
9636
+ return __generator(this, function (_d) {
9637
+ switch (_d.label) {
9638
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
9639
+ case 1:
9640
+ localVarAxiosArgs = _d.sent();
9641
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9642
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9643
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9644
+ }
9645
+ });
9646
+ });
9647
+ },
9648
+ /**
9649
+ * Download Order PDF
9650
+ * @summary Download Order PDF
9651
+ * @param {number} id Order ID
9652
+ * @param {*} [options] Override http request option.
9653
+ * @throws {RequiredError}
9654
+ */
9655
+ getGetOrderPdf: function (id, options) {
9656
+ return __awaiter(this, void 0, void 0, function () {
9657
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9658
+ var _a, _b, _c;
9659
+ return __generator(this, function (_d) {
9660
+ switch (_d.label) {
9661
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrderPdf(id, options)];
9662
+ case 1:
9663
+ localVarAxiosArgs = _d.sent();
9664
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9665
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrderPdf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9666
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9667
+ }
9668
+ });
9669
+ });
9670
+ },
9671
+ /**
9672
+ * Get Orders (Beta)
9673
+ * @summary Get Orders (Beta)
9674
+ * @param {number} [pageSize] Number Of Results
9675
+ * @param {number} [page] Page Number
9676
+ * @param {string} [search] Search
9677
+ * @param {boolean | null} [fulfillable] Fulfillable
9678
+ * @param {GetGetOrdersStatusEnum} [status] Status
9679
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
9680
+ * @param {number | null} [customerId] Customer ID
9681
+ * @param {*} [options] Override http request option.
9682
+ * @throws {RequiredError}
9683
+ */
9684
+ getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
9685
+ return __awaiter(this, void 0, void 0, function () {
9686
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9687
+ var _a, _b, _c;
9688
+ return __generator(this, function (_d) {
9689
+ switch (_d.label) {
9690
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options)];
9691
+ case 1:
9692
+ localVarAxiosArgs = _d.sent();
9693
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9694
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9695
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9696
+ }
9697
+ });
9698
+ });
9699
+ },
9700
+ /**
9701
+ * Add Order Note
9702
+ * @summary Add Order Note
9703
+ * @param {number} id Order ID
9704
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
9705
+ * @param {*} [options] Override http request option.
9706
+ * @throws {RequiredError}
9707
+ */
9708
+ postAddOrderNote: function (id, postAddOrderNoteRequest, options) {
9709
+ return __awaiter(this, void 0, void 0, function () {
9710
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9711
+ var _a, _b, _c;
9712
+ return __generator(this, function (_d) {
9713
+ switch (_d.label) {
9714
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddOrderNote(id, postAddOrderNoteRequest, options)];
9715
+ case 1:
9716
+ localVarAxiosArgs = _d.sent();
9717
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9718
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postAddOrderNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9719
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9720
+ }
9721
+ });
9722
+ });
9723
+ },
9724
+ /**
9725
+ * Create An Order (Admin)
9726
+ * @summary Create An Order (Admin)
9727
+ * @param {boolean} [readonly] Readonly Order
9728
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
9729
+ * @param {*} [options] Override http request option.
9730
+ * @throws {RequiredError}
9731
+ */
9732
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
9733
+ return __awaiter(this, void 0, void 0, function () {
9734
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9735
+ var _a, _b, _c;
9736
+ return __generator(this, function (_d) {
9737
+ switch (_d.label) {
9738
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
9739
+ case 1:
9740
+ localVarAxiosArgs = _d.sent();
9741
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9742
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9743
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9744
+ }
9745
+ });
9746
+ });
9747
+ },
9748
+ /**
9749
+ * Create Shipping Consignment
9750
+ * @summary Create Shipping Consignment
9751
+ * @param {number} id Order ID
9752
+ * @param {number} shipmentId Shipment ID
9753
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
9754
+ * @param {*} [options] Override http request option.
9755
+ * @throws {RequiredError}
9756
+ */
9757
+ postCreateConsignment: function (id, shipmentId, shippingRequestDTO, options) {
9758
+ return __awaiter(this, void 0, void 0, function () {
9759
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9760
+ var _a, _b, _c;
9761
+ return __generator(this, function (_d) {
9762
+ switch (_d.label) {
9763
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateConsignment(id, shipmentId, shippingRequestDTO, options)];
9764
+ case 1:
9765
+ localVarAxiosArgs = _d.sent();
9766
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9767
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateConsignment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9768
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9769
+ }
9770
+ });
9771
+ });
9772
+ },
9773
+ /**
9774
+ * Create Shipment (Admin)
9775
+ * @summary Create Shipment (Admin)
9776
+ * @param {number} id Order ID
9777
+ * @param {number} batchId Batch ID
9778
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
9779
+ * @param {*} [options] Override http request option.
9780
+ * @throws {RequiredError}
9781
+ */
9782
+ postCreateShipment: function (id, batchId, shipmentRequestDTO, options) {
9783
+ return __awaiter(this, void 0, void 0, function () {
9784
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9785
+ var _a, _b, _c;
9786
+ return __generator(this, function (_d) {
9787
+ switch (_d.label) {
9788
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateShipment(id, batchId, shipmentRequestDTO, options)];
9789
+ case 1:
9790
+ localVarAxiosArgs = _d.sent();
9791
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9792
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9793
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9794
+ }
9795
+ });
9796
+ });
9797
+ },
9798
+ /**
9799
+ * Create An Order (Beta)
9800
+ * @summary Create An Order (Beta)
9801
+ * @param {boolean} [readonly] Readonly Order
9802
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9803
+ * @param {*} [options] Override http request option.
9804
+ * @throws {RequiredError}
9805
+ */
9806
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
9807
+ return __awaiter(this, void 0, void 0, function () {
9808
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9809
+ var _a, _b, _c;
9810
+ return __generator(this, function (_d) {
9811
+ switch (_d.label) {
9812
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
9813
+ case 1:
9814
+ localVarAxiosArgs = _d.sent();
9815
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9816
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9817
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9818
+ }
9819
+ });
9820
+ });
9821
+ },
9822
+ /**
9823
+ * Issue Credit (Admin)
9824
+ * @summary Issue Credit (Admin)
9825
+ * @param {number} id Order ID
9826
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
9827
+ * @param {*} [options] Override http request option.
9828
+ * @throws {RequiredError}
9829
+ */
9830
+ postIssueCredit: function (id, creditNoteDTO, options) {
9831
+ return __awaiter(this, void 0, void 0, function () {
9832
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9833
+ var _a, _b, _c;
9834
+ return __generator(this, function (_d) {
9835
+ switch (_d.label) {
9836
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postIssueCredit(id, creditNoteDTO, options)];
9837
+ case 1:
9838
+ localVarAxiosArgs = _d.sent();
9839
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9840
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postIssueCredit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9841
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9842
+ }
9843
+ });
9844
+ });
9845
+ },
9846
+ /**
9847
+ * Print Shipment Label
9848
+ * @summary Print Shipment Label
9849
+ * @param {number} id Order ID
9850
+ * @param {number} shipmentId Shipment ID
9851
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
9852
+ * @param {*} [options] Override http request option.
9853
+ * @throws {RequiredError}
9854
+ */
9855
+ postPrintShippingLabel: function (id, shipmentId, printer, options) {
9856
+ return __awaiter(this, void 0, void 0, function () {
9857
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9858
+ var _a, _b, _c;
9859
+ return __generator(this, function (_d) {
9860
+ switch (_d.label) {
9861
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postPrintShippingLabel(id, shipmentId, printer, options)];
9862
+ case 1:
9863
+ localVarAxiosArgs = _d.sent();
9864
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9865
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postPrintShippingLabel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9866
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9867
+ }
9868
+ });
9869
+ });
9870
+ },
9871
+ /**
9872
+ * Send Order Email
9873
+ * @summary Send Order Email
9874
+ * @param {number} id Order ID
9875
+ * @param {string} email Email Address
9876
+ * @param {*} [options] Override http request option.
9877
+ * @throws {RequiredError}
9878
+ */
9879
+ postSendOrderEmail: function (id, email, options) {
8847
9880
  return __awaiter(this, void 0, void 0, function () {
8848
9881
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8849
9882
  var _a, _b, _c;
8850
9883
  return __generator(this, function (_d) {
8851
9884
  switch (_d.label) {
8852
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
9885
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendOrderEmail(id, email, options)];
8853
9886
  case 1:
8854
9887
  localVarAxiosArgs = _d.sent();
8855
9888
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8856
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9889
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postSendOrderEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8857
9890
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8858
9891
  }
8859
9892
  });
8860
9893
  });
8861
9894
  },
8862
9895
  /**
8863
- * Get Editable Order (Beta)
8864
- * @summary Get Editable Order (Beta)
9896
+ * Send Supplier Email
9897
+ * @summary Send Supplier Email
8865
9898
  * @param {number} id Order ID
9899
+ * @param {number} batchId Batch ID
8866
9900
  * @param {*} [options] Override http request option.
8867
9901
  * @throws {RequiredError}
8868
9902
  */
8869
- getGetEditableOrder: function (id, options) {
9903
+ postSendSupplierEmail: function (id, batchId, options) {
8870
9904
  return __awaiter(this, void 0, void 0, function () {
8871
9905
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8872
9906
  var _a, _b, _c;
8873
9907
  return __generator(this, function (_d) {
8874
9908
  switch (_d.label) {
8875
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
9909
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendSupplierEmail(id, batchId, options)];
8876
9910
  case 1:
8877
9911
  localVarAxiosArgs = _d.sent();
8878
9912
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8879
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9913
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postSendSupplierEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8880
9914
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8881
9915
  }
8882
9916
  });
8883
9917
  });
8884
9918
  },
8885
9919
  /**
8886
- * Get Orders (Beta)
8887
- * @summary Get Orders (Beta)
8888
- * @param {number} [pageSize] Number Of Results
8889
- * @param {number} [page] Page Number
8890
- * @param {string} [search] Search
8891
- * @param {boolean | null} [fulfillable] Fulfillable
8892
- * @param {GetGetOrdersStatusEnum} [status] Status
8893
- * @param {GetGetOrdersFilterEnum} [filter] Filter
8894
- * @param {number | null} [customerId] Customer ID
9920
+ * Split Order
9921
+ * @summary Split Order
9922
+ * @param {number} id Order ID
9923
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
8895
9924
  * @param {*} [options] Override http request option.
8896
9925
  * @throws {RequiredError}
8897
9926
  */
8898
- getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
9927
+ postSplitOrder: function (id, postSplitOrderRequest, options) {
8899
9928
  return __awaiter(this, void 0, void 0, function () {
8900
9929
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8901
9930
  var _a, _b, _c;
8902
9931
  return __generator(this, function (_d) {
8903
9932
  switch (_d.label) {
8904
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options)];
9933
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSplitOrder(id, postSplitOrderRequest, options)];
8905
9934
  case 1:
8906
9935
  localVarAxiosArgs = _d.sent();
8907
9936
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8908
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9937
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postSplitOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8909
9938
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8910
9939
  }
8911
9940
  });
8912
9941
  });
8913
9942
  },
8914
9943
  /**
8915
- * Create An Order (Admin)
8916
- * @summary Create An Order (Admin)
8917
- * @param {boolean} [readonly] Readonly Order
8918
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
9944
+ * Allocate Items To Supplier
9945
+ * @summary Allocate Items To Supplier
9946
+ * @param {number} id Order ID
9947
+ * @param {number} supplierId Supplier ID
9948
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
8919
9949
  * @param {*} [options] Override http request option.
8920
9950
  * @throws {RequiredError}
8921
9951
  */
8922
- postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
9952
+ putAllocateItems: function (id, supplierId, putAllocateItemsRequest, options) {
8923
9953
  return __awaiter(this, void 0, void 0, function () {
8924
9954
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8925
9955
  var _a, _b, _c;
8926
9956
  return __generator(this, function (_d) {
8927
9957
  switch (_d.label) {
8928
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
9958
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putAllocateItems(id, supplierId, putAllocateItemsRequest, options)];
8929
9959
  case 1:
8930
9960
  localVarAxiosArgs = _d.sent();
8931
9961
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8932
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9962
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putAllocateItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8933
9963
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8934
9964
  }
8935
9965
  });
8936
9966
  });
8937
9967
  },
8938
9968
  /**
8939
- * Create An Order (Beta)
8940
- * @summary Create An Order (Beta)
8941
- * @param {boolean} [readonly] Readonly Order
8942
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9969
+ * Update Shipment (Admin)
9970
+ * @summary Update Shipment (Admin)
9971
+ * @param {number} id Order ID
9972
+ * @param {number} batchId Batch ID
9973
+ * @param {number} shipmentId Shipment ID
9974
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
8943
9975
  * @param {*} [options] Override http request option.
8944
9976
  * @throws {RequiredError}
8945
9977
  */
8946
- postGetOrders: function (readonly, customerOrderRequestDTO, options) {
9978
+ putCreateShipment: function (id, batchId, shipmentId, shipmentRequestDTO, options) {
8947
9979
  return __awaiter(this, void 0, void 0, function () {
8948
9980
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8949
9981
  var _a, _b, _c;
8950
9982
  return __generator(this, function (_d) {
8951
9983
  switch (_d.label) {
8952
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
9984
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options)];
8953
9985
  case 1:
8954
9986
  localVarAxiosArgs = _d.sent();
8955
9987
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8956
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9988
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putCreateShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8957
9989
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8958
9990
  }
8959
9991
  });
@@ -9019,6 +10051,29 @@ exports.OrdersApiFp = OrdersApiFp;
9019
10051
  var OrdersApiFactory = function (configuration, basePath, axios) {
9020
10052
  var localVarFp = (0, exports.OrdersApiFp)(configuration);
9021
10053
  return {
10054
+ /**
10055
+ * Delete Shipment (Admin)
10056
+ * @summary Delete Shipment (Admin)
10057
+ * @param {number} id Order ID
10058
+ * @param {number} batchId Batch ID
10059
+ * @param {number} shipmentId Shipment ID
10060
+ * @param {*} [options] Override http request option.
10061
+ * @throws {RequiredError}
10062
+ */
10063
+ deleteCreateShipment: function (id, batchId, shipmentId, options) {
10064
+ return localVarFp.deleteCreateShipment(id, batchId, shipmentId, options).then(function (request) { return request(axios, basePath); });
10065
+ },
10066
+ /**
10067
+ * Delete Batch (Admin)
10068
+ * @param {number} id Order ID
10069
+ * @param {number} batchId Batch ID
10070
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10071
+ * @param {*} [options] Override http request option.
10072
+ * @throws {RequiredError}
10073
+ */
10074
+ deleteDeleteBatch: function (id, batchId, shipmentRequestDTO, options) {
10075
+ return localVarFp.deleteDeleteBatch(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
10076
+ },
9022
10077
  /**
9023
10078
  * Delete Orders (Beta)
9024
10079
  * @summary Delete Orders (Beta)
@@ -9039,6 +10094,16 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
9039
10094
  getGetAdminEditableOrder: function (id, options) {
9040
10095
  return localVarFp.getGetAdminEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
9041
10096
  },
10097
+ /**
10098
+ * Get Order Details (Admin)
10099
+ * @summary Get Order Details (Admin)
10100
+ * @param {number} id Order ID
10101
+ * @param {*} [options] Override http request option.
10102
+ * @throws {RequiredError}
10103
+ */
10104
+ getGetAdminOrderDetails: function (id, options) {
10105
+ return localVarFp.getGetAdminOrderDetails(id, options).then(function (request) { return request(axios, basePath); });
10106
+ },
9042
10107
  /**
9043
10108
  * Get Editable Order (Beta)
9044
10109
  * @summary Get Editable Order (Beta)
@@ -9049,6 +10114,16 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
9049
10114
  getGetEditableOrder: function (id, options) {
9050
10115
  return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
9051
10116
  },
10117
+ /**
10118
+ * Download Order PDF
10119
+ * @summary Download Order PDF
10120
+ * @param {number} id Order ID
10121
+ * @param {*} [options] Override http request option.
10122
+ * @throws {RequiredError}
10123
+ */
10124
+ getGetOrderPdf: function (id, options) {
10125
+ return localVarFp.getGetOrderPdf(id, options).then(function (request) { return request(axios, basePath); });
10126
+ },
9052
10127
  /**
9053
10128
  * Get Orders (Beta)
9054
10129
  * @summary Get Orders (Beta)
@@ -9065,6 +10140,17 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
9065
10140
  getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
9066
10141
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
9067
10142
  },
10143
+ /**
10144
+ * Add Order Note
10145
+ * @summary Add Order Note
10146
+ * @param {number} id Order ID
10147
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
10148
+ * @param {*} [options] Override http request option.
10149
+ * @throws {RequiredError}
10150
+ */
10151
+ postAddOrderNote: function (id, postAddOrderNoteRequest, options) {
10152
+ return localVarFp.postAddOrderNote(id, postAddOrderNoteRequest, options).then(function (request) { return request(axios, basePath); });
10153
+ },
9068
10154
  /**
9069
10155
  * Create An Order (Admin)
9070
10156
  * @summary Create An Order (Admin)
@@ -9076,6 +10162,30 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
9076
10162
  postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
9077
10163
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
9078
10164
  },
10165
+ /**
10166
+ * Create Shipping Consignment
10167
+ * @summary Create Shipping Consignment
10168
+ * @param {number} id Order ID
10169
+ * @param {number} shipmentId Shipment ID
10170
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
10171
+ * @param {*} [options] Override http request option.
10172
+ * @throws {RequiredError}
10173
+ */
10174
+ postCreateConsignment: function (id, shipmentId, shippingRequestDTO, options) {
10175
+ return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then(function (request) { return request(axios, basePath); });
10176
+ },
10177
+ /**
10178
+ * Create Shipment (Admin)
10179
+ * @summary Create Shipment (Admin)
10180
+ * @param {number} id Order ID
10181
+ * @param {number} batchId Batch ID
10182
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10183
+ * @param {*} [options] Override http request option.
10184
+ * @throws {RequiredError}
10185
+ */
10186
+ postCreateShipment: function (id, batchId, shipmentRequestDTO, options) {
10187
+ return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
10188
+ },
9079
10189
  /**
9080
10190
  * Create An Order (Beta)
9081
10191
  * @summary Create An Order (Beta)
@@ -9087,6 +10197,87 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
9087
10197
  postGetOrders: function (readonly, customerOrderRequestDTO, options) {
9088
10198
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
9089
10199
  },
10200
+ /**
10201
+ * Issue Credit (Admin)
10202
+ * @summary Issue Credit (Admin)
10203
+ * @param {number} id Order ID
10204
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
10205
+ * @param {*} [options] Override http request option.
10206
+ * @throws {RequiredError}
10207
+ */
10208
+ postIssueCredit: function (id, creditNoteDTO, options) {
10209
+ return localVarFp.postIssueCredit(id, creditNoteDTO, options).then(function (request) { return request(axios, basePath); });
10210
+ },
10211
+ /**
10212
+ * Print Shipment Label
10213
+ * @summary Print Shipment Label
10214
+ * @param {number} id Order ID
10215
+ * @param {number} shipmentId Shipment ID
10216
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
10217
+ * @param {*} [options] Override http request option.
10218
+ * @throws {RequiredError}
10219
+ */
10220
+ postPrintShippingLabel: function (id, shipmentId, printer, options) {
10221
+ return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then(function (request) { return request(axios, basePath); });
10222
+ },
10223
+ /**
10224
+ * Send Order Email
10225
+ * @summary Send Order Email
10226
+ * @param {number} id Order ID
10227
+ * @param {string} email Email Address
10228
+ * @param {*} [options] Override http request option.
10229
+ * @throws {RequiredError}
10230
+ */
10231
+ postSendOrderEmail: function (id, email, options) {
10232
+ return localVarFp.postSendOrderEmail(id, email, options).then(function (request) { return request(axios, basePath); });
10233
+ },
10234
+ /**
10235
+ * Send Supplier Email
10236
+ * @summary Send Supplier Email
10237
+ * @param {number} id Order ID
10238
+ * @param {number} batchId Batch ID
10239
+ * @param {*} [options] Override http request option.
10240
+ * @throws {RequiredError}
10241
+ */
10242
+ postSendSupplierEmail: function (id, batchId, options) {
10243
+ return localVarFp.postSendSupplierEmail(id, batchId, options).then(function (request) { return request(axios, basePath); });
10244
+ },
10245
+ /**
10246
+ * Split Order
10247
+ * @summary Split Order
10248
+ * @param {number} id Order ID
10249
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
10250
+ * @param {*} [options] Override http request option.
10251
+ * @throws {RequiredError}
10252
+ */
10253
+ postSplitOrder: function (id, postSplitOrderRequest, options) {
10254
+ return localVarFp.postSplitOrder(id, postSplitOrderRequest, options).then(function (request) { return request(axios, basePath); });
10255
+ },
10256
+ /**
10257
+ * Allocate Items To Supplier
10258
+ * @summary Allocate Items To Supplier
10259
+ * @param {number} id Order ID
10260
+ * @param {number} supplierId Supplier ID
10261
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
10262
+ * @param {*} [options] Override http request option.
10263
+ * @throws {RequiredError}
10264
+ */
10265
+ putAllocateItems: function (id, supplierId, putAllocateItemsRequest, options) {
10266
+ return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then(function (request) { return request(axios, basePath); });
10267
+ },
10268
+ /**
10269
+ * Update Shipment (Admin)
10270
+ * @summary Update Shipment (Admin)
10271
+ * @param {number} id Order ID
10272
+ * @param {number} batchId Batch ID
10273
+ * @param {number} shipmentId Shipment ID
10274
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10275
+ * @param {*} [options] Override http request option.
10276
+ * @throws {RequiredError}
10277
+ */
10278
+ putCreateShipment: function (id, batchId, shipmentId, shipmentRequestDTO, options) {
10279
+ return localVarFp.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
10280
+ },
9090
10281
  /**
9091
10282
  * Update An Order (Admin)
9092
10283
  * @summary Update An Order (Admin)
@@ -9125,6 +10316,33 @@ var OrdersApi = /** @class */ (function (_super) {
9125
10316
  function OrdersApi() {
9126
10317
  return _super !== null && _super.apply(this, arguments) || this;
9127
10318
  }
10319
+ /**
10320
+ * Delete Shipment (Admin)
10321
+ * @summary Delete Shipment (Admin)
10322
+ * @param {number} id Order ID
10323
+ * @param {number} batchId Batch ID
10324
+ * @param {number} shipmentId Shipment ID
10325
+ * @param {*} [options] Override http request option.
10326
+ * @throws {RequiredError}
10327
+ * @memberof OrdersApi
10328
+ */
10329
+ OrdersApi.prototype.deleteCreateShipment = function (id, batchId, shipmentId, options) {
10330
+ var _this = this;
10331
+ return (0, exports.OrdersApiFp)(this.configuration).deleteCreateShipment(id, batchId, shipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10332
+ };
10333
+ /**
10334
+ * Delete Batch (Admin)
10335
+ * @param {number} id Order ID
10336
+ * @param {number} batchId Batch ID
10337
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10338
+ * @param {*} [options] Override http request option.
10339
+ * @throws {RequiredError}
10340
+ * @memberof OrdersApi
10341
+ */
10342
+ OrdersApi.prototype.deleteDeleteBatch = function (id, batchId, shipmentRequestDTO, options) {
10343
+ var _this = this;
10344
+ return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteBatch(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10345
+ };
9128
10346
  /**
9129
10347
  * Delete Orders (Beta)
9130
10348
  * @summary Delete Orders (Beta)
@@ -9149,6 +10367,18 @@ var OrdersApi = /** @class */ (function (_super) {
9149
10367
  var _this = this;
9150
10368
  return (0, exports.OrdersApiFp)(this.configuration).getGetAdminEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
9151
10369
  };
10370
+ /**
10371
+ * Get Order Details (Admin)
10372
+ * @summary Get Order Details (Admin)
10373
+ * @param {number} id Order ID
10374
+ * @param {*} [options] Override http request option.
10375
+ * @throws {RequiredError}
10376
+ * @memberof OrdersApi
10377
+ */
10378
+ OrdersApi.prototype.getGetAdminOrderDetails = function (id, options) {
10379
+ var _this = this;
10380
+ return (0, exports.OrdersApiFp)(this.configuration).getGetAdminOrderDetails(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
10381
+ };
9152
10382
  /**
9153
10383
  * Get Editable Order (Beta)
9154
10384
  * @summary Get Editable Order (Beta)
@@ -9161,6 +10391,18 @@ var OrdersApi = /** @class */ (function (_super) {
9161
10391
  var _this = this;
9162
10392
  return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
9163
10393
  };
10394
+ /**
10395
+ * Download Order PDF
10396
+ * @summary Download Order PDF
10397
+ * @param {number} id Order ID
10398
+ * @param {*} [options] Override http request option.
10399
+ * @throws {RequiredError}
10400
+ * @memberof OrdersApi
10401
+ */
10402
+ OrdersApi.prototype.getGetOrderPdf = function (id, options) {
10403
+ var _this = this;
10404
+ return (0, exports.OrdersApiFp)(this.configuration).getGetOrderPdf(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
10405
+ };
9164
10406
  /**
9165
10407
  * Get Orders (Beta)
9166
10408
  * @summary Get Orders (Beta)
@@ -9179,6 +10421,19 @@ var OrdersApi = /** @class */ (function (_super) {
9179
10421
  var _this = this;
9180
10422
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9181
10423
  };
10424
+ /**
10425
+ * Add Order Note
10426
+ * @summary Add Order Note
10427
+ * @param {number} id Order ID
10428
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
10429
+ * @param {*} [options] Override http request option.
10430
+ * @throws {RequiredError}
10431
+ * @memberof OrdersApi
10432
+ */
10433
+ OrdersApi.prototype.postAddOrderNote = function (id, postAddOrderNoteRequest, options) {
10434
+ var _this = this;
10435
+ return (0, exports.OrdersApiFp)(this.configuration).postAddOrderNote(id, postAddOrderNoteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10436
+ };
9182
10437
  /**
9183
10438
  * Create An Order (Admin)
9184
10439
  * @summary Create An Order (Admin)
@@ -9192,6 +10447,34 @@ var OrdersApi = /** @class */ (function (_super) {
9192
10447
  var _this = this;
9193
10448
  return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
9194
10449
  };
10450
+ /**
10451
+ * Create Shipping Consignment
10452
+ * @summary Create Shipping Consignment
10453
+ * @param {number} id Order ID
10454
+ * @param {number} shipmentId Shipment ID
10455
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
10456
+ * @param {*} [options] Override http request option.
10457
+ * @throws {RequiredError}
10458
+ * @memberof OrdersApi
10459
+ */
10460
+ OrdersApi.prototype.postCreateConsignment = function (id, shipmentId, shippingRequestDTO, options) {
10461
+ var _this = this;
10462
+ return (0, exports.OrdersApiFp)(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10463
+ };
10464
+ /**
10465
+ * Create Shipment (Admin)
10466
+ * @summary Create Shipment (Admin)
10467
+ * @param {number} id Order ID
10468
+ * @param {number} batchId Batch ID
10469
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10470
+ * @param {*} [options] Override http request option.
10471
+ * @throws {RequiredError}
10472
+ * @memberof OrdersApi
10473
+ */
10474
+ OrdersApi.prototype.postCreateShipment = function (id, batchId, shipmentRequestDTO, options) {
10475
+ var _this = this;
10476
+ return (0, exports.OrdersApiFp)(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10477
+ };
9195
10478
  /**
9196
10479
  * Create An Order (Beta)
9197
10480
  * @summary Create An Order (Beta)
@@ -9205,6 +10488,101 @@ var OrdersApi = /** @class */ (function (_super) {
9205
10488
  var _this = this;
9206
10489
  return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
9207
10490
  };
10491
+ /**
10492
+ * Issue Credit (Admin)
10493
+ * @summary Issue Credit (Admin)
10494
+ * @param {number} id Order ID
10495
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
10496
+ * @param {*} [options] Override http request option.
10497
+ * @throws {RequiredError}
10498
+ * @memberof OrdersApi
10499
+ */
10500
+ OrdersApi.prototype.postIssueCredit = function (id, creditNoteDTO, options) {
10501
+ var _this = this;
10502
+ return (0, exports.OrdersApiFp)(this.configuration).postIssueCredit(id, creditNoteDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10503
+ };
10504
+ /**
10505
+ * Print Shipment Label
10506
+ * @summary Print Shipment Label
10507
+ * @param {number} id Order ID
10508
+ * @param {number} shipmentId Shipment ID
10509
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
10510
+ * @param {*} [options] Override http request option.
10511
+ * @throws {RequiredError}
10512
+ * @memberof OrdersApi
10513
+ */
10514
+ OrdersApi.prototype.postPrintShippingLabel = function (id, shipmentId, printer, options) {
10515
+ var _this = this;
10516
+ return (0, exports.OrdersApiFp)(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then(function (request) { return request(_this.axios, _this.basePath); });
10517
+ };
10518
+ /**
10519
+ * Send Order Email
10520
+ * @summary Send Order Email
10521
+ * @param {number} id Order ID
10522
+ * @param {string} email Email Address
10523
+ * @param {*} [options] Override http request option.
10524
+ * @throws {RequiredError}
10525
+ * @memberof OrdersApi
10526
+ */
10527
+ OrdersApi.prototype.postSendOrderEmail = function (id, email, options) {
10528
+ var _this = this;
10529
+ return (0, exports.OrdersApiFp)(this.configuration).postSendOrderEmail(id, email, options).then(function (request) { return request(_this.axios, _this.basePath); });
10530
+ };
10531
+ /**
10532
+ * Send Supplier Email
10533
+ * @summary Send Supplier Email
10534
+ * @param {number} id Order ID
10535
+ * @param {number} batchId Batch ID
10536
+ * @param {*} [options] Override http request option.
10537
+ * @throws {RequiredError}
10538
+ * @memberof OrdersApi
10539
+ */
10540
+ OrdersApi.prototype.postSendSupplierEmail = function (id, batchId, options) {
10541
+ var _this = this;
10542
+ return (0, exports.OrdersApiFp)(this.configuration).postSendSupplierEmail(id, batchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10543
+ };
10544
+ /**
10545
+ * Split Order
10546
+ * @summary Split Order
10547
+ * @param {number} id Order ID
10548
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
10549
+ * @param {*} [options] Override http request option.
10550
+ * @throws {RequiredError}
10551
+ * @memberof OrdersApi
10552
+ */
10553
+ OrdersApi.prototype.postSplitOrder = function (id, postSplitOrderRequest, options) {
10554
+ var _this = this;
10555
+ return (0, exports.OrdersApiFp)(this.configuration).postSplitOrder(id, postSplitOrderRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10556
+ };
10557
+ /**
10558
+ * Allocate Items To Supplier
10559
+ * @summary Allocate Items To Supplier
10560
+ * @param {number} id Order ID
10561
+ * @param {number} supplierId Supplier ID
10562
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
10563
+ * @param {*} [options] Override http request option.
10564
+ * @throws {RequiredError}
10565
+ * @memberof OrdersApi
10566
+ */
10567
+ OrdersApi.prototype.putAllocateItems = function (id, supplierId, putAllocateItemsRequest, options) {
10568
+ var _this = this;
10569
+ return (0, exports.OrdersApiFp)(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10570
+ };
10571
+ /**
10572
+ * Update Shipment (Admin)
10573
+ * @summary Update Shipment (Admin)
10574
+ * @param {number} id Order ID
10575
+ * @param {number} batchId Batch ID
10576
+ * @param {number} shipmentId Shipment ID
10577
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10578
+ * @param {*} [options] Override http request option.
10579
+ * @throws {RequiredError}
10580
+ * @memberof OrdersApi
10581
+ */
10582
+ OrdersApi.prototype.putCreateShipment = function (id, batchId, shipmentId, shipmentRequestDTO, options) {
10583
+ var _this = this;
10584
+ return (0, exports.OrdersApiFp)(this.configuration).putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10585
+ };
9208
10586
  /**
9209
10587
  * Update An Order (Admin)
9210
10588
  * @summary Update An Order (Admin)
@@ -9254,6 +10632,14 @@ exports.GetGetOrdersFilterEnum = {
9254
10632
  All: 'ALL',
9255
10633
  BackOrders: 'BACK_ORDERS'
9256
10634
  };
10635
+ /**
10636
+ * @export
10637
+ */
10638
+ exports.PostPrintShippingLabelPrinterEnum = {
10639
+ NUMBER_1: 1,
10640
+ NUMBER_2: 2,
10641
+ NUMBER_3: 3
10642
+ };
9257
10643
  /**
9258
10644
  * PricingApi - axios parameter creator
9259
10645
  * @export