yellowgrid-api-ts 3.2.91-dev.0 → 3.2.92-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
@@ -162,7 +162,6 @@ Class | Method | HTTP request | Description
162
162
  *OrdersApi* | [**getGetOrderPdf**](docs/OrdersApi.md#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF
163
163
  *OrdersApi* | [**getGetOrderSummary**](docs/OrdersApi.md#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)
164
164
  *OrdersApi* | [**getGetOrders**](docs/OrdersApi.md#getgetorders) | **GET** /orders | Get Orders (Beta)
165
- *OrdersApi* | [**getUpdatePaymentStatus**](docs/OrdersApi.md#getupdatepaymentstatus) | **GET** /admin/orders/{id}/paid | Change Payment Status (Admin)
166
165
  *OrdersApi* | [**postAddOrderNote**](docs/OrdersApi.md#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note
167
166
  *OrdersApi* | [**postCreateAdminOrder**](docs/OrdersApi.md#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)
168
167
  *OrdersApi* | [**postCreateConsignment**](docs/OrdersApi.md#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment
@@ -177,6 +176,7 @@ Class | Method | HTTP request | Description
177
176
  *OrdersApi* | [**putAllocateItems**](docs/OrdersApi.md#putallocateitems) | **PUT** /admin/orders/{id}/items/allocate | Allocate Items To Supplier
178
177
  *OrdersApi* | [**putUpdateAdminOrder**](docs/OrdersApi.md#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)
179
178
  *OrdersApi* | [**putUpdateOrder**](docs/OrdersApi.md#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)
179
+ *OrdersApi* | [**putUpdatePaymentStatus**](docs/OrdersApi.md#putupdatepaymentstatus) | **PUT** /admin/orders/{id}/paid | Change Payment Status (Admin)
180
180
  *OrdersApi* | [**putUpdateShipment**](docs/OrdersApi.md#putupdateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Update Shipment (Admin)
181
181
  *PricingApi* | [**getGetPriceList**](docs/PricingApi.md#getgetpricelist) | **GET** /finance/pricing/lists | Get Price List
182
182
  *PricingApi* | [**postSendPriceList**](docs/PricingApi.md#postsendpricelist) | **POST** /finance/pricing/lists/send | Send Price List
package/api.ts CHANGED
@@ -20362,47 +20362,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20362
20362
 
20363
20363
 
20364
20364
 
20365
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20366
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20367
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20368
-
20369
- return {
20370
- url: toPathString(localVarUrlObj),
20371
- options: localVarRequestOptions,
20372
- };
20373
- },
20374
- /**
20375
- * Change Payment Status (Admin)
20376
- * @summary Change Payment Status (Admin)
20377
- * @param {number} id Order ID
20378
- * @param {boolean} id2 Paid
20379
- * @param {*} [options] Override http request option.
20380
- * @throws {RequiredError}
20381
- */
20382
- getUpdatePaymentStatus: async (id: number, id2: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20383
- // verify required parameter 'id' is not null or undefined
20384
- assertParamExists('getUpdatePaymentStatus', 'id', id)
20385
- // verify required parameter 'id2' is not null or undefined
20386
- assertParamExists('getUpdatePaymentStatus', 'id2', id2)
20387
- const localVarPath = `/admin/orders/{id}/paid`
20388
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20389
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20390
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20391
- let baseOptions;
20392
- if (configuration) {
20393
- baseOptions = configuration.baseOptions;
20394
- }
20395
-
20396
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20397
- const localVarHeaderParameter = {} as any;
20398
- const localVarQueryParameter = {} as any;
20399
-
20400
- if (id2 !== undefined) {
20401
- localVarQueryParameter['id'] = id2;
20402
- }
20403
-
20404
-
20405
-
20406
20365
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20407
20366
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20408
20367
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20992,6 +20951,47 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20992
20951
  options: localVarRequestOptions,
20993
20952
  };
20994
20953
  },
20954
+ /**
20955
+ * Change Payment Status (Admin)
20956
+ * @summary Change Payment Status (Admin)
20957
+ * @param {number} id Order ID
20958
+ * @param {boolean} id2 Paid
20959
+ * @param {*} [options] Override http request option.
20960
+ * @throws {RequiredError}
20961
+ */
20962
+ putUpdatePaymentStatus: async (id: number, id2: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20963
+ // verify required parameter 'id' is not null or undefined
20964
+ assertParamExists('putUpdatePaymentStatus', 'id', id)
20965
+ // verify required parameter 'id2' is not null or undefined
20966
+ assertParamExists('putUpdatePaymentStatus', 'id2', id2)
20967
+ const localVarPath = `/admin/orders/{id}/paid`
20968
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20969
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20970
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20971
+ let baseOptions;
20972
+ if (configuration) {
20973
+ baseOptions = configuration.baseOptions;
20974
+ }
20975
+
20976
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
20977
+ const localVarHeaderParameter = {} as any;
20978
+ const localVarQueryParameter = {} as any;
20979
+
20980
+ if (id2 !== undefined) {
20981
+ localVarQueryParameter['id'] = id2;
20982
+ }
20983
+
20984
+
20985
+
20986
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20987
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20988
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20989
+
20990
+ return {
20991
+ url: toPathString(localVarUrlObj),
20992
+ options: localVarRequestOptions,
20993
+ };
20994
+ },
20995
20995
  /**
20996
20996
  * Update Shipment (Admin)
20997
20997
  * @summary Update Shipment (Admin)
@@ -21187,20 +21187,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
21187
21187
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
21188
21188
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21189
21189
  },
21190
- /**
21191
- * Change Payment Status (Admin)
21192
- * @summary Change Payment Status (Admin)
21193
- * @param {number} id Order ID
21194
- * @param {boolean} id2 Paid
21195
- * @param {*} [options] Override http request option.
21196
- * @throws {RequiredError}
21197
- */
21198
- async getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
21199
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUpdatePaymentStatus(id, id2, options);
21200
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21201
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getUpdatePaymentStatus']?.[localVarOperationServerIndex]?.url;
21202
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21203
- },
21204
21190
  /**
21205
21191
  * Add Order Note
21206
21192
  * @summary Add Order Note
@@ -21405,6 +21391,20 @@ export const OrdersApiFp = function(configuration?: Configuration) {
21405
21391
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
21406
21392
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21407
21393
  },
21394
+ /**
21395
+ * Change Payment Status (Admin)
21396
+ * @summary Change Payment Status (Admin)
21397
+ * @param {number} id Order ID
21398
+ * @param {boolean} id2 Paid
21399
+ * @param {*} [options] Override http request option.
21400
+ * @throws {RequiredError}
21401
+ */
21402
+ async putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
21403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdatePaymentStatus(id, id2, options);
21404
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21405
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdatePaymentStatus']?.[localVarOperationServerIndex]?.url;
21406
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21407
+ },
21408
21408
  /**
21409
21409
  * Update Shipment (Admin)
21410
21410
  * @summary Update Shipment (Admin)
@@ -21540,17 +21540,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21540
21540
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
21541
21541
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
21542
21542
  },
21543
- /**
21544
- * Change Payment Status (Admin)
21545
- * @summary Change Payment Status (Admin)
21546
- * @param {number} id Order ID
21547
- * @param {boolean} id2 Paid
21548
- * @param {*} [options] Override http request option.
21549
- * @throws {RequiredError}
21550
- */
21551
- getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
21552
- return localVarFp.getUpdatePaymentStatus(id, id2, options).then((request) => request(axios, basePath));
21553
- },
21554
21543
  /**
21555
21544
  * Add Order Note
21556
21545
  * @summary Add Order Note
@@ -21713,6 +21702,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21713
21702
  putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
21714
21703
  return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
21715
21704
  },
21705
+ /**
21706
+ * Change Payment Status (Admin)
21707
+ * @summary Change Payment Status (Admin)
21708
+ * @param {number} id Order ID
21709
+ * @param {boolean} id2 Paid
21710
+ * @param {*} [options] Override http request option.
21711
+ * @throws {RequiredError}
21712
+ */
21713
+ putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
21714
+ return localVarFp.putUpdatePaymentStatus(id, id2, options).then((request) => request(axios, basePath));
21715
+ },
21716
21716
  /**
21717
21717
  * Update Shipment (Admin)
21718
21718
  * @summary Update Shipment (Admin)
@@ -21865,19 +21865,6 @@ export class OrdersApi extends BaseAPI {
21865
21865
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
21866
21866
  }
21867
21867
 
21868
- /**
21869
- * Change Payment Status (Admin)
21870
- * @summary Change Payment Status (Admin)
21871
- * @param {number} id Order ID
21872
- * @param {boolean} id2 Paid
21873
- * @param {*} [options] Override http request option.
21874
- * @throws {RequiredError}
21875
- * @memberof OrdersApi
21876
- */
21877
- public getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig) {
21878
- return OrdersApiFp(this.configuration).getUpdatePaymentStatus(id, id2, options).then((request) => request(this.axios, this.basePath));
21879
- }
21880
-
21881
21868
  /**
21882
21869
  * Add Order Note
21883
21870
  * @summary Add Order Note
@@ -22068,6 +22055,19 @@ export class OrdersApi extends BaseAPI {
22068
22055
  return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
22069
22056
  }
22070
22057
 
22058
+ /**
22059
+ * Change Payment Status (Admin)
22060
+ * @summary Change Payment Status (Admin)
22061
+ * @param {number} id Order ID
22062
+ * @param {boolean} id2 Paid
22063
+ * @param {*} [options] Override http request option.
22064
+ * @throws {RequiredError}
22065
+ * @memberof OrdersApi
22066
+ */
22067
+ public putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig) {
22068
+ return OrdersApiFp(this.configuration).putUpdatePaymentStatus(id, id2, options).then((request) => request(this.axios, this.basePath));
22069
+ }
22070
+
22071
22071
  /**
22072
22072
  * Update Shipment (Admin)
22073
22073
  * @summary Update Shipment (Admin)
package/dist/api.d.ts CHANGED
@@ -15741,15 +15741,6 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15741
15741
  * @throws {RequiredError}
15742
15742
  */
15743
15743
  getGetOrders: (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15744
- /**
15745
- * Change Payment Status (Admin)
15746
- * @summary Change Payment Status (Admin)
15747
- * @param {number} id Order ID
15748
- * @param {boolean} id2 Paid
15749
- * @param {*} [options] Override http request option.
15750
- * @throws {RequiredError}
15751
- */
15752
- getUpdatePaymentStatus: (id: number, id2: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15753
15744
  /**
15754
15745
  * Add Order Note
15755
15746
  * @summary Add Order Note
@@ -15884,6 +15875,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15884
15875
  * @throws {RequiredError}
15885
15876
  */
15886
15877
  putUpdateOrder: (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15878
+ /**
15879
+ * Change Payment Status (Admin)
15880
+ * @summary Change Payment Status (Admin)
15881
+ * @param {number} id Order ID
15882
+ * @param {boolean} id2 Paid
15883
+ * @param {*} [options] Override http request option.
15884
+ * @throws {RequiredError}
15885
+ */
15886
+ putUpdatePaymentStatus: (id: number, id2: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15887
15887
  /**
15888
15888
  * Update Shipment (Admin)
15889
15889
  * @summary Update Shipment (Admin)
@@ -15990,15 +15990,6 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
15990
15990
  * @throws {RequiredError}
15991
15991
  */
15992
15992
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>>;
15993
- /**
15994
- * Change Payment Status (Admin)
15995
- * @summary Change Payment Status (Admin)
15996
- * @param {number} id Order ID
15997
- * @param {boolean} id2 Paid
15998
- * @param {*} [options] Override http request option.
15999
- * @throws {RequiredError}
16000
- */
16001
- getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
16002
15993
  /**
16003
15994
  * Add Order Note
16004
15995
  * @summary Add Order Note
@@ -16133,6 +16124,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
16133
16124
  * @throws {RequiredError}
16134
16125
  */
16135
16126
  putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>>;
16127
+ /**
16128
+ * Change Payment Status (Admin)
16129
+ * @summary Change Payment Status (Admin)
16130
+ * @param {number} id Order ID
16131
+ * @param {boolean} id2 Paid
16132
+ * @param {*} [options] Override http request option.
16133
+ * @throws {RequiredError}
16134
+ */
16135
+ putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
16136
16136
  /**
16137
16137
  * Update Shipment (Admin)
16138
16138
  * @summary Update Shipment (Admin)
@@ -16239,15 +16239,6 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16239
16239
  * @throws {RequiredError}
16240
16240
  */
16241
16241
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel>;
16242
- /**
16243
- * Change Payment Status (Admin)
16244
- * @summary Change Payment Status (Admin)
16245
- * @param {number} id Order ID
16246
- * @param {boolean} id2 Paid
16247
- * @param {*} [options] Override http request option.
16248
- * @throws {RequiredError}
16249
- */
16250
- getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
16251
16242
  /**
16252
16243
  * Add Order Note
16253
16244
  * @summary Add Order Note
@@ -16382,6 +16373,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16382
16373
  * @throws {RequiredError}
16383
16374
  */
16384
16375
  putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>>;
16376
+ /**
16377
+ * Change Payment Status (Admin)
16378
+ * @summary Change Payment Status (Admin)
16379
+ * @param {number} id Order ID
16380
+ * @param {boolean} id2 Paid
16381
+ * @param {*} [options] Override http request option.
16382
+ * @throws {RequiredError}
16383
+ */
16384
+ putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
16385
16385
  /**
16386
16386
  * Update Shipment (Admin)
16387
16387
  * @summary Update Shipment (Admin)
@@ -16500,16 +16500,6 @@ export declare class OrdersApi extends BaseAPI {
16500
16500
  * @memberof OrdersApi
16501
16501
  */
16502
16502
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummariesModel, any, {}>>;
16503
- /**
16504
- * Change Payment Status (Admin)
16505
- * @summary Change Payment Status (Admin)
16506
- * @param {number} id Order ID
16507
- * @param {boolean} id2 Paid
16508
- * @param {*} [options] Override http request option.
16509
- * @throws {RequiredError}
16510
- * @memberof OrdersApi
16511
- */
16512
- getUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
16513
16503
  /**
16514
16504
  * Add Order Note
16515
16505
  * @summary Add Order Note
@@ -16658,6 +16648,16 @@ export declare class OrdersApi extends BaseAPI {
16658
16648
  * @memberof OrdersApi
16659
16649
  */
16660
16650
  putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummaryDTO[], any, {}>>;
16651
+ /**
16652
+ * Change Payment Status (Admin)
16653
+ * @summary Change Payment Status (Admin)
16654
+ * @param {number} id Order ID
16655
+ * @param {boolean} id2 Paid
16656
+ * @param {*} [options] Override http request option.
16657
+ * @throws {RequiredError}
16658
+ * @memberof OrdersApi
16659
+ */
16660
+ putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
16661
16661
  /**
16662
16662
  * Update Shipment (Admin)
16663
16663
  * @summary Update Shipment (Admin)
package/dist/api.js CHANGED
@@ -10278,49 +10278,6 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10278
10278
  });
10279
10279
  });
10280
10280
  },
10281
- /**
10282
- * Change Payment Status (Admin)
10283
- * @summary Change Payment Status (Admin)
10284
- * @param {number} id Order ID
10285
- * @param {boolean} id2 Paid
10286
- * @param {*} [options] Override http request option.
10287
- * @throws {RequiredError}
10288
- */
10289
- getUpdatePaymentStatus: function (id_1, id2_1) {
10290
- var args_1 = [];
10291
- for (var _i = 2; _i < arguments.length; _i++) {
10292
- args_1[_i - 2] = arguments[_i];
10293
- }
10294
- return __awaiter(_this, __spreadArray([id_1, id2_1], args_1, true), void 0, function (id, id2, options) {
10295
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10296
- if (options === void 0) { options = {}; }
10297
- return __generator(this, function (_a) {
10298
- // verify required parameter 'id' is not null or undefined
10299
- (0, common_1.assertParamExists)('getUpdatePaymentStatus', 'id', id);
10300
- // verify required parameter 'id2' is not null or undefined
10301
- (0, common_1.assertParamExists)('getUpdatePaymentStatus', 'id2', id2);
10302
- localVarPath = "/admin/orders/{id}/paid"
10303
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10304
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10305
- if (configuration) {
10306
- baseOptions = configuration.baseOptions;
10307
- }
10308
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10309
- localVarHeaderParameter = {};
10310
- localVarQueryParameter = {};
10311
- if (id2 !== undefined) {
10312
- localVarQueryParameter['id'] = id2;
10313
- }
10314
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10315
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10316
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10317
- return [2 /*return*/, {
10318
- url: (0, common_1.toPathString)(localVarUrlObj),
10319
- options: localVarRequestOptions,
10320
- }];
10321
- });
10322
- });
10323
- },
10324
10281
  /**
10325
10282
  * Add Order Note
10326
10283
  * @summary Add Order Note
@@ -10925,6 +10882,49 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10925
10882
  });
10926
10883
  });
10927
10884
  },
10885
+ /**
10886
+ * Change Payment Status (Admin)
10887
+ * @summary Change Payment Status (Admin)
10888
+ * @param {number} id Order ID
10889
+ * @param {boolean} id2 Paid
10890
+ * @param {*} [options] Override http request option.
10891
+ * @throws {RequiredError}
10892
+ */
10893
+ putUpdatePaymentStatus: function (id_1, id2_1) {
10894
+ var args_1 = [];
10895
+ for (var _i = 2; _i < arguments.length; _i++) {
10896
+ args_1[_i - 2] = arguments[_i];
10897
+ }
10898
+ return __awaiter(_this, __spreadArray([id_1, id2_1], args_1, true), void 0, function (id, id2, options) {
10899
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10900
+ if (options === void 0) { options = {}; }
10901
+ return __generator(this, function (_a) {
10902
+ // verify required parameter 'id' is not null or undefined
10903
+ (0, common_1.assertParamExists)('putUpdatePaymentStatus', 'id', id);
10904
+ // verify required parameter 'id2' is not null or undefined
10905
+ (0, common_1.assertParamExists)('putUpdatePaymentStatus', 'id2', id2);
10906
+ localVarPath = "/admin/orders/{id}/paid"
10907
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10908
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10909
+ if (configuration) {
10910
+ baseOptions = configuration.baseOptions;
10911
+ }
10912
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10913
+ localVarHeaderParameter = {};
10914
+ localVarQueryParameter = {};
10915
+ if (id2 !== undefined) {
10916
+ localVarQueryParameter['id'] = id2;
10917
+ }
10918
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10919
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10920
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10921
+ return [2 /*return*/, {
10922
+ url: (0, common_1.toPathString)(localVarUrlObj),
10923
+ options: localVarRequestOptions,
10924
+ }];
10925
+ });
10926
+ });
10927
+ },
10928
10928
  /**
10929
10929
  * Update Shipment (Admin)
10930
10930
  * @summary Update Shipment (Admin)
@@ -11222,30 +11222,6 @@ var OrdersApiFp = function (configuration) {
11222
11222
  });
11223
11223
  });
11224
11224
  },
11225
- /**
11226
- * Change Payment Status (Admin)
11227
- * @summary Change Payment Status (Admin)
11228
- * @param {number} id Order ID
11229
- * @param {boolean} id2 Paid
11230
- * @param {*} [options] Override http request option.
11231
- * @throws {RequiredError}
11232
- */
11233
- getUpdatePaymentStatus: function (id, id2, options) {
11234
- return __awaiter(this, void 0, void 0, function () {
11235
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11236
- var _a, _b, _c;
11237
- return __generator(this, function (_d) {
11238
- switch (_d.label) {
11239
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUpdatePaymentStatus(id, id2, options)];
11240
- case 1:
11241
- localVarAxiosArgs = _d.sent();
11242
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11243
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getUpdatePaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11244
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11245
- }
11246
- });
11247
- });
11248
- },
11249
11225
  /**
11250
11226
  * Add Order Note
11251
11227
  * @summary Add Order Note
@@ -11590,6 +11566,30 @@ var OrdersApiFp = function (configuration) {
11590
11566
  });
11591
11567
  });
11592
11568
  },
11569
+ /**
11570
+ * Change Payment Status (Admin)
11571
+ * @summary Change Payment Status (Admin)
11572
+ * @param {number} id Order ID
11573
+ * @param {boolean} id2 Paid
11574
+ * @param {*} [options] Override http request option.
11575
+ * @throws {RequiredError}
11576
+ */
11577
+ putUpdatePaymentStatus: function (id, id2, options) {
11578
+ return __awaiter(this, void 0, void 0, function () {
11579
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11580
+ var _a, _b, _c;
11581
+ return __generator(this, function (_d) {
11582
+ switch (_d.label) {
11583
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdatePaymentStatus(id, id2, options)];
11584
+ case 1:
11585
+ localVarAxiosArgs = _d.sent();
11586
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11587
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdatePaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11588
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11589
+ }
11590
+ });
11591
+ });
11592
+ },
11593
11593
  /**
11594
11594
  * Update Shipment (Admin)
11595
11595
  * @summary Update Shipment (Admin)
@@ -11735,17 +11735,6 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
11735
11735
  getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
11736
11736
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(axios, basePath); });
11737
11737
  },
11738
- /**
11739
- * Change Payment Status (Admin)
11740
- * @summary Change Payment Status (Admin)
11741
- * @param {number} id Order ID
11742
- * @param {boolean} id2 Paid
11743
- * @param {*} [options] Override http request option.
11744
- * @throws {RequiredError}
11745
- */
11746
- getUpdatePaymentStatus: function (id, id2, options) {
11747
- return localVarFp.getUpdatePaymentStatus(id, id2, options).then(function (request) { return request(axios, basePath); });
11748
- },
11749
11738
  /**
11750
11739
  * Add Order Note
11751
11740
  * @summary Add Order Note
@@ -11908,6 +11897,17 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
11908
11897
  putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
11909
11898
  return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
11910
11899
  },
11900
+ /**
11901
+ * Change Payment Status (Admin)
11902
+ * @summary Change Payment Status (Admin)
11903
+ * @param {number} id Order ID
11904
+ * @param {boolean} id2 Paid
11905
+ * @param {*} [options] Override http request option.
11906
+ * @throws {RequiredError}
11907
+ */
11908
+ putUpdatePaymentStatus: function (id, id2, options) {
11909
+ return localVarFp.putUpdatePaymentStatus(id, id2, options).then(function (request) { return request(axios, basePath); });
11910
+ },
11911
11911
  /**
11912
11912
  * Update Shipment (Admin)
11913
11913
  * @summary Update Shipment (Admin)
@@ -12064,19 +12064,6 @@ var OrdersApi = /** @class */ (function (_super) {
12064
12064
  var _this = this;
12065
12065
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12066
12066
  };
12067
- /**
12068
- * Change Payment Status (Admin)
12069
- * @summary Change Payment Status (Admin)
12070
- * @param {number} id Order ID
12071
- * @param {boolean} id2 Paid
12072
- * @param {*} [options] Override http request option.
12073
- * @throws {RequiredError}
12074
- * @memberof OrdersApi
12075
- */
12076
- OrdersApi.prototype.getUpdatePaymentStatus = function (id, id2, options) {
12077
- var _this = this;
12078
- return (0, exports.OrdersApiFp)(this.configuration).getUpdatePaymentStatus(id, id2, options).then(function (request) { return request(_this.axios, _this.basePath); });
12079
- };
12080
12067
  /**
12081
12068
  * Add Order Note
12082
12069
  * @summary Add Order Note
@@ -12267,6 +12254,19 @@ var OrdersApi = /** @class */ (function (_super) {
12267
12254
  var _this = this;
12268
12255
  return (0, exports.OrdersApiFp)(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
12269
12256
  };
12257
+ /**
12258
+ * Change Payment Status (Admin)
12259
+ * @summary Change Payment Status (Admin)
12260
+ * @param {number} id Order ID
12261
+ * @param {boolean} id2 Paid
12262
+ * @param {*} [options] Override http request option.
12263
+ * @throws {RequiredError}
12264
+ * @memberof OrdersApi
12265
+ */
12266
+ OrdersApi.prototype.putUpdatePaymentStatus = function (id, id2, options) {
12267
+ var _this = this;
12268
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdatePaymentStatus(id, id2, options).then(function (request) { return request(_this.axios, _this.basePath); });
12269
+ };
12270
12270
  /**
12271
12271
  * Update Shipment (Admin)
12272
12272
  * @summary Update Shipment (Admin)
package/docs/OrdersApi.md CHANGED
@@ -14,7 +14,6 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
14
14
  |[**getGetOrderPdf**](#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF|
15
15
  |[**getGetOrderSummary**](#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)|
16
16
  |[**getGetOrders**](#getgetorders) | **GET** /orders | Get Orders (Beta)|
17
- |[**getUpdatePaymentStatus**](#getupdatepaymentstatus) | **GET** /admin/orders/{id}/paid | Change Payment Status (Admin)|
18
17
  |[**postAddOrderNote**](#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note|
19
18
  |[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
20
19
  |[**postCreateConsignment**](#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment|
@@ -29,6 +28,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
29
28
  |[**putAllocateItems**](#putallocateitems) | **PUT** /admin/orders/{id}/items/allocate | Allocate Items To Supplier|
30
29
  |[**putUpdateAdminOrder**](#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)|
31
30
  |[**putUpdateOrder**](#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)|
31
+ |[**putUpdatePaymentStatus**](#putupdatepaymentstatus) | **PUT** /admin/orders/{id}/paid | Change Payment Status (Admin)|
32
32
  |[**putUpdateShipment**](#putupdateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Update Shipment (Admin)|
33
33
 
34
34
  # **deleteDeleteBatch**
@@ -601,63 +601,6 @@ No authorization required
601
601
 
602
602
  [[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)
603
603
 
604
- # **getUpdatePaymentStatus**
605
- > OrderDetailsDTO getUpdatePaymentStatus()
606
-
607
- Change Payment Status (Admin)
608
-
609
- ### Example
610
-
611
- ```typescript
612
- import {
613
- OrdersApi,
614
- Configuration
615
- } from 'yellowgrid-api-ts';
616
-
617
- const configuration = new Configuration();
618
- const apiInstance = new OrdersApi(configuration);
619
-
620
- let id: number; //Order ID (default to undefined)
621
- let id2: boolean; //Paid (default to undefined)
622
-
623
- const { status, data } = await apiInstance.getUpdatePaymentStatus(
624
- id,
625
- id2
626
- );
627
- ```
628
-
629
- ### Parameters
630
-
631
- |Name | Type | Description | Notes|
632
- |------------- | ------------- | ------------- | -------------|
633
- | **id** | [**number**] | Order ID | defaults to undefined|
634
- | **id2** | [**boolean**] | Paid | defaults to undefined|
635
-
636
-
637
- ### Return type
638
-
639
- **OrderDetailsDTO**
640
-
641
- ### Authorization
642
-
643
- No authorization required
644
-
645
- ### HTTP request headers
646
-
647
- - **Content-Type**: Not defined
648
- - **Accept**: application/json
649
-
650
-
651
- ### HTTP response details
652
- | Status code | Description | Response headers |
653
- |-------------|-------------|------------------|
654
- |**200** | Order Details | - |
655
- |**400** | Bad Request | - |
656
- |**401** | Unauthorised | - |
657
- |**403** | Access Denied | - |
658
-
659
- [[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)
660
-
661
604
  # **postAddOrderNote**
662
605
  > AuditLogEntity postAddOrderNote()
663
606
 
@@ -1490,6 +1433,63 @@ No authorization required
1490
1433
 
1491
1434
  [[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)
1492
1435
 
1436
+ # **putUpdatePaymentStatus**
1437
+ > OrderDetailsDTO putUpdatePaymentStatus()
1438
+
1439
+ Change Payment Status (Admin)
1440
+
1441
+ ### Example
1442
+
1443
+ ```typescript
1444
+ import {
1445
+ OrdersApi,
1446
+ Configuration
1447
+ } from 'yellowgrid-api-ts';
1448
+
1449
+ const configuration = new Configuration();
1450
+ const apiInstance = new OrdersApi(configuration);
1451
+
1452
+ let id: number; //Order ID (default to undefined)
1453
+ let id2: boolean; //Paid (default to undefined)
1454
+
1455
+ const { status, data } = await apiInstance.putUpdatePaymentStatus(
1456
+ id,
1457
+ id2
1458
+ );
1459
+ ```
1460
+
1461
+ ### Parameters
1462
+
1463
+ |Name | Type | Description | Notes|
1464
+ |------------- | ------------- | ------------- | -------------|
1465
+ | **id** | [**number**] | Order ID | defaults to undefined|
1466
+ | **id2** | [**boolean**] | Paid | defaults to undefined|
1467
+
1468
+
1469
+ ### Return type
1470
+
1471
+ **OrderDetailsDTO**
1472
+
1473
+ ### Authorization
1474
+
1475
+ No authorization required
1476
+
1477
+ ### HTTP request headers
1478
+
1479
+ - **Content-Type**: Not defined
1480
+ - **Accept**: application/json
1481
+
1482
+
1483
+ ### HTTP response details
1484
+ | Status code | Description | Response headers |
1485
+ |-------------|-------------|------------------|
1486
+ |**200** | Order Details | - |
1487
+ |**400** | Bad Request | - |
1488
+ |**401** | Unauthorised | - |
1489
+ |**403** | Access Denied | - |
1490
+
1491
+ [[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)
1492
+
1493
1493
  # **putUpdateShipment**
1494
1494
  > ShipmentDTO putUpdateShipment()
1495
1495
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.91-dev.0",
3
+ "version": "3.2.92-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {