yellowgrid-api-ts 3.2.100-dev.0 → 3.2.102-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +28 -1
  2. package/README.md +60 -1
  3. package/api.ts +3441 -182
  4. package/dist/api.d.ts +2218 -157
  5. package/dist/api.js +3028 -235
  6. package/docs/AccountPageDetailsDTO.md +35 -0
  7. package/docs/AccountsApi.md +352 -4
  8. package/docs/AdminNumberPortDTO.md +4 -0
  9. package/docs/BatchDTO.md +59 -0
  10. package/docs/CreditNoteDTO.md +21 -0
  11. package/docs/CreditNoteEntity.md +29 -0
  12. package/docs/CreditNoteItemDTO.md +25 -0
  13. package/docs/CreditNoteItemEntity.md +29 -0
  14. package/docs/CreditNoteItemModel.md +29 -0
  15. package/docs/CreditNoteModel.md +31 -0
  16. package/docs/NumberPortingApi.md +60 -5
  17. package/docs/OAuth20Api.md +3 -3
  18. package/docs/OrderDetailsDTO.md +65 -0
  19. package/docs/OrderItemDTO.md +55 -0
  20. package/docs/OrderedItemModel.md +47 -0
  21. package/docs/OrdersApi.md +1325 -74
  22. package/docs/PatchUpdateAccountCnameRequest.md +20 -0
  23. package/docs/PostAddAdminNoteRequest.md +20 -0
  24. package/docs/PostAddOrderNoteRequest.md +20 -0
  25. package/docs/PostSplitOrderRequest.md +20 -0
  26. package/docs/PrinterEntity.md +29 -0
  27. package/docs/ProductsApi.md +58 -0
  28. package/docs/PutAllocateItemsRequest.md +20 -0
  29. package/docs/PutAllocateItemsRequestItemsInner.md +22 -0
  30. package/docs/SMSApi.md +56 -0
  31. package/docs/ShipmentDTO.md +41 -0
  32. package/docs/ShipmentItemDTO.md +23 -0
  33. package/docs/ShipmentItemEntity.md +1 -1
  34. package/docs/ShipmentItemModel.md +29 -0
  35. package/docs/ShipmentModel.md +43 -0
  36. package/docs/ShipmentRequestDTO.md +31 -0
  37. package/docs/ShippingRequestDTO.md +28 -0
  38. package/docs/SmsAccountDTO.md +31 -0
  39. package/docs/SmsAccountRequestDTO.md +29 -0
  40. package/docs/SupplierItemModel.md +35 -0
  41. package/docs/SupplierModel.md +37 -0
  42. package/docs/TcxSbcDTO.md +2 -0
  43. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -84,9 +84,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
88
- exports.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.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = 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 = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = void 0;
87
+ exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = 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.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = 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.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.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = 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 = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = 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 = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = void 0;
90
90
  var axios_1 = require("axios");
91
91
  // Some imports not used depending on template conditions
92
92
  // @ts-ignore
@@ -100,6 +100,90 @@ 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
+ NumberPorts: 'number_ports',
140
+ NumberPortRanges: 'number_port_ranges',
141
+ NumberPortNotes: 'number_port_notes',
142
+ PopsOfflineInstances: 'pops_offline_instances',
143
+ PopsOrderedItems: 'pops_ordered_items',
144
+ PopsPrizes: 'pops_prizes',
145
+ PopsPrinters: 'pops_printers',
146
+ PopsPromoCodes: 'pops_promo_codes',
147
+ PopsPromoItems: 'pops_promo_items',
148
+ PopsProvisioning: 'pops_provisioning',
149
+ S3Buckets: 's3_buckets',
150
+ PopsShipmentAddress: 'pops_shipment_address',
151
+ PopsShipments: 'pops_shipments',
152
+ PopsShipmentItems: 'pops_shipment_items',
153
+ PopsSipTrunkChangeQueue: 'pops_sip_trunk_change_queue',
154
+ PopsSipTrunks: 'pops_sip_trunks',
155
+ PopsSms: 'pops_sms',
156
+ PopsSmsNumbers: 'pops_sms_numbers',
157
+ PopsSmsWhitelist: 'pops_sms_whitelist',
158
+ PopsDistCourier: 'pops_dist_courier',
159
+ PopsDistDeductions: 'pops_dist_deductions',
160
+ PopsDistOrder: 'pops_dist_order',
161
+ PopsDistItems: 'pops_dist_items',
162
+ PopsDistPrices: 'pops_dist_prices',
163
+ PopsDistManufacturer: 'pops_dist_manufacturer',
164
+ PopsStockTransactions: 'pops_stock_transactions',
165
+ PopsSuppliers: 'pops_suppliers',
166
+ PopsSupplierItems: 'pops_supplier_items',
167
+ Pops3cxBackup: 'pops_3cx_backup',
168
+ Pops3cxBilling: 'pops_3cx_billing',
169
+ PopsDeadLicences: 'pops_dead_licences',
170
+ Pops3cxExts: 'pops_3cx_exts',
171
+ PopsHostingPricing: 'pops_hosting_pricing',
172
+ Pops3cxKeys: 'pops_3cx_keys',
173
+ Pops3cxMacs: 'pops_3cx_macs',
174
+ Pops3cxNumbers: 'pops_3cx_numbers',
175
+ Pops3cxOfficeHours: 'pops_3cx_office_hours',
176
+ Pops3cxPhones: 'pops_3cx_phones',
177
+ Pops3cxSbc: 'pops_3cx_sbc',
178
+ Pops3cxSetup: 'pops_3cx_setup',
179
+ Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
180
+ Pops3cxUsers: 'pops_3cx_users',
181
+ PopsUsers: 'pops_users',
182
+ Webhook: 'webhook',
183
+ PopsXeroLog: 'pops_xero_log',
184
+ Oauth2Clients: 'oauth2_clients',
185
+ Oauth2Tokens: 'oauth2_tokens'
186
+ };
103
187
  exports.DivertResponseModelStatusEnum = {
104
188
  Enabled: 'enabled',
105
189
  Disabled: 'disabled'
@@ -196,6 +280,26 @@ exports.ServiceStatusDTOStatusEnum = {
196
280
  _1: '1',
197
281
  _2: '2'
198
282
  };
283
+ exports.ShipmentDTOCourierEnum = {
284
+ Dpd: 'DPD',
285
+ ChorltonPallet: 'Chorlton Pallet',
286
+ Pops: 'POPS'
287
+ };
288
+ exports.ShipmentRequestDTOCourierEnum = {
289
+ Dpd: 'DPD',
290
+ ChorltonPallet: 'Chorlton Pallet',
291
+ Pops: 'POPS'
292
+ };
293
+ exports.ShippingRequestDTOCourierEnum = {
294
+ Dpd: 'DPD',
295
+ ChorltonPallet: 'Chorlton Pallet',
296
+ Pops: 'POPS'
297
+ };
298
+ exports.ShippingRequestDTOPrinterEnum = {
299
+ NUMBER_1: 1,
300
+ NUMBER_2: 2,
301
+ NUMBER_3: 3
302
+ };
199
303
  exports.ShippingServiceDTOCourierEnum = {
200
304
  Dpd: 'DPD',
201
305
  ChorltonPallet: 'Chorlton Pallet',
@@ -222,6 +326,16 @@ exports.SipTrunkChangeResponseModelTypeEnum = {
222
326
  Fraud: 'Fraud',
223
327
  CallBarring: 'Call Barring'
224
328
  };
329
+ exports.SmsAccountRequestDTOProviderEnum = {
330
+ NUMBER_1: 1
331
+ };
332
+ exports.SmsAccountRequestDTOTypeEnum = {
333
+ Local: 'local',
334
+ TollFree: 'toll_free',
335
+ Mobile: 'mobile',
336
+ National: 'national',
337
+ SharedCost: 'shared_cost'
338
+ };
225
339
  exports.SmsPhoneNumberModelStatusEnum = {
226
340
  Queued: 'queued',
227
341
  Sending: 'sending',
@@ -489,6 +603,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
489
603
  });
490
604
  });
491
605
  },
606
+ /**
607
+ * Get Account Page Details
608
+ * @param {string} id Xero ID
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ getGetAccountPageInfo: function (id_1) {
613
+ var args_1 = [];
614
+ for (var _i = 1; _i < arguments.length; _i++) {
615
+ args_1[_i - 1] = arguments[_i];
616
+ }
617
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
618
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
619
+ if (options === void 0) { options = {}; }
620
+ return __generator(this, function (_a) {
621
+ // verify required parameter 'id' is not null or undefined
622
+ (0, common_1.assertParamExists)('getGetAccountPageInfo', 'id', id);
623
+ localVarPath = "/{id}"
624
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
625
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
626
+ if (configuration) {
627
+ baseOptions = configuration.baseOptions;
628
+ }
629
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
630
+ localVarHeaderParameter = {};
631
+ localVarQueryParameter = {};
632
+ localVarHeaderParameter['Accept'] = 'application/json';
633
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
634
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
635
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
636
+ return [2 /*return*/, {
637
+ url: (0, common_1.toPathString)(localVarUrlObj),
638
+ options: localVarRequestOptions,
639
+ }];
640
+ });
641
+ });
642
+ },
492
643
  /**
493
644
  * Get Accounts
494
645
  * @summary Get Accounts
@@ -646,18 +797,98 @@ var AccountsApiAxiosParamCreator = function (configuration) {
646
797
  });
647
798
  });
648
799
  },
800
+ /**
801
+ * Set Account Portal Access
802
+ * @param {string} id Xero ID
803
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ patchSetPortalAccess: function (id_1, state_1) {
808
+ var args_1 = [];
809
+ for (var _i = 2; _i < arguments.length; _i++) {
810
+ args_1[_i - 2] = arguments[_i];
811
+ }
812
+ return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
813
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
814
+ if (options === void 0) { options = {}; }
815
+ return __generator(this, function (_a) {
816
+ // verify required parameter 'id' is not null or undefined
817
+ (0, common_1.assertParamExists)('patchSetPortalAccess', 'id', id);
818
+ // verify required parameter 'state' is not null or undefined
819
+ (0, common_1.assertParamExists)('patchSetPortalAccess', 'state', state);
820
+ localVarPath = "/{id}/portal/access/{state}"
821
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
822
+ .replace("{".concat("state", "}"), encodeURIComponent(String(state)));
823
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
824
+ if (configuration) {
825
+ baseOptions = configuration.baseOptions;
826
+ }
827
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
828
+ localVarHeaderParameter = {};
829
+ localVarQueryParameter = {};
830
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
831
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
832
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
833
+ return [2 /*return*/, {
834
+ url: (0, common_1.toPathString)(localVarUrlObj),
835
+ options: localVarRequestOptions,
836
+ }];
837
+ });
838
+ });
839
+ },
840
+ /**
841
+ * Set Account Prize Promo
842
+ * @param {string} id Xero ID
843
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ */
847
+ patchSetPrizePromo: function (id_1, state_1) {
848
+ var args_1 = [];
849
+ for (var _i = 2; _i < arguments.length; _i++) {
850
+ args_1[_i - 2] = arguments[_i];
851
+ }
852
+ return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
853
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
854
+ if (options === void 0) { options = {}; }
855
+ return __generator(this, function (_a) {
856
+ // verify required parameter 'id' is not null or undefined
857
+ (0, common_1.assertParamExists)('patchSetPrizePromo', 'id', id);
858
+ // verify required parameter 'state' is not null or undefined
859
+ (0, common_1.assertParamExists)('patchSetPrizePromo', 'state', state);
860
+ localVarPath = "/{id}/prizes/{state}"
861
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
862
+ .replace("{".concat("state", "}"), encodeURIComponent(String(state)));
863
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
864
+ if (configuration) {
865
+ baseOptions = configuration.baseOptions;
866
+ }
867
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
868
+ localVarHeaderParameter = {};
869
+ localVarQueryParameter = {};
870
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
871
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
872
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
873
+ return [2 /*return*/, {
874
+ url: (0, common_1.toPathString)(localVarUrlObj),
875
+ options: localVarRequestOptions,
876
+ }];
877
+ });
878
+ });
879
+ },
649
880
  /**
650
881
  * Set 3CX Wizard CNAME
651
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
882
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
652
883
  * @param {*} [options] Override http request option.
653
884
  * @throws {RequiredError}
654
885
  */
655
- patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest_1) {
886
+ patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest_1) {
656
887
  var args_1 = [];
657
888
  for (var _i = 1; _i < arguments.length; _i++) {
658
889
  args_1[_i - 1] = arguments[_i];
659
890
  }
660
- return __awaiter(_this, __spreadArray([patchSetTcxWizardCnameRequest_1], args_1, true), void 0, function (patchSetTcxWizardCnameRequest, options) {
891
+ return __awaiter(_this, __spreadArray([patchUpdateAccountCnameRequest_1], args_1, true), void 0, function (patchUpdateAccountCnameRequest, options) {
661
892
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
662
893
  if (options === void 0) { options = {}; }
663
894
  return __generator(this, function (_a) {
@@ -673,7 +904,46 @@ var AccountsApiAxiosParamCreator = function (configuration) {
673
904
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
674
905
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
675
906
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
676
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchSetTcxWizardCnameRequest, localVarRequestOptions, configuration);
907
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration);
908
+ return [2 /*return*/, {
909
+ url: (0, common_1.toPathString)(localVarUrlObj),
910
+ options: localVarRequestOptions,
911
+ }];
912
+ });
913
+ });
914
+ },
915
+ /**
916
+ * Set Account Prize Promo
917
+ * @param {string} id Xero ID
918
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ patchUpdateAccountCname: function (id_1, patchUpdateAccountCnameRequest_1) {
923
+ var args_1 = [];
924
+ for (var _i = 2; _i < arguments.length; _i++) {
925
+ args_1[_i - 2] = arguments[_i];
926
+ }
927
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountCnameRequest_1], args_1, true), void 0, function (id, patchUpdateAccountCnameRequest, options) {
928
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
929
+ if (options === void 0) { options = {}; }
930
+ return __generator(this, function (_a) {
931
+ // verify required parameter 'id' is not null or undefined
932
+ (0, common_1.assertParamExists)('patchUpdateAccountCname', 'id', id);
933
+ localVarPath = "/{id}/cname"
934
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
935
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
936
+ if (configuration) {
937
+ baseOptions = configuration.baseOptions;
938
+ }
939
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
940
+ localVarHeaderParameter = {};
941
+ localVarQueryParameter = {};
942
+ localVarHeaderParameter['Content-Type'] = 'application/json';
943
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
944
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
945
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
946
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration);
677
947
  return [2 /*return*/, {
678
948
  url: (0, common_1.toPathString)(localVarUrlObj),
679
949
  options: localVarRequestOptions,
@@ -1028,6 +1298,84 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1028
1298
  });
1029
1299
  });
1030
1300
  },
1301
+ /**
1302
+ * Update Account Billing Address
1303
+ * @param {string} id Xero ID
1304
+ * @param {AddressModel} [addressModel] Updated Billing Address
1305
+ * @param {*} [options] Override http request option.
1306
+ * @throws {RequiredError}
1307
+ */
1308
+ putUpdateBillingAddress: function (id_1, addressModel_1) {
1309
+ var args_1 = [];
1310
+ for (var _i = 2; _i < arguments.length; _i++) {
1311
+ args_1[_i - 2] = arguments[_i];
1312
+ }
1313
+ return __awaiter(_this, __spreadArray([id_1, addressModel_1], args_1, true), void 0, function (id, addressModel, options) {
1314
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1315
+ if (options === void 0) { options = {}; }
1316
+ return __generator(this, function (_a) {
1317
+ // verify required parameter 'id' is not null or undefined
1318
+ (0, common_1.assertParamExists)('putUpdateBillingAddress', 'id', id);
1319
+ localVarPath = "/{id}/billing/address"
1320
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1321
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1322
+ if (configuration) {
1323
+ baseOptions = configuration.baseOptions;
1324
+ }
1325
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1326
+ localVarHeaderParameter = {};
1327
+ localVarQueryParameter = {};
1328
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1329
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1330
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1331
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1332
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressModel, localVarRequestOptions, configuration);
1333
+ return [2 /*return*/, {
1334
+ url: (0, common_1.toPathString)(localVarUrlObj),
1335
+ options: localVarRequestOptions,
1336
+ }];
1337
+ });
1338
+ });
1339
+ },
1340
+ /**
1341
+ * Update Account Shipping Address
1342
+ * @param {string} id Xero ID
1343
+ * @param {AddressModel} [addressModel] Updated Shipping Address
1344
+ * @param {*} [options] Override http request option.
1345
+ * @throws {RequiredError}
1346
+ */
1347
+ putUpdateShippingAddress: function (id_1, addressModel_1) {
1348
+ var args_1 = [];
1349
+ for (var _i = 2; _i < arguments.length; _i++) {
1350
+ args_1[_i - 2] = arguments[_i];
1351
+ }
1352
+ return __awaiter(_this, __spreadArray([id_1, addressModel_1], args_1, true), void 0, function (id, addressModel, options) {
1353
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1354
+ if (options === void 0) { options = {}; }
1355
+ return __generator(this, function (_a) {
1356
+ // verify required parameter 'id' is not null or undefined
1357
+ (0, common_1.assertParamExists)('putUpdateShippingAddress', 'id', id);
1358
+ localVarPath = "/{id}/shipping/address"
1359
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1360
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1361
+ if (configuration) {
1362
+ baseOptions = configuration.baseOptions;
1363
+ }
1364
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1365
+ localVarHeaderParameter = {};
1366
+ localVarQueryParameter = {};
1367
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1368
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1369
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1370
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1371
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressModel, localVarRequestOptions, configuration);
1372
+ return [2 /*return*/, {
1373
+ url: (0, common_1.toPathString)(localVarUrlObj),
1374
+ options: localVarRequestOptions,
1375
+ }];
1376
+ });
1377
+ });
1378
+ },
1031
1379
  };
1032
1380
  };
1033
1381
  exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
@@ -1151,6 +1499,28 @@ var AccountsApiFp = function (configuration) {
1151
1499
  });
1152
1500
  });
1153
1501
  },
1502
+ /**
1503
+ * Get Account Page Details
1504
+ * @param {string} id Xero ID
1505
+ * @param {*} [options] Override http request option.
1506
+ * @throws {RequiredError}
1507
+ */
1508
+ getGetAccountPageInfo: function (id, options) {
1509
+ return __awaiter(this, void 0, void 0, function () {
1510
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1511
+ var _a, _b, _c;
1512
+ return __generator(this, function (_d) {
1513
+ switch (_d.label) {
1514
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountPageInfo(id, options)];
1515
+ case 1:
1516
+ localVarAxiosArgs = _d.sent();
1517
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1518
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountPageInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1519
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1520
+ }
1521
+ });
1522
+ });
1523
+ },
1154
1524
  /**
1155
1525
  * Get Accounts
1156
1526
  * @summary Get Accounts
@@ -1245,114 +1615,183 @@ var AccountsApiFp = function (configuration) {
1245
1615
  });
1246
1616
  },
1247
1617
  /**
1248
- * Set 3CX Wizard CNAME
1249
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
1618
+ * Set Account Portal Access
1619
+ * @param {string} id Xero ID
1620
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
1250
1621
  * @param {*} [options] Override http request option.
1251
1622
  * @throws {RequiredError}
1252
1623
  */
1253
- patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest, options) {
1624
+ patchSetPortalAccess: function (id, state, options) {
1254
1625
  return __awaiter(this, void 0, void 0, function () {
1255
1626
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1256
1627
  var _a, _b, _c;
1257
1628
  return __generator(this, function (_d) {
1258
1629
  switch (_d.label) {
1259
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options)];
1630
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetPortalAccess(id, state, options)];
1260
1631
  case 1:
1261
1632
  localVarAxiosArgs = _d.sent();
1262
1633
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1263
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetTcxWizardCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1634
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetPortalAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1264
1635
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1265
1636
  }
1266
1637
  });
1267
1638
  });
1268
1639
  },
1269
1640
  /**
1270
- * Update Account Password
1271
- * @summary Update Account Password
1272
- * @param {string} token Verification Token
1273
- * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
1641
+ * Set Account Prize Promo
1642
+ * @param {string} id Xero ID
1643
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
1274
1644
  * @param {*} [options] Override http request option.
1275
1645
  * @throws {RequiredError}
1276
1646
  */
1277
- patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
1647
+ patchSetPrizePromo: function (id, state, options) {
1278
1648
  return __awaiter(this, void 0, void 0, function () {
1279
1649
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1280
1650
  var _a, _b, _c;
1281
1651
  return __generator(this, function (_d) {
1282
1652
  switch (_d.label) {
1283
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options)];
1653
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetPrizePromo(id, state, options)];
1284
1654
  case 1:
1285
1655
  localVarAxiosArgs = _d.sent();
1286
1656
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1287
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountContactPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1657
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetPrizePromo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1288
1658
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1289
1659
  }
1290
1660
  });
1291
1661
  });
1292
1662
  },
1293
1663
  /**
1294
- * Add Account Contacts
1295
- * @summary Add Account Contact
1296
- * @param {AccountContactRequestModel} [accountContactRequestModel] New account request
1664
+ * Set 3CX Wizard CNAME
1665
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
1297
1666
  * @param {*} [options] Override http request option.
1298
1667
  * @throws {RequiredError}
1299
1668
  */
1300
- postGetAccountContacts: function (accountContactRequestModel, options) {
1669
+ patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest, options) {
1301
1670
  return __awaiter(this, void 0, void 0, function () {
1302
1671
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1303
1672
  var _a, _b, _c;
1304
1673
  return __generator(this, function (_d) {
1305
1674
  switch (_d.label) {
1306
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAccountContacts(accountContactRequestModel, options)];
1675
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options)];
1307
1676
  case 1:
1308
1677
  localVarAxiosArgs = _d.sent();
1309
1678
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1310
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAccountContacts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1679
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetTcxWizardCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1311
1680
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1312
1681
  }
1313
1682
  });
1314
1683
  });
1315
1684
  },
1316
1685
  /**
1317
- * Create new customer account
1318
- * @summary Create a new customer account
1319
- * @param {AccountRequestModel} [accountRequestModel] New account request
1686
+ * Set Account Prize Promo
1687
+ * @param {string} id Xero ID
1688
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
1320
1689
  * @param {*} [options] Override http request option.
1321
1690
  * @throws {RequiredError}
1322
1691
  */
1323
- postGetAccounts: function (accountRequestModel, options) {
1692
+ patchUpdateAccountCname: function (id, patchUpdateAccountCnameRequest, options) {
1324
1693
  return __awaiter(this, void 0, void 0, function () {
1325
1694
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1326
1695
  var _a, _b, _c;
1327
1696
  return __generator(this, function (_d) {
1328
1697
  switch (_d.label) {
1329
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAccounts(accountRequestModel, options)];
1698
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options)];
1330
1699
  case 1:
1331
1700
  localVarAxiosArgs = _d.sent();
1332
1701
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1333
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1702
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1334
1703
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1335
1704
  }
1336
1705
  });
1337
1706
  });
1338
1707
  },
1339
1708
  /**
1340
- * Get Admin Account
1341
- * @summary Get Admin Account
1709
+ * Update Account Password
1710
+ * @summary Update Account Password
1711
+ * @param {string} token Verification Token
1712
+ * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
1342
1713
  * @param {*} [options] Override http request option.
1343
1714
  * @throws {RequiredError}
1344
1715
  */
1345
- postGetAdminAccount: function (options) {
1716
+ patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
1346
1717
  return __awaiter(this, void 0, void 0, function () {
1347
1718
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1348
1719
  var _a, _b, _c;
1349
1720
  return __generator(this, function (_d) {
1350
1721
  switch (_d.label) {
1351
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminAccount(options)];
1722
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options)];
1352
1723
  case 1:
1353
1724
  localVarAxiosArgs = _d.sent();
1354
1725
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1355
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAdminAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1726
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountContactPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1727
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1728
+ }
1729
+ });
1730
+ });
1731
+ },
1732
+ /**
1733
+ * Add Account Contacts
1734
+ * @summary Add Account Contact
1735
+ * @param {AccountContactRequestModel} [accountContactRequestModel] New account request
1736
+ * @param {*} [options] Override http request option.
1737
+ * @throws {RequiredError}
1738
+ */
1739
+ postGetAccountContacts: function (accountContactRequestModel, options) {
1740
+ return __awaiter(this, void 0, void 0, function () {
1741
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1742
+ var _a, _b, _c;
1743
+ return __generator(this, function (_d) {
1744
+ switch (_d.label) {
1745
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAccountContacts(accountContactRequestModel, options)];
1746
+ case 1:
1747
+ localVarAxiosArgs = _d.sent();
1748
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1749
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAccountContacts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1750
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1751
+ }
1752
+ });
1753
+ });
1754
+ },
1755
+ /**
1756
+ * Create new customer account
1757
+ * @summary Create a new customer account
1758
+ * @param {AccountRequestModel} [accountRequestModel] New account request
1759
+ * @param {*} [options] Override http request option.
1760
+ * @throws {RequiredError}
1761
+ */
1762
+ postGetAccounts: function (accountRequestModel, options) {
1763
+ return __awaiter(this, void 0, void 0, function () {
1764
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1765
+ var _a, _b, _c;
1766
+ return __generator(this, function (_d) {
1767
+ switch (_d.label) {
1768
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAccounts(accountRequestModel, options)];
1769
+ case 1:
1770
+ localVarAxiosArgs = _d.sent();
1771
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1772
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1773
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1774
+ }
1775
+ });
1776
+ });
1777
+ },
1778
+ /**
1779
+ * Get Admin Account
1780
+ * @summary Get Admin Account
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ postGetAdminAccount: function (options) {
1785
+ return __awaiter(this, void 0, void 0, function () {
1786
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1787
+ var _a, _b, _c;
1788
+ return __generator(this, function (_d) {
1789
+ switch (_d.label) {
1790
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminAccount(options)];
1791
+ case 1:
1792
+ localVarAxiosArgs = _d.sent();
1793
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1794
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postGetAdminAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1356
1795
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1357
1796
  }
1358
1797
  });
@@ -1476,6 +1915,52 @@ var AccountsApiFp = function (configuration) {
1476
1915
  });
1477
1916
  });
1478
1917
  },
1918
+ /**
1919
+ * Update Account Billing Address
1920
+ * @param {string} id Xero ID
1921
+ * @param {AddressModel} [addressModel] Updated Billing Address
1922
+ * @param {*} [options] Override http request option.
1923
+ * @throws {RequiredError}
1924
+ */
1925
+ putUpdateBillingAddress: function (id, addressModel, options) {
1926
+ return __awaiter(this, void 0, void 0, function () {
1927
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1928
+ var _a, _b, _c;
1929
+ return __generator(this, function (_d) {
1930
+ switch (_d.label) {
1931
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressModel, options)];
1932
+ case 1:
1933
+ localVarAxiosArgs = _d.sent();
1934
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1935
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateBillingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1936
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1937
+ }
1938
+ });
1939
+ });
1940
+ },
1941
+ /**
1942
+ * Update Account Shipping Address
1943
+ * @param {string} id Xero ID
1944
+ * @param {AddressModel} [addressModel] Updated Shipping Address
1945
+ * @param {*} [options] Override http request option.
1946
+ * @throws {RequiredError}
1947
+ */
1948
+ putUpdateShippingAddress: function (id, addressModel, options) {
1949
+ return __awaiter(this, void 0, void 0, function () {
1950
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1951
+ var _a, _b, _c;
1952
+ return __generator(this, function (_d) {
1953
+ switch (_d.label) {
1954
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateShippingAddress(id, addressModel, options)];
1955
+ case 1:
1956
+ localVarAxiosArgs = _d.sent();
1957
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1958
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateShippingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1959
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1960
+ }
1961
+ });
1962
+ });
1963
+ },
1479
1964
  };
1480
1965
  };
1481
1966
  exports.AccountsApiFp = AccountsApiFp;
@@ -1534,6 +2019,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1534
2019
  getGetAccountDetailedSummary: function (id, options) {
1535
2020
  return localVarFp.getGetAccountDetailedSummary(id, options).then(function (request) { return request(axios, basePath); });
1536
2021
  },
2022
+ /**
2023
+ * Get Account Page Details
2024
+ * @param {string} id Xero ID
2025
+ * @param {*} [options] Override http request option.
2026
+ * @throws {RequiredError}
2027
+ */
2028
+ getGetAccountPageInfo: function (id, options) {
2029
+ return localVarFp.getGetAccountPageInfo(id, options).then(function (request) { return request(axios, basePath); });
2030
+ },
1537
2031
  /**
1538
2032
  * Get Accounts
1539
2033
  * @summary Get Accounts
@@ -1575,14 +2069,44 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1575
2069
  getVerifyEmailAddress: function (token, options) {
1576
2070
  return localVarFp.getVerifyEmailAddress(token, options).then(function (request) { return request(axios, basePath); });
1577
2071
  },
2072
+ /**
2073
+ * Set Account Portal Access
2074
+ * @param {string} id Xero ID
2075
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ */
2079
+ patchSetPortalAccess: function (id, state, options) {
2080
+ return localVarFp.patchSetPortalAccess(id, state, options).then(function (request) { return request(axios, basePath); });
2081
+ },
2082
+ /**
2083
+ * Set Account Prize Promo
2084
+ * @param {string} id Xero ID
2085
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
2086
+ * @param {*} [options] Override http request option.
2087
+ * @throws {RequiredError}
2088
+ */
2089
+ patchSetPrizePromo: function (id, state, options) {
2090
+ return localVarFp.patchSetPrizePromo(id, state, options).then(function (request) { return request(axios, basePath); });
2091
+ },
1578
2092
  /**
1579
2093
  * Set 3CX Wizard CNAME
1580
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
2094
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
2095
+ * @param {*} [options] Override http request option.
2096
+ * @throws {RequiredError}
2097
+ */
2098
+ patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest, options) {
2099
+ return localVarFp.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(axios, basePath); });
2100
+ },
2101
+ /**
2102
+ * Set Account Prize Promo
2103
+ * @param {string} id Xero ID
2104
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
1581
2105
  * @param {*} [options] Override http request option.
1582
2106
  * @throws {RequiredError}
1583
2107
  */
1584
- patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest, options) {
1585
- return localVarFp.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then(function (request) { return request(axios, basePath); });
2108
+ patchUpdateAccountCname: function (id, patchUpdateAccountCnameRequest, options) {
2109
+ return localVarFp.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(axios, basePath); });
1586
2110
  },
1587
2111
  /**
1588
2112
  * Update Account Password
@@ -1677,6 +2201,26 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1677
2201
  putUpdateAccountContact: function (email, accountContactRequestModel, options) {
1678
2202
  return localVarFp.putUpdateAccountContact(email, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
1679
2203
  },
2204
+ /**
2205
+ * Update Account Billing Address
2206
+ * @param {string} id Xero ID
2207
+ * @param {AddressModel} [addressModel] Updated Billing Address
2208
+ * @param {*} [options] Override http request option.
2209
+ * @throws {RequiredError}
2210
+ */
2211
+ putUpdateBillingAddress: function (id, addressModel, options) {
2212
+ return localVarFp.putUpdateBillingAddress(id, addressModel, options).then(function (request) { return request(axios, basePath); });
2213
+ },
2214
+ /**
2215
+ * Update Account Shipping Address
2216
+ * @param {string} id Xero ID
2217
+ * @param {AddressModel} [addressModel] Updated Shipping Address
2218
+ * @param {*} [options] Override http request option.
2219
+ * @throws {RequiredError}
2220
+ */
2221
+ putUpdateShippingAddress: function (id, addressModel, options) {
2222
+ return localVarFp.putUpdateShippingAddress(id, addressModel, options).then(function (request) { return request(axios, basePath); });
2223
+ },
1680
2224
  };
1681
2225
  };
1682
2226
  exports.AccountsApiFactory = AccountsApiFactory;
@@ -1742,6 +2286,16 @@ var AccountsApi = /** @class */ (function (_super) {
1742
2286
  var _this = this;
1743
2287
  return (0, exports.AccountsApiFp)(this.configuration).getGetAccountDetailedSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
1744
2288
  };
2289
+ /**
2290
+ * Get Account Page Details
2291
+ * @param {string} id Xero ID
2292
+ * @param {*} [options] Override http request option.
2293
+ * @throws {RequiredError}
2294
+ */
2295
+ AccountsApi.prototype.getGetAccountPageInfo = function (id, options) {
2296
+ var _this = this;
2297
+ return (0, exports.AccountsApiFp)(this.configuration).getGetAccountPageInfo(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
2298
+ };
1745
2299
  /**
1746
2300
  * Get Accounts
1747
2301
  * @summary Get Accounts
@@ -1787,15 +2341,48 @@ var AccountsApi = /** @class */ (function (_super) {
1787
2341
  var _this = this;
1788
2342
  return (0, exports.AccountsApiFp)(this.configuration).getVerifyEmailAddress(token, options).then(function (request) { return request(_this.axios, _this.basePath); });
1789
2343
  };
2344
+ /**
2345
+ * Set Account Portal Access
2346
+ * @param {string} id Xero ID
2347
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
2348
+ * @param {*} [options] Override http request option.
2349
+ * @throws {RequiredError}
2350
+ */
2351
+ AccountsApi.prototype.patchSetPortalAccess = function (id, state, options) {
2352
+ var _this = this;
2353
+ return (0, exports.AccountsApiFp)(this.configuration).patchSetPortalAccess(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
2354
+ };
2355
+ /**
2356
+ * Set Account Prize Promo
2357
+ * @param {string} id Xero ID
2358
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
2359
+ * @param {*} [options] Override http request option.
2360
+ * @throws {RequiredError}
2361
+ */
2362
+ AccountsApi.prototype.patchSetPrizePromo = function (id, state, options) {
2363
+ var _this = this;
2364
+ return (0, exports.AccountsApiFp)(this.configuration).patchSetPrizePromo(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
2365
+ };
1790
2366
  /**
1791
2367
  * Set 3CX Wizard CNAME
1792
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
2368
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
2369
+ * @param {*} [options] Override http request option.
2370
+ * @throws {RequiredError}
2371
+ */
2372
+ AccountsApi.prototype.patchSetTcxWizardCname = function (patchUpdateAccountCnameRequest, options) {
2373
+ var _this = this;
2374
+ return (0, exports.AccountsApiFp)(this.configuration).patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2375
+ };
2376
+ /**
2377
+ * Set Account Prize Promo
2378
+ * @param {string} id Xero ID
2379
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
1793
2380
  * @param {*} [options] Override http request option.
1794
2381
  * @throws {RequiredError}
1795
2382
  */
1796
- AccountsApi.prototype.patchSetTcxWizardCname = function (patchSetTcxWizardCnameRequest, options) {
2383
+ AccountsApi.prototype.patchUpdateAccountCname = function (id, patchUpdateAccountCnameRequest, options) {
1797
2384
  var _this = this;
1798
- return (0, exports.AccountsApiFp)(this.configuration).patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2385
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1799
2386
  };
1800
2387
  /**
1801
2388
  * Update Account Password
@@ -1899,9 +2486,39 @@ var AccountsApi = /** @class */ (function (_super) {
1899
2486
  var _this = this;
1900
2487
  return (0, exports.AccountsApiFp)(this.configuration).putUpdateAccountContact(email, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
1901
2488
  };
2489
+ /**
2490
+ * Update Account Billing Address
2491
+ * @param {string} id Xero ID
2492
+ * @param {AddressModel} [addressModel] Updated Billing Address
2493
+ * @param {*} [options] Override http request option.
2494
+ * @throws {RequiredError}
2495
+ */
2496
+ AccountsApi.prototype.putUpdateBillingAddress = function (id, addressModel, options) {
2497
+ var _this = this;
2498
+ return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
2499
+ };
2500
+ /**
2501
+ * Update Account Shipping Address
2502
+ * @param {string} id Xero ID
2503
+ * @param {AddressModel} [addressModel] Updated Shipping Address
2504
+ * @param {*} [options] Override http request option.
2505
+ * @throws {RequiredError}
2506
+ */
2507
+ AccountsApi.prototype.putUpdateShippingAddress = function (id, addressModel, options) {
2508
+ var _this = this;
2509
+ return (0, exports.AccountsApiFp)(this.configuration).putUpdateShippingAddress(id, addressModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
2510
+ };
1902
2511
  return AccountsApi;
1903
2512
  }(base_1.BaseAPI));
1904
2513
  exports.AccountsApi = AccountsApi;
2514
+ exports.PatchSetPortalAccessStateEnum = {
2515
+ Enable: 'enable',
2516
+ Disable: 'disable'
2517
+ };
2518
+ exports.PatchSetPrizePromoStateEnum = {
2519
+ Enable: 'enable',
2520
+ Disable: 'disable'
2521
+ };
1905
2522
  /**
1906
2523
  * CRMApi - axios parameter creator
1907
2524
  */
@@ -7928,6 +8545,43 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7928
8545
  });
7929
8546
  });
7930
8547
  },
8548
+ /**
8549
+ *
8550
+ * @param {number} id Number Port ID
8551
+ * @param {*} [options] Override http request option.
8552
+ * @throws {RequiredError}
8553
+ */
8554
+ patchCancelAdminNumberPort: function (id_1) {
8555
+ var args_1 = [];
8556
+ for (var _i = 1; _i < arguments.length; _i++) {
8557
+ args_1[_i - 1] = arguments[_i];
8558
+ }
8559
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8560
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8561
+ if (options === void 0) { options = {}; }
8562
+ return __generator(this, function (_a) {
8563
+ // verify required parameter 'id' is not null or undefined
8564
+ (0, common_1.assertParamExists)('patchCancelAdminNumberPort', 'id', id);
8565
+ localVarPath = "/admin/sip/numbers/ports/{id}/cancel"
8566
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8567
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8568
+ if (configuration) {
8569
+ baseOptions = configuration.baseOptions;
8570
+ }
8571
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
8572
+ localVarHeaderParameter = {};
8573
+ localVarQueryParameter = {};
8574
+ localVarHeaderParameter['Accept'] = 'application/json';
8575
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8576
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8577
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8578
+ return [2 /*return*/, {
8579
+ url: (0, common_1.toPathString)(localVarUrlObj),
8580
+ options: localVarRequestOptions,
8581
+ }];
8582
+ });
8583
+ });
8584
+ },
7931
8585
  /**
7932
8586
  *
7933
8587
  * @param {number} id Number Port ID
@@ -7968,23 +8622,23 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7968
8622
  /**
7969
8623
  *
7970
8624
  * @param {number} id Number Port ID
7971
- * @param {string} body
8625
+ * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
7972
8626
  * @param {*} [options] Override http request option.
7973
8627
  * @throws {RequiredError}
7974
8628
  */
7975
- postAddAdminNote: function (id_1, body_1) {
8629
+ postAddAdminNote: function (id_1, postAddAdminNoteRequest_1) {
7976
8630
  var args_1 = [];
7977
8631
  for (var _i = 2; _i < arguments.length; _i++) {
7978
8632
  args_1[_i - 2] = arguments[_i];
7979
8633
  }
7980
- return __awaiter(_this, __spreadArray([id_1, body_1], args_1, true), void 0, function (id, body, options) {
8634
+ return __awaiter(_this, __spreadArray([id_1, postAddAdminNoteRequest_1], args_1, true), void 0, function (id, postAddAdminNoteRequest, options) {
7981
8635
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7982
8636
  if (options === void 0) { options = {}; }
7983
8637
  return __generator(this, function (_a) {
7984
8638
  // verify required parameter 'id' is not null or undefined
7985
8639
  (0, common_1.assertParamExists)('postAddAdminNote', 'id', id);
7986
- // verify required parameter 'body' is not null or undefined
7987
- (0, common_1.assertParamExists)('postAddAdminNote', 'body', body);
8640
+ // verify required parameter 'postAddAdminNoteRequest' is not null or undefined
8641
+ (0, common_1.assertParamExists)('postAddAdminNote', 'postAddAdminNoteRequest', postAddAdminNoteRequest);
7988
8642
  localVarPath = "/admin/sip/numbers/ports/{id}/notes"
7989
8643
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
7990
8644
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7999,7 +8653,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7999
8653
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8000
8654
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8001
8655
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8002
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8656
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postAddAdminNoteRequest, localVarRequestOptions, configuration);
8003
8657
  return [2 /*return*/, {
8004
8658
  url: (0, common_1.toPathString)(localVarUrlObj),
8005
8659
  options: localVarRequestOptions,
@@ -8432,6 +9086,28 @@ var NumberPortingApiFp = function (configuration) {
8432
9086
  });
8433
9087
  });
8434
9088
  },
9089
+ /**
9090
+ *
9091
+ * @param {number} id Number Port ID
9092
+ * @param {*} [options] Override http request option.
9093
+ * @throws {RequiredError}
9094
+ */
9095
+ patchCancelAdminNumberPort: function (id, options) {
9096
+ return __awaiter(this, void 0, void 0, function () {
9097
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9098
+ var _a, _b, _c;
9099
+ return __generator(this, function (_d) {
9100
+ switch (_d.label) {
9101
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCancelAdminNumberPort(id, options)];
9102
+ case 1:
9103
+ localVarAxiosArgs = _d.sent();
9104
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9105
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.patchCancelAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9106
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9107
+ }
9108
+ });
9109
+ });
9110
+ },
8435
9111
  /**
8436
9112
  *
8437
9113
  * @param {number} id Number Port ID
@@ -8457,17 +9133,17 @@ var NumberPortingApiFp = function (configuration) {
8457
9133
  /**
8458
9134
  *
8459
9135
  * @param {number} id Number Port ID
8460
- * @param {string} body
9136
+ * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
8461
9137
  * @param {*} [options] Override http request option.
8462
9138
  * @throws {RequiredError}
8463
9139
  */
8464
- postAddAdminNote: function (id, body, options) {
9140
+ postAddAdminNote: function (id, postAddAdminNoteRequest, options) {
8465
9141
  return __awaiter(this, void 0, void 0, function () {
8466
9142
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8467
9143
  var _a, _b, _c;
8468
9144
  return __generator(this, function (_d) {
8469
9145
  switch (_d.label) {
8470
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, body, options)];
9146
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, postAddAdminNoteRequest, options)];
8471
9147
  case 1:
8472
9148
  localVarAxiosArgs = _d.sent();
8473
9149
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -8659,6 +9335,15 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
8659
9335
  getUpdateNumberPort: function (id, options) {
8660
9336
  return localVarFp.getUpdateNumberPort(id, options).then(function (request) { return request(axios, basePath); });
8661
9337
  },
9338
+ /**
9339
+ *
9340
+ * @param {number} id Number Port ID
9341
+ * @param {*} [options] Override http request option.
9342
+ * @throws {RequiredError}
9343
+ */
9344
+ patchCancelAdminNumberPort: function (id, options) {
9345
+ return localVarFp.patchCancelAdminNumberPort(id, options).then(function (request) { return request(axios, basePath); });
9346
+ },
8662
9347
  /**
8663
9348
  *
8664
9349
  * @param {number} id Number Port ID
@@ -8671,12 +9356,12 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
8671
9356
  /**
8672
9357
  *
8673
9358
  * @param {number} id Number Port ID
8674
- * @param {string} body
9359
+ * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
8675
9360
  * @param {*} [options] Override http request option.
8676
9361
  * @throws {RequiredError}
8677
9362
  */
8678
- postAddAdminNote: function (id, body, options) {
8679
- return localVarFp.postAddAdminNote(id, body, options).then(function (request) { return request(axios, basePath); });
9363
+ postAddAdminNote: function (id, postAddAdminNoteRequest, options) {
9364
+ return localVarFp.postAddAdminNote(id, postAddAdminNoteRequest, options).then(function (request) { return request(axios, basePath); });
8680
9365
  },
8681
9366
  /**
8682
9367
  *
@@ -8815,6 +9500,16 @@ var NumberPortingApi = /** @class */ (function (_super) {
8815
9500
  var _this = this;
8816
9501
  return (0, exports.NumberPortingApiFp)(this.configuration).getUpdateNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8817
9502
  };
9503
+ /**
9504
+ *
9505
+ * @param {number} id Number Port ID
9506
+ * @param {*} [options] Override http request option.
9507
+ * @throws {RequiredError}
9508
+ */
9509
+ NumberPortingApi.prototype.patchCancelAdminNumberPort = function (id, options) {
9510
+ var _this = this;
9511
+ return (0, exports.NumberPortingApiFp)(this.configuration).patchCancelAdminNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
9512
+ };
8818
9513
  /**
8819
9514
  *
8820
9515
  * @param {number} id Number Port ID
@@ -8828,13 +9523,13 @@ var NumberPortingApi = /** @class */ (function (_super) {
8828
9523
  /**
8829
9524
  *
8830
9525
  * @param {number} id Number Port ID
8831
- * @param {string} body
9526
+ * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
8832
9527
  * @param {*} [options] Override http request option.
8833
9528
  * @throws {RequiredError}
8834
9529
  */
8835
- NumberPortingApi.prototype.postAddAdminNote = function (id, body, options) {
9530
+ NumberPortingApi.prototype.postAddAdminNote = function (id, postAddAdminNoteRequest, options) {
8836
9531
  var _this = this;
8837
- return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
9532
+ return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, postAddAdminNoteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
8838
9533
  };
8839
9534
  /**
8840
9535
  *
@@ -9575,6 +10270,8 @@ exports.PostAccessTokenScopeEnum = {
9575
10270
  ProductsRead: 'products.read',
9576
10271
  ProvisioningRead: 'provisioning.read',
9577
10272
  ProvisioningWrite: 'provisioning.write',
10273
+ SmsRead: 'sms.read',
10274
+ SmsWrite: 'sms.write',
9578
10275
  TrunksRead: 'trunks.read',
9579
10276
  TrunksWrite: 'trunks.write',
9580
10277
  TcxIntegrationsRead: 'tcx_integrations.read',
@@ -9607,6 +10304,8 @@ exports.PostAuthoriseScopeEnum = {
9607
10304
  ProductsRead: 'products.read',
9608
10305
  ProvisioningRead: 'provisioning.read',
9609
10306
  ProvisioningWrite: 'provisioning.write',
10307
+ SmsRead: 'sms.read',
10308
+ SmsWrite: 'sms.write',
9610
10309
  TrunksRead: 'trunks.read',
9611
10310
  TrunksWrite: 'trunks.write',
9612
10311
  TcxIntegrationsRead: 'tcx_integrations.read',
@@ -9626,25 +10325,28 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9626
10325
  var _this = this;
9627
10326
  return {
9628
10327
  /**
9629
- * Delete Orders (Beta)
9630
- * @summary Delete Orders (Beta)
10328
+ * Delete Batch (Admin)
9631
10329
  * @param {number} id Order ID
10330
+ * @param {number} batchId Batch ID
9632
10331
  * @param {*} [options] Override http request option.
9633
10332
  * @throws {RequiredError}
9634
10333
  */
9635
- deleteUpdateOrder: function (id_1) {
10334
+ deleteDeleteBatch: function (id_1, batchId_1) {
9636
10335
  var args_1 = [];
9637
- for (var _i = 1; _i < arguments.length; _i++) {
9638
- args_1[_i - 1] = arguments[_i];
10336
+ for (var _i = 2; _i < arguments.length; _i++) {
10337
+ args_1[_i - 2] = arguments[_i];
9639
10338
  }
9640
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
10339
+ return __awaiter(_this, __spreadArray([id_1, batchId_1], args_1, true), void 0, function (id, batchId, options) {
9641
10340
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9642
10341
  if (options === void 0) { options = {}; }
9643
10342
  return __generator(this, function (_a) {
9644
10343
  // verify required parameter 'id' is not null or undefined
9645
- (0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
9646
- localVarPath = "/orders/{id}"
9647
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10344
+ (0, common_1.assertParamExists)('deleteDeleteBatch', 'id', id);
10345
+ // verify required parameter 'batchId' is not null or undefined
10346
+ (0, common_1.assertParamExists)('deleteDeleteBatch', 'batchId', batchId);
10347
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}"
10348
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
10349
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)));
9648
10350
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9649
10351
  if (configuration) {
9650
10352
  baseOptions = configuration.baseOptions;
@@ -9663,13 +10365,95 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9663
10365
  });
9664
10366
  },
9665
10367
  /**
9666
- * Get Editable Order (Admin)
9667
- * @summary Get Editable Order (Admin)
10368
+ * Delete Orders (Beta)
10369
+ * @summary Delete Orders (Beta)
9668
10370
  * @param {number} id Order ID
9669
10371
  * @param {*} [options] Override http request option.
9670
10372
  * @throws {RequiredError}
9671
10373
  */
9672
- getGetAdminEditableOrder: function (id_1) {
10374
+ deleteUpdateOrder: function (id_1) {
10375
+ var args_1 = [];
10376
+ for (var _i = 1; _i < arguments.length; _i++) {
10377
+ args_1[_i - 1] = arguments[_i];
10378
+ }
10379
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
10380
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10381
+ if (options === void 0) { options = {}; }
10382
+ return __generator(this, function (_a) {
10383
+ // verify required parameter 'id' is not null or undefined
10384
+ (0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
10385
+ localVarPath = "/orders/{id}"
10386
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10387
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10388
+ if (configuration) {
10389
+ baseOptions = configuration.baseOptions;
10390
+ }
10391
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10392
+ localVarHeaderParameter = {};
10393
+ localVarQueryParameter = {};
10394
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10395
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10396
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10397
+ return [2 /*return*/, {
10398
+ url: (0, common_1.toPathString)(localVarUrlObj),
10399
+ options: localVarRequestOptions,
10400
+ }];
10401
+ });
10402
+ });
10403
+ },
10404
+ /**
10405
+ * Delete Shipment (Admin)
10406
+ * @summary Delete Shipment (Admin)
10407
+ * @param {number} id Order ID
10408
+ * @param {number} batchId Batch ID
10409
+ * @param {number} shipmentId Shipment ID
10410
+ * @param {*} [options] Override http request option.
10411
+ * @throws {RequiredError}
10412
+ */
10413
+ deleteUpdateShipment: function (id_1, batchId_1, shipmentId_1) {
10414
+ var args_1 = [];
10415
+ for (var _i = 3; _i < arguments.length; _i++) {
10416
+ args_1[_i - 3] = arguments[_i];
10417
+ }
10418
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1], args_1, true), void 0, function (id, batchId, shipmentId, options) {
10419
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10420
+ if (options === void 0) { options = {}; }
10421
+ return __generator(this, function (_a) {
10422
+ // verify required parameter 'id' is not null or undefined
10423
+ (0, common_1.assertParamExists)('deleteUpdateShipment', 'id', id);
10424
+ // verify required parameter 'batchId' is not null or undefined
10425
+ (0, common_1.assertParamExists)('deleteUpdateShipment', 'batchId', batchId);
10426
+ // verify required parameter 'shipmentId' is not null or undefined
10427
+ (0, common_1.assertParamExists)('deleteUpdateShipment', 'shipmentId', shipmentId);
10428
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}"
10429
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
10430
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
10431
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
10432
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10433
+ if (configuration) {
10434
+ baseOptions = configuration.baseOptions;
10435
+ }
10436
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10437
+ localVarHeaderParameter = {};
10438
+ localVarQueryParameter = {};
10439
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10440
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10441
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10442
+ return [2 /*return*/, {
10443
+ url: (0, common_1.toPathString)(localVarUrlObj),
10444
+ options: localVarRequestOptions,
10445
+ }];
10446
+ });
10447
+ });
10448
+ },
10449
+ /**
10450
+ * Get Editable Order (Admin)
10451
+ * @summary Get Editable Order (Admin)
10452
+ * @param {number} id Order ID
10453
+ * @param {*} [options] Override http request option.
10454
+ * @throws {RequiredError}
10455
+ */
10456
+ getGetAdminEditableOrder: function (id_1) {
9673
10457
  var args_1 = [];
9674
10458
  for (var _i = 1; _i < arguments.length; _i++) {
9675
10459
  args_1[_i - 1] = arguments[_i];
@@ -9701,13 +10485,13 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9701
10485
  });
9702
10486
  },
9703
10487
  /**
9704
- * Get Editable Order (Beta)
9705
- * @summary Get Editable Order (Beta)
10488
+ * Get Order Details (Admin)
10489
+ * @summary Get Order Details (Admin)
9706
10490
  * @param {number} id Order ID
9707
10491
  * @param {*} [options] Override http request option.
9708
10492
  * @throws {RequiredError}
9709
10493
  */
9710
- getGetEditableOrder: function (id_1) {
10494
+ getGetAdminOrderDetails: function (id_1) {
9711
10495
  var args_1 = [];
9712
10496
  for (var _i = 1; _i < arguments.length; _i++) {
9713
10497
  args_1[_i - 1] = arguments[_i];
@@ -9717,8 +10501,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9717
10501
  if (options === void 0) { options = {}; }
9718
10502
  return __generator(this, function (_a) {
9719
10503
  // verify required parameter 'id' is not null or undefined
9720
- (0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
9721
- localVarPath = "/orders/{id}/views/editable"
10504
+ (0, common_1.assertParamExists)('getGetAdminOrderDetails', 'id', id);
10505
+ localVarPath = "/admin/orders/{id}/details"
9722
10506
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9723
10507
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9724
10508
  if (configuration) {
@@ -9739,28 +10523,33 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9739
10523
  });
9740
10524
  },
9741
10525
  /**
9742
- * Get Orders (Beta)
9743
- * @summary Get Orders (Beta)
9744
- * @param {number} [pageSize] Number Of Results
9745
- * @param {number} [page] Page Number
9746
- * @param {string} [search] Search
9747
- * @param {boolean | null} [fulfillable] Fulfillable
9748
- * @param {GetGetOrdersStatusEnum} [status] Status
9749
- * @param {GetGetOrdersFilterEnum} [filter] Filter
9750
- * @param {number | null} [customerId] Customer ID
10526
+ * Get Commercial Invoice PDF
10527
+ * @summary Get Commercial Invoice PDF
10528
+ * @param {number} id Order ID
10529
+ * @param {number} batchId Batch ID
10530
+ * @param {number} shipmentId Shipment ID
9751
10531
  * @param {*} [options] Override http request option.
9752
10532
  * @throws {RequiredError}
9753
10533
  */
9754
- getGetOrders: function (pageSize_1, page_1, search_1, fulfillable_1, status_1, filter_1, customerId_1) {
10534
+ getGetCommercialInvoice: function (id_1, batchId_1, shipmentId_1) {
9755
10535
  var args_1 = [];
9756
- for (var _i = 7; _i < arguments.length; _i++) {
9757
- args_1[_i - 7] = arguments[_i];
10536
+ for (var _i = 3; _i < arguments.length; _i++) {
10537
+ args_1[_i - 3] = arguments[_i];
9758
10538
  }
9759
- return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1, fulfillable_1, status_1, filter_1, customerId_1], args_1, true), void 0, function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
10539
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1], args_1, true), void 0, function (id, batchId, shipmentId, options) {
9760
10540
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9761
10541
  if (options === void 0) { options = {}; }
9762
10542
  return __generator(this, function (_a) {
9763
- localVarPath = "/orders";
10543
+ // verify required parameter 'id' is not null or undefined
10544
+ (0, common_1.assertParamExists)('getGetCommercialInvoice', 'id', id);
10545
+ // verify required parameter 'batchId' is not null or undefined
10546
+ (0, common_1.assertParamExists)('getGetCommercialInvoice', 'batchId', batchId);
10547
+ // verify required parameter 'shipmentId' is not null or undefined
10548
+ (0, common_1.assertParamExists)('getGetCommercialInvoice', 'shipmentId', shipmentId);
10549
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf"
10550
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
10551
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
10552
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
9764
10553
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9765
10554
  if (configuration) {
9766
10555
  baseOptions = configuration.baseOptions;
@@ -9768,28 +10557,7 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9768
10557
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9769
10558
  localVarHeaderParameter = {};
9770
10559
  localVarQueryParameter = {};
9771
- if (pageSize !== undefined) {
9772
- localVarQueryParameter['pageSize'] = pageSize;
9773
- }
9774
- if (page !== undefined) {
9775
- localVarQueryParameter['page'] = page;
9776
- }
9777
- if (search !== undefined) {
9778
- localVarQueryParameter['search'] = search;
9779
- }
9780
- if (fulfillable !== undefined) {
9781
- localVarQueryParameter['fulfillable'] = fulfillable;
9782
- }
9783
- if (status !== undefined) {
9784
- localVarQueryParameter['status'] = status;
9785
- }
9786
- if (filter !== undefined) {
9787
- localVarQueryParameter['filter'] = filter;
9788
- }
9789
- if (customerId !== undefined) {
9790
- localVarQueryParameter['customerId'] = customerId;
9791
- }
9792
- localVarHeaderParameter['Accept'] = 'application/json';
10560
+ localVarHeaderParameter['Accept'] = 'application/pdf';
9793
10561
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9794
10562
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9795
10563
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9801,39 +10569,36 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9801
10569
  });
9802
10570
  },
9803
10571
  /**
9804
- * Create An Order (Admin)
9805
- * @summary Create An Order (Admin)
9806
- * @param {boolean} [readonly] Readonly Order
9807
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
10572
+ * Get Editable Order (Beta)
10573
+ * @summary Get Editable Order (Beta)
10574
+ * @param {number} id Order ID
9808
10575
  * @param {*} [options] Override http request option.
9809
10576
  * @throws {RequiredError}
9810
10577
  */
9811
- postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
10578
+ getGetEditableOrder: function (id_1) {
9812
10579
  var args_1 = [];
9813
- for (var _i = 2; _i < arguments.length; _i++) {
9814
- args_1[_i - 2] = arguments[_i];
10580
+ for (var _i = 1; _i < arguments.length; _i++) {
10581
+ args_1[_i - 1] = arguments[_i];
9815
10582
  }
9816
- return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
10583
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
9817
10584
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9818
10585
  if (options === void 0) { options = {}; }
9819
10586
  return __generator(this, function (_a) {
9820
- localVarPath = "/admin/orders";
10587
+ // verify required parameter 'id' is not null or undefined
10588
+ (0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
10589
+ localVarPath = "/orders/{id}/views/editable"
10590
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9821
10591
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9822
10592
  if (configuration) {
9823
10593
  baseOptions = configuration.baseOptions;
9824
10594
  }
9825
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10595
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9826
10596
  localVarHeaderParameter = {};
9827
10597
  localVarQueryParameter = {};
9828
- if (readonly !== undefined) {
9829
- localVarQueryParameter['readonly'] = readonly;
9830
- }
9831
- localVarHeaderParameter['Content-Type'] = 'application/json';
9832
10598
  localVarHeaderParameter['Accept'] = 'application/json';
9833
10599
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9834
10600
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9835
10601
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9836
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
9837
10602
  return [2 /*return*/, {
9838
10603
  url: (0, common_1.toPathString)(localVarUrlObj),
9839
10604
  options: localVarRequestOptions,
@@ -9842,39 +10607,40 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9842
10607
  });
9843
10608
  },
9844
10609
  /**
9845
- * Create An Order (Beta)
9846
- * @summary Create An Order (Beta)
9847
- * @param {boolean} [readonly] Readonly Order
9848
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
10610
+ * Get Item Serial Info (Admin)
10611
+ * @summary Get Item Serial Info (Admin)
10612
+ * @param {number} id Order ID
10613
+ * @param {number} itemId Shipment Item ID
9849
10614
  * @param {*} [options] Override http request option.
9850
10615
  * @throws {RequiredError}
9851
10616
  */
9852
- postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
10617
+ getGetItemSerialInfo: function (id_1, itemId_1) {
9853
10618
  var args_1 = [];
9854
10619
  for (var _i = 2; _i < arguments.length; _i++) {
9855
10620
  args_1[_i - 2] = arguments[_i];
9856
10621
  }
9857
- return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
10622
+ return __awaiter(_this, __spreadArray([id_1, itemId_1], args_1, true), void 0, function (id, itemId, options) {
9858
10623
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9859
10624
  if (options === void 0) { options = {}; }
9860
10625
  return __generator(this, function (_a) {
9861
- localVarPath = "/orders";
10626
+ // verify required parameter 'id' is not null or undefined
10627
+ (0, common_1.assertParamExists)('getGetItemSerialInfo', 'id', id);
10628
+ // verify required parameter 'itemId' is not null or undefined
10629
+ (0, common_1.assertParamExists)('getGetItemSerialInfo', 'itemId', itemId);
10630
+ localVarPath = "/admin/orders/{id}/items/{item_id}/info"
10631
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
10632
+ .replace("{".concat("item_id", "}"), encodeURIComponent(String(itemId)));
9862
10633
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9863
10634
  if (configuration) {
9864
10635
  baseOptions = configuration.baseOptions;
9865
10636
  }
9866
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10637
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9867
10638
  localVarHeaderParameter = {};
9868
10639
  localVarQueryParameter = {};
9869
- if (readonly !== undefined) {
9870
- localVarQueryParameter['readonly'] = readonly;
9871
- }
9872
- localVarHeaderParameter['Content-Type'] = 'application/json';
9873
10640
  localVarHeaderParameter['Accept'] = 'application/json';
9874
10641
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9875
10642
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9876
10643
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9877
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
9878
10644
  return [2 /*return*/, {
9879
10645
  url: (0, common_1.toPathString)(localVarUrlObj),
9880
10646
  options: localVarRequestOptions,
@@ -9883,43 +10649,36 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9883
10649
  });
9884
10650
  },
9885
10651
  /**
9886
- * Update An Order (Admin)
9887
- * @summary Update An Order (Admin)
10652
+ * Download Order PDF
10653
+ * @summary Download Order PDF
9888
10654
  * @param {number} id Order ID
9889
- * @param {boolean} [readonly] Readonly Order
9890
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
9891
10655
  * @param {*} [options] Override http request option.
9892
10656
  * @throws {RequiredError}
9893
10657
  */
9894
- putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
10658
+ getGetOrderPdf: function (id_1) {
9895
10659
  var args_1 = [];
9896
- for (var _i = 3; _i < arguments.length; _i++) {
9897
- args_1[_i - 3] = arguments[_i];
10660
+ for (var _i = 1; _i < arguments.length; _i++) {
10661
+ args_1[_i - 1] = arguments[_i];
9898
10662
  }
9899
- return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
10663
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
9900
10664
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9901
10665
  if (options === void 0) { options = {}; }
9902
10666
  return __generator(this, function (_a) {
9903
10667
  // verify required parameter 'id' is not null or undefined
9904
- (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
9905
- localVarPath = "/admin/orders/{id}"
10668
+ (0, common_1.assertParamExists)('getGetOrderPdf', 'id', id);
10669
+ localVarPath = "/orders/{id}/pdf"
9906
10670
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9907
10671
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9908
10672
  if (configuration) {
9909
10673
  baseOptions = configuration.baseOptions;
9910
10674
  }
9911
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10675
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9912
10676
  localVarHeaderParameter = {};
9913
10677
  localVarQueryParameter = {};
9914
- if (readonly !== undefined) {
9915
- localVarQueryParameter['readonly'] = readonly;
9916
- }
9917
- localVarHeaderParameter['Content-Type'] = 'application/json';
9918
- localVarHeaderParameter['Accept'] = 'application/json';
10678
+ localVarHeaderParameter['Accept'] = 'application/pdf';
9919
10679
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9920
10680
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9921
10681
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9922
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
9923
10682
  return [2 /*return*/, {
9924
10683
  url: (0, common_1.toPathString)(localVarUrlObj),
9925
10684
  options: localVarRequestOptions,
@@ -9928,43 +10687,36 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9928
10687
  });
9929
10688
  },
9930
10689
  /**
9931
- * Update An Order (Beta)
9932
- * @summary Update An Order (Beta)
10690
+ * Get Order Summary (Admin)
10691
+ * @summary Get Order Summary (Admin)
9933
10692
  * @param {number} id Order ID
9934
- * @param {boolean} [readonly] Readonly Order
9935
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9936
10693
  * @param {*} [options] Override http request option.
9937
10694
  * @throws {RequiredError}
9938
10695
  */
9939
- putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
10696
+ getGetOrderSummary: function (id_1) {
9940
10697
  var args_1 = [];
9941
- for (var _i = 3; _i < arguments.length; _i++) {
9942
- args_1[_i - 3] = arguments[_i];
10698
+ for (var _i = 1; _i < arguments.length; _i++) {
10699
+ args_1[_i - 1] = arguments[_i];
9943
10700
  }
9944
- return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
10701
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
9945
10702
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9946
10703
  if (options === void 0) { options = {}; }
9947
10704
  return __generator(this, function (_a) {
9948
10705
  // verify required parameter 'id' is not null or undefined
9949
- (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
9950
- localVarPath = "/orders/{id}"
10706
+ (0, common_1.assertParamExists)('getGetOrderSummary', 'id', id);
10707
+ localVarPath = "/admin/orders/{id}/summary"
9951
10708
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9952
10709
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9953
10710
  if (configuration) {
9954
10711
  baseOptions = configuration.baseOptions;
9955
10712
  }
9956
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10713
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9957
10714
  localVarHeaderParameter = {};
9958
10715
  localVarQueryParameter = {};
9959
- if (readonly !== undefined) {
9960
- localVarQueryParameter['readonly'] = readonly;
9961
- }
9962
- localVarHeaderParameter['Content-Type'] = 'application/json';
9963
10716
  localVarHeaderParameter['Accept'] = 'application/json';
9964
10717
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9965
10718
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9966
10719
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9967
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
9968
10720
  return [2 /*return*/, {
9969
10721
  url: (0, common_1.toPathString)(localVarUrlObj),
9970
10722
  options: localVarRequestOptions,
@@ -9972,181 +10724,1499 @@ var OrdersApiAxiosParamCreator = function (configuration) {
9972
10724
  });
9973
10725
  });
9974
10726
  },
9975
- };
9976
- };
9977
- exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
9978
- /**
9979
- * OrdersApi - functional programming interface
9980
- */
9981
- var OrdersApiFp = function (configuration) {
9982
- var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
9983
- return {
9984
10727
  /**
9985
- * Delete Orders (Beta)
9986
- * @summary Delete Orders (Beta)
10728
+ * Get Orders (Beta)
10729
+ * @summary Get Orders (Beta)
10730
+ * @param {number} [pageSize] Number Of Results
10731
+ * @param {number} [page] Page Number
10732
+ * @param {string} [search] Search
10733
+ * @param {boolean | null} [fulfillable] Fulfillable
10734
+ * @param {GetGetOrdersStatusEnum} [status] Status
10735
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
10736
+ * @param {number | null} [customerId] Customer ID
10737
+ * @param {*} [options] Override http request option.
10738
+ * @throws {RequiredError}
10739
+ */
10740
+ getGetOrders: function (pageSize_1, page_1, search_1, fulfillable_1, status_1, filter_1, customerId_1) {
10741
+ var args_1 = [];
10742
+ for (var _i = 7; _i < arguments.length; _i++) {
10743
+ args_1[_i - 7] = arguments[_i];
10744
+ }
10745
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1, fulfillable_1, status_1, filter_1, customerId_1], args_1, true), void 0, function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
10746
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10747
+ if (options === void 0) { options = {}; }
10748
+ return __generator(this, function (_a) {
10749
+ localVarPath = "/orders";
10750
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10751
+ if (configuration) {
10752
+ baseOptions = configuration.baseOptions;
10753
+ }
10754
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10755
+ localVarHeaderParameter = {};
10756
+ localVarQueryParameter = {};
10757
+ if (pageSize !== undefined) {
10758
+ localVarQueryParameter['pageSize'] = pageSize;
10759
+ }
10760
+ if (page !== undefined) {
10761
+ localVarQueryParameter['page'] = page;
10762
+ }
10763
+ if (search !== undefined) {
10764
+ localVarQueryParameter['search'] = search;
10765
+ }
10766
+ if (fulfillable !== undefined) {
10767
+ localVarQueryParameter['fulfillable'] = fulfillable;
10768
+ }
10769
+ if (status !== undefined) {
10770
+ localVarQueryParameter['status'] = status;
10771
+ }
10772
+ if (filter !== undefined) {
10773
+ localVarQueryParameter['filter'] = filter;
10774
+ }
10775
+ if (customerId !== undefined) {
10776
+ localVarQueryParameter['customerId'] = customerId;
10777
+ }
10778
+ localVarHeaderParameter['Accept'] = 'application/json';
10779
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10780
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10781
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10782
+ return [2 /*return*/, {
10783
+ url: (0, common_1.toPathString)(localVarUrlObj),
10784
+ options: localVarRequestOptions,
10785
+ }];
10786
+ });
10787
+ });
10788
+ },
10789
+ /**
10790
+ * Mark Order As Complete (Admin)
10791
+ * @summary Mark Order As Complete (Admin)
10792
+ * @param {number} id Order ID
10793
+ * @param {*} [options] Override http request option.
10794
+ * @throws {RequiredError}
10795
+ */
10796
+ patchCompleteOrder: function (id_1) {
10797
+ var args_1 = [];
10798
+ for (var _i = 1; _i < arguments.length; _i++) {
10799
+ args_1[_i - 1] = arguments[_i];
10800
+ }
10801
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
10802
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10803
+ if (options === void 0) { options = {}; }
10804
+ return __generator(this, function (_a) {
10805
+ // verify required parameter 'id' is not null or undefined
10806
+ (0, common_1.assertParamExists)('patchCompleteOrder', 'id', id);
10807
+ localVarPath = "/admin/orders/{id}/complete"
10808
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10809
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10810
+ if (configuration) {
10811
+ baseOptions = configuration.baseOptions;
10812
+ }
10813
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
10814
+ localVarHeaderParameter = {};
10815
+ localVarQueryParameter = {};
10816
+ localVarHeaderParameter['Accept'] = 'application/json';
10817
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10818
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10819
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10820
+ return [2 /*return*/, {
10821
+ url: (0, common_1.toPathString)(localVarUrlObj),
10822
+ options: localVarRequestOptions,
10823
+ }];
10824
+ });
10825
+ });
10826
+ },
10827
+ /**
10828
+ * Add Order Note
10829
+ * @summary Add Order Note
10830
+ * @param {number} id Order ID
10831
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
10832
+ * @param {*} [options] Override http request option.
10833
+ * @throws {RequiredError}
10834
+ */
10835
+ postAddOrderNote: function (id_1, postAddOrderNoteRequest_1) {
10836
+ var args_1 = [];
10837
+ for (var _i = 2; _i < arguments.length; _i++) {
10838
+ args_1[_i - 2] = arguments[_i];
10839
+ }
10840
+ return __awaiter(_this, __spreadArray([id_1, postAddOrderNoteRequest_1], args_1, true), void 0, function (id, postAddOrderNoteRequest, options) {
10841
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10842
+ if (options === void 0) { options = {}; }
10843
+ return __generator(this, function (_a) {
10844
+ // verify required parameter 'id' is not null or undefined
10845
+ (0, common_1.assertParamExists)('postAddOrderNote', 'id', id);
10846
+ localVarPath = "/admin/orders/{id}/notes"
10847
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10848
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10849
+ if (configuration) {
10850
+ baseOptions = configuration.baseOptions;
10851
+ }
10852
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10853
+ localVarHeaderParameter = {};
10854
+ localVarQueryParameter = {};
10855
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10856
+ localVarHeaderParameter['Accept'] = 'application/json';
10857
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10858
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10859
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10860
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postAddOrderNoteRequest, localVarRequestOptions, configuration);
10861
+ return [2 /*return*/, {
10862
+ url: (0, common_1.toPathString)(localVarUrlObj),
10863
+ options: localVarRequestOptions,
10864
+ }];
10865
+ });
10866
+ });
10867
+ },
10868
+ /**
10869
+ * Create An Order (Admin)
10870
+ * @summary Create An Order (Admin)
10871
+ * @param {boolean} [readonly] Readonly Order
10872
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
10873
+ * @param {*} [options] Override http request option.
10874
+ * @throws {RequiredError}
10875
+ */
10876
+ postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
10877
+ var args_1 = [];
10878
+ for (var _i = 2; _i < arguments.length; _i++) {
10879
+ args_1[_i - 2] = arguments[_i];
10880
+ }
10881
+ return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
10882
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10883
+ if (options === void 0) { options = {}; }
10884
+ return __generator(this, function (_a) {
10885
+ localVarPath = "/admin/orders";
10886
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10887
+ if (configuration) {
10888
+ baseOptions = configuration.baseOptions;
10889
+ }
10890
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10891
+ localVarHeaderParameter = {};
10892
+ localVarQueryParameter = {};
10893
+ if (readonly !== undefined) {
10894
+ localVarQueryParameter['readonly'] = readonly;
10895
+ }
10896
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10897
+ localVarHeaderParameter['Accept'] = 'application/json';
10898
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10899
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10900
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10901
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
10902
+ return [2 /*return*/, {
10903
+ url: (0, common_1.toPathString)(localVarUrlObj),
10904
+ options: localVarRequestOptions,
10905
+ }];
10906
+ });
10907
+ });
10908
+ },
10909
+ /**
10910
+ * Create Shipping Consignment
10911
+ * @summary Create Shipping Consignment
10912
+ * @param {number} id Order ID
10913
+ * @param {number} shipmentId Shipment ID
10914
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
10915
+ * @param {*} [options] Override http request option.
10916
+ * @throws {RequiredError}
10917
+ */
10918
+ postCreateConsignment: function (id_1, shipmentId_1, shippingRequestDTO_1) {
10919
+ var args_1 = [];
10920
+ for (var _i = 3; _i < arguments.length; _i++) {
10921
+ args_1[_i - 3] = arguments[_i];
10922
+ }
10923
+ return __awaiter(_this, __spreadArray([id_1, shipmentId_1, shippingRequestDTO_1], args_1, true), void 0, function (id, shipmentId, shippingRequestDTO, options) {
10924
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10925
+ if (options === void 0) { options = {}; }
10926
+ return __generator(this, function (_a) {
10927
+ // verify required parameter 'id' is not null or undefined
10928
+ (0, common_1.assertParamExists)('postCreateConsignment', 'id', id);
10929
+ // verify required parameter 'shipmentId' is not null or undefined
10930
+ (0, common_1.assertParamExists)('postCreateConsignment', 'shipmentId', shipmentId);
10931
+ localVarPath = "/admin/orders/{id}/shipments/{shipment_id}/consignment"
10932
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
10933
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
10934
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10935
+ if (configuration) {
10936
+ baseOptions = configuration.baseOptions;
10937
+ }
10938
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10939
+ localVarHeaderParameter = {};
10940
+ localVarQueryParameter = {};
10941
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10942
+ localVarHeaderParameter['Accept'] = 'application/json';
10943
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10944
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10945
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10946
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingRequestDTO, localVarRequestOptions, configuration);
10947
+ return [2 /*return*/, {
10948
+ url: (0, common_1.toPathString)(localVarUrlObj),
10949
+ options: localVarRequestOptions,
10950
+ }];
10951
+ });
10952
+ });
10953
+ },
10954
+ /**
10955
+ * Create Shipment (Admin)
10956
+ * @summary Create Shipment (Admin)
10957
+ * @param {number} id Order ID
10958
+ * @param {number} batchId Batch ID
10959
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
10960
+ * @param {*} [options] Override http request option.
10961
+ * @throws {RequiredError}
10962
+ */
10963
+ postCreateShipment: function (id_1, batchId_1, shipmentRequestDTO_1) {
10964
+ var args_1 = [];
10965
+ for (var _i = 3; _i < arguments.length; _i++) {
10966
+ args_1[_i - 3] = arguments[_i];
10967
+ }
10968
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentRequestDTO_1], args_1, true), void 0, function (id, batchId, shipmentRequestDTO, options) {
10969
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10970
+ if (options === void 0) { options = {}; }
10971
+ return __generator(this, function (_a) {
10972
+ // verify required parameter 'id' is not null or undefined
10973
+ (0, common_1.assertParamExists)('postCreateShipment', 'id', id);
10974
+ // verify required parameter 'batchId' is not null or undefined
10975
+ (0, common_1.assertParamExists)('postCreateShipment', 'batchId', batchId);
10976
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments"
10977
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
10978
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)));
10979
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10980
+ if (configuration) {
10981
+ baseOptions = configuration.baseOptions;
10982
+ }
10983
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10984
+ localVarHeaderParameter = {};
10985
+ localVarQueryParameter = {};
10986
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10987
+ localVarHeaderParameter['Accept'] = 'application/json';
10988
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10989
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10990
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10991
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shipmentRequestDTO, localVarRequestOptions, configuration);
10992
+ return [2 /*return*/, {
10993
+ url: (0, common_1.toPathString)(localVarUrlObj),
10994
+ options: localVarRequestOptions,
10995
+ }];
10996
+ });
10997
+ });
10998
+ },
10999
+ /**
11000
+ * Create An Order (Beta)
11001
+ * @summary Create An Order (Beta)
11002
+ * @param {boolean} [readonly] Readonly Order
11003
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
11004
+ * @param {*} [options] Override http request option.
11005
+ * @throws {RequiredError}
11006
+ */
11007
+ postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
11008
+ var args_1 = [];
11009
+ for (var _i = 2; _i < arguments.length; _i++) {
11010
+ args_1[_i - 2] = arguments[_i];
11011
+ }
11012
+ return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
11013
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11014
+ if (options === void 0) { options = {}; }
11015
+ return __generator(this, function (_a) {
11016
+ localVarPath = "/orders";
11017
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11018
+ if (configuration) {
11019
+ baseOptions = configuration.baseOptions;
11020
+ }
11021
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11022
+ localVarHeaderParameter = {};
11023
+ localVarQueryParameter = {};
11024
+ if (readonly !== undefined) {
11025
+ localVarQueryParameter['readonly'] = readonly;
11026
+ }
11027
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11028
+ localVarHeaderParameter['Accept'] = 'application/json';
11029
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11030
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11031
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11032
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
11033
+ return [2 /*return*/, {
11034
+ url: (0, common_1.toPathString)(localVarUrlObj),
11035
+ options: localVarRequestOptions,
11036
+ }];
11037
+ });
11038
+ });
11039
+ },
11040
+ /**
11041
+ * Issue Credit (Admin)
11042
+ * @summary Issue Credit (Admin)
11043
+ * @param {number} id Order ID
11044
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
11045
+ * @param {*} [options] Override http request option.
11046
+ * @throws {RequiredError}
11047
+ */
11048
+ postIssueCredit: function (id_1, creditNoteDTO_1) {
11049
+ var args_1 = [];
11050
+ for (var _i = 2; _i < arguments.length; _i++) {
11051
+ args_1[_i - 2] = arguments[_i];
11052
+ }
11053
+ return __awaiter(_this, __spreadArray([id_1, creditNoteDTO_1], args_1, true), void 0, function (id, creditNoteDTO, options) {
11054
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11055
+ if (options === void 0) { options = {}; }
11056
+ return __generator(this, function (_a) {
11057
+ // verify required parameter 'id' is not null or undefined
11058
+ (0, common_1.assertParamExists)('postIssueCredit', 'id', id);
11059
+ localVarPath = "/admin/orders/{id}/credit"
11060
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
11061
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11062
+ if (configuration) {
11063
+ baseOptions = configuration.baseOptions;
11064
+ }
11065
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11066
+ localVarHeaderParameter = {};
11067
+ localVarQueryParameter = {};
11068
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11069
+ localVarHeaderParameter['Accept'] = 'application/json';
11070
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11071
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11072
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11073
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(creditNoteDTO, localVarRequestOptions, configuration);
11074
+ return [2 /*return*/, {
11075
+ url: (0, common_1.toPathString)(localVarUrlObj),
11076
+ options: localVarRequestOptions,
11077
+ }];
11078
+ });
11079
+ });
11080
+ },
11081
+ /**
11082
+ * Print Shipment Label
11083
+ * @summary Print Shipment Label
11084
+ * @param {number} id Order ID
11085
+ * @param {number} shipmentId Shipment ID
11086
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
11087
+ * @param {*} [options] Override http request option.
11088
+ * @throws {RequiredError}
11089
+ */
11090
+ postPrintShippingLabel: function (id_1, shipmentId_1, printer_1) {
11091
+ var args_1 = [];
11092
+ for (var _i = 3; _i < arguments.length; _i++) {
11093
+ args_1[_i - 3] = arguments[_i];
11094
+ }
11095
+ return __awaiter(_this, __spreadArray([id_1, shipmentId_1, printer_1], args_1, true), void 0, function (id, shipmentId, printer, options) {
11096
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11097
+ if (options === void 0) { options = {}; }
11098
+ return __generator(this, function (_a) {
11099
+ // verify required parameter 'id' is not null or undefined
11100
+ (0, common_1.assertParamExists)('postPrintShippingLabel', 'id', id);
11101
+ // verify required parameter 'shipmentId' is not null or undefined
11102
+ (0, common_1.assertParamExists)('postPrintShippingLabel', 'shipmentId', shipmentId);
11103
+ // verify required parameter 'printer' is not null or undefined
11104
+ (0, common_1.assertParamExists)('postPrintShippingLabel', 'printer', printer);
11105
+ localVarPath = "/admin/orders/{id}/shipments/{shipment_id}/label/print"
11106
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
11107
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
11108
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11109
+ if (configuration) {
11110
+ baseOptions = configuration.baseOptions;
11111
+ }
11112
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11113
+ localVarHeaderParameter = {};
11114
+ localVarQueryParameter = {};
11115
+ if (printer !== undefined) {
11116
+ localVarQueryParameter['printer'] = printer;
11117
+ }
11118
+ localVarHeaderParameter['Accept'] = 'text/html';
11119
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11120
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11121
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11122
+ return [2 /*return*/, {
11123
+ url: (0, common_1.toPathString)(localVarUrlObj),
11124
+ options: localVarRequestOptions,
11125
+ }];
11126
+ });
11127
+ });
11128
+ },
11129
+ /**
11130
+ * Send Order Email
11131
+ * @summary Send Order Email
11132
+ * @param {number} id Order ID
11133
+ * @param {string} email Email Address
11134
+ * @param {*} [options] Override http request option.
11135
+ * @throws {RequiredError}
11136
+ */
11137
+ postSendOrderEmail: function (id_1, email_1) {
11138
+ var args_1 = [];
11139
+ for (var _i = 2; _i < arguments.length; _i++) {
11140
+ args_1[_i - 2] = arguments[_i];
11141
+ }
11142
+ return __awaiter(_this, __spreadArray([id_1, email_1], args_1, true), void 0, function (id, email, options) {
11143
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11144
+ if (options === void 0) { options = {}; }
11145
+ return __generator(this, function (_a) {
11146
+ // verify required parameter 'id' is not null or undefined
11147
+ (0, common_1.assertParamExists)('postSendOrderEmail', 'id', id);
11148
+ // verify required parameter 'email' is not null or undefined
11149
+ (0, common_1.assertParamExists)('postSendOrderEmail', 'email', email);
11150
+ localVarPath = "/admin/orders/{id}/email/send"
11151
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
11152
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11153
+ if (configuration) {
11154
+ baseOptions = configuration.baseOptions;
11155
+ }
11156
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11157
+ localVarHeaderParameter = {};
11158
+ localVarQueryParameter = {};
11159
+ if (email !== undefined) {
11160
+ localVarQueryParameter['email'] = email;
11161
+ }
11162
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11163
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11164
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11165
+ return [2 /*return*/, {
11166
+ url: (0, common_1.toPathString)(localVarUrlObj),
11167
+ options: localVarRequestOptions,
11168
+ }];
11169
+ });
11170
+ });
11171
+ },
11172
+ /**
11173
+ * Send Shipment Email (Admin)
11174
+ * @summary Send Shipment Email (Admin)
11175
+ * @param {number} id Order ID
11176
+ * @param {number} batchId Batch ID
11177
+ * @param {number} shipmentId Shipment ID
11178
+ * @param {string} email Email Address
11179
+ * @param {*} [options] Override http request option.
11180
+ * @throws {RequiredError}
11181
+ */
11182
+ postSendShipmentEmail: function (id_1, batchId_1, shipmentId_1, email_1) {
11183
+ var args_1 = [];
11184
+ for (var _i = 4; _i < arguments.length; _i++) {
11185
+ args_1[_i - 4] = arguments[_i];
11186
+ }
11187
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1, email_1], args_1, true), void 0, function (id, batchId, shipmentId, email, options) {
11188
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11189
+ if (options === void 0) { options = {}; }
11190
+ return __generator(this, function (_a) {
11191
+ // verify required parameter 'id' is not null or undefined
11192
+ (0, common_1.assertParamExists)('postSendShipmentEmail', 'id', id);
11193
+ // verify required parameter 'batchId' is not null or undefined
11194
+ (0, common_1.assertParamExists)('postSendShipmentEmail', 'batchId', batchId);
11195
+ // verify required parameter 'shipmentId' is not null or undefined
11196
+ (0, common_1.assertParamExists)('postSendShipmentEmail', 'shipmentId', shipmentId);
11197
+ // verify required parameter 'email' is not null or undefined
11198
+ (0, common_1.assertParamExists)('postSendShipmentEmail', 'email', email);
11199
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/send/email"
11200
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
11201
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
11202
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
11203
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11204
+ if (configuration) {
11205
+ baseOptions = configuration.baseOptions;
11206
+ }
11207
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11208
+ localVarHeaderParameter = {};
11209
+ localVarQueryParameter = {};
11210
+ if (email !== undefined) {
11211
+ localVarQueryParameter['email'] = email;
11212
+ }
11213
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11214
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11215
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11216
+ return [2 /*return*/, {
11217
+ url: (0, common_1.toPathString)(localVarUrlObj),
11218
+ options: localVarRequestOptions,
11219
+ }];
11220
+ });
11221
+ });
11222
+ },
11223
+ /**
11224
+ * Send Supplier Email
11225
+ * @summary Send Supplier Email
11226
+ * @param {number} id Order ID
11227
+ * @param {number} batchId Batch ID
11228
+ * @param {*} [options] Override http request option.
11229
+ * @throws {RequiredError}
11230
+ */
11231
+ postSendSupplierEmail: function (id_1, batchId_1) {
11232
+ var args_1 = [];
11233
+ for (var _i = 2; _i < arguments.length; _i++) {
11234
+ args_1[_i - 2] = arguments[_i];
11235
+ }
11236
+ return __awaiter(_this, __spreadArray([id_1, batchId_1], args_1, true), void 0, function (id, batchId, options) {
11237
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11238
+ if (options === void 0) { options = {}; }
11239
+ return __generator(this, function (_a) {
11240
+ // verify required parameter 'id' is not null or undefined
11241
+ (0, common_1.assertParamExists)('postSendSupplierEmail', 'id', id);
11242
+ // verify required parameter 'batchId' is not null or undefined
11243
+ (0, common_1.assertParamExists)('postSendSupplierEmail', 'batchId', batchId);
11244
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/email/send"
11245
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
11246
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)));
11247
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11248
+ if (configuration) {
11249
+ baseOptions = configuration.baseOptions;
11250
+ }
11251
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11252
+ localVarHeaderParameter = {};
11253
+ localVarQueryParameter = {};
11254
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11255
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11256
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11257
+ return [2 /*return*/, {
11258
+ url: (0, common_1.toPathString)(localVarUrlObj),
11259
+ options: localVarRequestOptions,
11260
+ }];
11261
+ });
11262
+ });
11263
+ },
11264
+ /**
11265
+ * Split Order
11266
+ * @summary Split Order
11267
+ * @param {number} id Order ID
11268
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
11269
+ * @param {*} [options] Override http request option.
11270
+ * @throws {RequiredError}
11271
+ */
11272
+ postSplitOrder: function (id_1, postSplitOrderRequest_1) {
11273
+ var args_1 = [];
11274
+ for (var _i = 2; _i < arguments.length; _i++) {
11275
+ args_1[_i - 2] = arguments[_i];
11276
+ }
11277
+ return __awaiter(_this, __spreadArray([id_1, postSplitOrderRequest_1], args_1, true), void 0, function (id, postSplitOrderRequest, options) {
11278
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11279
+ if (options === void 0) { options = {}; }
11280
+ return __generator(this, function (_a) {
11281
+ // verify required parameter 'id' is not null or undefined
11282
+ (0, common_1.assertParamExists)('postSplitOrder', 'id', id);
11283
+ localVarPath = "/admin/orders/{id}/split"
11284
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
11285
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11286
+ if (configuration) {
11287
+ baseOptions = configuration.baseOptions;
11288
+ }
11289
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11290
+ localVarHeaderParameter = {};
11291
+ localVarQueryParameter = {};
11292
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11293
+ localVarHeaderParameter['Accept'] = 'application/json';
11294
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11295
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11296
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11297
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSplitOrderRequest, localVarRequestOptions, configuration);
11298
+ return [2 /*return*/, {
11299
+ url: (0, common_1.toPathString)(localVarUrlObj),
11300
+ options: localVarRequestOptions,
11301
+ }];
11302
+ });
11303
+ });
11304
+ },
11305
+ /**
11306
+ * Allocate Items To Supplier
11307
+ * @summary Allocate Items To Supplier
11308
+ * @param {number} id Order ID
11309
+ * @param {number} supplierId Supplier ID
11310
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
11311
+ * @param {*} [options] Override http request option.
11312
+ * @throws {RequiredError}
11313
+ */
11314
+ putAllocateItems: function (id_1, supplierId_1, putAllocateItemsRequest_1) {
11315
+ var args_1 = [];
11316
+ for (var _i = 3; _i < arguments.length; _i++) {
11317
+ args_1[_i - 3] = arguments[_i];
11318
+ }
11319
+ return __awaiter(_this, __spreadArray([id_1, supplierId_1, putAllocateItemsRequest_1], args_1, true), void 0, function (id, supplierId, putAllocateItemsRequest, options) {
11320
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11321
+ if (options === void 0) { options = {}; }
11322
+ return __generator(this, function (_a) {
11323
+ // verify required parameter 'id' is not null or undefined
11324
+ (0, common_1.assertParamExists)('putAllocateItems', 'id', id);
11325
+ // verify required parameter 'supplierId' is not null or undefined
11326
+ (0, common_1.assertParamExists)('putAllocateItems', 'supplierId', supplierId);
11327
+ localVarPath = "/admin/orders/{id}/items/allocate"
11328
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
11329
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11330
+ if (configuration) {
11331
+ baseOptions = configuration.baseOptions;
11332
+ }
11333
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
11334
+ localVarHeaderParameter = {};
11335
+ localVarQueryParameter = {};
11336
+ if (supplierId !== undefined) {
11337
+ localVarQueryParameter['supplierId'] = supplierId;
11338
+ }
11339
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11340
+ localVarHeaderParameter['Accept'] = 'application/json';
11341
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11342
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11343
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11344
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putAllocateItemsRequest, localVarRequestOptions, configuration);
11345
+ return [2 /*return*/, {
11346
+ url: (0, common_1.toPathString)(localVarUrlObj),
11347
+ options: localVarRequestOptions,
11348
+ }];
11349
+ });
11350
+ });
11351
+ },
11352
+ /**
11353
+ * Update An Order (Admin)
11354
+ * @summary Update An Order (Admin)
11355
+ * @param {number} id Order ID
11356
+ * @param {boolean} [readonly] Readonly Order
11357
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
11358
+ * @param {*} [options] Override http request option.
11359
+ * @throws {RequiredError}
11360
+ */
11361
+ putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
11362
+ var args_1 = [];
11363
+ for (var _i = 3; _i < arguments.length; _i++) {
11364
+ args_1[_i - 3] = arguments[_i];
11365
+ }
11366
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
11367
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11368
+ if (options === void 0) { options = {}; }
11369
+ return __generator(this, function (_a) {
11370
+ // verify required parameter 'id' is not null or undefined
11371
+ (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
11372
+ localVarPath = "/admin/orders/{id}"
11373
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
11374
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11375
+ if (configuration) {
11376
+ baseOptions = configuration.baseOptions;
11377
+ }
11378
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
11379
+ localVarHeaderParameter = {};
11380
+ localVarQueryParameter = {};
11381
+ if (readonly !== undefined) {
11382
+ localVarQueryParameter['readonly'] = readonly;
11383
+ }
11384
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11385
+ localVarHeaderParameter['Accept'] = 'application/json';
11386
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11387
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11388
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11389
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
11390
+ return [2 /*return*/, {
11391
+ url: (0, common_1.toPathString)(localVarUrlObj),
11392
+ options: localVarRequestOptions,
11393
+ }];
11394
+ });
11395
+ });
11396
+ },
11397
+ /**
11398
+ * Update Batch Item (Admin)
11399
+ * @summary Update Batch Item (Admin)
11400
+ * @param {number} id Order ID
11401
+ * @param {number} batchId Batch ID
11402
+ * @param {number} itemId Ordered Item ID
11403
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
11404
+ * @param {*} [options] Override http request option.
11405
+ * @throws {RequiredError}
11406
+ */
11407
+ putUpdateBatchItem: function (id_1, batchId_1, itemId_1, orderedItemModel_1) {
11408
+ var args_1 = [];
11409
+ for (var _i = 4; _i < arguments.length; _i++) {
11410
+ args_1[_i - 4] = arguments[_i];
11411
+ }
11412
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, itemId_1, orderedItemModel_1], args_1, true), void 0, function (id, batchId, itemId, orderedItemModel, options) {
11413
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11414
+ if (options === void 0) { options = {}; }
11415
+ return __generator(this, function (_a) {
11416
+ // verify required parameter 'id' is not null or undefined
11417
+ (0, common_1.assertParamExists)('putUpdateBatchItem', 'id', id);
11418
+ // verify required parameter 'batchId' is not null or undefined
11419
+ (0, common_1.assertParamExists)('putUpdateBatchItem', 'batchId', batchId);
11420
+ // verify required parameter 'itemId' is not null or undefined
11421
+ (0, common_1.assertParamExists)('putUpdateBatchItem', 'itemId', itemId);
11422
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/items/{item_id}"
11423
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
11424
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
11425
+ .replace("{".concat("item_id", "}"), encodeURIComponent(String(itemId)));
11426
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11427
+ if (configuration) {
11428
+ baseOptions = configuration.baseOptions;
11429
+ }
11430
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
11431
+ localVarHeaderParameter = {};
11432
+ localVarQueryParameter = {};
11433
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11434
+ localVarHeaderParameter['Accept'] = 'application/json';
11435
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11436
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11437
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11438
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(orderedItemModel, localVarRequestOptions, configuration);
11439
+ return [2 /*return*/, {
11440
+ url: (0, common_1.toPathString)(localVarUrlObj),
11441
+ options: localVarRequestOptions,
11442
+ }];
11443
+ });
11444
+ });
11445
+ },
11446
+ /**
11447
+ * Update An Order (Beta)
11448
+ * @summary Update An Order (Beta)
11449
+ * @param {number} id Order ID
11450
+ * @param {boolean} [readonly] Readonly Order
11451
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
11452
+ * @param {*} [options] Override http request option.
11453
+ * @throws {RequiredError}
11454
+ */
11455
+ putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
11456
+ var args_1 = [];
11457
+ for (var _i = 3; _i < arguments.length; _i++) {
11458
+ args_1[_i - 3] = arguments[_i];
11459
+ }
11460
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
11461
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11462
+ if (options === void 0) { options = {}; }
11463
+ return __generator(this, function (_a) {
11464
+ // verify required parameter 'id' is not null or undefined
11465
+ (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
11466
+ localVarPath = "/orders/{id}"
11467
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
11468
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11469
+ if (configuration) {
11470
+ baseOptions = configuration.baseOptions;
11471
+ }
11472
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
11473
+ localVarHeaderParameter = {};
11474
+ localVarQueryParameter = {};
11475
+ if (readonly !== undefined) {
11476
+ localVarQueryParameter['readonly'] = readonly;
11477
+ }
11478
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11479
+ localVarHeaderParameter['Accept'] = 'application/json';
11480
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11481
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11482
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11483
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
11484
+ return [2 /*return*/, {
11485
+ url: (0, common_1.toPathString)(localVarUrlObj),
11486
+ options: localVarRequestOptions,
11487
+ }];
11488
+ });
11489
+ });
11490
+ },
11491
+ /**
11492
+ * Change Payment Status (Admin)
11493
+ * @summary Change Payment Status (Admin)
11494
+ * @param {number} id Order ID
11495
+ * @param {boolean} paid Paid
11496
+ * @param {*} [options] Override http request option.
11497
+ * @throws {RequiredError}
11498
+ */
11499
+ putUpdatePaymentStatus: function (id_1, paid_1) {
11500
+ var args_1 = [];
11501
+ for (var _i = 2; _i < arguments.length; _i++) {
11502
+ args_1[_i - 2] = arguments[_i];
11503
+ }
11504
+ return __awaiter(_this, __spreadArray([id_1, paid_1], args_1, true), void 0, function (id, paid, options) {
11505
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11506
+ if (options === void 0) { options = {}; }
11507
+ return __generator(this, function (_a) {
11508
+ // verify required parameter 'id' is not null or undefined
11509
+ (0, common_1.assertParamExists)('putUpdatePaymentStatus', 'id', id);
11510
+ // verify required parameter 'paid' is not null or undefined
11511
+ (0, common_1.assertParamExists)('putUpdatePaymentStatus', 'paid', paid);
11512
+ localVarPath = "/admin/orders/{id}/paid"
11513
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
11514
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11515
+ if (configuration) {
11516
+ baseOptions = configuration.baseOptions;
11517
+ }
11518
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
11519
+ localVarHeaderParameter = {};
11520
+ localVarQueryParameter = {};
11521
+ if (paid !== undefined) {
11522
+ localVarQueryParameter['paid'] = paid;
11523
+ }
11524
+ localVarHeaderParameter['Accept'] = 'application/json';
11525
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11526
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11527
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11528
+ return [2 /*return*/, {
11529
+ url: (0, common_1.toPathString)(localVarUrlObj),
11530
+ options: localVarRequestOptions,
11531
+ }];
11532
+ });
11533
+ });
11534
+ },
11535
+ /**
11536
+ * Update Shipment (Admin)
11537
+ * @summary Update Shipment (Admin)
11538
+ * @param {number} id Order ID
11539
+ * @param {number} batchId Batch ID
11540
+ * @param {number} shipmentId Shipment ID
11541
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
11542
+ * @param {*} [options] Override http request option.
11543
+ * @throws {RequiredError}
11544
+ */
11545
+ putUpdateShipment: function (id_1, batchId_1, shipmentId_1, shipmentRequestDTO_1) {
11546
+ var args_1 = [];
11547
+ for (var _i = 4; _i < arguments.length; _i++) {
11548
+ args_1[_i - 4] = arguments[_i];
11549
+ }
11550
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, shipmentId_1, shipmentRequestDTO_1], args_1, true), void 0, function (id, batchId, shipmentId, shipmentRequestDTO, options) {
11551
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11552
+ if (options === void 0) { options = {}; }
11553
+ return __generator(this, function (_a) {
11554
+ // verify required parameter 'id' is not null or undefined
11555
+ (0, common_1.assertParamExists)('putUpdateShipment', 'id', id);
11556
+ // verify required parameter 'batchId' is not null or undefined
11557
+ (0, common_1.assertParamExists)('putUpdateShipment', 'batchId', batchId);
11558
+ // verify required parameter 'shipmentId' is not null or undefined
11559
+ (0, common_1.assertParamExists)('putUpdateShipment', 'shipmentId', shipmentId);
11560
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}"
11561
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
11562
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
11563
+ .replace("{".concat("shipment_id", "}"), encodeURIComponent(String(shipmentId)));
11564
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11565
+ if (configuration) {
11566
+ baseOptions = configuration.baseOptions;
11567
+ }
11568
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
11569
+ localVarHeaderParameter = {};
11570
+ localVarQueryParameter = {};
11571
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11572
+ localVarHeaderParameter['Accept'] = 'application/json';
11573
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11574
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11575
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11576
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shipmentRequestDTO, localVarRequestOptions, configuration);
11577
+ return [2 /*return*/, {
11578
+ url: (0, common_1.toPathString)(localVarUrlObj),
11579
+ options: localVarRequestOptions,
11580
+ }];
11581
+ });
11582
+ });
11583
+ },
11584
+ };
11585
+ };
11586
+ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
11587
+ /**
11588
+ * OrdersApi - functional programming interface
11589
+ */
11590
+ var OrdersApiFp = function (configuration) {
11591
+ var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
11592
+ return {
11593
+ /**
11594
+ * Delete Batch (Admin)
11595
+ * @param {number} id Order ID
11596
+ * @param {number} batchId Batch ID
11597
+ * @param {*} [options] Override http request option.
11598
+ * @throws {RequiredError}
11599
+ */
11600
+ deleteDeleteBatch: function (id, batchId, options) {
11601
+ return __awaiter(this, void 0, void 0, function () {
11602
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11603
+ var _a, _b, _c;
11604
+ return __generator(this, function (_d) {
11605
+ switch (_d.label) {
11606
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, options)];
11607
+ case 1:
11608
+ localVarAxiosArgs = _d.sent();
11609
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11610
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteDeleteBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11611
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11612
+ }
11613
+ });
11614
+ });
11615
+ },
11616
+ /**
11617
+ * Delete Orders (Beta)
11618
+ * @summary Delete Orders (Beta)
11619
+ * @param {number} id Order ID
11620
+ * @param {*} [options] Override http request option.
11621
+ * @throws {RequiredError}
11622
+ */
11623
+ deleteUpdateOrder: function (id, options) {
11624
+ return __awaiter(this, void 0, void 0, function () {
11625
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11626
+ var _a, _b, _c;
11627
+ return __generator(this, function (_d) {
11628
+ switch (_d.label) {
11629
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
11630
+ case 1:
11631
+ localVarAxiosArgs = _d.sent();
11632
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11633
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11634
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11635
+ }
11636
+ });
11637
+ });
11638
+ },
11639
+ /**
11640
+ * Delete Shipment (Admin)
11641
+ * @summary Delete Shipment (Admin)
11642
+ * @param {number} id Order ID
11643
+ * @param {number} batchId Batch ID
11644
+ * @param {number} shipmentId Shipment ID
11645
+ * @param {*} [options] Override http request option.
11646
+ * @throws {RequiredError}
11647
+ */
11648
+ deleteUpdateShipment: function (id, batchId, shipmentId, options) {
11649
+ return __awaiter(this, void 0, void 0, function () {
11650
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11651
+ var _a, _b, _c;
11652
+ return __generator(this, function (_d) {
11653
+ switch (_d.label) {
11654
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateShipment(id, batchId, shipmentId, options)];
11655
+ case 1:
11656
+ localVarAxiosArgs = _d.sent();
11657
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11658
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11659
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11660
+ }
11661
+ });
11662
+ });
11663
+ },
11664
+ /**
11665
+ * Get Editable Order (Admin)
11666
+ * @summary Get Editable Order (Admin)
11667
+ * @param {number} id Order ID
11668
+ * @param {*} [options] Override http request option.
11669
+ * @throws {RequiredError}
11670
+ */
11671
+ getGetAdminEditableOrder: function (id, options) {
11672
+ return __awaiter(this, void 0, void 0, function () {
11673
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11674
+ var _a, _b, _c;
11675
+ return __generator(this, function (_d) {
11676
+ switch (_d.label) {
11677
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
11678
+ case 1:
11679
+ localVarAxiosArgs = _d.sent();
11680
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11681
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11682
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11683
+ }
11684
+ });
11685
+ });
11686
+ },
11687
+ /**
11688
+ * Get Order Details (Admin)
11689
+ * @summary Get Order Details (Admin)
11690
+ * @param {number} id Order ID
11691
+ * @param {*} [options] Override http request option.
11692
+ * @throws {RequiredError}
11693
+ */
11694
+ getGetAdminOrderDetails: function (id, options) {
11695
+ return __awaiter(this, void 0, void 0, function () {
11696
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11697
+ var _a, _b, _c;
11698
+ return __generator(this, function (_d) {
11699
+ switch (_d.label) {
11700
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminOrderDetails(id, options)];
11701
+ case 1:
11702
+ localVarAxiosArgs = _d.sent();
11703
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11704
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminOrderDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11705
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11706
+ }
11707
+ });
11708
+ });
11709
+ },
11710
+ /**
11711
+ * Get Commercial Invoice PDF
11712
+ * @summary Get Commercial Invoice PDF
11713
+ * @param {number} id Order ID
11714
+ * @param {number} batchId Batch ID
11715
+ * @param {number} shipmentId Shipment ID
11716
+ * @param {*} [options] Override http request option.
11717
+ * @throws {RequiredError}
11718
+ */
11719
+ getGetCommercialInvoice: function (id, batchId, shipmentId, options) {
11720
+ return __awaiter(this, void 0, void 0, function () {
11721
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11722
+ var _a, _b, _c;
11723
+ return __generator(this, function (_d) {
11724
+ switch (_d.label) {
11725
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCommercialInvoice(id, batchId, shipmentId, options)];
11726
+ case 1:
11727
+ localVarAxiosArgs = _d.sent();
11728
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11729
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetCommercialInvoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11730
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11731
+ }
11732
+ });
11733
+ });
11734
+ },
11735
+ /**
11736
+ * Get Editable Order (Beta)
11737
+ * @summary Get Editable Order (Beta)
11738
+ * @param {number} id Order ID
11739
+ * @param {*} [options] Override http request option.
11740
+ * @throws {RequiredError}
11741
+ */
11742
+ getGetEditableOrder: function (id, options) {
11743
+ return __awaiter(this, void 0, void 0, function () {
11744
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11745
+ var _a, _b, _c;
11746
+ return __generator(this, function (_d) {
11747
+ switch (_d.label) {
11748
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
11749
+ case 1:
11750
+ localVarAxiosArgs = _d.sent();
11751
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11752
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11753
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11754
+ }
11755
+ });
11756
+ });
11757
+ },
11758
+ /**
11759
+ * Get Item Serial Info (Admin)
11760
+ * @summary Get Item Serial Info (Admin)
11761
+ * @param {number} id Order ID
11762
+ * @param {number} itemId Shipment Item ID
11763
+ * @param {*} [options] Override http request option.
11764
+ * @throws {RequiredError}
11765
+ */
11766
+ getGetItemSerialInfo: function (id, itemId, options) {
11767
+ return __awaiter(this, void 0, void 0, function () {
11768
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11769
+ var _a, _b, _c;
11770
+ return __generator(this, function (_d) {
11771
+ switch (_d.label) {
11772
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetItemSerialInfo(id, itemId, options)];
11773
+ case 1:
11774
+ localVarAxiosArgs = _d.sent();
11775
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11776
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetItemSerialInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11777
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11778
+ }
11779
+ });
11780
+ });
11781
+ },
11782
+ /**
11783
+ * Download Order PDF
11784
+ * @summary Download Order PDF
11785
+ * @param {number} id Order ID
11786
+ * @param {*} [options] Override http request option.
11787
+ * @throws {RequiredError}
11788
+ */
11789
+ getGetOrderPdf: function (id, options) {
11790
+ return __awaiter(this, void 0, void 0, function () {
11791
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11792
+ var _a, _b, _c;
11793
+ return __generator(this, function (_d) {
11794
+ switch (_d.label) {
11795
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrderPdf(id, options)];
11796
+ case 1:
11797
+ localVarAxiosArgs = _d.sent();
11798
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11799
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrderPdf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11800
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11801
+ }
11802
+ });
11803
+ });
11804
+ },
11805
+ /**
11806
+ * Get Order Summary (Admin)
11807
+ * @summary Get Order Summary (Admin)
11808
+ * @param {number} id Order ID
11809
+ * @param {*} [options] Override http request option.
11810
+ * @throws {RequiredError}
11811
+ */
11812
+ getGetOrderSummary: function (id, options) {
11813
+ return __awaiter(this, void 0, void 0, function () {
11814
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11815
+ var _a, _b, _c;
11816
+ return __generator(this, function (_d) {
11817
+ switch (_d.label) {
11818
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrderSummary(id, options)];
11819
+ case 1:
11820
+ localVarAxiosArgs = _d.sent();
11821
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11822
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrderSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11823
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11824
+ }
11825
+ });
11826
+ });
11827
+ },
11828
+ /**
11829
+ * Get Orders (Beta)
11830
+ * @summary Get Orders (Beta)
11831
+ * @param {number} [pageSize] Number Of Results
11832
+ * @param {number} [page] Page Number
11833
+ * @param {string} [search] Search
11834
+ * @param {boolean | null} [fulfillable] Fulfillable
11835
+ * @param {GetGetOrdersStatusEnum} [status] Status
11836
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
11837
+ * @param {number | null} [customerId] Customer ID
11838
+ * @param {*} [options] Override http request option.
11839
+ * @throws {RequiredError}
11840
+ */
11841
+ getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
11842
+ return __awaiter(this, void 0, void 0, function () {
11843
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11844
+ var _a, _b, _c;
11845
+ return __generator(this, function (_d) {
11846
+ switch (_d.label) {
11847
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options)];
11848
+ case 1:
11849
+ localVarAxiosArgs = _d.sent();
11850
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11851
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11852
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11853
+ }
11854
+ });
11855
+ });
11856
+ },
11857
+ /**
11858
+ * Mark Order As Complete (Admin)
11859
+ * @summary Mark Order As Complete (Admin)
11860
+ * @param {number} id Order ID
11861
+ * @param {*} [options] Override http request option.
11862
+ * @throws {RequiredError}
11863
+ */
11864
+ patchCompleteOrder: function (id, options) {
11865
+ return __awaiter(this, void 0, void 0, function () {
11866
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11867
+ var _a, _b, _c;
11868
+ return __generator(this, function (_d) {
11869
+ switch (_d.label) {
11870
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCompleteOrder(id, options)];
11871
+ case 1:
11872
+ localVarAxiosArgs = _d.sent();
11873
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11874
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.patchCompleteOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11875
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11876
+ }
11877
+ });
11878
+ });
11879
+ },
11880
+ /**
11881
+ * Add Order Note
11882
+ * @summary Add Order Note
11883
+ * @param {number} id Order ID
11884
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
11885
+ * @param {*} [options] Override http request option.
11886
+ * @throws {RequiredError}
11887
+ */
11888
+ postAddOrderNote: function (id, postAddOrderNoteRequest, options) {
11889
+ return __awaiter(this, void 0, void 0, function () {
11890
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11891
+ var _a, _b, _c;
11892
+ return __generator(this, function (_d) {
11893
+ switch (_d.label) {
11894
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddOrderNote(id, postAddOrderNoteRequest, options)];
11895
+ case 1:
11896
+ localVarAxiosArgs = _d.sent();
11897
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11898
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postAddOrderNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11899
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11900
+ }
11901
+ });
11902
+ });
11903
+ },
11904
+ /**
11905
+ * Create An Order (Admin)
11906
+ * @summary Create An Order (Admin)
11907
+ * @param {boolean} [readonly] Readonly Order
11908
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
11909
+ * @param {*} [options] Override http request option.
11910
+ * @throws {RequiredError}
11911
+ */
11912
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
11913
+ return __awaiter(this, void 0, void 0, function () {
11914
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11915
+ var _a, _b, _c;
11916
+ return __generator(this, function (_d) {
11917
+ switch (_d.label) {
11918
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
11919
+ case 1:
11920
+ localVarAxiosArgs = _d.sent();
11921
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11922
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11923
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11924
+ }
11925
+ });
11926
+ });
11927
+ },
11928
+ /**
11929
+ * Create Shipping Consignment
11930
+ * @summary Create Shipping Consignment
11931
+ * @param {number} id Order ID
11932
+ * @param {number} shipmentId Shipment ID
11933
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
11934
+ * @param {*} [options] Override http request option.
11935
+ * @throws {RequiredError}
11936
+ */
11937
+ postCreateConsignment: function (id, shipmentId, shippingRequestDTO, options) {
11938
+ return __awaiter(this, void 0, void 0, function () {
11939
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11940
+ var _a, _b, _c;
11941
+ return __generator(this, function (_d) {
11942
+ switch (_d.label) {
11943
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateConsignment(id, shipmentId, shippingRequestDTO, options)];
11944
+ case 1:
11945
+ localVarAxiosArgs = _d.sent();
11946
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11947
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateConsignment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11948
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11949
+ }
11950
+ });
11951
+ });
11952
+ },
11953
+ /**
11954
+ * Create Shipment (Admin)
11955
+ * @summary Create Shipment (Admin)
11956
+ * @param {number} id Order ID
11957
+ * @param {number} batchId Batch ID
11958
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
11959
+ * @param {*} [options] Override http request option.
11960
+ * @throws {RequiredError}
11961
+ */
11962
+ postCreateShipment: function (id, batchId, shipmentRequestDTO, options) {
11963
+ return __awaiter(this, void 0, void 0, function () {
11964
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11965
+ var _a, _b, _c;
11966
+ return __generator(this, function (_d) {
11967
+ switch (_d.label) {
11968
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateShipment(id, batchId, shipmentRequestDTO, options)];
11969
+ case 1:
11970
+ localVarAxiosArgs = _d.sent();
11971
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11972
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11973
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11974
+ }
11975
+ });
11976
+ });
11977
+ },
11978
+ /**
11979
+ * Create An Order (Beta)
11980
+ * @summary Create An Order (Beta)
11981
+ * @param {boolean} [readonly] Readonly Order
11982
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
11983
+ * @param {*} [options] Override http request option.
11984
+ * @throws {RequiredError}
11985
+ */
11986
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
11987
+ return __awaiter(this, void 0, void 0, function () {
11988
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11989
+ var _a, _b, _c;
11990
+ return __generator(this, function (_d) {
11991
+ switch (_d.label) {
11992
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
11993
+ case 1:
11994
+ localVarAxiosArgs = _d.sent();
11995
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11996
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11997
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11998
+ }
11999
+ });
12000
+ });
12001
+ },
12002
+ /**
12003
+ * Issue Credit (Admin)
12004
+ * @summary Issue Credit (Admin)
12005
+ * @param {number} id Order ID
12006
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
12007
+ * @param {*} [options] Override http request option.
12008
+ * @throws {RequiredError}
12009
+ */
12010
+ postIssueCredit: function (id, creditNoteDTO, options) {
12011
+ return __awaiter(this, void 0, void 0, function () {
12012
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12013
+ var _a, _b, _c;
12014
+ return __generator(this, function (_d) {
12015
+ switch (_d.label) {
12016
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postIssueCredit(id, creditNoteDTO, options)];
12017
+ case 1:
12018
+ localVarAxiosArgs = _d.sent();
12019
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12020
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postIssueCredit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12021
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12022
+ }
12023
+ });
12024
+ });
12025
+ },
12026
+ /**
12027
+ * Print Shipment Label
12028
+ * @summary Print Shipment Label
12029
+ * @param {number} id Order ID
12030
+ * @param {number} shipmentId Shipment ID
12031
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
12032
+ * @param {*} [options] Override http request option.
12033
+ * @throws {RequiredError}
12034
+ */
12035
+ postPrintShippingLabel: function (id, shipmentId, printer, options) {
12036
+ return __awaiter(this, void 0, void 0, function () {
12037
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12038
+ var _a, _b, _c;
12039
+ return __generator(this, function (_d) {
12040
+ switch (_d.label) {
12041
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postPrintShippingLabel(id, shipmentId, printer, options)];
12042
+ case 1:
12043
+ localVarAxiosArgs = _d.sent();
12044
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12045
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postPrintShippingLabel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12046
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12047
+ }
12048
+ });
12049
+ });
12050
+ },
12051
+ /**
12052
+ * Send Order Email
12053
+ * @summary Send Order Email
9987
12054
  * @param {number} id Order ID
12055
+ * @param {string} email Email Address
9988
12056
  * @param {*} [options] Override http request option.
9989
12057
  * @throws {RequiredError}
9990
12058
  */
9991
- deleteUpdateOrder: function (id, options) {
12059
+ postSendOrderEmail: function (id, email, options) {
9992
12060
  return __awaiter(this, void 0, void 0, function () {
9993
12061
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9994
12062
  var _a, _b, _c;
9995
12063
  return __generator(this, function (_d) {
9996
12064
  switch (_d.label) {
9997
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
12065
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendOrderEmail(id, email, options)];
9998
12066
  case 1:
9999
12067
  localVarAxiosArgs = _d.sent();
10000
12068
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10001
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12069
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postSendOrderEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10002
12070
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10003
12071
  }
10004
12072
  });
10005
12073
  });
10006
12074
  },
10007
12075
  /**
10008
- * Get Editable Order (Admin)
10009
- * @summary Get Editable Order (Admin)
12076
+ * Send Shipment Email (Admin)
12077
+ * @summary Send Shipment Email (Admin)
10010
12078
  * @param {number} id Order ID
12079
+ * @param {number} batchId Batch ID
12080
+ * @param {number} shipmentId Shipment ID
12081
+ * @param {string} email Email Address
10011
12082
  * @param {*} [options] Override http request option.
10012
12083
  * @throws {RequiredError}
10013
12084
  */
10014
- getGetAdminEditableOrder: function (id, options) {
12085
+ postSendShipmentEmail: function (id, batchId, shipmentId, email, options) {
10015
12086
  return __awaiter(this, void 0, void 0, function () {
10016
12087
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10017
12088
  var _a, _b, _c;
10018
12089
  return __generator(this, function (_d) {
10019
12090
  switch (_d.label) {
10020
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
12091
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendShipmentEmail(id, batchId, shipmentId, email, options)];
10021
12092
  case 1:
10022
12093
  localVarAxiosArgs = _d.sent();
10023
12094
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10024
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12095
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postSendShipmentEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10025
12096
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10026
12097
  }
10027
12098
  });
10028
12099
  });
10029
12100
  },
10030
12101
  /**
10031
- * Get Editable Order (Beta)
10032
- * @summary Get Editable Order (Beta)
12102
+ * Send Supplier Email
12103
+ * @summary Send Supplier Email
10033
12104
  * @param {number} id Order ID
12105
+ * @param {number} batchId Batch ID
10034
12106
  * @param {*} [options] Override http request option.
10035
12107
  * @throws {RequiredError}
10036
12108
  */
10037
- getGetEditableOrder: function (id, options) {
12109
+ postSendSupplierEmail: function (id, batchId, options) {
10038
12110
  return __awaiter(this, void 0, void 0, function () {
10039
12111
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10040
12112
  var _a, _b, _c;
10041
12113
  return __generator(this, function (_d) {
10042
12114
  switch (_d.label) {
10043
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
12115
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendSupplierEmail(id, batchId, options)];
10044
12116
  case 1:
10045
12117
  localVarAxiosArgs = _d.sent();
10046
12118
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10047
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12119
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postSendSupplierEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10048
12120
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10049
12121
  }
10050
12122
  });
10051
12123
  });
10052
12124
  },
10053
12125
  /**
10054
- * Get Orders (Beta)
10055
- * @summary Get Orders (Beta)
10056
- * @param {number} [pageSize] Number Of Results
10057
- * @param {number} [page] Page Number
10058
- * @param {string} [search] Search
10059
- * @param {boolean | null} [fulfillable] Fulfillable
10060
- * @param {GetGetOrdersStatusEnum} [status] Status
10061
- * @param {GetGetOrdersFilterEnum} [filter] Filter
10062
- * @param {number | null} [customerId] Customer ID
12126
+ * Split Order
12127
+ * @summary Split Order
12128
+ * @param {number} id Order ID
12129
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
10063
12130
  * @param {*} [options] Override http request option.
10064
12131
  * @throws {RequiredError}
10065
12132
  */
10066
- getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
12133
+ postSplitOrder: function (id, postSplitOrderRequest, options) {
10067
12134
  return __awaiter(this, void 0, void 0, function () {
10068
12135
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10069
12136
  var _a, _b, _c;
10070
12137
  return __generator(this, function (_d) {
10071
12138
  switch (_d.label) {
10072
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options)];
12139
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSplitOrder(id, postSplitOrderRequest, options)];
10073
12140
  case 1:
10074
12141
  localVarAxiosArgs = _d.sent();
10075
12142
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10076
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12143
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postSplitOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10077
12144
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10078
12145
  }
10079
12146
  });
10080
12147
  });
10081
12148
  },
10082
12149
  /**
10083
- * Create An Order (Admin)
10084
- * @summary Create An Order (Admin)
10085
- * @param {boolean} [readonly] Readonly Order
10086
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
12150
+ * Allocate Items To Supplier
12151
+ * @summary Allocate Items To Supplier
12152
+ * @param {number} id Order ID
12153
+ * @param {number} supplierId Supplier ID
12154
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
10087
12155
  * @param {*} [options] Override http request option.
10088
12156
  * @throws {RequiredError}
10089
12157
  */
10090
- postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
12158
+ putAllocateItems: function (id, supplierId, putAllocateItemsRequest, options) {
10091
12159
  return __awaiter(this, void 0, void 0, function () {
10092
12160
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10093
12161
  var _a, _b, _c;
10094
12162
  return __generator(this, function (_d) {
10095
12163
  switch (_d.label) {
10096
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
12164
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putAllocateItems(id, supplierId, putAllocateItemsRequest, options)];
10097
12165
  case 1:
10098
12166
  localVarAxiosArgs = _d.sent();
10099
12167
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10100
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12168
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putAllocateItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10101
12169
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10102
12170
  }
10103
12171
  });
10104
12172
  });
10105
12173
  },
10106
12174
  /**
10107
- * Create An Order (Beta)
10108
- * @summary Create An Order (Beta)
12175
+ * Update An Order (Admin)
12176
+ * @summary Update An Order (Admin)
12177
+ * @param {number} id Order ID
10109
12178
  * @param {boolean} [readonly] Readonly Order
10110
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
12179
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
10111
12180
  * @param {*} [options] Override http request option.
10112
12181
  * @throws {RequiredError}
10113
12182
  */
10114
- postGetOrders: function (readonly, customerOrderRequestDTO, options) {
12183
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
10115
12184
  return __awaiter(this, void 0, void 0, function () {
10116
12185
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10117
12186
  var _a, _b, _c;
10118
12187
  return __generator(this, function (_d) {
10119
12188
  switch (_d.label) {
10120
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
12189
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
10121
12190
  case 1:
10122
12191
  localVarAxiosArgs = _d.sent();
10123
12192
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10124
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12193
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10125
12194
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10126
12195
  }
10127
12196
  });
10128
12197
  });
10129
12198
  },
10130
12199
  /**
10131
- * Update An Order (Admin)
10132
- * @summary Update An Order (Admin)
12200
+ * Update Batch Item (Admin)
12201
+ * @summary Update Batch Item (Admin)
10133
12202
  * @param {number} id Order ID
10134
- * @param {boolean} [readonly] Readonly Order
10135
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
12203
+ * @param {number} batchId Batch ID
12204
+ * @param {number} itemId Ordered Item ID
12205
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
10136
12206
  * @param {*} [options] Override http request option.
10137
12207
  * @throws {RequiredError}
10138
12208
  */
10139
- putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
12209
+ putUpdateBatchItem: function (id, batchId, itemId, orderedItemModel, options) {
10140
12210
  return __awaiter(this, void 0, void 0, function () {
10141
12211
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10142
12212
  var _a, _b, _c;
10143
12213
  return __generator(this, function (_d) {
10144
12214
  switch (_d.label) {
10145
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
12215
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options)];
10146
12216
  case 1:
10147
12217
  localVarAxiosArgs = _d.sent();
10148
12218
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10149
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12219
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateBatchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10150
12220
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10151
12221
  }
10152
12222
  });
@@ -10177,6 +12247,56 @@ var OrdersApiFp = function (configuration) {
10177
12247
  });
10178
12248
  });
10179
12249
  },
12250
+ /**
12251
+ * Change Payment Status (Admin)
12252
+ * @summary Change Payment Status (Admin)
12253
+ * @param {number} id Order ID
12254
+ * @param {boolean} paid Paid
12255
+ * @param {*} [options] Override http request option.
12256
+ * @throws {RequiredError}
12257
+ */
12258
+ putUpdatePaymentStatus: function (id, paid, options) {
12259
+ return __awaiter(this, void 0, void 0, function () {
12260
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12261
+ var _a, _b, _c;
12262
+ return __generator(this, function (_d) {
12263
+ switch (_d.label) {
12264
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdatePaymentStatus(id, paid, options)];
12265
+ case 1:
12266
+ localVarAxiosArgs = _d.sent();
12267
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12268
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdatePaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12269
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12270
+ }
12271
+ });
12272
+ });
12273
+ },
12274
+ /**
12275
+ * Update Shipment (Admin)
12276
+ * @summary Update Shipment (Admin)
12277
+ * @param {number} id Order ID
12278
+ * @param {number} batchId Batch ID
12279
+ * @param {number} shipmentId Shipment ID
12280
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
12281
+ * @param {*} [options] Override http request option.
12282
+ * @throws {RequiredError}
12283
+ */
12284
+ putUpdateShipment: function (id, batchId, shipmentId, shipmentRequestDTO, options) {
12285
+ return __awaiter(this, void 0, void 0, function () {
12286
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12287
+ var _a, _b, _c;
12288
+ return __generator(this, function (_d) {
12289
+ switch (_d.label) {
12290
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options)];
12291
+ case 1:
12292
+ localVarAxiosArgs = _d.sent();
12293
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12294
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateShipment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12295
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12296
+ }
12297
+ });
12298
+ });
12299
+ },
10180
12300
  };
10181
12301
  };
10182
12302
  exports.OrdersApiFp = OrdersApiFp;
@@ -10186,6 +12306,16 @@ exports.OrdersApiFp = OrdersApiFp;
10186
12306
  var OrdersApiFactory = function (configuration, basePath, axios) {
10187
12307
  var localVarFp = (0, exports.OrdersApiFp)(configuration);
10188
12308
  return {
12309
+ /**
12310
+ * Delete Batch (Admin)
12311
+ * @param {number} id Order ID
12312
+ * @param {number} batchId Batch ID
12313
+ * @param {*} [options] Override http request option.
12314
+ * @throws {RequiredError}
12315
+ */
12316
+ deleteDeleteBatch: function (id, batchId, options) {
12317
+ return localVarFp.deleteDeleteBatch(id, batchId, options).then(function (request) { return request(axios, basePath); });
12318
+ },
10189
12319
  /**
10190
12320
  * Delete Orders (Beta)
10191
12321
  * @summary Delete Orders (Beta)
@@ -10196,6 +12326,18 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10196
12326
  deleteUpdateOrder: function (id, options) {
10197
12327
  return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
10198
12328
  },
12329
+ /**
12330
+ * Delete Shipment (Admin)
12331
+ * @summary Delete Shipment (Admin)
12332
+ * @param {number} id Order ID
12333
+ * @param {number} batchId Batch ID
12334
+ * @param {number} shipmentId Shipment ID
12335
+ * @param {*} [options] Override http request option.
12336
+ * @throws {RequiredError}
12337
+ */
12338
+ deleteUpdateShipment: function (id, batchId, shipmentId, options) {
12339
+ return localVarFp.deleteUpdateShipment(id, batchId, shipmentId, options).then(function (request) { return request(axios, basePath); });
12340
+ },
10199
12341
  /**
10200
12342
  * Get Editable Order (Admin)
10201
12343
  * @summary Get Editable Order (Admin)
@@ -10206,6 +12348,28 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10206
12348
  getGetAdminEditableOrder: function (id, options) {
10207
12349
  return localVarFp.getGetAdminEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
10208
12350
  },
12351
+ /**
12352
+ * Get Order Details (Admin)
12353
+ * @summary Get Order Details (Admin)
12354
+ * @param {number} id Order ID
12355
+ * @param {*} [options] Override http request option.
12356
+ * @throws {RequiredError}
12357
+ */
12358
+ getGetAdminOrderDetails: function (id, options) {
12359
+ return localVarFp.getGetAdminOrderDetails(id, options).then(function (request) { return request(axios, basePath); });
12360
+ },
12361
+ /**
12362
+ * Get Commercial Invoice PDF
12363
+ * @summary Get Commercial Invoice PDF
12364
+ * @param {number} id Order ID
12365
+ * @param {number} batchId Batch ID
12366
+ * @param {number} shipmentId Shipment ID
12367
+ * @param {*} [options] Override http request option.
12368
+ * @throws {RequiredError}
12369
+ */
12370
+ getGetCommercialInvoice: function (id, batchId, shipmentId, options) {
12371
+ return localVarFp.getGetCommercialInvoice(id, batchId, shipmentId, options).then(function (request) { return request(axios, basePath); });
12372
+ },
10209
12373
  /**
10210
12374
  * Get Editable Order (Beta)
10211
12375
  * @summary Get Editable Order (Beta)
@@ -10216,6 +12380,37 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10216
12380
  getGetEditableOrder: function (id, options) {
10217
12381
  return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
10218
12382
  },
12383
+ /**
12384
+ * Get Item Serial Info (Admin)
12385
+ * @summary Get Item Serial Info (Admin)
12386
+ * @param {number} id Order ID
12387
+ * @param {number} itemId Shipment Item ID
12388
+ * @param {*} [options] Override http request option.
12389
+ * @throws {RequiredError}
12390
+ */
12391
+ getGetItemSerialInfo: function (id, itemId, options) {
12392
+ return localVarFp.getGetItemSerialInfo(id, itemId, options).then(function (request) { return request(axios, basePath); });
12393
+ },
12394
+ /**
12395
+ * Download Order PDF
12396
+ * @summary Download Order PDF
12397
+ * @param {number} id Order ID
12398
+ * @param {*} [options] Override http request option.
12399
+ * @throws {RequiredError}
12400
+ */
12401
+ getGetOrderPdf: function (id, options) {
12402
+ return localVarFp.getGetOrderPdf(id, options).then(function (request) { return request(axios, basePath); });
12403
+ },
12404
+ /**
12405
+ * Get Order Summary (Admin)
12406
+ * @summary Get Order Summary (Admin)
12407
+ * @param {number} id Order ID
12408
+ * @param {*} [options] Override http request option.
12409
+ * @throws {RequiredError}
12410
+ */
12411
+ getGetOrderSummary: function (id, options) {
12412
+ return localVarFp.getGetOrderSummary(id, options).then(function (request) { return request(axios, basePath); });
12413
+ },
10219
12414
  /**
10220
12415
  * Get Orders (Beta)
10221
12416
  * @summary Get Orders (Beta)
@@ -10232,6 +12427,27 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10232
12427
  getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
10233
12428
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
10234
12429
  },
12430
+ /**
12431
+ * Mark Order As Complete (Admin)
12432
+ * @summary Mark Order As Complete (Admin)
12433
+ * @param {number} id Order ID
12434
+ * @param {*} [options] Override http request option.
12435
+ * @throws {RequiredError}
12436
+ */
12437
+ patchCompleteOrder: function (id, options) {
12438
+ return localVarFp.patchCompleteOrder(id, options).then(function (request) { return request(axios, basePath); });
12439
+ },
12440
+ /**
12441
+ * Add Order Note
12442
+ * @summary Add Order Note
12443
+ * @param {number} id Order ID
12444
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
12445
+ * @param {*} [options] Override http request option.
12446
+ * @throws {RequiredError}
12447
+ */
12448
+ postAddOrderNote: function (id, postAddOrderNoteRequest, options) {
12449
+ return localVarFp.postAddOrderNote(id, postAddOrderNoteRequest, options).then(function (request) { return request(axios, basePath); });
12450
+ },
10235
12451
  /**
10236
12452
  * Create An Order (Admin)
10237
12453
  * @summary Create An Order (Admin)
@@ -10243,6 +12459,30 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10243
12459
  postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
10244
12460
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
10245
12461
  },
12462
+ /**
12463
+ * Create Shipping Consignment
12464
+ * @summary Create Shipping Consignment
12465
+ * @param {number} id Order ID
12466
+ * @param {number} shipmentId Shipment ID
12467
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
12468
+ * @param {*} [options] Override http request option.
12469
+ * @throws {RequiredError}
12470
+ */
12471
+ postCreateConsignment: function (id, shipmentId, shippingRequestDTO, options) {
12472
+ return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then(function (request) { return request(axios, basePath); });
12473
+ },
12474
+ /**
12475
+ * Create Shipment (Admin)
12476
+ * @summary Create Shipment (Admin)
12477
+ * @param {number} id Order ID
12478
+ * @param {number} batchId Batch ID
12479
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
12480
+ * @param {*} [options] Override http request option.
12481
+ * @throws {RequiredError}
12482
+ */
12483
+ postCreateShipment: function (id, batchId, shipmentRequestDTO, options) {
12484
+ return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
12485
+ },
10246
12486
  /**
10247
12487
  * Create An Order (Beta)
10248
12488
  * @summary Create An Order (Beta)
@@ -10254,6 +12494,87 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10254
12494
  postGetOrders: function (readonly, customerOrderRequestDTO, options) {
10255
12495
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
10256
12496
  },
12497
+ /**
12498
+ * Issue Credit (Admin)
12499
+ * @summary Issue Credit (Admin)
12500
+ * @param {number} id Order ID
12501
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
12502
+ * @param {*} [options] Override http request option.
12503
+ * @throws {RequiredError}
12504
+ */
12505
+ postIssueCredit: function (id, creditNoteDTO, options) {
12506
+ return localVarFp.postIssueCredit(id, creditNoteDTO, options).then(function (request) { return request(axios, basePath); });
12507
+ },
12508
+ /**
12509
+ * Print Shipment Label
12510
+ * @summary Print Shipment Label
12511
+ * @param {number} id Order ID
12512
+ * @param {number} shipmentId Shipment ID
12513
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
12514
+ * @param {*} [options] Override http request option.
12515
+ * @throws {RequiredError}
12516
+ */
12517
+ postPrintShippingLabel: function (id, shipmentId, printer, options) {
12518
+ return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then(function (request) { return request(axios, basePath); });
12519
+ },
12520
+ /**
12521
+ * Send Order Email
12522
+ * @summary Send Order Email
12523
+ * @param {number} id Order ID
12524
+ * @param {string} email Email Address
12525
+ * @param {*} [options] Override http request option.
12526
+ * @throws {RequiredError}
12527
+ */
12528
+ postSendOrderEmail: function (id, email, options) {
12529
+ return localVarFp.postSendOrderEmail(id, email, options).then(function (request) { return request(axios, basePath); });
12530
+ },
12531
+ /**
12532
+ * Send Shipment Email (Admin)
12533
+ * @summary Send Shipment Email (Admin)
12534
+ * @param {number} id Order ID
12535
+ * @param {number} batchId Batch ID
12536
+ * @param {number} shipmentId Shipment ID
12537
+ * @param {string} email Email Address
12538
+ * @param {*} [options] Override http request option.
12539
+ * @throws {RequiredError}
12540
+ */
12541
+ postSendShipmentEmail: function (id, batchId, shipmentId, email, options) {
12542
+ return localVarFp.postSendShipmentEmail(id, batchId, shipmentId, email, options).then(function (request) { return request(axios, basePath); });
12543
+ },
12544
+ /**
12545
+ * Send Supplier Email
12546
+ * @summary Send Supplier Email
12547
+ * @param {number} id Order ID
12548
+ * @param {number} batchId Batch ID
12549
+ * @param {*} [options] Override http request option.
12550
+ * @throws {RequiredError}
12551
+ */
12552
+ postSendSupplierEmail: function (id, batchId, options) {
12553
+ return localVarFp.postSendSupplierEmail(id, batchId, options).then(function (request) { return request(axios, basePath); });
12554
+ },
12555
+ /**
12556
+ * Split Order
12557
+ * @summary Split Order
12558
+ * @param {number} id Order ID
12559
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
12560
+ * @param {*} [options] Override http request option.
12561
+ * @throws {RequiredError}
12562
+ */
12563
+ postSplitOrder: function (id, postSplitOrderRequest, options) {
12564
+ return localVarFp.postSplitOrder(id, postSplitOrderRequest, options).then(function (request) { return request(axios, basePath); });
12565
+ },
12566
+ /**
12567
+ * Allocate Items To Supplier
12568
+ * @summary Allocate Items To Supplier
12569
+ * @param {number} id Order ID
12570
+ * @param {number} supplierId Supplier ID
12571
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
12572
+ * @param {*} [options] Override http request option.
12573
+ * @throws {RequiredError}
12574
+ */
12575
+ putAllocateItems: function (id, supplierId, putAllocateItemsRequest, options) {
12576
+ return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then(function (request) { return request(axios, basePath); });
12577
+ },
10257
12578
  /**
10258
12579
  * Update An Order (Admin)
10259
12580
  * @summary Update An Order (Admin)
@@ -10266,6 +12587,19 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10266
12587
  putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
10267
12588
  return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
10268
12589
  },
12590
+ /**
12591
+ * Update Batch Item (Admin)
12592
+ * @summary Update Batch Item (Admin)
12593
+ * @param {number} id Order ID
12594
+ * @param {number} batchId Batch ID
12595
+ * @param {number} itemId Ordered Item ID
12596
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
12597
+ * @param {*} [options] Override http request option.
12598
+ * @throws {RequiredError}
12599
+ */
12600
+ putUpdateBatchItem: function (id, batchId, itemId, orderedItemModel, options) {
12601
+ return localVarFp.putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options).then(function (request) { return request(axios, basePath); });
12602
+ },
10269
12603
  /**
10270
12604
  * Update An Order (Beta)
10271
12605
  * @summary Update An Order (Beta)
@@ -10278,6 +12612,30 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
10278
12612
  putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
10279
12613
  return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
10280
12614
  },
12615
+ /**
12616
+ * Change Payment Status (Admin)
12617
+ * @summary Change Payment Status (Admin)
12618
+ * @param {number} id Order ID
12619
+ * @param {boolean} paid Paid
12620
+ * @param {*} [options] Override http request option.
12621
+ * @throws {RequiredError}
12622
+ */
12623
+ putUpdatePaymentStatus: function (id, paid, options) {
12624
+ return localVarFp.putUpdatePaymentStatus(id, paid, options).then(function (request) { return request(axios, basePath); });
12625
+ },
12626
+ /**
12627
+ * Update Shipment (Admin)
12628
+ * @summary Update Shipment (Admin)
12629
+ * @param {number} id Order ID
12630
+ * @param {number} batchId Batch ID
12631
+ * @param {number} shipmentId Shipment ID
12632
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
12633
+ * @param {*} [options] Override http request option.
12634
+ * @throws {RequiredError}
12635
+ */
12636
+ putUpdateShipment: function (id, batchId, shipmentId, shipmentRequestDTO, options) {
12637
+ return localVarFp.putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
12638
+ },
10281
12639
  };
10282
12640
  };
10283
12641
  exports.OrdersApiFactory = OrdersApiFactory;
@@ -10290,26 +12648,74 @@ var OrdersApi = /** @class */ (function (_super) {
10290
12648
  return _super !== null && _super.apply(this, arguments) || this;
10291
12649
  }
10292
12650
  /**
10293
- * Delete Orders (Beta)
10294
- * @summary Delete Orders (Beta)
12651
+ * Delete Batch (Admin)
12652
+ * @param {number} id Order ID
12653
+ * @param {number} batchId Batch ID
12654
+ * @param {*} [options] Override http request option.
12655
+ * @throws {RequiredError}
12656
+ */
12657
+ OrdersApi.prototype.deleteDeleteBatch = function (id, batchId, options) {
12658
+ var _this = this;
12659
+ return (0, exports.OrdersApiFp)(this.configuration).deleteDeleteBatch(id, batchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12660
+ };
12661
+ /**
12662
+ * Delete Orders (Beta)
12663
+ * @summary Delete Orders (Beta)
12664
+ * @param {number} id Order ID
12665
+ * @param {*} [options] Override http request option.
12666
+ * @throws {RequiredError}
12667
+ */
12668
+ OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
12669
+ var _this = this;
12670
+ return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
12671
+ };
12672
+ /**
12673
+ * Delete Shipment (Admin)
12674
+ * @summary Delete Shipment (Admin)
12675
+ * @param {number} id Order ID
12676
+ * @param {number} batchId Batch ID
12677
+ * @param {number} shipmentId Shipment ID
12678
+ * @param {*} [options] Override http request option.
12679
+ * @throws {RequiredError}
12680
+ */
12681
+ OrdersApi.prototype.deleteUpdateShipment = function (id, batchId, shipmentId, options) {
12682
+ var _this = this;
12683
+ return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateShipment(id, batchId, shipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12684
+ };
12685
+ /**
12686
+ * Get Editable Order (Admin)
12687
+ * @summary Get Editable Order (Admin)
12688
+ * @param {number} id Order ID
12689
+ * @param {*} [options] Override http request option.
12690
+ * @throws {RequiredError}
12691
+ */
12692
+ OrdersApi.prototype.getGetAdminEditableOrder = function (id, options) {
12693
+ var _this = this;
12694
+ return (0, exports.OrdersApiFp)(this.configuration).getGetAdminEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
12695
+ };
12696
+ /**
12697
+ * Get Order Details (Admin)
12698
+ * @summary Get Order Details (Admin)
10295
12699
  * @param {number} id Order ID
10296
12700
  * @param {*} [options] Override http request option.
10297
12701
  * @throws {RequiredError}
10298
12702
  */
10299
- OrdersApi.prototype.deleteUpdateOrder = function (id, options) {
12703
+ OrdersApi.prototype.getGetAdminOrderDetails = function (id, options) {
10300
12704
  var _this = this;
10301
- return (0, exports.OrdersApiFp)(this.configuration).deleteUpdateOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
12705
+ return (0, exports.OrdersApiFp)(this.configuration).getGetAdminOrderDetails(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
10302
12706
  };
10303
12707
  /**
10304
- * Get Editable Order (Admin)
10305
- * @summary Get Editable Order (Admin)
12708
+ * Get Commercial Invoice PDF
12709
+ * @summary Get Commercial Invoice PDF
10306
12710
  * @param {number} id Order ID
12711
+ * @param {number} batchId Batch ID
12712
+ * @param {number} shipmentId Shipment ID
10307
12713
  * @param {*} [options] Override http request option.
10308
12714
  * @throws {RequiredError}
10309
12715
  */
10310
- OrdersApi.prototype.getGetAdminEditableOrder = function (id, options) {
12716
+ OrdersApi.prototype.getGetCommercialInvoice = function (id, batchId, shipmentId, options) {
10311
12717
  var _this = this;
10312
- return (0, exports.OrdersApiFp)(this.configuration).getGetAdminEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
12718
+ return (0, exports.OrdersApiFp)(this.configuration).getGetCommercialInvoice(id, batchId, shipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10313
12719
  };
10314
12720
  /**
10315
12721
  * Get Editable Order (Beta)
@@ -10322,6 +12728,40 @@ var OrdersApi = /** @class */ (function (_super) {
10322
12728
  var _this = this;
10323
12729
  return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
10324
12730
  };
12731
+ /**
12732
+ * Get Item Serial Info (Admin)
12733
+ * @summary Get Item Serial Info (Admin)
12734
+ * @param {number} id Order ID
12735
+ * @param {number} itemId Shipment Item ID
12736
+ * @param {*} [options] Override http request option.
12737
+ * @throws {RequiredError}
12738
+ */
12739
+ OrdersApi.prototype.getGetItemSerialInfo = function (id, itemId, options) {
12740
+ var _this = this;
12741
+ return (0, exports.OrdersApiFp)(this.configuration).getGetItemSerialInfo(id, itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12742
+ };
12743
+ /**
12744
+ * Download Order PDF
12745
+ * @summary Download Order PDF
12746
+ * @param {number} id Order ID
12747
+ * @param {*} [options] Override http request option.
12748
+ * @throws {RequiredError}
12749
+ */
12750
+ OrdersApi.prototype.getGetOrderPdf = function (id, options) {
12751
+ var _this = this;
12752
+ return (0, exports.OrdersApiFp)(this.configuration).getGetOrderPdf(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
12753
+ };
12754
+ /**
12755
+ * Get Order Summary (Admin)
12756
+ * @summary Get Order Summary (Admin)
12757
+ * @param {number} id Order ID
12758
+ * @param {*} [options] Override http request option.
12759
+ * @throws {RequiredError}
12760
+ */
12761
+ OrdersApi.prototype.getGetOrderSummary = function (id, options) {
12762
+ var _this = this;
12763
+ return (0, exports.OrdersApiFp)(this.configuration).getGetOrderSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
12764
+ };
10325
12765
  /**
10326
12766
  * Get Orders (Beta)
10327
12767
  * @summary Get Orders (Beta)
@@ -10339,6 +12779,29 @@ var OrdersApi = /** @class */ (function (_super) {
10339
12779
  var _this = this;
10340
12780
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10341
12781
  };
12782
+ /**
12783
+ * Mark Order As Complete (Admin)
12784
+ * @summary Mark Order As Complete (Admin)
12785
+ * @param {number} id Order ID
12786
+ * @param {*} [options] Override http request option.
12787
+ * @throws {RequiredError}
12788
+ */
12789
+ OrdersApi.prototype.patchCompleteOrder = function (id, options) {
12790
+ var _this = this;
12791
+ return (0, exports.OrdersApiFp)(this.configuration).patchCompleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
12792
+ };
12793
+ /**
12794
+ * Add Order Note
12795
+ * @summary Add Order Note
12796
+ * @param {number} id Order ID
12797
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
12798
+ * @param {*} [options] Override http request option.
12799
+ * @throws {RequiredError}
12800
+ */
12801
+ OrdersApi.prototype.postAddOrderNote = function (id, postAddOrderNoteRequest, options) {
12802
+ var _this = this;
12803
+ return (0, exports.OrdersApiFp)(this.configuration).postAddOrderNote(id, postAddOrderNoteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
12804
+ };
10342
12805
  /**
10343
12806
  * Create An Order (Admin)
10344
12807
  * @summary Create An Order (Admin)
@@ -10351,6 +12814,32 @@ var OrdersApi = /** @class */ (function (_super) {
10351
12814
  var _this = this;
10352
12815
  return (0, exports.OrdersApiFp)(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10353
12816
  };
12817
+ /**
12818
+ * Create Shipping Consignment
12819
+ * @summary Create Shipping Consignment
12820
+ * @param {number} id Order ID
12821
+ * @param {number} shipmentId Shipment ID
12822
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
12823
+ * @param {*} [options] Override http request option.
12824
+ * @throws {RequiredError}
12825
+ */
12826
+ OrdersApi.prototype.postCreateConsignment = function (id, shipmentId, shippingRequestDTO, options) {
12827
+ var _this = this;
12828
+ return (0, exports.OrdersApiFp)(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12829
+ };
12830
+ /**
12831
+ * Create Shipment (Admin)
12832
+ * @summary Create Shipment (Admin)
12833
+ * @param {number} id Order ID
12834
+ * @param {number} batchId Batch ID
12835
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
12836
+ * @param {*} [options] Override http request option.
12837
+ * @throws {RequiredError}
12838
+ */
12839
+ OrdersApi.prototype.postCreateShipment = function (id, batchId, shipmentRequestDTO, options) {
12840
+ var _this = this;
12841
+ return (0, exports.OrdersApiFp)(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12842
+ };
10354
12843
  /**
10355
12844
  * Create An Order (Beta)
10356
12845
  * @summary Create An Order (Beta)
@@ -10363,6 +12852,94 @@ var OrdersApi = /** @class */ (function (_super) {
10363
12852
  var _this = this;
10364
12853
  return (0, exports.OrdersApiFp)(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10365
12854
  };
12855
+ /**
12856
+ * Issue Credit (Admin)
12857
+ * @summary Issue Credit (Admin)
12858
+ * @param {number} id Order ID
12859
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
12860
+ * @param {*} [options] Override http request option.
12861
+ * @throws {RequiredError}
12862
+ */
12863
+ OrdersApi.prototype.postIssueCredit = function (id, creditNoteDTO, options) {
12864
+ var _this = this;
12865
+ return (0, exports.OrdersApiFp)(this.configuration).postIssueCredit(id, creditNoteDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12866
+ };
12867
+ /**
12868
+ * Print Shipment Label
12869
+ * @summary Print Shipment Label
12870
+ * @param {number} id Order ID
12871
+ * @param {number} shipmentId Shipment ID
12872
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
12873
+ * @param {*} [options] Override http request option.
12874
+ * @throws {RequiredError}
12875
+ */
12876
+ OrdersApi.prototype.postPrintShippingLabel = function (id, shipmentId, printer, options) {
12877
+ var _this = this;
12878
+ return (0, exports.OrdersApiFp)(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then(function (request) { return request(_this.axios, _this.basePath); });
12879
+ };
12880
+ /**
12881
+ * Send Order Email
12882
+ * @summary Send Order Email
12883
+ * @param {number} id Order ID
12884
+ * @param {string} email Email Address
12885
+ * @param {*} [options] Override http request option.
12886
+ * @throws {RequiredError}
12887
+ */
12888
+ OrdersApi.prototype.postSendOrderEmail = function (id, email, options) {
12889
+ var _this = this;
12890
+ return (0, exports.OrdersApiFp)(this.configuration).postSendOrderEmail(id, email, options).then(function (request) { return request(_this.axios, _this.basePath); });
12891
+ };
12892
+ /**
12893
+ * Send Shipment Email (Admin)
12894
+ * @summary Send Shipment Email (Admin)
12895
+ * @param {number} id Order ID
12896
+ * @param {number} batchId Batch ID
12897
+ * @param {number} shipmentId Shipment ID
12898
+ * @param {string} email Email Address
12899
+ * @param {*} [options] Override http request option.
12900
+ * @throws {RequiredError}
12901
+ */
12902
+ OrdersApi.prototype.postSendShipmentEmail = function (id, batchId, shipmentId, email, options) {
12903
+ var _this = this;
12904
+ return (0, exports.OrdersApiFp)(this.configuration).postSendShipmentEmail(id, batchId, shipmentId, email, options).then(function (request) { return request(_this.axios, _this.basePath); });
12905
+ };
12906
+ /**
12907
+ * Send Supplier Email
12908
+ * @summary Send Supplier Email
12909
+ * @param {number} id Order ID
12910
+ * @param {number} batchId Batch ID
12911
+ * @param {*} [options] Override http request option.
12912
+ * @throws {RequiredError}
12913
+ */
12914
+ OrdersApi.prototype.postSendSupplierEmail = function (id, batchId, options) {
12915
+ var _this = this;
12916
+ return (0, exports.OrdersApiFp)(this.configuration).postSendSupplierEmail(id, batchId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12917
+ };
12918
+ /**
12919
+ * Split Order
12920
+ * @summary Split Order
12921
+ * @param {number} id Order ID
12922
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
12923
+ * @param {*} [options] Override http request option.
12924
+ * @throws {RequiredError}
12925
+ */
12926
+ OrdersApi.prototype.postSplitOrder = function (id, postSplitOrderRequest, options) {
12927
+ var _this = this;
12928
+ return (0, exports.OrdersApiFp)(this.configuration).postSplitOrder(id, postSplitOrderRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
12929
+ };
12930
+ /**
12931
+ * Allocate Items To Supplier
12932
+ * @summary Allocate Items To Supplier
12933
+ * @param {number} id Order ID
12934
+ * @param {number} supplierId Supplier ID
12935
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
12936
+ * @param {*} [options] Override http request option.
12937
+ * @throws {RequiredError}
12938
+ */
12939
+ OrdersApi.prototype.putAllocateItems = function (id, supplierId, putAllocateItemsRequest, options) {
12940
+ var _this = this;
12941
+ return (0, exports.OrdersApiFp)(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
12942
+ };
10366
12943
  /**
10367
12944
  * Update An Order (Admin)
10368
12945
  * @summary Update An Order (Admin)
@@ -10376,6 +12953,20 @@ var OrdersApi = /** @class */ (function (_super) {
10376
12953
  var _this = this;
10377
12954
  return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10378
12955
  };
12956
+ /**
12957
+ * Update Batch Item (Admin)
12958
+ * @summary Update Batch Item (Admin)
12959
+ * @param {number} id Order ID
12960
+ * @param {number} batchId Batch ID
12961
+ * @param {number} itemId Ordered Item ID
12962
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
12963
+ * @param {*} [options] Override http request option.
12964
+ * @throws {RequiredError}
12965
+ */
12966
+ OrdersApi.prototype.putUpdateBatchItem = function (id, batchId, itemId, orderedItemModel, options) {
12967
+ var _this = this;
12968
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
12969
+ };
10379
12970
  /**
10380
12971
  * Update An Order (Beta)
10381
12972
  * @summary Update An Order (Beta)
@@ -10389,6 +12980,32 @@ var OrdersApi = /** @class */ (function (_super) {
10389
12980
  var _this = this;
10390
12981
  return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
10391
12982
  };
12983
+ /**
12984
+ * Change Payment Status (Admin)
12985
+ * @summary Change Payment Status (Admin)
12986
+ * @param {number} id Order ID
12987
+ * @param {boolean} paid Paid
12988
+ * @param {*} [options] Override http request option.
12989
+ * @throws {RequiredError}
12990
+ */
12991
+ OrdersApi.prototype.putUpdatePaymentStatus = function (id, paid, options) {
12992
+ var _this = this;
12993
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdatePaymentStatus(id, paid, options).then(function (request) { return request(_this.axios, _this.basePath); });
12994
+ };
12995
+ /**
12996
+ * Update Shipment (Admin)
12997
+ * @summary Update Shipment (Admin)
12998
+ * @param {number} id Order ID
12999
+ * @param {number} batchId Batch ID
13000
+ * @param {number} shipmentId Shipment ID
13001
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
13002
+ * @param {*} [options] Override http request option.
13003
+ * @throws {RequiredError}
13004
+ */
13005
+ OrdersApi.prototype.putUpdateShipment = function (id, batchId, shipmentId, shipmentRequestDTO, options) {
13006
+ var _this = this;
13007
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
13008
+ };
10392
13009
  return OrdersApi;
10393
13010
  }(base_1.BaseAPI));
10394
13011
  exports.OrdersApi = OrdersApi;
@@ -10404,6 +13021,11 @@ exports.GetGetOrdersFilterEnum = {
10404
13021
  All: 'ALL',
10405
13022
  BackOrders: 'BACK_ORDERS'
10406
13023
  };
13024
+ exports.PostPrintShippingLabelPrinterEnum = {
13025
+ NUMBER_1: 1,
13026
+ NUMBER_2: 2,
13027
+ NUMBER_3: 3
13028
+ };
10407
13029
  /**
10408
13030
  * PricingApi - axios parameter creator
10409
13031
  */
@@ -11009,6 +13631,49 @@ var ProductsApiAxiosParamCreator = function (configuration) {
11009
13631
  });
11010
13632
  });
11011
13633
  },
13634
+ /**
13635
+ * Add Item Quantity To Stock
13636
+ * @summary Add Item Quantity To Stock
13637
+ * @param {string} sku Product SKU
13638
+ * @param {number} quantity Quantity
13639
+ * @param {*} [options] Override http request option.
13640
+ * @throws {RequiredError}
13641
+ */
13642
+ patchAddQuantityToStock: function (sku_1, quantity_1) {
13643
+ var args_1 = [];
13644
+ for (var _i = 2; _i < arguments.length; _i++) {
13645
+ args_1[_i - 2] = arguments[_i];
13646
+ }
13647
+ return __awaiter(_this, __spreadArray([sku_1, quantity_1], args_1, true), void 0, function (sku, quantity, options) {
13648
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13649
+ if (options === void 0) { options = {}; }
13650
+ return __generator(this, function (_a) {
13651
+ // verify required parameter 'sku' is not null or undefined
13652
+ (0, common_1.assertParamExists)('patchAddQuantityToStock', 'sku', sku);
13653
+ // verify required parameter 'quantity' is not null or undefined
13654
+ (0, common_1.assertParamExists)('patchAddQuantityToStock', 'quantity', quantity);
13655
+ localVarPath = "/products/{sku}/stock/add"
13656
+ .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
13657
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13658
+ if (configuration) {
13659
+ baseOptions = configuration.baseOptions;
13660
+ }
13661
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
13662
+ localVarHeaderParameter = {};
13663
+ localVarQueryParameter = {};
13664
+ if (quantity !== undefined) {
13665
+ localVarQueryParameter['quantity'] = quantity;
13666
+ }
13667
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13668
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13669
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13670
+ return [2 /*return*/, {
13671
+ url: (0, common_1.toPathString)(localVarUrlObj),
13672
+ options: localVarRequestOptions,
13673
+ }];
13674
+ });
13675
+ });
13676
+ },
11012
13677
  /**
11013
13678
  * Get Product
11014
13679
  * @summary Get Product
@@ -11269,6 +13934,30 @@ var ProductsApiFp = function (configuration) {
11269
13934
  });
11270
13935
  });
11271
13936
  },
13937
+ /**
13938
+ * Add Item Quantity To Stock
13939
+ * @summary Add Item Quantity To Stock
13940
+ * @param {string} sku Product SKU
13941
+ * @param {number} quantity Quantity
13942
+ * @param {*} [options] Override http request option.
13943
+ * @throws {RequiredError}
13944
+ */
13945
+ patchAddQuantityToStock: function (sku, quantity, options) {
13946
+ return __awaiter(this, void 0, void 0, function () {
13947
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
13948
+ var _a, _b, _c;
13949
+ return __generator(this, function (_d) {
13950
+ switch (_d.label) {
13951
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchAddQuantityToStock(sku, quantity, options)];
13952
+ case 1:
13953
+ localVarAxiosArgs = _d.sent();
13954
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13955
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProductsApi.patchAddQuantityToStock']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13956
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
13957
+ }
13958
+ });
13959
+ });
13960
+ },
11272
13961
  /**
11273
13962
  * Get Product
11274
13963
  * @summary Get Product
@@ -11395,6 +14084,17 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
11395
14084
  getSearchProducts: function (pageSize, page, search, options) {
11396
14085
  return localVarFp.getSearchProducts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
11397
14086
  },
14087
+ /**
14088
+ * Add Item Quantity To Stock
14089
+ * @summary Add Item Quantity To Stock
14090
+ * @param {string} sku Product SKU
14091
+ * @param {number} quantity Quantity
14092
+ * @param {*} [options] Override http request option.
14093
+ * @throws {RequiredError}
14094
+ */
14095
+ patchAddQuantityToStock: function (sku, quantity, options) {
14096
+ return localVarFp.patchAddQuantityToStock(sku, quantity, options).then(function (request) { return request(axios, basePath); });
14097
+ },
11398
14098
  /**
11399
14099
  * Get Product
11400
14100
  * @summary Get Product
@@ -11504,6 +14204,18 @@ var ProductsApi = /** @class */ (function (_super) {
11504
14204
  var _this = this;
11505
14205
  return (0, exports.ProductsApiFp)(this.configuration).getSearchProducts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
11506
14206
  };
14207
+ /**
14208
+ * Add Item Quantity To Stock
14209
+ * @summary Add Item Quantity To Stock
14210
+ * @param {string} sku Product SKU
14211
+ * @param {number} quantity Quantity
14212
+ * @param {*} [options] Override http request option.
14213
+ * @throws {RequiredError}
14214
+ */
14215
+ ProductsApi.prototype.patchAddQuantityToStock = function (sku, quantity, options) {
14216
+ var _this = this;
14217
+ return (0, exports.ProductsApiFp)(this.configuration).patchAddQuantityToStock(sku, quantity, options).then(function (request) { return request(_this.axios, _this.basePath); });
14218
+ };
11507
14219
  /**
11508
14220
  * Get Product
11509
14221
  * @summary Get Product
@@ -14188,6 +16900,43 @@ exports.SIPTrunksApi = SIPTrunksApi;
14188
16900
  var SMSApiAxiosParamCreator = function (configuration) {
14189
16901
  var _this = this;
14190
16902
  return {
16903
+ /**
16904
+ * Create SMS Account
16905
+ * @summary Create SMS Account
16906
+ * @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
16907
+ * @param {*} [options] Override http request option.
16908
+ * @throws {RequiredError}
16909
+ */
16910
+ postCreateSmsAccount: function (smsAccountRequestDTO_1) {
16911
+ var args_1 = [];
16912
+ for (var _i = 1; _i < arguments.length; _i++) {
16913
+ args_1[_i - 1] = arguments[_i];
16914
+ }
16915
+ return __awaiter(_this, __spreadArray([smsAccountRequestDTO_1], args_1, true), void 0, function (smsAccountRequestDTO, options) {
16916
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
16917
+ if (options === void 0) { options = {}; }
16918
+ return __generator(this, function (_a) {
16919
+ localVarPath = "/messaging/sms/account";
16920
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16921
+ if (configuration) {
16922
+ baseOptions = configuration.baseOptions;
16923
+ }
16924
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
16925
+ localVarHeaderParameter = {};
16926
+ localVarQueryParameter = {};
16927
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16928
+ localVarHeaderParameter['Accept'] = 'application/json';
16929
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16930
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16931
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16932
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(smsAccountRequestDTO, localVarRequestOptions, configuration);
16933
+ return [2 /*return*/, {
16934
+ url: (0, common_1.toPathString)(localVarUrlObj),
16935
+ options: localVarRequestOptions,
16936
+ }];
16937
+ });
16938
+ });
16939
+ },
14191
16940
  /**
14192
16941
  * Send SMS
14193
16942
  * @param {string} authorization Bearer Token
@@ -14239,6 +16988,29 @@ exports.SMSApiAxiosParamCreator = SMSApiAxiosParamCreator;
14239
16988
  var SMSApiFp = function (configuration) {
14240
16989
  var localVarAxiosParamCreator = (0, exports.SMSApiAxiosParamCreator)(configuration);
14241
16990
  return {
16991
+ /**
16992
+ * Create SMS Account
16993
+ * @summary Create SMS Account
16994
+ * @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
16995
+ * @param {*} [options] Override http request option.
16996
+ * @throws {RequiredError}
16997
+ */
16998
+ postCreateSmsAccount: function (smsAccountRequestDTO, options) {
16999
+ return __awaiter(this, void 0, void 0, function () {
17000
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
17001
+ var _a, _b, _c;
17002
+ return __generator(this, function (_d) {
17003
+ switch (_d.label) {
17004
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateSmsAccount(smsAccountRequestDTO, options)];
17005
+ case 1:
17006
+ localVarAxiosArgs = _d.sent();
17007
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17008
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SMSApi.postCreateSmsAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17009
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
17010
+ }
17011
+ });
17012
+ });
17013
+ },
14242
17014
  /**
14243
17015
  * Send SMS
14244
17016
  * @param {string} authorization Bearer Token
@@ -14271,6 +17043,16 @@ exports.SMSApiFp = SMSApiFp;
14271
17043
  var SMSApiFactory = function (configuration, basePath, axios) {
14272
17044
  var localVarFp = (0, exports.SMSApiFp)(configuration);
14273
17045
  return {
17046
+ /**
17047
+ * Create SMS Account
17048
+ * @summary Create SMS Account
17049
+ * @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
17050
+ * @param {*} [options] Override http request option.
17051
+ * @throws {RequiredError}
17052
+ */
17053
+ postCreateSmsAccount: function (smsAccountRequestDTO, options) {
17054
+ return localVarFp.postCreateSmsAccount(smsAccountRequestDTO, options).then(function (request) { return request(axios, basePath); });
17055
+ },
14274
17056
  /**
14275
17057
  * Send SMS
14276
17058
  * @param {string} authorization Bearer Token
@@ -14292,6 +17074,17 @@ var SMSApi = /** @class */ (function (_super) {
14292
17074
  function SMSApi() {
14293
17075
  return _super !== null && _super.apply(this, arguments) || this;
14294
17076
  }
17077
+ /**
17078
+ * Create SMS Account
17079
+ * @summary Create SMS Account
17080
+ * @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
17081
+ * @param {*} [options] Override http request option.
17082
+ * @throws {RequiredError}
17083
+ */
17084
+ SMSApi.prototype.postCreateSmsAccount = function (smsAccountRequestDTO, options) {
17085
+ var _this = this;
17086
+ return (0, exports.SMSApiFp)(this.configuration).postCreateSmsAccount(smsAccountRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
17087
+ };
14295
17088
  /**
14296
17089
  * Send SMS
14297
17090
  * @param {string} authorization Bearer Token