yellowgrid-api-ts 3.2.82-dev.0 → 3.2.83-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 -1
- package/api.ts +76 -76
- package/dist/api.d.ts +37 -37
- package/dist/api.js +89 -89
- package/docs/OrdersApi.md +58 -58
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -158,13 +158,13 @@ Class | Method | HTTP request | Description
|
|
|
158
158
|
*OrdersApi* | [**getGetAdminEditableOrder**](docs/OrdersApi.md#getgetadmineditableorder) | **GET** /admin/orders/{id}/views/editable | Get Editable Order (Admin)
|
|
159
159
|
*OrdersApi* | [**getGetAdminOrderDetails**](docs/OrdersApi.md#getgetadminorderdetails) | **GET** /admin/orders/{id}/details | Get Order Details (Admin)
|
|
160
160
|
*OrdersApi* | [**getGetEditableOrder**](docs/OrdersApi.md#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)
|
|
161
|
+
*OrdersApi* | [**getGetItemSerialInfo**](docs/OrdersApi.md#getgetitemserialinfo) | **GET** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)
|
|
161
162
|
*OrdersApi* | [**getGetOrderPdf**](docs/OrdersApi.md#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF
|
|
162
163
|
*OrdersApi* | [**getGetOrders**](docs/OrdersApi.md#getgetorders) | **GET** /orders | Get Orders (Beta)
|
|
163
164
|
*OrdersApi* | [**postAddOrderNote**](docs/OrdersApi.md#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note
|
|
164
165
|
*OrdersApi* | [**postCreateAdminOrder**](docs/OrdersApi.md#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)
|
|
165
166
|
*OrdersApi* | [**postCreateConsignment**](docs/OrdersApi.md#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment
|
|
166
167
|
*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)
|
|
168
168
|
*OrdersApi* | [**postGetOrders**](docs/OrdersApi.md#postgetorders) | **POST** /orders | Create An Order (Beta)
|
|
169
169
|
*OrdersApi* | [**postIssueCredit**](docs/OrdersApi.md#postissuecredit) | **POST** /admin/orders/{id}/credit | Issue Credit (Admin)
|
|
170
170
|
*OrdersApi* | [**postPrintShippingLabel**](docs/OrdersApi.md#postprintshippinglabel) | **POST** /admin/orders/{id}/shipments/{shipment_id}/label/print | Print Shipment Label
|
package/api.ts
CHANGED
|
@@ -20029,6 +20029,44 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20029
20029
|
|
|
20030
20030
|
|
|
20031
20031
|
|
|
20032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20034
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20035
|
+
|
|
20036
|
+
return {
|
|
20037
|
+
url: toPathString(localVarUrlObj),
|
|
20038
|
+
options: localVarRequestOptions,
|
|
20039
|
+
};
|
|
20040
|
+
},
|
|
20041
|
+
/**
|
|
20042
|
+
* Get Item Serial Info (Admin)
|
|
20043
|
+
* @summary Get Item Serial Info (Admin)
|
|
20044
|
+
* @param {number} id Order ID
|
|
20045
|
+
* @param {number} itemId Shipment Item ID
|
|
20046
|
+
* @param {*} [options] Override http request option.
|
|
20047
|
+
* @throws {RequiredError}
|
|
20048
|
+
*/
|
|
20049
|
+
getGetItemSerialInfo: async (id: number, itemId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20050
|
+
// verify required parameter 'id' is not null or undefined
|
|
20051
|
+
assertParamExists('getGetItemSerialInfo', 'id', id)
|
|
20052
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
20053
|
+
assertParamExists('getGetItemSerialInfo', 'itemId', itemId)
|
|
20054
|
+
const localVarPath = `/admin/orders/{id}/items/{item_id}/info`
|
|
20055
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
20056
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
20057
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20058
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20059
|
+
let baseOptions;
|
|
20060
|
+
if (configuration) {
|
|
20061
|
+
baseOptions = configuration.baseOptions;
|
|
20062
|
+
}
|
|
20063
|
+
|
|
20064
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20065
|
+
const localVarHeaderParameter = {} as any;
|
|
20066
|
+
const localVarQueryParameter = {} as any;
|
|
20067
|
+
|
|
20068
|
+
|
|
20069
|
+
|
|
20032
20070
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20033
20071
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20034
20072
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -20298,44 +20336,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20298
20336
|
options: localVarRequestOptions,
|
|
20299
20337
|
};
|
|
20300
20338
|
},
|
|
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
|
-
},
|
|
20339
20339
|
/**
|
|
20340
20340
|
* Create An Order (Beta)
|
|
20341
20341
|
* @summary Create An Order (Beta)
|
|
@@ -20891,6 +20891,20 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
20891
20891
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
20892
20892
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20893
20893
|
},
|
|
20894
|
+
/**
|
|
20895
|
+
* Get Item Serial Info (Admin)
|
|
20896
|
+
* @summary Get Item Serial Info (Admin)
|
|
20897
|
+
* @param {number} id Order ID
|
|
20898
|
+
* @param {number} itemId Shipment Item ID
|
|
20899
|
+
* @param {*} [options] Override http request option.
|
|
20900
|
+
* @throws {RequiredError}
|
|
20901
|
+
*/
|
|
20902
|
+
async getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSerialInfoModel>> {
|
|
20903
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetItemSerialInfo(id, itemId, options);
|
|
20904
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20905
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetItemSerialInfo']?.[localVarOperationServerIndex]?.url;
|
|
20906
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20907
|
+
},
|
|
20894
20908
|
/**
|
|
20895
20909
|
* Download Order PDF
|
|
20896
20910
|
* @summary Download Order PDF
|
|
@@ -20981,20 +20995,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
20981
20995
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
|
|
20982
20996
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20983
20997
|
},
|
|
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
|
-
},
|
|
20998
20998
|
/**
|
|
20999
20999
|
* Create An Order (Beta)
|
|
21000
21000
|
* @summary Create An Order (Beta)
|
|
@@ -21229,6 +21229,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
21229
21229
|
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
|
|
21230
21230
|
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
21231
21231
|
},
|
|
21232
|
+
/**
|
|
21233
|
+
* Get Item Serial Info (Admin)
|
|
21234
|
+
* @summary Get Item Serial Info (Admin)
|
|
21235
|
+
* @param {number} id Order ID
|
|
21236
|
+
* @param {number} itemId Shipment Item ID
|
|
21237
|
+
* @param {*} [options] Override http request option.
|
|
21238
|
+
* @throws {RequiredError}
|
|
21239
|
+
*/
|
|
21240
|
+
getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSerialInfoModel> {
|
|
21241
|
+
return localVarFp.getGetItemSerialInfo(id, itemId, options).then((request) => request(axios, basePath));
|
|
21242
|
+
},
|
|
21232
21243
|
/**
|
|
21233
21244
|
* Download Order PDF
|
|
21234
21245
|
* @summary Download Order PDF
|
|
@@ -21301,17 +21312,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
21301
21312
|
postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentDTO> {
|
|
21302
21313
|
return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
|
|
21303
21314
|
},
|
|
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
|
-
},
|
|
21315
21315
|
/**
|
|
21316
21316
|
* Create An Order (Beta)
|
|
21317
21317
|
* @summary Create An Order (Beta)
|
|
@@ -21525,6 +21525,19 @@ export class OrdersApi extends BaseAPI {
|
|
|
21525
21525
|
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
21526
21526
|
}
|
|
21527
21527
|
|
|
21528
|
+
/**
|
|
21529
|
+
* Get Item Serial Info (Admin)
|
|
21530
|
+
* @summary Get Item Serial Info (Admin)
|
|
21531
|
+
* @param {number} id Order ID
|
|
21532
|
+
* @param {number} itemId Shipment Item ID
|
|
21533
|
+
* @param {*} [options] Override http request option.
|
|
21534
|
+
* @throws {RequiredError}
|
|
21535
|
+
* @memberof OrdersApi
|
|
21536
|
+
*/
|
|
21537
|
+
public getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig) {
|
|
21538
|
+
return OrdersApiFp(this.configuration).getGetItemSerialInfo(id, itemId, options).then((request) => request(this.axios, this.basePath));
|
|
21539
|
+
}
|
|
21540
|
+
|
|
21528
21541
|
/**
|
|
21529
21542
|
* Download Order PDF
|
|
21530
21543
|
* @summary Download Order PDF
|
|
@@ -21609,19 +21622,6 @@ export class OrdersApi extends BaseAPI {
|
|
|
21609
21622
|
return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
21610
21623
|
}
|
|
21611
21624
|
|
|
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
|
-
|
|
21625
21625
|
/**
|
|
21626
21626
|
* Create An Order (Beta)
|
|
21627
21627
|
* @summary Create An Order (Beta)
|
package/dist/api.d.ts
CHANGED
|
@@ -15545,6 +15545,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15545
15545
|
* @throws {RequiredError}
|
|
15546
15546
|
*/
|
|
15547
15547
|
getGetEditableOrder: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15548
|
+
/**
|
|
15549
|
+
* Get Item Serial Info (Admin)
|
|
15550
|
+
* @summary Get Item Serial Info (Admin)
|
|
15551
|
+
* @param {number} id Order ID
|
|
15552
|
+
* @param {number} itemId Shipment Item ID
|
|
15553
|
+
* @param {*} [options] Override http request option.
|
|
15554
|
+
* @throws {RequiredError}
|
|
15555
|
+
*/
|
|
15556
|
+
getGetItemSerialInfo: (id: number, itemId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15548
15557
|
/**
|
|
15549
15558
|
* Download Order PDF
|
|
15550
15559
|
* @summary Download Order PDF
|
|
@@ -15605,15 +15614,6 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15605
15614
|
* @throws {RequiredError}
|
|
15606
15615
|
*/
|
|
15607
15616
|
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>;
|
|
15617
15617
|
/**
|
|
15618
15618
|
* Create An Order (Beta)
|
|
15619
15619
|
* @summary Create An Order (Beta)
|
|
@@ -15777,6 +15777,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
15777
15777
|
* @throws {RequiredError}
|
|
15778
15778
|
*/
|
|
15779
15779
|
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>>;
|
|
15780
|
+
/**
|
|
15781
|
+
* Get Item Serial Info (Admin)
|
|
15782
|
+
* @summary Get Item Serial Info (Admin)
|
|
15783
|
+
* @param {number} id Order ID
|
|
15784
|
+
* @param {number} itemId Shipment Item ID
|
|
15785
|
+
* @param {*} [options] Override http request option.
|
|
15786
|
+
* @throws {RequiredError}
|
|
15787
|
+
*/
|
|
15788
|
+
getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSerialInfoModel>>;
|
|
15780
15789
|
/**
|
|
15781
15790
|
* Download Order PDF
|
|
15782
15791
|
* @summary Download Order PDF
|
|
@@ -15837,15 +15846,6 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
15837
15846
|
* @throws {RequiredError}
|
|
15838
15847
|
*/
|
|
15839
15848
|
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>>;
|
|
15849
15849
|
/**
|
|
15850
15850
|
* Create An Order (Beta)
|
|
15851
15851
|
* @summary Create An Order (Beta)
|
|
@@ -16009,6 +16009,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
16009
16009
|
* @throws {RequiredError}
|
|
16010
16010
|
*/
|
|
16011
16011
|
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO>;
|
|
16012
|
+
/**
|
|
16013
|
+
* Get Item Serial Info (Admin)
|
|
16014
|
+
* @summary Get Item Serial Info (Admin)
|
|
16015
|
+
* @param {number} id Order ID
|
|
16016
|
+
* @param {number} itemId Shipment Item ID
|
|
16017
|
+
* @param {*} [options] Override http request option.
|
|
16018
|
+
* @throws {RequiredError}
|
|
16019
|
+
*/
|
|
16020
|
+
getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSerialInfoModel>;
|
|
16012
16021
|
/**
|
|
16013
16022
|
* Download Order PDF
|
|
16014
16023
|
* @summary Download Order PDF
|
|
@@ -16069,15 +16078,6 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
16069
16078
|
* @throws {RequiredError}
|
|
16070
16079
|
*/
|
|
16071
16080
|
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>;
|
|
16081
16081
|
/**
|
|
16082
16082
|
* Create An Order (Beta)
|
|
16083
16083
|
* @summary Create An Order (Beta)
|
|
@@ -16249,6 +16249,16 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
16249
16249
|
* @memberof OrdersApi
|
|
16250
16250
|
*/
|
|
16251
16251
|
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DetailedOrderRequestDTO, any, {}>>;
|
|
16252
|
+
/**
|
|
16253
|
+
* Get Item Serial Info (Admin)
|
|
16254
|
+
* @summary Get Item Serial Info (Admin)
|
|
16255
|
+
* @param {number} id Order ID
|
|
16256
|
+
* @param {number} itemId Shipment Item ID
|
|
16257
|
+
* @param {*} [options] Override http request option.
|
|
16258
|
+
* @throws {RequiredError}
|
|
16259
|
+
* @memberof OrdersApi
|
|
16260
|
+
*/
|
|
16261
|
+
getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSerialInfoModel, any, {}>>;
|
|
16252
16262
|
/**
|
|
16253
16263
|
* Download Order PDF
|
|
16254
16264
|
* @summary Download Order PDF
|
|
@@ -16315,16 +16325,6 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
16315
16325
|
* @memberof OrdersApi
|
|
16316
16326
|
*/
|
|
16317
16327
|
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, {}>>;
|
|
16328
16328
|
/**
|
|
16329
16329
|
* Create An Order (Beta)
|
|
16330
16330
|
* @summary Create An Order (Beta)
|
package/dist/api.js
CHANGED
|
@@ -10083,6 +10083,47 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10083
10083
|
});
|
|
10084
10084
|
});
|
|
10085
10085
|
},
|
|
10086
|
+
/**
|
|
10087
|
+
* Get Item Serial Info (Admin)
|
|
10088
|
+
* @summary Get Item Serial Info (Admin)
|
|
10089
|
+
* @param {number} id Order ID
|
|
10090
|
+
* @param {number} itemId Shipment Item ID
|
|
10091
|
+
* @param {*} [options] Override http request option.
|
|
10092
|
+
* @throws {RequiredError}
|
|
10093
|
+
*/
|
|
10094
|
+
getGetItemSerialInfo: function (id_1, itemId_1) {
|
|
10095
|
+
var args_1 = [];
|
|
10096
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
10097
|
+
args_1[_i - 2] = arguments[_i];
|
|
10098
|
+
}
|
|
10099
|
+
return __awaiter(_this, __spreadArray([id_1, itemId_1], args_1, true), void 0, function (id, itemId, options) {
|
|
10100
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10101
|
+
if (options === void 0) { options = {}; }
|
|
10102
|
+
return __generator(this, function (_a) {
|
|
10103
|
+
// verify required parameter 'id' is not null or undefined
|
|
10104
|
+
(0, common_1.assertParamExists)('getGetItemSerialInfo', 'id', id);
|
|
10105
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
10106
|
+
(0, common_1.assertParamExists)('getGetItemSerialInfo', 'itemId', itemId);
|
|
10107
|
+
localVarPath = "/admin/orders/{id}/items/{item_id}/info"
|
|
10108
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
10109
|
+
.replace("{".concat("item_id", "}"), encodeURIComponent(String(itemId)));
|
|
10110
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10111
|
+
if (configuration) {
|
|
10112
|
+
baseOptions = configuration.baseOptions;
|
|
10113
|
+
}
|
|
10114
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10115
|
+
localVarHeaderParameter = {};
|
|
10116
|
+
localVarQueryParameter = {};
|
|
10117
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10118
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10119
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10120
|
+
return [2 /*return*/, {
|
|
10121
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10122
|
+
options: localVarRequestOptions,
|
|
10123
|
+
}];
|
|
10124
|
+
});
|
|
10125
|
+
});
|
|
10126
|
+
},
|
|
10086
10127
|
/**
|
|
10087
10128
|
* Download Order PDF
|
|
10088
10129
|
* @summary Download Order PDF
|
|
@@ -10349,47 +10390,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10349
10390
|
});
|
|
10350
10391
|
});
|
|
10351
10392
|
},
|
|
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
|
-
},
|
|
10393
10393
|
/**
|
|
10394
10394
|
* Create An Order (Beta)
|
|
10395
10395
|
* @summary Create An Order (Beta)
|
|
@@ -11024,6 +11024,30 @@ var OrdersApiFp = function (configuration) {
|
|
|
11024
11024
|
});
|
|
11025
11025
|
});
|
|
11026
11026
|
},
|
|
11027
|
+
/**
|
|
11028
|
+
* Get Item Serial Info (Admin)
|
|
11029
|
+
* @summary Get Item Serial Info (Admin)
|
|
11030
|
+
* @param {number} id Order ID
|
|
11031
|
+
* @param {number} itemId Shipment Item ID
|
|
11032
|
+
* @param {*} [options] Override http request option.
|
|
11033
|
+
* @throws {RequiredError}
|
|
11034
|
+
*/
|
|
11035
|
+
getGetItemSerialInfo: function (id, itemId, options) {
|
|
11036
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11037
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11038
|
+
var _a, _b, _c;
|
|
11039
|
+
return __generator(this, function (_d) {
|
|
11040
|
+
switch (_d.label) {
|
|
11041
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetItemSerialInfo(id, itemId, options)];
|
|
11042
|
+
case 1:
|
|
11043
|
+
localVarAxiosArgs = _d.sent();
|
|
11044
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11045
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetItemSerialInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11046
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11047
|
+
}
|
|
11048
|
+
});
|
|
11049
|
+
});
|
|
11050
|
+
},
|
|
11027
11051
|
/**
|
|
11028
11052
|
* Download Order PDF
|
|
11029
11053
|
* @summary Download Order PDF
|
|
@@ -11174,30 +11198,6 @@ var OrdersApiFp = function (configuration) {
|
|
|
11174
11198
|
});
|
|
11175
11199
|
});
|
|
11176
11200
|
},
|
|
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
|
-
},
|
|
11201
11201
|
/**
|
|
11202
11202
|
* Create An Order (Beta)
|
|
11203
11203
|
* @summary Create An Order (Beta)
|
|
@@ -11542,6 +11542,17 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11542
11542
|
getGetEditableOrder: function (id, options) {
|
|
11543
11543
|
return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
11544
11544
|
},
|
|
11545
|
+
/**
|
|
11546
|
+
* Get Item Serial Info (Admin)
|
|
11547
|
+
* @summary Get Item Serial Info (Admin)
|
|
11548
|
+
* @param {number} id Order ID
|
|
11549
|
+
* @param {number} itemId Shipment Item ID
|
|
11550
|
+
* @param {*} [options] Override http request option.
|
|
11551
|
+
* @throws {RequiredError}
|
|
11552
|
+
*/
|
|
11553
|
+
getGetItemSerialInfo: function (id, itemId, options) {
|
|
11554
|
+
return localVarFp.getGetItemSerialInfo(id, itemId, options).then(function (request) { return request(axios, basePath); });
|
|
11555
|
+
},
|
|
11545
11556
|
/**
|
|
11546
11557
|
* Download Order PDF
|
|
11547
11558
|
* @summary Download Order PDF
|
|
@@ -11614,17 +11625,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11614
11625
|
postCreateShipment: function (id, batchId, shipmentRequestDTO, options) {
|
|
11615
11626
|
return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
|
|
11616
11627
|
},
|
|
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
|
-
},
|
|
11628
11628
|
/**
|
|
11629
11629
|
* Create An Order (Beta)
|
|
11630
11630
|
* @summary Create An Order (Beta)
|
|
@@ -11842,6 +11842,19 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
11842
11842
|
var _this = this;
|
|
11843
11843
|
return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11844
11844
|
};
|
|
11845
|
+
/**
|
|
11846
|
+
* Get Item Serial Info (Admin)
|
|
11847
|
+
* @summary Get Item Serial Info (Admin)
|
|
11848
|
+
* @param {number} id Order ID
|
|
11849
|
+
* @param {number} itemId Shipment Item ID
|
|
11850
|
+
* @param {*} [options] Override http request option.
|
|
11851
|
+
* @throws {RequiredError}
|
|
11852
|
+
* @memberof OrdersApi
|
|
11853
|
+
*/
|
|
11854
|
+
OrdersApi.prototype.getGetItemSerialInfo = function (id, itemId, options) {
|
|
11855
|
+
var _this = this;
|
|
11856
|
+
return (0, exports.OrdersApiFp)(this.configuration).getGetItemSerialInfo(id, itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11857
|
+
};
|
|
11845
11858
|
/**
|
|
11846
11859
|
* Download Order PDF
|
|
11847
11860
|
* @summary Download Order PDF
|
|
@@ -11926,19 +11939,6 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
11926
11939
|
var _this = this;
|
|
11927
11940
|
return (0, exports.OrdersApiFp)(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11928
11941
|
};
|
|
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
|
-
};
|
|
11942
11942
|
/**
|
|
11943
11943
|
* Create An Order (Beta)
|
|
11944
11944
|
* @summary Create An Order (Beta)
|
package/docs/OrdersApi.md
CHANGED
|
@@ -10,13 +10,13 @@ All URIs are relative to *https://api.yellowgrid.local*
|
|
|
10
10
|
|[**getGetAdminEditableOrder**](#getgetadmineditableorder) | **GET** /admin/orders/{id}/views/editable | Get Editable Order (Admin)|
|
|
11
11
|
|[**getGetAdminOrderDetails**](#getgetadminorderdetails) | **GET** /admin/orders/{id}/details | Get Order Details (Admin)|
|
|
12
12
|
|[**getGetEditableOrder**](#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)|
|
|
13
|
+
|[**getGetItemSerialInfo**](#getgetitemserialinfo) | **GET** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)|
|
|
13
14
|
|[**getGetOrderPdf**](#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF|
|
|
14
15
|
|[**getGetOrders**](#getgetorders) | **GET** /orders | Get Orders (Beta)|
|
|
15
16
|
|[**postAddOrderNote**](#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note|
|
|
16
17
|
|[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
|
|
17
18
|
|[**postCreateConsignment**](#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment|
|
|
18
19
|
|[**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)|
|
|
20
20
|
|[**postGetOrders**](#postgetorders) | **POST** /orders | Create An Order (Beta)|
|
|
21
21
|
|[**postIssueCredit**](#postissuecredit) | **POST** /admin/orders/{id}/credit | Issue Credit (Admin)|
|
|
22
22
|
|[**postPrintShippingLabel**](#postprintshippinglabel) | **POST** /admin/orders/{id}/shipments/{shipment_id}/label/print | Print Shipment Label|
|
|
@@ -362,6 +362,63 @@ No authorization required
|
|
|
362
362
|
|
|
363
363
|
[[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)
|
|
364
364
|
|
|
365
|
+
# **getGetItemSerialInfo**
|
|
366
|
+
> ProductSerialInfoModel getGetItemSerialInfo()
|
|
367
|
+
|
|
368
|
+
Get Item Serial Info (Admin)
|
|
369
|
+
|
|
370
|
+
### Example
|
|
371
|
+
|
|
372
|
+
```typescript
|
|
373
|
+
import {
|
|
374
|
+
OrdersApi,
|
|
375
|
+
Configuration
|
|
376
|
+
} from 'yellowgrid-api-ts';
|
|
377
|
+
|
|
378
|
+
const configuration = new Configuration();
|
|
379
|
+
const apiInstance = new OrdersApi(configuration);
|
|
380
|
+
|
|
381
|
+
let id: number; //Order ID (default to undefined)
|
|
382
|
+
let itemId: number; //Shipment Item ID (default to undefined)
|
|
383
|
+
|
|
384
|
+
const { status, data } = await apiInstance.getGetItemSerialInfo(
|
|
385
|
+
id,
|
|
386
|
+
itemId
|
|
387
|
+
);
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Parameters
|
|
391
|
+
|
|
392
|
+
|Name | Type | Description | Notes|
|
|
393
|
+
|------------- | ------------- | ------------- | -------------|
|
|
394
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
395
|
+
| **itemId** | [**number**] | Shipment Item ID | defaults to undefined|
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
### Return type
|
|
399
|
+
|
|
400
|
+
**ProductSerialInfoModel**
|
|
401
|
+
|
|
402
|
+
### Authorization
|
|
403
|
+
|
|
404
|
+
No authorization required
|
|
405
|
+
|
|
406
|
+
### HTTP request headers
|
|
407
|
+
|
|
408
|
+
- **Content-Type**: Not defined
|
|
409
|
+
- **Accept**: application/json
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
### HTTP response details
|
|
413
|
+
| Status code | Description | Response headers |
|
|
414
|
+
|-------------|-------------|------------------|
|
|
415
|
+
|**200** | Serial Info | - |
|
|
416
|
+
|**400** | Bad Request | - |
|
|
417
|
+
|**401** | Unauthorised | - |
|
|
418
|
+
|**403** | Access Denied | - |
|
|
419
|
+
|
|
420
|
+
[[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)
|
|
421
|
+
|
|
365
422
|
# **getGetOrderPdf**
|
|
366
423
|
> File getGetOrderPdf()
|
|
367
424
|
|
|
@@ -726,63 +783,6 @@ No authorization required
|
|
|
726
783
|
|
|
727
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)
|
|
728
785
|
|
|
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
|
-
|
|
786
786
|
# **postGetOrders**
|
|
787
787
|
> Array<OrderSummaryDTO> postGetOrders()
|
|
788
788
|
|