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