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