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

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 +229 -249
  2. package/README.md +1 -36
  3. package/api.ts +212 -2463
  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 +104 -1769
  9. package/dist/api.js +94 -1480
  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/docs/AccountsApi.md +1 -1
  19. package/docs/CRMApi.md +1 -1
  20. package/docs/Class3CXApi.md +1 -1
  21. package/docs/Class3CXInstallationWizardApi.md +1 -1
  22. package/docs/Class3CXInstallationsApi.md +1 -1
  23. package/docs/Class3CXIntegrationsApi.md +1 -1
  24. package/docs/Class3CXMultiTenantApi.md +1 -1
  25. package/docs/MyPBXToolsApi.md +1 -1
  26. package/docs/OAuth20Api.md +1 -1
  27. package/docs/OrdersApi.md +23 -861
  28. package/docs/PricingApi.md +1 -1
  29. package/docs/ProductsApi.md +1 -1
  30. package/docs/ProvisioningApi.md +1 -1
  31. package/docs/SIPTrunksApi.md +1 -1
  32. package/docs/SMSApi.md +1 -1
  33. package/docs/ServicesApi.md +1 -1
  34. package/docs/ShippingApi.md +1 -1
  35. package/docs/StockManagementApi.md +1 -1
  36. package/docs/SystemApi.md +1 -1
  37. package/docs/TicketsApi.md +1 -1
  38. package/docs/WebhooksApi.md +1 -1
  39. package/getEnums.php +31 -31
  40. package/index.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/models/CourierEnum.d.ts +0 -18
  43. package/dist/models/CourierEnum.js +0 -20
  44. package/dist/models/PrinterEnum.d.ts +0 -18
  45. package/dist/models/PrinterEnum.js +0 -20
  46. package/docs/BatchDTO.md +0 -59
  47. package/docs/CreditNoteDTO.md +0 -21
  48. package/docs/CreditNoteEntity.md +0 -29
  49. package/docs/CreditNoteItemDTO.md +0 -25
  50. package/docs/CreditNoteItemEntity.md +0 -29
  51. package/docs/CreditNoteModel.md +0 -29
  52. package/docs/OrderDetailsDTO.md +0 -63
  53. package/docs/OrderItemDTO.md +0 -53
  54. package/docs/OrderedItemModel.md +0 -47
  55. package/docs/PostAddOrderNoteRequest.md +0 -20
  56. package/docs/PostSplitOrderRequest.md +0 -20
  57. package/docs/PrinterEntity.md +0 -29
  58. package/docs/PutAllocateItemsRequest.md +0 -20
  59. package/docs/PutAllocateItemsRequestItemsInner.md +0 -22
  60. package/docs/ShipmentDTO.md +0 -31
  61. package/docs/ShipmentItemDTO.md +0 -23
  62. package/docs/ShipmentItemModel.md +0 -29
  63. package/docs/ShipmentModel.md +0 -43
  64. package/docs/ShipmentRequestDTO.md +0 -31
  65. package/docs/ShippingRequestDTO.md +0 -24
  66. package/docs/SupplierModel.md +0 -37
  67. package/hs_err_pid58424.log +0 -247
  68. package/models/CourierEnum.ts +0 -19
  69. package/models/PrinterEnum.ts +0 -19
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://api.yellowgrid.local` 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://bitbucket.org` 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.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;
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;
90
90
  var axios_1 = require("axios");
91
91
  // Some imports not used depending on template conditions
92
92
  // @ts-ignore
@@ -100,87 +100,6 @@ 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
- };
184
103
  exports.DivertResponseModelStatusEnum = {
185
104
  Enabled: 'enabled',
186
105
  Disabled: 'disabled'
@@ -277,21 +196,6 @@ exports.ServiceStatusDTOStatusEnum = {
277
196
  _1: '1',
278
197
  _2: '2'
279
198
  };
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
- };
295
199
  exports.ShippingServiceDTOCourierEnum = {
296
200
  Dpd: 'DPD',
297
201
  ChorltonPallet: 'Chorlton Pallet',
@@ -8559,94 +8463,6 @@ exports.PostAuthoriseScopeEnum = {
8559
8463
  var OrdersApiAxiosParamCreator = function (configuration) {
8560
8464
  var _this = this;
8561
8465
  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
- },
8650
8466
  /**
8651
8467
  * Delete Orders (Beta)
8652
8468
  * @summary Delete Orders (Beta)
@@ -8721,43 +8537,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8721
8537
  });
8722
8538
  });
8723
8539
  },
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
- },
8761
8540
  /**
8762
8541
  * Get Editable Order (Beta)
8763
8542
  * @summary Get Editable Order (Beta)
@@ -8795,43 +8574,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8795
8574
  });
8796
8575
  });
8797
8576
  },
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
- },
8835
8577
  /**
8836
8578
  * Get Orders (Beta)
8837
8579
  * @summary Get Orders (Beta)
@@ -8893,46 +8635,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8893
8635
  });
8894
8636
  });
8895
8637
  },
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
- },
8936
8638
  /**
8937
8639
  * Create An Order (Admin)
8938
8640
  * @summary Create An Order (Admin)
@@ -8974,30 +8676,23 @@ var OrdersApiAxiosParamCreator = function (configuration) {
8974
8676
  });
8975
8677
  },
8976
8678
  /**
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
8679
+ * Create An Order (Beta)
8680
+ * @summary Create An Order (Beta)
8681
+ * @param {boolean} [readonly] Readonly Order
8682
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8982
8683
  * @param {*} [options] Override http request option.
8983
8684
  * @throws {RequiredError}
8984
8685
  */
8985
- postCreateConsignment: function (id_1, shipmentId_1, shippingRequestDTO_1) {
8686
+ postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
8986
8687
  var args_1 = [];
8987
- for (var _i = 3; _i < arguments.length; _i++) {
8988
- args_1[_i - 3] = arguments[_i];
8688
+ for (var _i = 2; _i < arguments.length; _i++) {
8689
+ args_1[_i - 2] = arguments[_i];
8989
8690
  }
8990
- return __awaiter(_this, __spreadArray([id_1, shipmentId_1, shippingRequestDTO_1], args_1, true), void 0, function (id, shipmentId, shippingRequestDTO, options) {
8691
+ return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
8991
8692
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8992
8693
  if (options === void 0) { options = {}; }
8993
8694
  return __generator(this, function (_a) {
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)));
8695
+ localVarPath = "/orders";
9001
8696
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9002
8697
  if (configuration) {
9003
8698
  baseOptions = configuration.baseOptions;
@@ -9005,11 +8700,14 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9005
8700
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9006
8701
  localVarHeaderParameter = {};
9007
8702
  localVarQueryParameter = {};
8703
+ if (readonly !== undefined) {
8704
+ localVarQueryParameter['readonly'] = readonly;
8705
+ }
9008
8706
  localVarHeaderParameter['Content-Type'] = 'application/json';
9009
8707
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9010
8708
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9011
8709
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9012
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingRequestDTO, localVarRequestOptions, configuration);
8710
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
9013
8711
  return [2 /*return*/, {
9014
8712
  url: (0, common_1.toPathString)(localVarUrlObj),
9015
8713
  options: localVarRequestOptions,
@@ -9018,42 +8716,42 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9018
8716
  });
9019
8717
  },
9020
8718
  /**
9021
- * Create Shipment (Admin)
9022
- * @summary Create Shipment (Admin)
8719
+ * Update An Order (Admin)
8720
+ * @summary Update An Order (Admin)
9023
8721
  * @param {number} id Order ID
9024
- * @param {number} batchId Batch ID
9025
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
8722
+ * @param {boolean} [readonly] Readonly Order
8723
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
9026
8724
  * @param {*} [options] Override http request option.
9027
8725
  * @throws {RequiredError}
9028
8726
  */
9029
- postCreateShipment: function (id_1, batchId_1, shipmentRequestDTO_1) {
8727
+ putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
9030
8728
  var args_1 = [];
9031
8729
  for (var _i = 3; _i < arguments.length; _i++) {
9032
8730
  args_1[_i - 3] = arguments[_i];
9033
8731
  }
9034
- return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentRequestDTO_1], args_1, true), void 0, function (id, batchId, shipmentRequestDTO, options) {
8732
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
9035
8733
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9036
8734
  if (options === void 0) { options = {}; }
9037
8735
  return __generator(this, function (_a) {
9038
8736
  // verify required parameter 'id' is not null or undefined
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)));
8737
+ (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
8738
+ localVarPath = "/admin/orders/{id}"
8739
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9045
8740
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9046
8741
  if (configuration) {
9047
8742
  baseOptions = configuration.baseOptions;
9048
8743
  }
9049
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8744
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9050
8745
  localVarHeaderParameter = {};
9051
8746
  localVarQueryParameter = {};
8747
+ if (readonly !== undefined) {
8748
+ localVarQueryParameter['readonly'] = readonly;
8749
+ }
9052
8750
  localVarHeaderParameter['Content-Type'] = 'application/json';
9053
8751
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9054
8752
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9055
8753
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9056
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shipmentRequestDTO, localVarRequestOptions, configuration);
8754
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
9057
8755
  return [2 /*return*/, {
9058
8756
  url: (0, common_1.toPathString)(localVarUrlObj),
9059
8757
  options: localVarRequestOptions,
@@ -9062,28 +8760,32 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9062
8760
  });
9063
8761
  },
9064
8762
  /**
9065
- * Create An Order (Beta)
9066
- * @summary Create An Order (Beta)
8763
+ * Update An Order (Beta)
8764
+ * @summary Update An Order (Beta)
8765
+ * @param {number} id Order ID
9067
8766
  * @param {boolean} [readonly] Readonly Order
9068
8767
  * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9069
8768
  * @param {*} [options] Override http request option.
9070
8769
  * @throws {RequiredError}
9071
8770
  */
9072
- postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
8771
+ putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
9073
8772
  var args_1 = [];
9074
- for (var _i = 2; _i < arguments.length; _i++) {
9075
- args_1[_i - 2] = arguments[_i];
8773
+ for (var _i = 3; _i < arguments.length; _i++) {
8774
+ args_1[_i - 3] = arguments[_i];
9076
8775
  }
9077
- return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
8776
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
9078
8777
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9079
8778
  if (options === void 0) { options = {}; }
9080
8779
  return __generator(this, function (_a) {
9081
- localVarPath = "/orders";
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)));
9082
8784
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9083
8785
  if (configuration) {
9084
8786
  baseOptions = configuration.baseOptions;
9085
8787
  }
9086
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8788
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9087
8789
  localVarHeaderParameter = {};
9088
8790
  localVarQueryParameter = {};
9089
8791
  if (readonly !== undefined) {
@@ -9101,891 +8803,157 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9101
8803
  });
9102
8804
  });
9103
8805
  },
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 {
9104
8816
  /**
9105
- * Issue Credit (Admin)
9106
- * @summary Issue Credit (Admin)
8817
+ * Delete Orders (Beta)
8818
+ * @summary Delete Orders (Beta)
9107
8819
  * @param {number} id Order ID
9108
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
9109
8820
  * @param {*} [options] Override http request option.
9110
8821
  * @throws {RequiredError}
9111
8822
  */
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
- /**
9580
- * Get Editable Order (Admin)
9581
- * @summary Get Editable Order (Admin)
9582
- * @param {number} id Order ID
9583
- * @param {*} [options] Override http request option.
9584
- * @throws {RequiredError}
9585
- */
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) {
8823
+ deleteUpdateOrder: function (id, options) {
9856
8824
  return __awaiter(this, void 0, void 0, function () {
9857
8825
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9858
8826
  var _a, _b, _c;
9859
8827
  return __generator(this, function (_d) {
9860
8828
  switch (_d.label) {
9861
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postPrintShippingLabel(id, shipmentId, printer, options)];
8829
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
9862
8830
  case 1:
9863
8831
  localVarAxiosArgs = _d.sent();
9864
8832
  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;
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;
9866
8834
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9867
8835
  }
9868
8836
  });
9869
8837
  });
9870
8838
  },
9871
8839
  /**
9872
- * Send Order Email
9873
- * @summary Send Order Email
8840
+ * Get Editable Order (Admin)
8841
+ * @summary Get Editable Order (Admin)
9874
8842
  * @param {number} id Order ID
9875
- * @param {string} email Email Address
9876
8843
  * @param {*} [options] Override http request option.
9877
8844
  * @throws {RequiredError}
9878
8845
  */
9879
- postSendOrderEmail: function (id, email, options) {
8846
+ getGetAdminEditableOrder: function (id, options) {
9880
8847
  return __awaiter(this, void 0, void 0, function () {
9881
8848
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9882
8849
  var _a, _b, _c;
9883
8850
  return __generator(this, function (_d) {
9884
8851
  switch (_d.label) {
9885
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendOrderEmail(id, email, options)];
8852
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
9886
8853
  case 1:
9887
8854
  localVarAxiosArgs = _d.sent();
9888
8855
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
9890
8857
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9891
8858
  }
9892
8859
  });
9893
8860
  });
9894
8861
  },
9895
8862
  /**
9896
- * Send Supplier Email
9897
- * @summary Send Supplier Email
8863
+ * Get Editable Order (Beta)
8864
+ * @summary Get Editable Order (Beta)
9898
8865
  * @param {number} id Order ID
9899
- * @param {number} batchId Batch ID
9900
8866
  * @param {*} [options] Override http request option.
9901
8867
  * @throws {RequiredError}
9902
8868
  */
9903
- postSendSupplierEmail: function (id, batchId, options) {
8869
+ getGetEditableOrder: function (id, options) {
9904
8870
  return __awaiter(this, void 0, void 0, function () {
9905
8871
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9906
8872
  var _a, _b, _c;
9907
8873
  return __generator(this, function (_d) {
9908
8874
  switch (_d.label) {
9909
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendSupplierEmail(id, batchId, options)];
8875
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
9910
8876
  case 1:
9911
8877
  localVarAxiosArgs = _d.sent();
9912
8878
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
9914
8880
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9915
8881
  }
9916
8882
  });
9917
8883
  });
9918
8884
  },
9919
8885
  /**
9920
- * Split Order
9921
- * @summary Split Order
9922
- * @param {number} id Order ID
9923
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
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
9924
8895
  * @param {*} [options] Override http request option.
9925
8896
  * @throws {RequiredError}
9926
8897
  */
9927
- postSplitOrder: function (id, postSplitOrderRequest, options) {
8898
+ getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
9928
8899
  return __awaiter(this, void 0, void 0, function () {
9929
8900
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9930
8901
  var _a, _b, _c;
9931
8902
  return __generator(this, function (_d) {
9932
8903
  switch (_d.label) {
9933
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSplitOrder(id, postSplitOrderRequest, options)];
8904
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options)];
9934
8905
  case 1:
9935
8906
  localVarAxiosArgs = _d.sent();
9936
8907
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
9938
8909
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9939
8910
  }
9940
8911
  });
9941
8912
  });
9942
8913
  },
9943
8914
  /**
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]
8915
+ * Create An Order (Admin)
8916
+ * @summary Create An Order (Admin)
8917
+ * @param {boolean} [readonly] Readonly Order
8918
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
9949
8919
  * @param {*} [options] Override http request option.
9950
8920
  * @throws {RequiredError}
9951
8921
  */
9952
- putAllocateItems: function (id, supplierId, putAllocateItemsRequest, options) {
8922
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
9953
8923
  return __awaiter(this, void 0, void 0, function () {
9954
8924
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9955
8925
  var _a, _b, _c;
9956
8926
  return __generator(this, function (_d) {
9957
8927
  switch (_d.label) {
9958
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putAllocateItems(id, supplierId, putAllocateItemsRequest, options)];
8928
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
9959
8929
  case 1:
9960
8930
  localVarAxiosArgs = _d.sent();
9961
8931
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
9963
8933
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9964
8934
  }
9965
8935
  });
9966
8936
  });
9967
8937
  },
9968
8938
  /**
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
8939
+ * Create An Order (Beta)
8940
+ * @summary Create An Order (Beta)
8941
+ * @param {boolean} [readonly] Readonly Order
8942
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9975
8943
  * @param {*} [options] Override http request option.
9976
8944
  * @throws {RequiredError}
9977
8945
  */
9978
- putCreateShipment: function (id, batchId, shipmentId, shipmentRequestDTO, options) {
8946
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
9979
8947
  return __awaiter(this, void 0, void 0, function () {
9980
8948
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9981
8949
  var _a, _b, _c;
9982
8950
  return __generator(this, function (_d) {
9983
8951
  switch (_d.label) {
9984
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options)];
8952
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
9985
8953
  case 1:
9986
8954
  localVarAxiosArgs = _d.sent();
9987
8955
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
9989
8957
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9990
8958
  }
9991
8959
  });
@@ -10051,29 +9019,6 @@ exports.OrdersApiFp = OrdersApiFp;
10051
9019
  var OrdersApiFactory = function (configuration, basePath, axios) {
10052
9020
  var localVarFp = (0, exports.OrdersApiFp)(configuration);
10053
9021
  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
- },
10077
9022
  /**
10078
9023
  * Delete Orders (Beta)
10079
9024
  * @summary Delete Orders (Beta)
@@ -10094,16 +9039,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10094
9039
  getGetAdminEditableOrder: function (id, options) {
10095
9040
  return localVarFp.getGetAdminEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
10096
9041
  },
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
- },
10107
9042
  /**
10108
9043
  * Get Editable Order (Beta)
10109
9044
  * @summary Get Editable Order (Beta)
@@ -10114,16 +9049,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10114
9049
  getGetEditableOrder: function (id, options) {
10115
9050
  return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
10116
9051
  },
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
- },
10127
9052
  /**
10128
9053
  * Get Orders (Beta)
10129
9054
  * @summary Get Orders (Beta)
@@ -10140,17 +9065,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10140
9065
  getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
10141
9066
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
10142
9067
  },
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
- },
10154
9068
  /**
10155
9069
  * Create An Order (Admin)
10156
9070
  * @summary Create An Order (Admin)
@@ -10162,30 +9076,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10162
9076
  postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
10163
9077
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
10164
9078
  },
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
- },
10189
9079
  /**
10190
9080
  * Create An Order (Beta)
10191
9081
  * @summary Create An Order (Beta)
@@ -10197,87 +9087,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10197
9087
  postGetOrders: function (readonly, customerOrderRequestDTO, options) {
10198
9088
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
10199
9089
  },
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
- },
10281
9090
  /**
10282
9091
  * Update An Order (Admin)
10283
9092
  * @summary Update An Order (Admin)
@@ -10316,33 +9125,6 @@ var OrdersApi = /** @class */ (function (_super) {
10316
9125
  function OrdersApi() {
10317
9126
  return _super !== null && _super.apply(this, arguments) || this;
10318
9127
  }
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
- };
10346
9128
  /**
10347
9129
  * Delete Orders (Beta)
10348
9130
  * @summary Delete Orders (Beta)
@@ -10367,18 +9149,6 @@ var OrdersApi = /** @class */ (function (_super) {
10367
9149
  var _this = this;
10368
9150
  return (0, exports.OrdersApiFp)(this.configuration).getGetAdminEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
10369
9151
  };
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
- };
10382
9152
  /**
10383
9153
  * Get Editable Order (Beta)
10384
9154
  * @summary Get Editable Order (Beta)
@@ -10391,18 +9161,6 @@ var OrdersApi = /** @class */ (function (_super) {
10391
9161
  var _this = this;
10392
9162
  return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
10393
9163
  };
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
- };
10406
9164
  /**
10407
9165
  * Get Orders (Beta)
10408
9166
  * @summary Get Orders (Beta)
@@ -10421,19 +9179,6 @@ var OrdersApi = /** @class */ (function (_super) {
10421
9179
  var _this = this;
10422
9180
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10423
9181
  };
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
- };
10437
9182
  /**
10438
9183
  * Create An Order (Admin)
10439
9184
  * @summary Create An Order (Admin)
@@ -10447,34 +9192,6 @@ var OrdersApi = /** @class */ (function (_super) {
10447
9192
  var _this = this;
10448
9193
  return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10449
9194
  };
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
- };
10478
9195
  /**
10479
9196
  * Create An Order (Beta)
10480
9197
  * @summary Create An Order (Beta)
@@ -10488,101 +9205,6 @@ var OrdersApi = /** @class */ (function (_super) {
10488
9205
  var _this = this;
10489
9206
  return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10490
9207
  };
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
- };
10586
9208
  /**
10587
9209
  * Update An Order (Admin)
10588
9210
  * @summary Update An Order (Admin)
@@ -10632,14 +9254,6 @@ exports.GetGetOrdersFilterEnum = {
10632
9254
  All: 'ALL',
10633
9255
  BackOrders: 'BACK_ORDERS'
10634
9256
  };
10635
- /**
10636
- * @export
10637
- */
10638
- exports.PostPrintShippingLabelPrinterEnum = {
10639
- NUMBER_1: 1,
10640
- NUMBER_2: 2,
10641
- NUMBER_3: 3
10642
- };
10643
9257
  /**
10644
9258
  * PricingApi - axios parameter creator
10645
9259
  * @export