yellowgrid-api-ts 3.2.97-dev.0 → 3.2.98-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
@@ -176,8 +176,8 @@ Class | Method | HTTP request | Description
176
176
  *OrdersApi* | [**postSendSupplierEmail**](docs/OrdersApi.md#postsendsupplieremail) | **POST** /admin/orders/{id}/batches/{batch_id}/email/send | Send Supplier Email
177
177
  *OrdersApi* | [**postSplitOrder**](docs/OrdersApi.md#postsplitorder) | **POST** /admin/orders/{id}/split | Split Order
178
178
  *OrdersApi* | [**putAllocateItems**](docs/OrdersApi.md#putallocateitems) | **PUT** /admin/orders/{id}/items/allocate | Allocate Items To Supplier
179
- *OrdersApi* | [**putDeleteBatch**](docs/OrdersApi.md#putdeletebatch) | **PUT** /admin/orders/{id}/batches/{batch_id} | Update Batch Item (Admin)
180
179
  *OrdersApi* | [**putUpdateAdminOrder**](docs/OrdersApi.md#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)
180
+ *OrdersApi* | [**putUpdateBatchItem**](docs/OrdersApi.md#putupdatebatchitem) | **PUT** /admin/orders/{id}/batches/{batch_id}/items/{item_id} | Update Batch Item (Admin)
181
181
  *OrdersApi* | [**putUpdateOrder**](docs/OrdersApi.md#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)
182
182
  *OrdersApi* | [**putUpdatePaymentStatus**](docs/OrdersApi.md#putupdatepaymentstatus) | **PUT** /admin/orders/{id}/paid | Change Payment Status (Admin)
183
183
  *OrdersApi* | [**putUpdateShipment**](docs/OrdersApi.md#putupdateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Update Shipment (Admin)
package/api.ts CHANGED
@@ -20996,26 +20996,19 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20996
20996
  };
20997
20997
  },
20998
20998
  /**
20999
- * Update Batch Item (Admin)
21000
- * @summary Update Batch Item (Admin)
20999
+ * Update An Order (Admin)
21000
+ * @summary Update An Order (Admin)
21001
21001
  * @param {number} id Order ID
21002
- * @param {number} batchId Batch ID
21003
- * @param {number} itemId Ordered Item ID
21004
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
21002
+ * @param {boolean} [readonly] Readonly Order
21003
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
21005
21004
  * @param {*} [options] Override http request option.
21006
21005
  * @throws {RequiredError}
21007
21006
  */
21008
- putDeleteBatch: async (id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21007
+ putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21009
21008
  // verify required parameter 'id' is not null or undefined
21010
- assertParamExists('putDeleteBatch', 'id', id)
21011
- // verify required parameter 'batchId' is not null or undefined
21012
- assertParamExists('putDeleteBatch', 'batchId', batchId)
21013
- // verify required parameter 'itemId' is not null or undefined
21014
- assertParamExists('putDeleteBatch', 'itemId', itemId)
21015
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}`
21016
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
21017
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
21018
- .replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
21009
+ assertParamExists('putUpdateAdminOrder', 'id', id)
21010
+ const localVarPath = `/admin/orders/{id}`
21011
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
21019
21012
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
21020
21013
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21021
21014
  let baseOptions;
@@ -21027,6 +21020,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
21027
21020
  const localVarHeaderParameter = {} as any;
21028
21021
  const localVarQueryParameter = {} as any;
21029
21022
 
21023
+ if (readonly !== undefined) {
21024
+ localVarQueryParameter['readonly'] = readonly;
21025
+ }
21026
+
21030
21027
 
21031
21028
 
21032
21029
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -21034,7 +21031,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
21034
21031
  setSearchParams(localVarUrlObj, localVarQueryParameter);
21035
21032
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21036
21033
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21037
- localVarRequestOptions.data = serializeDataIfNeeded(orderedItemModel, localVarRequestOptions, configuration)
21034
+ localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
21038
21035
 
21039
21036
  return {
21040
21037
  url: toPathString(localVarUrlObj),
@@ -21042,19 +21039,26 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
21042
21039
  };
21043
21040
  },
21044
21041
  /**
21045
- * Update An Order (Admin)
21046
- * @summary Update An Order (Admin)
21042
+ * Update Batch Item (Admin)
21043
+ * @summary Update Batch Item (Admin)
21047
21044
  * @param {number} id Order ID
21048
- * @param {boolean} [readonly] Readonly Order
21049
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
21045
+ * @param {number} batchId Batch ID
21046
+ * @param {number} itemId Ordered Item ID
21047
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
21050
21048
  * @param {*} [options] Override http request option.
21051
21049
  * @throws {RequiredError}
21052
21050
  */
21053
- putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21051
+ putUpdateBatchItem: async (id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21054
21052
  // verify required parameter 'id' is not null or undefined
21055
- assertParamExists('putUpdateAdminOrder', 'id', id)
21056
- const localVarPath = `/admin/orders/{id}`
21057
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
21053
+ assertParamExists('putUpdateBatchItem', 'id', id)
21054
+ // verify required parameter 'batchId' is not null or undefined
21055
+ assertParamExists('putUpdateBatchItem', 'batchId', batchId)
21056
+ // verify required parameter 'itemId' is not null or undefined
21057
+ assertParamExists('putUpdateBatchItem', 'itemId', itemId)
21058
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/items/{item_id}`
21059
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
21060
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
21061
+ .replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
21058
21062
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
21059
21063
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21060
21064
  let baseOptions;
@@ -21066,10 +21070,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
21066
21070
  const localVarHeaderParameter = {} as any;
21067
21071
  const localVarQueryParameter = {} as any;
21068
21072
 
21069
- if (readonly !== undefined) {
21070
- localVarQueryParameter['readonly'] = readonly;
21071
- }
21072
-
21073
21073
 
21074
21074
 
21075
21075
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -21077,7 +21077,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
21077
21077
  setSearchParams(localVarUrlObj, localVarQueryParameter);
21078
21078
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21079
21079
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21080
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
21080
+ localVarRequestOptions.data = serializeDataIfNeeded(orderedItemModel, localVarRequestOptions, configuration)
21081
21081
 
21082
21082
  return {
21083
21083
  url: toPathString(localVarUrlObj),
@@ -21551,34 +21551,34 @@ export const OrdersApiFp = function(configuration?: Configuration) {
21551
21551
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21552
21552
  },
21553
21553
  /**
21554
- * Update Batch Item (Admin)
21555
- * @summary Update Batch Item (Admin)
21554
+ * Update An Order (Admin)
21555
+ * @summary Update An Order (Admin)
21556
21556
  * @param {number} id Order ID
21557
- * @param {number} batchId Batch ID
21558
- * @param {number} itemId Ordered Item ID
21559
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
21557
+ * @param {boolean} [readonly] Readonly Order
21558
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
21560
21559
  * @param {*} [options] Override http request option.
21561
21560
  * @throws {RequiredError}
21562
21561
  */
21563
- async putDeleteBatch(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderedItemModel>> {
21564
- const localVarAxiosArgs = await localVarAxiosParamCreator.putDeleteBatch(id, batchId, itemId, orderedItemModel, options);
21562
+ async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
21563
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
21565
21564
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21566
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putDeleteBatch']?.[localVarOperationServerIndex]?.url;
21565
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
21567
21566
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21568
21567
  },
21569
21568
  /**
21570
- * Update An Order (Admin)
21571
- * @summary Update An Order (Admin)
21569
+ * Update Batch Item (Admin)
21570
+ * @summary Update Batch Item (Admin)
21572
21571
  * @param {number} id Order ID
21573
- * @param {boolean} [readonly] Readonly Order
21574
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
21572
+ * @param {number} batchId Batch ID
21573
+ * @param {number} itemId Ordered Item ID
21574
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
21575
21575
  * @param {*} [options] Override http request option.
21576
21576
  * @throws {RequiredError}
21577
21577
  */
21578
- async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
21579
- const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
21578
+ async putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderedItemModel>> {
21579
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options);
21580
21580
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21581
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
21581
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateBatchItem']?.[localVarOperationServerIndex]?.url;
21582
21582
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21583
21583
  },
21584
21584
  /**
@@ -21893,19 +21893,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21893
21893
  putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BatchDTO>> {
21894
21894
  return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(axios, basePath));
21895
21895
  },
21896
- /**
21897
- * Update Batch Item (Admin)
21898
- * @summary Update Batch Item (Admin)
21899
- * @param {number} id Order ID
21900
- * @param {number} batchId Batch ID
21901
- * @param {number} itemId Ordered Item ID
21902
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
21903
- * @param {*} [options] Override http request option.
21904
- * @throws {RequiredError}
21905
- */
21906
- putDeleteBatch(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): AxiosPromise<OrderedItemModel> {
21907
- return localVarFp.putDeleteBatch(id, batchId, itemId, orderedItemModel, options).then((request) => request(axios, basePath));
21908
- },
21909
21896
  /**
21910
21897
  * Update An Order (Admin)
21911
21898
  * @summary Update An Order (Admin)
@@ -21918,6 +21905,19 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21918
21905
  putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
21919
21906
  return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
21920
21907
  },
21908
+ /**
21909
+ * Update Batch Item (Admin)
21910
+ * @summary Update Batch Item (Admin)
21911
+ * @param {number} id Order ID
21912
+ * @param {number} batchId Batch ID
21913
+ * @param {number} itemId Ordered Item ID
21914
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
21915
+ * @param {*} [options] Override http request option.
21916
+ * @throws {RequiredError}
21917
+ */
21918
+ putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): AxiosPromise<OrderedItemModel> {
21919
+ return localVarFp.putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options).then((request) => request(axios, basePath));
21920
+ },
21921
21921
  /**
21922
21922
  * Update An Order (Beta)
21923
21923
  * @summary Update An Order (Beta)
@@ -22268,32 +22268,32 @@ export class OrdersApi extends BaseAPI {
22268
22268
  }
22269
22269
 
22270
22270
  /**
22271
- * Update Batch Item (Admin)
22272
- * @summary Update Batch Item (Admin)
22271
+ * Update An Order (Admin)
22272
+ * @summary Update An Order (Admin)
22273
22273
  * @param {number} id Order ID
22274
- * @param {number} batchId Batch ID
22275
- * @param {number} itemId Ordered Item ID
22276
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
22274
+ * @param {boolean} [readonly] Readonly Order
22275
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
22277
22276
  * @param {*} [options] Override http request option.
22278
22277
  * @throws {RequiredError}
22279
22278
  * @memberof OrdersApi
22280
22279
  */
22281
- public putDeleteBatch(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig) {
22282
- return OrdersApiFp(this.configuration).putDeleteBatch(id, batchId, itemId, orderedItemModel, options).then((request) => request(this.axios, this.basePath));
22280
+ public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
22281
+ return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
22283
22282
  }
22284
22283
 
22285
22284
  /**
22286
- * Update An Order (Admin)
22287
- * @summary Update An Order (Admin)
22285
+ * Update Batch Item (Admin)
22286
+ * @summary Update Batch Item (Admin)
22288
22287
  * @param {number} id Order ID
22289
- * @param {boolean} [readonly] Readonly Order
22290
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
22288
+ * @param {number} batchId Batch ID
22289
+ * @param {number} itemId Ordered Item ID
22290
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
22291
22291
  * @param {*} [options] Override http request option.
22292
22292
  * @throws {RequiredError}
22293
22293
  * @memberof OrdersApi
22294
22294
  */
22295
- public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
22296
- return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
22295
+ public putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig) {
22296
+ return OrdersApiFp(this.configuration).putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options).then((request) => request(this.axios, this.basePath));
22297
22297
  }
22298
22298
 
22299
22299
  /**
package/dist/api.d.ts CHANGED
@@ -15923,17 +15923,6 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15923
15923
  * @throws {RequiredError}
15924
15924
  */
15925
15925
  putAllocateItems: (id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15926
- /**
15927
- * Update Batch Item (Admin)
15928
- * @summary Update Batch Item (Admin)
15929
- * @param {number} id Order ID
15930
- * @param {number} batchId Batch ID
15931
- * @param {number} itemId Ordered Item ID
15932
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
15933
- * @param {*} [options] Override http request option.
15934
- * @throws {RequiredError}
15935
- */
15936
- putDeleteBatch: (id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15937
15926
  /**
15938
15927
  * Update An Order (Admin)
15939
15928
  * @summary Update An Order (Admin)
@@ -15944,6 +15933,17 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15944
15933
  * @throws {RequiredError}
15945
15934
  */
15946
15935
  putUpdateAdminOrder: (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15936
+ /**
15937
+ * Update Batch Item (Admin)
15938
+ * @summary Update Batch Item (Admin)
15939
+ * @param {number} id Order ID
15940
+ * @param {number} batchId Batch ID
15941
+ * @param {number} itemId Ordered Item ID
15942
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
15943
+ * @param {*} [options] Override http request option.
15944
+ * @throws {RequiredError}
15945
+ */
15946
+ putUpdateBatchItem: (id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15947
15947
  /**
15948
15948
  * Update An Order (Beta)
15949
15949
  * @summary Update An Order (Beta)
@@ -16191,17 +16191,6 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
16191
16191
  * @throws {RequiredError}
16192
16192
  */
16193
16193
  putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BatchDTO>>>;
16194
- /**
16195
- * Update Batch Item (Admin)
16196
- * @summary Update Batch Item (Admin)
16197
- * @param {number} id Order ID
16198
- * @param {number} batchId Batch ID
16199
- * @param {number} itemId Ordered Item ID
16200
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
16201
- * @param {*} [options] Override http request option.
16202
- * @throws {RequiredError}
16203
- */
16204
- putDeleteBatch(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderedItemModel>>;
16205
16194
  /**
16206
16195
  * Update An Order (Admin)
16207
16196
  * @summary Update An Order (Admin)
@@ -16212,6 +16201,17 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
16212
16201
  * @throws {RequiredError}
16213
16202
  */
16214
16203
  putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>>;
16204
+ /**
16205
+ * Update Batch Item (Admin)
16206
+ * @summary Update Batch Item (Admin)
16207
+ * @param {number} id Order ID
16208
+ * @param {number} batchId Batch ID
16209
+ * @param {number} itemId Ordered Item ID
16210
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
16211
+ * @param {*} [options] Override http request option.
16212
+ * @throws {RequiredError}
16213
+ */
16214
+ putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderedItemModel>>;
16215
16215
  /**
16216
16216
  * Update An Order (Beta)
16217
16217
  * @summary Update An Order (Beta)
@@ -16459,17 +16459,6 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16459
16459
  * @throws {RequiredError}
16460
16460
  */
16461
16461
  putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BatchDTO>>;
16462
- /**
16463
- * Update Batch Item (Admin)
16464
- * @summary Update Batch Item (Admin)
16465
- * @param {number} id Order ID
16466
- * @param {number} batchId Batch ID
16467
- * @param {number} itemId Ordered Item ID
16468
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
16469
- * @param {*} [options] Override http request option.
16470
- * @throws {RequiredError}
16471
- */
16472
- putDeleteBatch(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): AxiosPromise<OrderedItemModel>;
16473
16462
  /**
16474
16463
  * Update An Order (Admin)
16475
16464
  * @summary Update An Order (Admin)
@@ -16480,6 +16469,17 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16480
16469
  * @throws {RequiredError}
16481
16470
  */
16482
16471
  putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>>;
16472
+ /**
16473
+ * Update Batch Item (Admin)
16474
+ * @summary Update Batch Item (Admin)
16475
+ * @param {number} id Order ID
16476
+ * @param {number} batchId Batch ID
16477
+ * @param {number} itemId Ordered Item ID
16478
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
16479
+ * @param {*} [options] Override http request option.
16480
+ * @throws {RequiredError}
16481
+ */
16482
+ putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): AxiosPromise<OrderedItemModel>;
16483
16483
  /**
16484
16484
  * Update An Order (Beta)
16485
16485
  * @summary Update An Order (Beta)
@@ -16753,28 +16753,28 @@ export declare class OrdersApi extends BaseAPI {
16753
16753
  */
16754
16754
  putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BatchDTO[], any, {}>>;
16755
16755
  /**
16756
- * Update Batch Item (Admin)
16757
- * @summary Update Batch Item (Admin)
16756
+ * Update An Order (Admin)
16757
+ * @summary Update An Order (Admin)
16758
16758
  * @param {number} id Order ID
16759
- * @param {number} batchId Batch ID
16760
- * @param {number} itemId Ordered Item ID
16761
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
16759
+ * @param {boolean} [readonly] Readonly Order
16760
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
16762
16761
  * @param {*} [options] Override http request option.
16763
16762
  * @throws {RequiredError}
16764
16763
  * @memberof OrdersApi
16765
16764
  */
16766
- putDeleteBatch(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderedItemModel, any, {}>>;
16765
+ putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummaryDTO[], any, {}>>;
16767
16766
  /**
16768
- * Update An Order (Admin)
16769
- * @summary Update An Order (Admin)
16767
+ * Update Batch Item (Admin)
16768
+ * @summary Update Batch Item (Admin)
16770
16769
  * @param {number} id Order ID
16771
- * @param {boolean} [readonly] Readonly Order
16772
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
16770
+ * @param {number} batchId Batch ID
16771
+ * @param {number} itemId Ordered Item ID
16772
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
16773
16773
  * @param {*} [options] Override http request option.
16774
16774
  * @throws {RequiredError}
16775
16775
  * @memberof OrdersApi
16776
16776
  */
16777
- putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummaryDTO[], any, {}>>;
16777
+ putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderedItemModel, any, {}>>;
16778
16778
  /**
16779
16779
  * Update An Order (Beta)
16780
16780
  * @summary Update An Order (Beta)
package/dist/api.js CHANGED
@@ -10910,34 +10910,27 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10910
10910
  });
10911
10911
  },
10912
10912
  /**
10913
- * Update Batch Item (Admin)
10914
- * @summary Update Batch Item (Admin)
10913
+ * Update An Order (Admin)
10914
+ * @summary Update An Order (Admin)
10915
10915
  * @param {number} id Order ID
10916
- * @param {number} batchId Batch ID
10917
- * @param {number} itemId Ordered Item ID
10918
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
10916
+ * @param {boolean} [readonly] Readonly Order
10917
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
10919
10918
  * @param {*} [options] Override http request option.
10920
10919
  * @throws {RequiredError}
10921
10920
  */
10922
- putDeleteBatch: function (id_1, batchId_1, itemId_1, orderedItemModel_1) {
10921
+ putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
10923
10922
  var args_1 = [];
10924
- for (var _i = 4; _i < arguments.length; _i++) {
10925
- args_1[_i - 4] = arguments[_i];
10923
+ for (var _i = 3; _i < arguments.length; _i++) {
10924
+ args_1[_i - 3] = arguments[_i];
10926
10925
  }
10927
- return __awaiter(_this, __spreadArray([id_1, batchId_1, itemId_1, orderedItemModel_1], args_1, true), void 0, function (id, batchId, itemId, orderedItemModel, options) {
10926
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
10928
10927
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10929
10928
  if (options === void 0) { options = {}; }
10930
10929
  return __generator(this, function (_a) {
10931
10930
  // verify required parameter 'id' is not null or undefined
10932
- (0, common_1.assertParamExists)('putDeleteBatch', 'id', id);
10933
- // verify required parameter 'batchId' is not null or undefined
10934
- (0, common_1.assertParamExists)('putDeleteBatch', 'batchId', batchId);
10935
- // verify required parameter 'itemId' is not null or undefined
10936
- (0, common_1.assertParamExists)('putDeleteBatch', 'itemId', itemId);
10937
- localVarPath = "/admin/orders/{id}/batches/{batch_id}"
10938
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
10939
- .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
10940
- .replace("{".concat("item_id", "}"), encodeURIComponent(String(itemId)));
10931
+ (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
10932
+ localVarPath = "/admin/orders/{id}"
10933
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10941
10934
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10942
10935
  if (configuration) {
10943
10936
  baseOptions = configuration.baseOptions;
@@ -10945,11 +10938,14 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10945
10938
  localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10946
10939
  localVarHeaderParameter = {};
10947
10940
  localVarQueryParameter = {};
10941
+ if (readonly !== undefined) {
10942
+ localVarQueryParameter['readonly'] = readonly;
10943
+ }
10948
10944
  localVarHeaderParameter['Content-Type'] = 'application/json';
10949
10945
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10950
10946
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10951
10947
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10952
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(orderedItemModel, localVarRequestOptions, configuration);
10948
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
10953
10949
  return [2 /*return*/, {
10954
10950
  url: (0, common_1.toPathString)(localVarUrlObj),
10955
10951
  options: localVarRequestOptions,
@@ -10958,27 +10954,34 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10958
10954
  });
10959
10955
  },
10960
10956
  /**
10961
- * Update An Order (Admin)
10962
- * @summary Update An Order (Admin)
10957
+ * Update Batch Item (Admin)
10958
+ * @summary Update Batch Item (Admin)
10963
10959
  * @param {number} id Order ID
10964
- * @param {boolean} [readonly] Readonly Order
10965
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
10960
+ * @param {number} batchId Batch ID
10961
+ * @param {number} itemId Ordered Item ID
10962
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
10966
10963
  * @param {*} [options] Override http request option.
10967
10964
  * @throws {RequiredError}
10968
10965
  */
10969
- putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
10966
+ putUpdateBatchItem: function (id_1, batchId_1, itemId_1, orderedItemModel_1) {
10970
10967
  var args_1 = [];
10971
- for (var _i = 3; _i < arguments.length; _i++) {
10972
- args_1[_i - 3] = arguments[_i];
10968
+ for (var _i = 4; _i < arguments.length; _i++) {
10969
+ args_1[_i - 4] = arguments[_i];
10973
10970
  }
10974
- return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
10971
+ return __awaiter(_this, __spreadArray([id_1, batchId_1, itemId_1, orderedItemModel_1], args_1, true), void 0, function (id, batchId, itemId, orderedItemModel, options) {
10975
10972
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10976
10973
  if (options === void 0) { options = {}; }
10977
10974
  return __generator(this, function (_a) {
10978
10975
  // verify required parameter 'id' is not null or undefined
10979
- (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
10980
- localVarPath = "/admin/orders/{id}"
10981
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10976
+ (0, common_1.assertParamExists)('putUpdateBatchItem', 'id', id);
10977
+ // verify required parameter 'batchId' is not null or undefined
10978
+ (0, common_1.assertParamExists)('putUpdateBatchItem', 'batchId', batchId);
10979
+ // verify required parameter 'itemId' is not null or undefined
10980
+ (0, common_1.assertParamExists)('putUpdateBatchItem', 'itemId', itemId);
10981
+ localVarPath = "/admin/orders/{id}/batches/{batch_id}/items/{item_id}"
10982
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
10983
+ .replace("{".concat("batch_id", "}"), encodeURIComponent(String(batchId)))
10984
+ .replace("{".concat("item_id", "}"), encodeURIComponent(String(itemId)));
10982
10985
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10983
10986
  if (configuration) {
10984
10987
  baseOptions = configuration.baseOptions;
@@ -10986,14 +10989,11 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10986
10989
  localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10987
10990
  localVarHeaderParameter = {};
10988
10991
  localVarQueryParameter = {};
10989
- if (readonly !== undefined) {
10990
- localVarQueryParameter['readonly'] = readonly;
10991
- }
10992
10992
  localVarHeaderParameter['Content-Type'] = 'application/json';
10993
10993
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10994
10994
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10995
10995
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10996
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
10996
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(orderedItemModel, localVarRequestOptions, configuration);
10997
10997
  return [2 /*return*/, {
10998
10998
  url: (0, common_1.toPathString)(localVarUrlObj),
10999
10999
  options: localVarRequestOptions,
@@ -11703,51 +11703,51 @@ var OrdersApiFp = function (configuration) {
11703
11703
  });
11704
11704
  },
11705
11705
  /**
11706
- * Update Batch Item (Admin)
11707
- * @summary Update Batch Item (Admin)
11706
+ * Update An Order (Admin)
11707
+ * @summary Update An Order (Admin)
11708
11708
  * @param {number} id Order ID
11709
- * @param {number} batchId Batch ID
11710
- * @param {number} itemId Ordered Item ID
11711
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
11709
+ * @param {boolean} [readonly] Readonly Order
11710
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
11712
11711
  * @param {*} [options] Override http request option.
11713
11712
  * @throws {RequiredError}
11714
11713
  */
11715
- putDeleteBatch: function (id, batchId, itemId, orderedItemModel, options) {
11714
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
11716
11715
  return __awaiter(this, void 0, void 0, function () {
11717
11716
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11718
11717
  var _a, _b, _c;
11719
11718
  return __generator(this, function (_d) {
11720
11719
  switch (_d.label) {
11721
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putDeleteBatch(id, batchId, itemId, orderedItemModel, options)];
11720
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
11722
11721
  case 1:
11723
11722
  localVarAxiosArgs = _d.sent();
11724
11723
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11725
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putDeleteBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11724
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11726
11725
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11727
11726
  }
11728
11727
  });
11729
11728
  });
11730
11729
  },
11731
11730
  /**
11732
- * Update An Order (Admin)
11733
- * @summary Update An Order (Admin)
11731
+ * Update Batch Item (Admin)
11732
+ * @summary Update Batch Item (Admin)
11734
11733
  * @param {number} id Order ID
11735
- * @param {boolean} [readonly] Readonly Order
11736
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
11734
+ * @param {number} batchId Batch ID
11735
+ * @param {number} itemId Ordered Item ID
11736
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
11737
11737
  * @param {*} [options] Override http request option.
11738
11738
  * @throws {RequiredError}
11739
11739
  */
11740
- putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
11740
+ putUpdateBatchItem: function (id, batchId, itemId, orderedItemModel, options) {
11741
11741
  return __awaiter(this, void 0, void 0, function () {
11742
11742
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11743
11743
  var _a, _b, _c;
11744
11744
  return __generator(this, function (_d) {
11745
11745
  switch (_d.label) {
11746
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
11746
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options)];
11747
11747
  case 1:
11748
11748
  localVarAxiosArgs = _d.sent();
11749
11749
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11750
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11750
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateBatchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11751
11751
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11752
11752
  }
11753
11753
  });
@@ -12095,19 +12095,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
12095
12095
  putAllocateItems: function (id, supplierId, putAllocateItemsRequest, options) {
12096
12096
  return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then(function (request) { return request(axios, basePath); });
12097
12097
  },
12098
- /**
12099
- * Update Batch Item (Admin)
12100
- * @summary Update Batch Item (Admin)
12101
- * @param {number} id Order ID
12102
- * @param {number} batchId Batch ID
12103
- * @param {number} itemId Ordered Item ID
12104
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
12105
- * @param {*} [options] Override http request option.
12106
- * @throws {RequiredError}
12107
- */
12108
- putDeleteBatch: function (id, batchId, itemId, orderedItemModel, options) {
12109
- return localVarFp.putDeleteBatch(id, batchId, itemId, orderedItemModel, options).then(function (request) { return request(axios, basePath); });
12110
- },
12111
12098
  /**
12112
12099
  * Update An Order (Admin)
12113
12100
  * @summary Update An Order (Admin)
@@ -12120,6 +12107,19 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
12120
12107
  putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
12121
12108
  return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
12122
12109
  },
12110
+ /**
12111
+ * Update Batch Item (Admin)
12112
+ * @summary Update Batch Item (Admin)
12113
+ * @param {number} id Order ID
12114
+ * @param {number} batchId Batch ID
12115
+ * @param {number} itemId Ordered Item ID
12116
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
12117
+ * @param {*} [options] Override http request option.
12118
+ * @throws {RequiredError}
12119
+ */
12120
+ putUpdateBatchItem: function (id, batchId, itemId, orderedItemModel, options) {
12121
+ return localVarFp.putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options).then(function (request) { return request(axios, basePath); });
12122
+ },
12123
12123
  /**
12124
12124
  * Update An Order (Beta)
12125
12125
  * @summary Update An Order (Beta)
@@ -12474,33 +12474,33 @@ var OrdersApi = /** @class */ (function (_super) {
12474
12474
  return (0, exports.OrdersApiFp)(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
12475
12475
  };
12476
12476
  /**
12477
- * Update Batch Item (Admin)
12478
- * @summary Update Batch Item (Admin)
12477
+ * Update An Order (Admin)
12478
+ * @summary Update An Order (Admin)
12479
12479
  * @param {number} id Order ID
12480
- * @param {number} batchId Batch ID
12481
- * @param {number} itemId Ordered Item ID
12482
- * @param {OrderedItemModel} [orderedItemModel] Batch Item
12480
+ * @param {boolean} [readonly] Readonly Order
12481
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
12483
12482
  * @param {*} [options] Override http request option.
12484
12483
  * @throws {RequiredError}
12485
12484
  * @memberof OrdersApi
12486
12485
  */
12487
- OrdersApi.prototype.putDeleteBatch = function (id, batchId, itemId, orderedItemModel, options) {
12486
+ OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
12488
12487
  var _this = this;
12489
- return (0, exports.OrdersApiFp)(this.configuration).putDeleteBatch(id, batchId, itemId, orderedItemModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
12488
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12490
12489
  };
12491
12490
  /**
12492
- * Update An Order (Admin)
12493
- * @summary Update An Order (Admin)
12491
+ * Update Batch Item (Admin)
12492
+ * @summary Update Batch Item (Admin)
12494
12493
  * @param {number} id Order ID
12495
- * @param {boolean} [readonly] Readonly Order
12496
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
12494
+ * @param {number} batchId Batch ID
12495
+ * @param {number} itemId Ordered Item ID
12496
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
12497
12497
  * @param {*} [options] Override http request option.
12498
12498
  * @throws {RequiredError}
12499
12499
  * @memberof OrdersApi
12500
12500
  */
12501
- OrdersApi.prototype.putUpdateAdminOrder = function (id, readonly, adminOrderRequestDTO, options) {
12501
+ OrdersApi.prototype.putUpdateBatchItem = function (id, batchId, itemId, orderedItemModel, options) {
12502
12502
  var _this = this;
12503
- return (0, exports.OrdersApiFp)(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12503
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
12504
12504
  };
12505
12505
  /**
12506
12506
  * Update An Order (Beta)
package/docs/OrdersApi.md CHANGED
@@ -27,8 +27,8 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
27
27
  |[**postSendSupplierEmail**](#postsendsupplieremail) | **POST** /admin/orders/{id}/batches/{batch_id}/email/send | Send Supplier Email|
28
28
  |[**postSplitOrder**](#postsplitorder) | **POST** /admin/orders/{id}/split | Split Order|
29
29
  |[**putAllocateItems**](#putallocateitems) | **PUT** /admin/orders/{id}/items/allocate | Allocate Items To Supplier|
30
- |[**putDeleteBatch**](#putdeletebatch) | **PUT** /admin/orders/{id}/batches/{batch_id} | Update Batch Item (Admin)|
31
30
  |[**putUpdateAdminOrder**](#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)|
31
+ |[**putUpdateBatchItem**](#putupdatebatchitem) | **PUT** /admin/orders/{id}/batches/{batch_id}/items/{item_id} | Update Batch Item (Admin)|
32
32
  |[**putUpdateOrder**](#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)|
33
33
  |[**putUpdatePaymentStatus**](#putupdatepaymentstatus) | **PUT** /admin/orders/{id}/paid | Change Payment Status (Admin)|
34
34
  |[**putUpdateShipment**](#putupdateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Update Shipment (Admin)|
@@ -1367,10 +1367,10 @@ No authorization required
1367
1367
 
1368
1368
  [[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)
1369
1369
 
1370
- # **putDeleteBatch**
1371
- > OrderedItemModel putDeleteBatch()
1370
+ # **putUpdateAdminOrder**
1371
+ > Array<OrderSummaryDTO> putUpdateAdminOrder()
1372
1372
 
1373
- Update Batch Item (Admin)
1373
+ Update An Order (Admin)
1374
1374
 
1375
1375
  ### Example
1376
1376
 
@@ -1378,22 +1378,20 @@ Update Batch Item (Admin)
1378
1378
  import {
1379
1379
  OrdersApi,
1380
1380
  Configuration,
1381
- OrderedItemModel
1381
+ AdminOrderRequestDTO
1382
1382
  } from 'yellowgrid-api-ts';
1383
1383
 
1384
1384
  const configuration = new Configuration();
1385
1385
  const apiInstance = new OrdersApi(configuration);
1386
1386
 
1387
1387
  let id: number; //Order ID (default to undefined)
1388
- let batchId: number; //Batch ID (default to undefined)
1389
- let itemId: number; //Ordered Item ID (default to undefined)
1390
- let orderedItemModel: OrderedItemModel; //Batch Item (optional)
1388
+ let readonly: boolean; //Readonly Order (optional) (default to undefined)
1389
+ let adminOrderRequestDTO: AdminOrderRequestDTO; //Order Request (optional)
1391
1390
 
1392
- const { status, data } = await apiInstance.putDeleteBatch(
1391
+ const { status, data } = await apiInstance.putUpdateAdminOrder(
1393
1392
  id,
1394
- batchId,
1395
- itemId,
1396
- orderedItemModel
1393
+ readonly,
1394
+ adminOrderRequestDTO
1397
1395
  );
1398
1396
  ```
1399
1397
 
@@ -1401,15 +1399,14 @@ const { status, data } = await apiInstance.putDeleteBatch(
1401
1399
 
1402
1400
  |Name | Type | Description | Notes|
1403
1401
  |------------- | ------------- | ------------- | -------------|
1404
- | **orderedItemModel** | **OrderedItemModel**| Batch Item | |
1402
+ | **adminOrderRequestDTO** | **AdminOrderRequestDTO**| Order Request | |
1405
1403
  | **id** | [**number**] | Order ID | defaults to undefined|
1406
- | **batchId** | [**number**] | Batch ID | defaults to undefined|
1407
- | **itemId** | [**number**] | Ordered Item ID | defaults to undefined|
1404
+ | **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
1408
1405
 
1409
1406
 
1410
1407
  ### Return type
1411
1408
 
1412
- **OrderedItemModel**
1409
+ **Array<OrderSummaryDTO>**
1413
1410
 
1414
1411
  ### Authorization
1415
1412
 
@@ -1424,17 +1421,17 @@ No authorization required
1424
1421
  ### HTTP response details
1425
1422
  | Status code | Description | Response headers |
1426
1423
  |-------------|-------------|------------------|
1427
- |**200** | Ordered Item | - |
1424
+ |**200** | Order Summaries | - |
1428
1425
  |**400** | Bad Request | - |
1429
1426
  |**401** | Unauthorised | - |
1430
1427
  |**403** | Access Denied | - |
1431
1428
 
1432
1429
  [[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)
1433
1430
 
1434
- # **putUpdateAdminOrder**
1435
- > Array<OrderSummaryDTO> putUpdateAdminOrder()
1431
+ # **putUpdateBatchItem**
1432
+ > OrderedItemModel putUpdateBatchItem()
1436
1433
 
1437
- Update An Order (Admin)
1434
+ Update Batch Item (Admin)
1438
1435
 
1439
1436
  ### Example
1440
1437
 
@@ -1442,20 +1439,22 @@ Update An Order (Admin)
1442
1439
  import {
1443
1440
  OrdersApi,
1444
1441
  Configuration,
1445
- AdminOrderRequestDTO
1442
+ OrderedItemModel
1446
1443
  } from 'yellowgrid-api-ts';
1447
1444
 
1448
1445
  const configuration = new Configuration();
1449
1446
  const apiInstance = new OrdersApi(configuration);
1450
1447
 
1451
1448
  let id: number; //Order ID (default to undefined)
1452
- let readonly: boolean; //Readonly Order (optional) (default to undefined)
1453
- let adminOrderRequestDTO: AdminOrderRequestDTO; //Order Request (optional)
1449
+ let batchId: number; //Batch ID (default to undefined)
1450
+ let itemId: number; //Ordered Item ID (default to undefined)
1451
+ let orderedItemModel: OrderedItemModel; //Batch Item (optional)
1454
1452
 
1455
- const { status, data } = await apiInstance.putUpdateAdminOrder(
1453
+ const { status, data } = await apiInstance.putUpdateBatchItem(
1456
1454
  id,
1457
- readonly,
1458
- adminOrderRequestDTO
1455
+ batchId,
1456
+ itemId,
1457
+ orderedItemModel
1459
1458
  );
1460
1459
  ```
1461
1460
 
@@ -1463,14 +1462,15 @@ const { status, data } = await apiInstance.putUpdateAdminOrder(
1463
1462
 
1464
1463
  |Name | Type | Description | Notes|
1465
1464
  |------------- | ------------- | ------------- | -------------|
1466
- | **adminOrderRequestDTO** | **AdminOrderRequestDTO**| Order Request | |
1465
+ | **orderedItemModel** | **OrderedItemModel**| Batch Item | |
1467
1466
  | **id** | [**number**] | Order ID | defaults to undefined|
1468
- | **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
1467
+ | **batchId** | [**number**] | Batch ID | defaults to undefined|
1468
+ | **itemId** | [**number**] | Ordered Item ID | defaults to undefined|
1469
1469
 
1470
1470
 
1471
1471
  ### Return type
1472
1472
 
1473
- **Array<OrderSummaryDTO>**
1473
+ **OrderedItemModel**
1474
1474
 
1475
1475
  ### Authorization
1476
1476
 
@@ -1485,7 +1485,7 @@ No authorization required
1485
1485
  ### HTTP response details
1486
1486
  | Status code | Description | Response headers |
1487
1487
  |-------------|-------------|------------------|
1488
- |**200** | Order Summaries | - |
1488
+ |**200** | Ordered Item | - |
1489
1489
  |**400** | Bad Request | - |
1490
1490
  |**401** | Unauthorised | - |
1491
1491
  |**403** | Access Denied | - |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.97-dev.0",
3
+ "version": "3.2.98-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {