yellowgrid-api-ts 3.2.82-dev.0 → 3.2.85-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 CHANGED
@@ -158,13 +158,14 @@ 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
163
+ *OrdersApi* | [**getGetOrderSummary**](docs/OrdersApi.md#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)
162
164
  *OrdersApi* | [**getGetOrders**](docs/OrdersApi.md#getgetorders) | **GET** /orders | Get Orders (Beta)
163
165
  *OrdersApi* | [**postAddOrderNote**](docs/OrdersApi.md#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note
164
166
  *OrdersApi* | [**postCreateAdminOrder**](docs/OrdersApi.md#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)
165
167
  *OrdersApi* | [**postCreateConsignment**](docs/OrdersApi.md#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment
166
168
  *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
169
  *OrdersApi* | [**postGetOrders**](docs/OrdersApi.md#postgetorders) | **POST** /orders | Create An Order (Beta)
169
170
  *OrdersApi* | [**postIssueCredit**](docs/OrdersApi.md#postissuecredit) | **POST** /admin/orders/{id}/credit | Issue Credit (Admin)
170
171
  *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};
@@ -20063,6 +20101,40 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20063
20101
 
20064
20102
 
20065
20103
 
20104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20106
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20107
+
20108
+ return {
20109
+ url: toPathString(localVarUrlObj),
20110
+ options: localVarRequestOptions,
20111
+ };
20112
+ },
20113
+ /**
20114
+ * Get Order Summary (Admin)
20115
+ * @summary Get Order Summary (Admin)
20116
+ * @param {number} id Order ID
20117
+ * @param {*} [options] Override http request option.
20118
+ * @throws {RequiredError}
20119
+ */
20120
+ getGetOrderSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20121
+ // verify required parameter 'id' is not null or undefined
20122
+ assertParamExists('getGetOrderSummary', 'id', id)
20123
+ const localVarPath = `/admin/orders/{id}/summary`
20124
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20127
+ let baseOptions;
20128
+ if (configuration) {
20129
+ baseOptions = configuration.baseOptions;
20130
+ }
20131
+
20132
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20133
+ const localVarHeaderParameter = {} as any;
20134
+ const localVarQueryParameter = {} as any;
20135
+
20136
+
20137
+
20066
20138
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20067
20139
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20068
20140
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20298,44 +20370,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20298
20370
  options: localVarRequestOptions,
20299
20371
  };
20300
20372
  },
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
20373
  /**
20340
20374
  * Create An Order (Beta)
20341
20375
  * @summary Create An Order (Beta)
@@ -20891,6 +20925,20 @@ export const OrdersApiFp = function(configuration?: Configuration) {
20891
20925
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
20892
20926
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20893
20927
  },
20928
+ /**
20929
+ * Get Item Serial Info (Admin)
20930
+ * @summary Get Item Serial Info (Admin)
20931
+ * @param {number} id Order ID
20932
+ * @param {number} itemId Shipment Item ID
20933
+ * @param {*} [options] Override http request option.
20934
+ * @throws {RequiredError}
20935
+ */
20936
+ async getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSerialInfoModel>> {
20937
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetItemSerialInfo(id, itemId, options);
20938
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20939
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetItemSerialInfo']?.[localVarOperationServerIndex]?.url;
20940
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20941
+ },
20894
20942
  /**
20895
20943
  * Download Order PDF
20896
20944
  * @summary Download Order PDF
@@ -20904,6 +20952,19 @@ export const OrdersApiFp = function(configuration?: Configuration) {
20904
20952
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderPdf']?.[localVarOperationServerIndex]?.url;
20905
20953
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20906
20954
  },
20955
+ /**
20956
+ * Get Order Summary (Admin)
20957
+ * @summary Get Order Summary (Admin)
20958
+ * @param {number} id Order ID
20959
+ * @param {*} [options] Override http request option.
20960
+ * @throws {RequiredError}
20961
+ */
20962
+ async getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>> {
20963
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderSummary(id, options);
20964
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20965
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderSummary']?.[localVarOperationServerIndex]?.url;
20966
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20967
+ },
20907
20968
  /**
20908
20969
  * Get Orders (Beta)
20909
20970
  * @summary Get Orders (Beta)
@@ -20981,20 +21042,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
20981
21042
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
20982
21043
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20983
21044
  },
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
21045
  /**
20999
21046
  * Create An Order (Beta)
21000
21047
  * @summary Create An Order (Beta)
@@ -21229,6 +21276,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21229
21276
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
21230
21277
  return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
21231
21278
  },
21279
+ /**
21280
+ * Get Item Serial Info (Admin)
21281
+ * @summary Get Item Serial Info (Admin)
21282
+ * @param {number} id Order ID
21283
+ * @param {number} itemId Shipment Item ID
21284
+ * @param {*} [options] Override http request option.
21285
+ * @throws {RequiredError}
21286
+ */
21287
+ getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSerialInfoModel> {
21288
+ return localVarFp.getGetItemSerialInfo(id, itemId, options).then((request) => request(axios, basePath));
21289
+ },
21232
21290
  /**
21233
21291
  * Download Order PDF
21234
21292
  * @summary Download Order PDF
@@ -21239,6 +21297,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21239
21297
  getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
21240
21298
  return localVarFp.getGetOrderPdf(id, options).then((request) => request(axios, basePath));
21241
21299
  },
21300
+ /**
21301
+ * Get Order Summary (Admin)
21302
+ * @summary Get Order Summary (Admin)
21303
+ * @param {number} id Order ID
21304
+ * @param {*} [options] Override http request option.
21305
+ * @throws {RequiredError}
21306
+ */
21307
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO> {
21308
+ return localVarFp.getGetOrderSummary(id, options).then((request) => request(axios, basePath));
21309
+ },
21242
21310
  /**
21243
21311
  * Get Orders (Beta)
21244
21312
  * @summary Get Orders (Beta)
@@ -21301,17 +21369,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21301
21369
  postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentDTO> {
21302
21370
  return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
21303
21371
  },
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
21372
  /**
21316
21373
  * Create An Order (Beta)
21317
21374
  * @summary Create An Order (Beta)
@@ -21525,6 +21582,19 @@ export class OrdersApi extends BaseAPI {
21525
21582
  return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
21526
21583
  }
21527
21584
 
21585
+ /**
21586
+ * Get Item Serial Info (Admin)
21587
+ * @summary Get Item Serial Info (Admin)
21588
+ * @param {number} id Order ID
21589
+ * @param {number} itemId Shipment Item ID
21590
+ * @param {*} [options] Override http request option.
21591
+ * @throws {RequiredError}
21592
+ * @memberof OrdersApi
21593
+ */
21594
+ public getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig) {
21595
+ return OrdersApiFp(this.configuration).getGetItemSerialInfo(id, itemId, options).then((request) => request(this.axios, this.basePath));
21596
+ }
21597
+
21528
21598
  /**
21529
21599
  * Download Order PDF
21530
21600
  * @summary Download Order PDF
@@ -21537,6 +21607,18 @@ export class OrdersApi extends BaseAPI {
21537
21607
  return OrdersApiFp(this.configuration).getGetOrderPdf(id, options).then((request) => request(this.axios, this.basePath));
21538
21608
  }
21539
21609
 
21610
+ /**
21611
+ * Get Order Summary (Admin)
21612
+ * @summary Get Order Summary (Admin)
21613
+ * @param {number} id Order ID
21614
+ * @param {*} [options] Override http request option.
21615
+ * @throws {RequiredError}
21616
+ * @memberof OrdersApi
21617
+ */
21618
+ public getGetOrderSummary(id: number, options?: RawAxiosRequestConfig) {
21619
+ return OrdersApiFp(this.configuration).getGetOrderSummary(id, options).then((request) => request(this.axios, this.basePath));
21620
+ }
21621
+
21540
21622
  /**
21541
21623
  * Get Orders (Beta)
21542
21624
  * @summary Get Orders (Beta)
@@ -21609,19 +21691,6 @@ export class OrdersApi extends BaseAPI {
21609
21691
  return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
21610
21692
  }
21611
21693
 
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
21694
  /**
21626
21695
  * Create An Order (Beta)
21627
21696
  * @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
@@ -15553,6 +15562,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15553
15562
  * @throws {RequiredError}
15554
15563
  */
15555
15564
  getGetOrderPdf: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15565
+ /**
15566
+ * Get Order Summary (Admin)
15567
+ * @summary Get Order Summary (Admin)
15568
+ * @param {number} id Order ID
15569
+ * @param {*} [options] Override http request option.
15570
+ * @throws {RequiredError}
15571
+ */
15572
+ getGetOrderSummary: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15556
15573
  /**
15557
15574
  * Get Orders (Beta)
15558
15575
  * @summary Get Orders (Beta)
@@ -15605,15 +15622,6 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15605
15622
  * @throws {RequiredError}
15606
15623
  */
15607
15624
  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
15625
  /**
15618
15626
  * Create An Order (Beta)
15619
15627
  * @summary Create An Order (Beta)
@@ -15777,6 +15785,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
15777
15785
  * @throws {RequiredError}
15778
15786
  */
15779
15787
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>>;
15788
+ /**
15789
+ * Get Item Serial Info (Admin)
15790
+ * @summary Get Item Serial Info (Admin)
15791
+ * @param {number} id Order ID
15792
+ * @param {number} itemId Shipment Item ID
15793
+ * @param {*} [options] Override http request option.
15794
+ * @throws {RequiredError}
15795
+ */
15796
+ getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSerialInfoModel>>;
15780
15797
  /**
15781
15798
  * Download Order PDF
15782
15799
  * @summary Download Order PDF
@@ -15785,6 +15802,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
15785
15802
  * @throws {RequiredError}
15786
15803
  */
15787
15804
  getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
15805
+ /**
15806
+ * Get Order Summary (Admin)
15807
+ * @summary Get Order Summary (Admin)
15808
+ * @param {number} id Order ID
15809
+ * @param {*} [options] Override http request option.
15810
+ * @throws {RequiredError}
15811
+ */
15812
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>>;
15788
15813
  /**
15789
15814
  * Get Orders (Beta)
15790
15815
  * @summary Get Orders (Beta)
@@ -15837,15 +15862,6 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
15837
15862
  * @throws {RequiredError}
15838
15863
  */
15839
15864
  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
15865
  /**
15850
15866
  * Create An Order (Beta)
15851
15867
  * @summary Create An Order (Beta)
@@ -16009,6 +16025,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16009
16025
  * @throws {RequiredError}
16010
16026
  */
16011
16027
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO>;
16028
+ /**
16029
+ * Get Item Serial Info (Admin)
16030
+ * @summary Get Item Serial Info (Admin)
16031
+ * @param {number} id Order ID
16032
+ * @param {number} itemId Shipment Item ID
16033
+ * @param {*} [options] Override http request option.
16034
+ * @throws {RequiredError}
16035
+ */
16036
+ getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSerialInfoModel>;
16012
16037
  /**
16013
16038
  * Download Order PDF
16014
16039
  * @summary Download Order PDF
@@ -16017,6 +16042,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16017
16042
  * @throws {RequiredError}
16018
16043
  */
16019
16044
  getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File>;
16045
+ /**
16046
+ * Get Order Summary (Admin)
16047
+ * @summary Get Order Summary (Admin)
16048
+ * @param {number} id Order ID
16049
+ * @param {*} [options] Override http request option.
16050
+ * @throws {RequiredError}
16051
+ */
16052
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO>;
16020
16053
  /**
16021
16054
  * Get Orders (Beta)
16022
16055
  * @summary Get Orders (Beta)
@@ -16069,15 +16102,6 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16069
16102
  * @throws {RequiredError}
16070
16103
  */
16071
16104
  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
16105
  /**
16082
16106
  * Create An Order (Beta)
16083
16107
  * @summary Create An Order (Beta)
@@ -16249,6 +16273,16 @@ export declare class OrdersApi extends BaseAPI {
16249
16273
  * @memberof OrdersApi
16250
16274
  */
16251
16275
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DetailedOrderRequestDTO, any, {}>>;
16276
+ /**
16277
+ * Get Item Serial Info (Admin)
16278
+ * @summary Get Item Serial Info (Admin)
16279
+ * @param {number} id Order ID
16280
+ * @param {number} itemId Shipment Item ID
16281
+ * @param {*} [options] Override http request option.
16282
+ * @throws {RequiredError}
16283
+ * @memberof OrdersApi
16284
+ */
16285
+ getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSerialInfoModel, any, {}>>;
16252
16286
  /**
16253
16287
  * Download Order PDF
16254
16288
  * @summary Download Order PDF
@@ -16258,6 +16292,15 @@ export declare class OrdersApi extends BaseAPI {
16258
16292
  * @memberof OrdersApi
16259
16293
  */
16260
16294
  getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
16295
+ /**
16296
+ * Get Order Summary (Admin)
16297
+ * @summary Get Order Summary (Admin)
16298
+ * @param {number} id Order ID
16299
+ * @param {*} [options] Override http request option.
16300
+ * @throws {RequiredError}
16301
+ * @memberof OrdersApi
16302
+ */
16303
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummaryDTO, any, {}>>;
16261
16304
  /**
16262
16305
  * Get Orders (Beta)
16263
16306
  * @summary Get Orders (Beta)
@@ -16315,16 +16358,6 @@ export declare class OrdersApi extends BaseAPI {
16315
16358
  * @memberof OrdersApi
16316
16359
  */
16317
16360
  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
16361
  /**
16329
16362
  * Create An Order (Beta)
16330
16363
  * @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
@@ -10120,6 +10161,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10120
10161
  });
10121
10162
  });
10122
10163
  },
10164
+ /**
10165
+ * Get Order Summary (Admin)
10166
+ * @summary Get Order Summary (Admin)
10167
+ * @param {number} id Order ID
10168
+ * @param {*} [options] Override http request option.
10169
+ * @throws {RequiredError}
10170
+ */
10171
+ getGetOrderSummary: function (id_1) {
10172
+ var args_1 = [];
10173
+ for (var _i = 1; _i < arguments.length; _i++) {
10174
+ args_1[_i - 1] = arguments[_i];
10175
+ }
10176
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
10177
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10178
+ if (options === void 0) { options = {}; }
10179
+ return __generator(this, function (_a) {
10180
+ // verify required parameter 'id' is not null or undefined
10181
+ (0, common_1.assertParamExists)('getGetOrderSummary', 'id', id);
10182
+ localVarPath = "/admin/orders/{id}/summary"
10183
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10184
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10185
+ if (configuration) {
10186
+ baseOptions = configuration.baseOptions;
10187
+ }
10188
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10189
+ localVarHeaderParameter = {};
10190
+ localVarQueryParameter = {};
10191
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10192
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10193
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10194
+ return [2 /*return*/, {
10195
+ url: (0, common_1.toPathString)(localVarUrlObj),
10196
+ options: localVarRequestOptions,
10197
+ }];
10198
+ });
10199
+ });
10200
+ },
10123
10201
  /**
10124
10202
  * Get Orders (Beta)
10125
10203
  * @summary Get Orders (Beta)
@@ -10349,47 +10427,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10349
10427
  });
10350
10428
  });
10351
10429
  },
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
10430
  /**
10394
10431
  * Create An Order (Beta)
10395
10432
  * @summary Create An Order (Beta)
@@ -11024,6 +11061,30 @@ var OrdersApiFp = function (configuration) {
11024
11061
  });
11025
11062
  });
11026
11063
  },
11064
+ /**
11065
+ * Get Item Serial Info (Admin)
11066
+ * @summary Get Item Serial Info (Admin)
11067
+ * @param {number} id Order ID
11068
+ * @param {number} itemId Shipment Item ID
11069
+ * @param {*} [options] Override http request option.
11070
+ * @throws {RequiredError}
11071
+ */
11072
+ getGetItemSerialInfo: function (id, itemId, options) {
11073
+ return __awaiter(this, void 0, void 0, function () {
11074
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11075
+ var _a, _b, _c;
11076
+ return __generator(this, function (_d) {
11077
+ switch (_d.label) {
11078
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetItemSerialInfo(id, itemId, options)];
11079
+ case 1:
11080
+ localVarAxiosArgs = _d.sent();
11081
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11082
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetItemSerialInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11083
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11084
+ }
11085
+ });
11086
+ });
11087
+ },
11027
11088
  /**
11028
11089
  * Download Order PDF
11029
11090
  * @summary Download Order PDF
@@ -11047,6 +11108,29 @@ var OrdersApiFp = function (configuration) {
11047
11108
  });
11048
11109
  });
11049
11110
  },
11111
+ /**
11112
+ * Get Order Summary (Admin)
11113
+ * @summary Get Order Summary (Admin)
11114
+ * @param {number} id Order ID
11115
+ * @param {*} [options] Override http request option.
11116
+ * @throws {RequiredError}
11117
+ */
11118
+ getGetOrderSummary: function (id, options) {
11119
+ return __awaiter(this, void 0, void 0, function () {
11120
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11121
+ var _a, _b, _c;
11122
+ return __generator(this, function (_d) {
11123
+ switch (_d.label) {
11124
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrderSummary(id, options)];
11125
+ case 1:
11126
+ localVarAxiosArgs = _d.sent();
11127
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11128
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrderSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11129
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11130
+ }
11131
+ });
11132
+ });
11133
+ },
11050
11134
  /**
11051
11135
  * Get Orders (Beta)
11052
11136
  * @summary Get Orders (Beta)
@@ -11174,30 +11258,6 @@ var OrdersApiFp = function (configuration) {
11174
11258
  });
11175
11259
  });
11176
11260
  },
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
11261
  /**
11202
11262
  * Create An Order (Beta)
11203
11263
  * @summary Create An Order (Beta)
@@ -11542,6 +11602,17 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
11542
11602
  getGetEditableOrder: function (id, options) {
11543
11603
  return localVarFp.getGetEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
11544
11604
  },
11605
+ /**
11606
+ * Get Item Serial Info (Admin)
11607
+ * @summary Get Item Serial Info (Admin)
11608
+ * @param {number} id Order ID
11609
+ * @param {number} itemId Shipment Item ID
11610
+ * @param {*} [options] Override http request option.
11611
+ * @throws {RequiredError}
11612
+ */
11613
+ getGetItemSerialInfo: function (id, itemId, options) {
11614
+ return localVarFp.getGetItemSerialInfo(id, itemId, options).then(function (request) { return request(axios, basePath); });
11615
+ },
11545
11616
  /**
11546
11617
  * Download Order PDF
11547
11618
  * @summary Download Order PDF
@@ -11552,6 +11623,16 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
11552
11623
  getGetOrderPdf: function (id, options) {
11553
11624
  return localVarFp.getGetOrderPdf(id, options).then(function (request) { return request(axios, basePath); });
11554
11625
  },
11626
+ /**
11627
+ * Get Order Summary (Admin)
11628
+ * @summary Get Order Summary (Admin)
11629
+ * @param {number} id Order ID
11630
+ * @param {*} [options] Override http request option.
11631
+ * @throws {RequiredError}
11632
+ */
11633
+ getGetOrderSummary: function (id, options) {
11634
+ return localVarFp.getGetOrderSummary(id, options).then(function (request) { return request(axios, basePath); });
11635
+ },
11555
11636
  /**
11556
11637
  * Get Orders (Beta)
11557
11638
  * @summary Get Orders (Beta)
@@ -11614,17 +11695,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
11614
11695
  postCreateShipment: function (id, batchId, shipmentRequestDTO, options) {
11615
11696
  return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(axios, basePath); });
11616
11697
  },
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
11698
  /**
11629
11699
  * Create An Order (Beta)
11630
11700
  * @summary Create An Order (Beta)
@@ -11842,6 +11912,19 @@ var OrdersApi = /** @class */ (function (_super) {
11842
11912
  var _this = this;
11843
11913
  return (0, exports.OrdersApiFp)(this.configuration).getGetEditableOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
11844
11914
  };
11915
+ /**
11916
+ * Get Item Serial Info (Admin)
11917
+ * @summary Get Item Serial Info (Admin)
11918
+ * @param {number} id Order ID
11919
+ * @param {number} itemId Shipment Item ID
11920
+ * @param {*} [options] Override http request option.
11921
+ * @throws {RequiredError}
11922
+ * @memberof OrdersApi
11923
+ */
11924
+ OrdersApi.prototype.getGetItemSerialInfo = function (id, itemId, options) {
11925
+ var _this = this;
11926
+ return (0, exports.OrdersApiFp)(this.configuration).getGetItemSerialInfo(id, itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11927
+ };
11845
11928
  /**
11846
11929
  * Download Order PDF
11847
11930
  * @summary Download Order PDF
@@ -11854,6 +11937,18 @@ var OrdersApi = /** @class */ (function (_super) {
11854
11937
  var _this = this;
11855
11938
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrderPdf(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
11856
11939
  };
11940
+ /**
11941
+ * Get Order Summary (Admin)
11942
+ * @summary Get Order Summary (Admin)
11943
+ * @param {number} id Order ID
11944
+ * @param {*} [options] Override http request option.
11945
+ * @throws {RequiredError}
11946
+ * @memberof OrdersApi
11947
+ */
11948
+ OrdersApi.prototype.getGetOrderSummary = function (id, options) {
11949
+ var _this = this;
11950
+ return (0, exports.OrdersApiFp)(this.configuration).getGetOrderSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
11951
+ };
11857
11952
  /**
11858
11953
  * Get Orders (Beta)
11859
11954
  * @summary Get Orders (Beta)
@@ -11926,19 +12021,6 @@ var OrdersApi = /** @class */ (function (_super) {
11926
12021
  var _this = this;
11927
12022
  return (0, exports.OrdersApiFp)(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
11928
12023
  };
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
12024
  /**
11943
12025
  * Create An Order (Beta)
11944
12026
  * @summary Create An Order (Beta)
package/docs/OrdersApi.md CHANGED
@@ -10,13 +10,14 @@ 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|
15
+ |[**getGetOrderSummary**](#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)|
14
16
  |[**getGetOrders**](#getgetorders) | **GET** /orders | Get Orders (Beta)|
15
17
  |[**postAddOrderNote**](#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note|
16
18
  |[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
17
19
  |[**postCreateConsignment**](#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment|
18
20
  |[**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
21
  |[**postGetOrders**](#postgetorders) | **POST** /orders | Create An Order (Beta)|
21
22
  |[**postIssueCredit**](#postissuecredit) | **POST** /admin/orders/{id}/credit | Issue Credit (Admin)|
22
23
  |[**postPrintShippingLabel**](#postprintshippinglabel) | **POST** /admin/orders/{id}/shipments/{shipment_id}/label/print | Print Shipment Label|
@@ -362,6 +363,63 @@ No authorization required
362
363
 
363
364
  [[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
365
 
366
+ # **getGetItemSerialInfo**
367
+ > ProductSerialInfoModel getGetItemSerialInfo()
368
+
369
+ Get Item Serial Info (Admin)
370
+
371
+ ### Example
372
+
373
+ ```typescript
374
+ import {
375
+ OrdersApi,
376
+ Configuration
377
+ } from 'yellowgrid-api-ts';
378
+
379
+ const configuration = new Configuration();
380
+ const apiInstance = new OrdersApi(configuration);
381
+
382
+ let id: number; //Order ID (default to undefined)
383
+ let itemId: number; //Shipment Item ID (default to undefined)
384
+
385
+ const { status, data } = await apiInstance.getGetItemSerialInfo(
386
+ id,
387
+ itemId
388
+ );
389
+ ```
390
+
391
+ ### Parameters
392
+
393
+ |Name | Type | Description | Notes|
394
+ |------------- | ------------- | ------------- | -------------|
395
+ | **id** | [**number**] | Order ID | defaults to undefined|
396
+ | **itemId** | [**number**] | Shipment Item ID | defaults to undefined|
397
+
398
+
399
+ ### Return type
400
+
401
+ **ProductSerialInfoModel**
402
+
403
+ ### Authorization
404
+
405
+ No authorization required
406
+
407
+ ### HTTP request headers
408
+
409
+ - **Content-Type**: Not defined
410
+ - **Accept**: application/json
411
+
412
+
413
+ ### HTTP response details
414
+ | Status code | Description | Response headers |
415
+ |-------------|-------------|------------------|
416
+ |**200** | Serial Info | - |
417
+ |**400** | Bad Request | - |
418
+ |**401** | Unauthorised | - |
419
+ |**403** | Access Denied | - |
420
+
421
+ [[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)
422
+
365
423
  # **getGetOrderPdf**
366
424
  > File getGetOrderPdf()
367
425
 
@@ -416,6 +474,60 @@ No authorization required
416
474
 
417
475
  [[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)
418
476
 
477
+ # **getGetOrderSummary**
478
+ > OrderSummaryDTO getGetOrderSummary()
479
+
480
+ Get Order Summary (Admin)
481
+
482
+ ### Example
483
+
484
+ ```typescript
485
+ import {
486
+ OrdersApi,
487
+ Configuration
488
+ } from 'yellowgrid-api-ts';
489
+
490
+ const configuration = new Configuration();
491
+ const apiInstance = new OrdersApi(configuration);
492
+
493
+ let id: number; //Order ID (default to undefined)
494
+
495
+ const { status, data } = await apiInstance.getGetOrderSummary(
496
+ id
497
+ );
498
+ ```
499
+
500
+ ### Parameters
501
+
502
+ |Name | Type | Description | Notes|
503
+ |------------- | ------------- | ------------- | -------------|
504
+ | **id** | [**number**] | Order ID | defaults to undefined|
505
+
506
+
507
+ ### Return type
508
+
509
+ **OrderSummaryDTO**
510
+
511
+ ### Authorization
512
+
513
+ No authorization required
514
+
515
+ ### HTTP request headers
516
+
517
+ - **Content-Type**: Not defined
518
+ - **Accept**: application/json
519
+
520
+
521
+ ### HTTP response details
522
+ | Status code | Description | Response headers |
523
+ |-------------|-------------|------------------|
524
+ |**200** | Order Summary | - |
525
+ |**400** | Bad Request | - |
526
+ |**401** | Unauthorised | - |
527
+ |**403** | Access Denied | - |
528
+
529
+ [[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)
530
+
419
531
  # **getGetOrders**
420
532
  > OrderSummariesModel getGetOrders()
421
533
 
@@ -726,63 +838,6 @@ No authorization required
726
838
 
727
839
  [[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
840
 
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
841
  # **postGetOrders**
787
842
  > Array<OrderSummaryDTO> postGetOrders()
788
843
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.82-dev.0",
3
+ "version": "3.2.85-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {