yellowgrid-api-ts 3.2.79-dev.0 → 3.2.82-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/api.ts +76 -0
- package/dist/api.d.ts +37 -0
- package/dist/api.js +89 -0
- package/docs/OrdersApi.md +58 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -164,6 +164,7 @@ Class | Method | HTTP request | Description
|
|
|
164
164
|
*OrdersApi* | [**postCreateAdminOrder**](docs/OrdersApi.md#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)
|
|
165
165
|
*OrdersApi* | [**postCreateConsignment**](docs/OrdersApi.md#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment
|
|
166
166
|
*OrdersApi* | [**postCreateShipment**](docs/OrdersApi.md#postcreateshipment) | **POST** /admin/orders/{id}/batches/{batch_id}/shipments | Create Shipment (Admin)
|
|
167
|
+
*OrdersApi* | [**postGetItemSerialInfo**](docs/OrdersApi.md#postgetitemserialinfo) | **POST** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)
|
|
167
168
|
*OrdersApi* | [**postGetOrders**](docs/OrdersApi.md#postgetorders) | **POST** /orders | Create An Order (Beta)
|
|
168
169
|
*OrdersApi* | [**postIssueCredit**](docs/OrdersApi.md#postissuecredit) | **POST** /admin/orders/{id}/credit | Issue Credit (Admin)
|
|
169
170
|
*OrdersApi* | [**postPrintShippingLabel**](docs/OrdersApi.md#postprintshippinglabel) | **POST** /admin/orders/{id}/shipments/{shipment_id}/label/print | Print Shipment Label
|
package/api.ts
CHANGED
|
@@ -20298,6 +20298,44 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20298
20298
|
options: localVarRequestOptions,
|
|
20299
20299
|
};
|
|
20300
20300
|
},
|
|
20301
|
+
/**
|
|
20302
|
+
* Get Item Serial Info (Admin)
|
|
20303
|
+
* @summary Get Item Serial Info (Admin)
|
|
20304
|
+
* @param {number} id Order ID
|
|
20305
|
+
* @param {number} itemId Shipment Item ID
|
|
20306
|
+
* @param {*} [options] Override http request option.
|
|
20307
|
+
* @throws {RequiredError}
|
|
20308
|
+
*/
|
|
20309
|
+
postGetItemSerialInfo: async (id: number, itemId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20310
|
+
// verify required parameter 'id' is not null or undefined
|
|
20311
|
+
assertParamExists('postGetItemSerialInfo', 'id', id)
|
|
20312
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
20313
|
+
assertParamExists('postGetItemSerialInfo', 'itemId', itemId)
|
|
20314
|
+
const localVarPath = `/admin/orders/{id}/items/{item_id}/info`
|
|
20315
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
20316
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
20317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20319
|
+
let baseOptions;
|
|
20320
|
+
if (configuration) {
|
|
20321
|
+
baseOptions = configuration.baseOptions;
|
|
20322
|
+
}
|
|
20323
|
+
|
|
20324
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20325
|
+
const localVarHeaderParameter = {} as any;
|
|
20326
|
+
const localVarQueryParameter = {} as any;
|
|
20327
|
+
|
|
20328
|
+
|
|
20329
|
+
|
|
20330
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20332
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20333
|
+
|
|
20334
|
+
return {
|
|
20335
|
+
url: toPathString(localVarUrlObj),
|
|
20336
|
+
options: localVarRequestOptions,
|
|
20337
|
+
};
|
|
20338
|
+
},
|
|
20301
20339
|
/**
|
|
20302
20340
|
* Create An Order (Beta)
|
|
20303
20341
|
* @summary Create An Order (Beta)
|
|
@@ -20943,6 +20981,20 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
20943
20981
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
|
|
20944
20982
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20945
20983
|
},
|
|
20984
|
+
/**
|
|
20985
|
+
* Get Item Serial Info (Admin)
|
|
20986
|
+
* @summary Get Item Serial Info (Admin)
|
|
20987
|
+
* @param {number} id Order ID
|
|
20988
|
+
* @param {number} itemId Shipment Item ID
|
|
20989
|
+
* @param {*} [options] Override http request option.
|
|
20990
|
+
* @throws {RequiredError}
|
|
20991
|
+
*/
|
|
20992
|
+
async postGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSerialInfoModel>> {
|
|
20993
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetItemSerialInfo(id, itemId, options);
|
|
20994
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20995
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetItemSerialInfo']?.[localVarOperationServerIndex]?.url;
|
|
20996
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20997
|
+
},
|
|
20946
20998
|
/**
|
|
20947
20999
|
* Create An Order (Beta)
|
|
20948
21000
|
* @summary Create An Order (Beta)
|
|
@@ -21249,6 +21301,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
21249
21301
|
postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentDTO> {
|
|
21250
21302
|
return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
|
|
21251
21303
|
},
|
|
21304
|
+
/**
|
|
21305
|
+
* Get Item Serial Info (Admin)
|
|
21306
|
+
* @summary Get Item Serial Info (Admin)
|
|
21307
|
+
* @param {number} id Order ID
|
|
21308
|
+
* @param {number} itemId Shipment Item ID
|
|
21309
|
+
* @param {*} [options] Override http request option.
|
|
21310
|
+
* @throws {RequiredError}
|
|
21311
|
+
*/
|
|
21312
|
+
postGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSerialInfoModel> {
|
|
21313
|
+
return localVarFp.postGetItemSerialInfo(id, itemId, options).then((request) => request(axios, basePath));
|
|
21314
|
+
},
|
|
21252
21315
|
/**
|
|
21253
21316
|
* Create An Order (Beta)
|
|
21254
21317
|
* @summary Create An Order (Beta)
|
|
@@ -21546,6 +21609,19 @@ export class OrdersApi extends BaseAPI {
|
|
|
21546
21609
|
return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
21547
21610
|
}
|
|
21548
21611
|
|
|
21612
|
+
/**
|
|
21613
|
+
* Get Item Serial Info (Admin)
|
|
21614
|
+
* @summary Get Item Serial Info (Admin)
|
|
21615
|
+
* @param {number} id Order ID
|
|
21616
|
+
* @param {number} itemId Shipment Item ID
|
|
21617
|
+
* @param {*} [options] Override http request option.
|
|
21618
|
+
* @throws {RequiredError}
|
|
21619
|
+
* @memberof OrdersApi
|
|
21620
|
+
*/
|
|
21621
|
+
public postGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig) {
|
|
21622
|
+
return OrdersApiFp(this.configuration).postGetItemSerialInfo(id, itemId, options).then((request) => request(this.axios, this.basePath));
|
|
21623
|
+
}
|
|
21624
|
+
|
|
21549
21625
|
/**
|
|
21550
21626
|
* Create An Order (Beta)
|
|
21551
21627
|
* @summary Create An Order (Beta)
|
package/dist/api.d.ts
CHANGED
|
@@ -15605,6 +15605,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15605
15605
|
* @throws {RequiredError}
|
|
15606
15606
|
*/
|
|
15607
15607
|
postCreateShipment: (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15608
|
+
/**
|
|
15609
|
+
* Get Item Serial Info (Admin)
|
|
15610
|
+
* @summary Get Item Serial Info (Admin)
|
|
15611
|
+
* @param {number} id Order ID
|
|
15612
|
+
* @param {number} itemId Shipment Item ID
|
|
15613
|
+
* @param {*} [options] Override http request option.
|
|
15614
|
+
* @throws {RequiredError}
|
|
15615
|
+
*/
|
|
15616
|
+
postGetItemSerialInfo: (id: number, itemId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15608
15617
|
/**
|
|
15609
15618
|
* Create An Order (Beta)
|
|
15610
15619
|
* @summary Create An Order (Beta)
|
|
@@ -15828,6 +15837,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
15828
15837
|
* @throws {RequiredError}
|
|
15829
15838
|
*/
|
|
15830
15839
|
postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentDTO>>;
|
|
15840
|
+
/**
|
|
15841
|
+
* Get Item Serial Info (Admin)
|
|
15842
|
+
* @summary Get Item Serial Info (Admin)
|
|
15843
|
+
* @param {number} id Order ID
|
|
15844
|
+
* @param {number} itemId Shipment Item ID
|
|
15845
|
+
* @param {*} [options] Override http request option.
|
|
15846
|
+
* @throws {RequiredError}
|
|
15847
|
+
*/
|
|
15848
|
+
postGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSerialInfoModel>>;
|
|
15831
15849
|
/**
|
|
15832
15850
|
* Create An Order (Beta)
|
|
15833
15851
|
* @summary Create An Order (Beta)
|
|
@@ -16051,6 +16069,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
16051
16069
|
* @throws {RequiredError}
|
|
16052
16070
|
*/
|
|
16053
16071
|
postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentDTO>;
|
|
16072
|
+
/**
|
|
16073
|
+
* Get Item Serial Info (Admin)
|
|
16074
|
+
* @summary Get Item Serial Info (Admin)
|
|
16075
|
+
* @param {number} id Order ID
|
|
16076
|
+
* @param {number} itemId Shipment Item ID
|
|
16077
|
+
* @param {*} [options] Override http request option.
|
|
16078
|
+
* @throws {RequiredError}
|
|
16079
|
+
*/
|
|
16080
|
+
postGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSerialInfoModel>;
|
|
16054
16081
|
/**
|
|
16055
16082
|
* Create An Order (Beta)
|
|
16056
16083
|
* @summary Create An Order (Beta)
|
|
@@ -16288,6 +16315,16 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
16288
16315
|
* @memberof OrdersApi
|
|
16289
16316
|
*/
|
|
16290
16317
|
postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShipmentDTO, any, {}>>;
|
|
16318
|
+
/**
|
|
16319
|
+
* Get Item Serial Info (Admin)
|
|
16320
|
+
* @summary Get Item Serial Info (Admin)
|
|
16321
|
+
* @param {number} id Order ID
|
|
16322
|
+
* @param {number} itemId Shipment Item ID
|
|
16323
|
+
* @param {*} [options] Override http request option.
|
|
16324
|
+
* @throws {RequiredError}
|
|
16325
|
+
* @memberof OrdersApi
|
|
16326
|
+
*/
|
|
16327
|
+
postGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSerialInfoModel, any, {}>>;
|
|
16291
16328
|
/**
|
|
16292
16329
|
* Create An Order (Beta)
|
|
16293
16330
|
* @summary Create An Order (Beta)
|
package/dist/api.js
CHANGED
|
@@ -10349,6 +10349,47 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10349
10349
|
});
|
|
10350
10350
|
});
|
|
10351
10351
|
},
|
|
10352
|
+
/**
|
|
10353
|
+
* Get Item Serial Info (Admin)
|
|
10354
|
+
* @summary Get Item Serial Info (Admin)
|
|
10355
|
+
* @param {number} id Order ID
|
|
10356
|
+
* @param {number} itemId Shipment Item ID
|
|
10357
|
+
* @param {*} [options] Override http request option.
|
|
10358
|
+
* @throws {RequiredError}
|
|
10359
|
+
*/
|
|
10360
|
+
postGetItemSerialInfo: function (id_1, itemId_1) {
|
|
10361
|
+
var args_1 = [];
|
|
10362
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
10363
|
+
args_1[_i - 2] = arguments[_i];
|
|
10364
|
+
}
|
|
10365
|
+
return __awaiter(_this, __spreadArray([id_1, itemId_1], args_1, true), void 0, function (id, itemId, options) {
|
|
10366
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10367
|
+
if (options === void 0) { options = {}; }
|
|
10368
|
+
return __generator(this, function (_a) {
|
|
10369
|
+
// verify required parameter 'id' is not null or undefined
|
|
10370
|
+
(0, common_1.assertParamExists)('postGetItemSerialInfo', 'id', id);
|
|
10371
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
10372
|
+
(0, common_1.assertParamExists)('postGetItemSerialInfo', 'itemId', itemId);
|
|
10373
|
+
localVarPath = "/admin/orders/{id}/items/{item_id}/info"
|
|
10374
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
10375
|
+
.replace("{".concat("item_id", "}"), encodeURIComponent(String(itemId)));
|
|
10376
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10377
|
+
if (configuration) {
|
|
10378
|
+
baseOptions = configuration.baseOptions;
|
|
10379
|
+
}
|
|
10380
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
10381
|
+
localVarHeaderParameter = {};
|
|
10382
|
+
localVarQueryParameter = {};
|
|
10383
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10384
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10385
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10386
|
+
return [2 /*return*/, {
|
|
10387
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10388
|
+
options: localVarRequestOptions,
|
|
10389
|
+
}];
|
|
10390
|
+
});
|
|
10391
|
+
});
|
|
10392
|
+
},
|
|
10352
10393
|
/**
|
|
10353
10394
|
* Create An Order (Beta)
|
|
10354
10395
|
* @summary Create An Order (Beta)
|
|
@@ -11133,6 +11174,30 @@ var OrdersApiFp = function (configuration) {
|
|
|
11133
11174
|
});
|
|
11134
11175
|
});
|
|
11135
11176
|
},
|
|
11177
|
+
/**
|
|
11178
|
+
* Get Item Serial Info (Admin)
|
|
11179
|
+
* @summary Get Item Serial Info (Admin)
|
|
11180
|
+
* @param {number} id Order ID
|
|
11181
|
+
* @param {number} itemId Shipment Item ID
|
|
11182
|
+
* @param {*} [options] Override http request option.
|
|
11183
|
+
* @throws {RequiredError}
|
|
11184
|
+
*/
|
|
11185
|
+
postGetItemSerialInfo: function (id, itemId, options) {
|
|
11186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11187
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11188
|
+
var _a, _b, _c;
|
|
11189
|
+
return __generator(this, function (_d) {
|
|
11190
|
+
switch (_d.label) {
|
|
11191
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetItemSerialInfo(id, itemId, options)];
|
|
11192
|
+
case 1:
|
|
11193
|
+
localVarAxiosArgs = _d.sent();
|
|
11194
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11195
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetItemSerialInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11196
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11197
|
+
}
|
|
11198
|
+
});
|
|
11199
|
+
});
|
|
11200
|
+
},
|
|
11136
11201
|
/**
|
|
11137
11202
|
* Create An Order (Beta)
|
|
11138
11203
|
* @summary Create An Order (Beta)
|
|
@@ -11549,6 +11614,17 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11549
11614
|
postCreateShipment: function (id, batchId, shipmentRequestDTO, options) {
|
|
11550
11615
|
return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
11551
11616
|
},
|
|
11617
|
+
/**
|
|
11618
|
+
* Get Item Serial Info (Admin)
|
|
11619
|
+
* @summary Get Item Serial Info (Admin)
|
|
11620
|
+
* @param {number} id Order ID
|
|
11621
|
+
* @param {number} itemId Shipment Item ID
|
|
11622
|
+
* @param {*} [options] Override http request option.
|
|
11623
|
+
* @throws {RequiredError}
|
|
11624
|
+
*/
|
|
11625
|
+
postGetItemSerialInfo: function (id, itemId, options) {
|
|
11626
|
+
return localVarFp.postGetItemSerialInfo(id, itemId, options).then(function (request) { return request(axios, basePath); });
|
|
11627
|
+
},
|
|
11552
11628
|
/**
|
|
11553
11629
|
* Create An Order (Beta)
|
|
11554
11630
|
* @summary Create An Order (Beta)
|
|
@@ -11850,6 +11926,19 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
11850
11926
|
var _this = this;
|
|
11851
11927
|
return (0, exports.OrdersApiFp)(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11852
11928
|
};
|
|
11929
|
+
/**
|
|
11930
|
+
* Get Item Serial Info (Admin)
|
|
11931
|
+
* @summary Get Item Serial Info (Admin)
|
|
11932
|
+
* @param {number} id Order ID
|
|
11933
|
+
* @param {number} itemId Shipment Item ID
|
|
11934
|
+
* @param {*} [options] Override http request option.
|
|
11935
|
+
* @throws {RequiredError}
|
|
11936
|
+
* @memberof OrdersApi
|
|
11937
|
+
*/
|
|
11938
|
+
OrdersApi.prototype.postGetItemSerialInfo = function (id, itemId, options) {
|
|
11939
|
+
var _this = this;
|
|
11940
|
+
return (0, exports.OrdersApiFp)(this.configuration).postGetItemSerialInfo(id, itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11941
|
+
};
|
|
11853
11942
|
/**
|
|
11854
11943
|
* Create An Order (Beta)
|
|
11855
11944
|
* @summary Create An Order (Beta)
|
package/docs/OrdersApi.md
CHANGED
|
@@ -16,6 +16,7 @@ All URIs are relative to *https://api.yellowgrid.local*
|
|
|
16
16
|
|[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
|
|
17
17
|
|[**postCreateConsignment**](#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment|
|
|
18
18
|
|[**postCreateShipment**](#postcreateshipment) | **POST** /admin/orders/{id}/batches/{batch_id}/shipments | Create Shipment (Admin)|
|
|
19
|
+
|[**postGetItemSerialInfo**](#postgetitemserialinfo) | **POST** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)|
|
|
19
20
|
|[**postGetOrders**](#postgetorders) | **POST** /orders | Create An Order (Beta)|
|
|
20
21
|
|[**postIssueCredit**](#postissuecredit) | **POST** /admin/orders/{id}/credit | Issue Credit (Admin)|
|
|
21
22
|
|[**postPrintShippingLabel**](#postprintshippinglabel) | **POST** /admin/orders/{id}/shipments/{shipment_id}/label/print | Print Shipment Label|
|
|
@@ -725,6 +726,63 @@ No authorization required
|
|
|
725
726
|
|
|
726
727
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
727
728
|
|
|
729
|
+
# **postGetItemSerialInfo**
|
|
730
|
+
> ProductSerialInfoModel postGetItemSerialInfo()
|
|
731
|
+
|
|
732
|
+
Get Item Serial Info (Admin)
|
|
733
|
+
|
|
734
|
+
### Example
|
|
735
|
+
|
|
736
|
+
```typescript
|
|
737
|
+
import {
|
|
738
|
+
OrdersApi,
|
|
739
|
+
Configuration
|
|
740
|
+
} from 'yellowgrid-api-ts';
|
|
741
|
+
|
|
742
|
+
const configuration = new Configuration();
|
|
743
|
+
const apiInstance = new OrdersApi(configuration);
|
|
744
|
+
|
|
745
|
+
let id: number; //Order ID (default to undefined)
|
|
746
|
+
let itemId: number; //Shipment Item ID (default to undefined)
|
|
747
|
+
|
|
748
|
+
const { status, data } = await apiInstance.postGetItemSerialInfo(
|
|
749
|
+
id,
|
|
750
|
+
itemId
|
|
751
|
+
);
|
|
752
|
+
```
|
|
753
|
+
|
|
754
|
+
### Parameters
|
|
755
|
+
|
|
756
|
+
|Name | Type | Description | Notes|
|
|
757
|
+
|------------- | ------------- | ------------- | -------------|
|
|
758
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
759
|
+
| **itemId** | [**number**] | Shipment Item ID | defaults to undefined|
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
### Return type
|
|
763
|
+
|
|
764
|
+
**ProductSerialInfoModel**
|
|
765
|
+
|
|
766
|
+
### Authorization
|
|
767
|
+
|
|
768
|
+
No authorization required
|
|
769
|
+
|
|
770
|
+
### HTTP request headers
|
|
771
|
+
|
|
772
|
+
- **Content-Type**: Not defined
|
|
773
|
+
- **Accept**: application/json
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
### HTTP response details
|
|
777
|
+
| Status code | Description | Response headers |
|
|
778
|
+
|-------------|-------------|------------------|
|
|
779
|
+
|**200** | Serial Info | - |
|
|
780
|
+
|**400** | Bad Request | - |
|
|
781
|
+
|**401** | Unauthorised | - |
|
|
782
|
+
|**403** | Access Denied | - |
|
|
783
|
+
|
|
784
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
785
|
+
|
|
728
786
|
# **postGetOrders**
|
|
729
787
|
> Array<OrderSummaryDTO> postGetOrders()
|
|
730
788
|
|