yellowgrid-api-ts 3.2.92-dev.0 → 3.2.93-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/api.ts CHANGED
@@ -20955,15 +20955,15 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20955
20955
  * Change Payment Status (Admin)
20956
20956
  * @summary Change Payment Status (Admin)
20957
20957
  * @param {number} id Order ID
20958
- * @param {boolean} id2 Paid
20958
+ * @param {boolean} paid Paid
20959
20959
  * @param {*} [options] Override http request option.
20960
20960
  * @throws {RequiredError}
20961
20961
  */
20962
- putUpdatePaymentStatus: async (id: number, id2: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20962
+ putUpdatePaymentStatus: async (id: number, paid: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20963
20963
  // verify required parameter 'id' is not null or undefined
20964
20964
  assertParamExists('putUpdatePaymentStatus', 'id', id)
20965
- // verify required parameter 'id2' is not null or undefined
20966
- assertParamExists('putUpdatePaymentStatus', 'id2', id2)
20965
+ // verify required parameter 'paid' is not null or undefined
20966
+ assertParamExists('putUpdatePaymentStatus', 'paid', paid)
20967
20967
  const localVarPath = `/admin/orders/{id}/paid`
20968
20968
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20969
20969
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -20977,8 +20977,8 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20977
20977
  const localVarHeaderParameter = {} as any;
20978
20978
  const localVarQueryParameter = {} as any;
20979
20979
 
20980
- if (id2 !== undefined) {
20981
- localVarQueryParameter['id'] = id2;
20980
+ if (paid !== undefined) {
20981
+ localVarQueryParameter['paid'] = paid;
20982
20982
  }
20983
20983
 
20984
20984
 
@@ -21395,12 +21395,12 @@ export const OrdersApiFp = function(configuration?: Configuration) {
21395
21395
  * Change Payment Status (Admin)
21396
21396
  * @summary Change Payment Status (Admin)
21397
21397
  * @param {number} id Order ID
21398
- * @param {boolean} id2 Paid
21398
+ * @param {boolean} paid Paid
21399
21399
  * @param {*} [options] Override http request option.
21400
21400
  * @throws {RequiredError}
21401
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);
21402
+ async putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
21403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdatePaymentStatus(id, paid, options);
21404
21404
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21405
21405
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdatePaymentStatus']?.[localVarOperationServerIndex]?.url;
21406
21406
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -21706,12 +21706,12 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21706
21706
  * Change Payment Status (Admin)
21707
21707
  * @summary Change Payment Status (Admin)
21708
21708
  * @param {number} id Order ID
21709
- * @param {boolean} id2 Paid
21709
+ * @param {boolean} paid Paid
21710
21710
  * @param {*} [options] Override http request option.
21711
21711
  * @throws {RequiredError}
21712
21712
  */
21713
- putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
21714
- return localVarFp.putUpdatePaymentStatus(id, id2, options).then((request) => request(axios, basePath));
21713
+ putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
21714
+ return localVarFp.putUpdatePaymentStatus(id, paid, options).then((request) => request(axios, basePath));
21715
21715
  },
21716
21716
  /**
21717
21717
  * Update Shipment (Admin)
@@ -22059,13 +22059,13 @@ export class OrdersApi extends BaseAPI {
22059
22059
  * Change Payment Status (Admin)
22060
22060
  * @summary Change Payment Status (Admin)
22061
22061
  * @param {number} id Order ID
22062
- * @param {boolean} id2 Paid
22062
+ * @param {boolean} paid Paid
22063
22063
  * @param {*} [options] Override http request option.
22064
22064
  * @throws {RequiredError}
22065
22065
  * @memberof OrdersApi
22066
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));
22067
+ public putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig) {
22068
+ return OrdersApiFp(this.configuration).putUpdatePaymentStatus(id, paid, options).then((request) => request(this.axios, this.basePath));
22069
22069
  }
22070
22070
 
22071
22071
  /**
package/dist/api.d.ts CHANGED
@@ -15879,11 +15879,11 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15879
15879
  * Change Payment Status (Admin)
15880
15880
  * @summary Change Payment Status (Admin)
15881
15881
  * @param {number} id Order ID
15882
- * @param {boolean} id2 Paid
15882
+ * @param {boolean} paid Paid
15883
15883
  * @param {*} [options] Override http request option.
15884
15884
  * @throws {RequiredError}
15885
15885
  */
15886
- putUpdatePaymentStatus: (id: number, id2: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15886
+ putUpdatePaymentStatus: (id: number, paid: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15887
15887
  /**
15888
15888
  * Update Shipment (Admin)
15889
15889
  * @summary Update Shipment (Admin)
@@ -16128,11 +16128,11 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
16128
16128
  * Change Payment Status (Admin)
16129
16129
  * @summary Change Payment Status (Admin)
16130
16130
  * @param {number} id Order ID
16131
- * @param {boolean} id2 Paid
16131
+ * @param {boolean} paid Paid
16132
16132
  * @param {*} [options] Override http request option.
16133
16133
  * @throws {RequiredError}
16134
16134
  */
16135
- putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
16135
+ putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
16136
16136
  /**
16137
16137
  * Update Shipment (Admin)
16138
16138
  * @summary Update Shipment (Admin)
@@ -16377,11 +16377,11 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16377
16377
  * Change Payment Status (Admin)
16378
16378
  * @summary Change Payment Status (Admin)
16379
16379
  * @param {number} id Order ID
16380
- * @param {boolean} id2 Paid
16380
+ * @param {boolean} paid Paid
16381
16381
  * @param {*} [options] Override http request option.
16382
16382
  * @throws {RequiredError}
16383
16383
  */
16384
- putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
16384
+ putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
16385
16385
  /**
16386
16386
  * Update Shipment (Admin)
16387
16387
  * @summary Update Shipment (Admin)
@@ -16652,12 +16652,12 @@ export declare class OrdersApi extends BaseAPI {
16652
16652
  * Change Payment Status (Admin)
16653
16653
  * @summary Change Payment Status (Admin)
16654
16654
  * @param {number} id Order ID
16655
- * @param {boolean} id2 Paid
16655
+ * @param {boolean} paid Paid
16656
16656
  * @param {*} [options] Override http request option.
16657
16657
  * @throws {RequiredError}
16658
16658
  * @memberof OrdersApi
16659
16659
  */
16660
- putUpdatePaymentStatus(id: number, id2: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
16660
+ putUpdatePaymentStatus(id: number, paid: 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
@@ -10886,23 +10886,23 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10886
10886
  * Change Payment Status (Admin)
10887
10887
  * @summary Change Payment Status (Admin)
10888
10888
  * @param {number} id Order ID
10889
- * @param {boolean} id2 Paid
10889
+ * @param {boolean} paid Paid
10890
10890
  * @param {*} [options] Override http request option.
10891
10891
  * @throws {RequiredError}
10892
10892
  */
10893
- putUpdatePaymentStatus: function (id_1, id2_1) {
10893
+ putUpdatePaymentStatus: function (id_1, paid_1) {
10894
10894
  var args_1 = [];
10895
10895
  for (var _i = 2; _i < arguments.length; _i++) {
10896
10896
  args_1[_i - 2] = arguments[_i];
10897
10897
  }
10898
- return __awaiter(_this, __spreadArray([id_1, id2_1], args_1, true), void 0, function (id, id2, options) {
10898
+ return __awaiter(_this, __spreadArray([id_1, paid_1], args_1, true), void 0, function (id, paid, options) {
10899
10899
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10900
10900
  if (options === void 0) { options = {}; }
10901
10901
  return __generator(this, function (_a) {
10902
10902
  // verify required parameter 'id' is not null or undefined
10903
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);
10904
+ // verify required parameter 'paid' is not null or undefined
10905
+ (0, common_1.assertParamExists)('putUpdatePaymentStatus', 'paid', paid);
10906
10906
  localVarPath = "/admin/orders/{id}/paid"
10907
10907
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10908
10908
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -10912,8 +10912,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10912
10912
  localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10913
10913
  localVarHeaderParameter = {};
10914
10914
  localVarQueryParameter = {};
10915
- if (id2 !== undefined) {
10916
- localVarQueryParameter['id'] = id2;
10915
+ if (paid !== undefined) {
10916
+ localVarQueryParameter['paid'] = paid;
10917
10917
  }
10918
10918
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10919
10919
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -11570,17 +11570,17 @@ var OrdersApiFp = function (configuration) {
11570
11570
  * Change Payment Status (Admin)
11571
11571
  * @summary Change Payment Status (Admin)
11572
11572
  * @param {number} id Order ID
11573
- * @param {boolean} id2 Paid
11573
+ * @param {boolean} paid Paid
11574
11574
  * @param {*} [options] Override http request option.
11575
11575
  * @throws {RequiredError}
11576
11576
  */
11577
- putUpdatePaymentStatus: function (id, id2, options) {
11577
+ putUpdatePaymentStatus: function (id, paid, options) {
11578
11578
  return __awaiter(this, void 0, void 0, function () {
11579
11579
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11580
11580
  var _a, _b, _c;
11581
11581
  return __generator(this, function (_d) {
11582
11582
  switch (_d.label) {
11583
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdatePaymentStatus(id, id2, options)];
11583
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdatePaymentStatus(id, paid, options)];
11584
11584
  case 1:
11585
11585
  localVarAxiosArgs = _d.sent();
11586
11586
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -11901,12 +11901,12 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
11901
11901
  * Change Payment Status (Admin)
11902
11902
  * @summary Change Payment Status (Admin)
11903
11903
  * @param {number} id Order ID
11904
- * @param {boolean} id2 Paid
11904
+ * @param {boolean} paid Paid
11905
11905
  * @param {*} [options] Override http request option.
11906
11906
  * @throws {RequiredError}
11907
11907
  */
11908
- putUpdatePaymentStatus: function (id, id2, options) {
11909
- return localVarFp.putUpdatePaymentStatus(id, id2, options).then(function (request) { return request(axios, basePath); });
11908
+ putUpdatePaymentStatus: function (id, paid, options) {
11909
+ return localVarFp.putUpdatePaymentStatus(id, paid, options).then(function (request) { return request(axios, basePath); });
11910
11910
  },
11911
11911
  /**
11912
11912
  * Update Shipment (Admin)
@@ -12258,14 +12258,14 @@ var OrdersApi = /** @class */ (function (_super) {
12258
12258
  * Change Payment Status (Admin)
12259
12259
  * @summary Change Payment Status (Admin)
12260
12260
  * @param {number} id Order ID
12261
- * @param {boolean} id2 Paid
12261
+ * @param {boolean} paid Paid
12262
12262
  * @param {*} [options] Override http request option.
12263
12263
  * @throws {RequiredError}
12264
12264
  * @memberof OrdersApi
12265
12265
  */
12266
- OrdersApi.prototype.putUpdatePaymentStatus = function (id, id2, options) {
12266
+ OrdersApi.prototype.putUpdatePaymentStatus = function (id, paid, options) {
12267
12267
  var _this = this;
12268
- return (0, exports.OrdersApiFp)(this.configuration).putUpdatePaymentStatus(id, id2, options).then(function (request) { return request(_this.axios, _this.basePath); });
12268
+ return (0, exports.OrdersApiFp)(this.configuration).putUpdatePaymentStatus(id, paid, options).then(function (request) { return request(_this.axios, _this.basePath); });
12269
12269
  };
12270
12270
  /**
12271
12271
  * Update Shipment (Admin)
package/docs/OrdersApi.md CHANGED
@@ -1450,11 +1450,11 @@ const configuration = new Configuration();
1450
1450
  const apiInstance = new OrdersApi(configuration);
1451
1451
 
1452
1452
  let id: number; //Order ID (default to undefined)
1453
- let id2: boolean; //Paid (default to undefined)
1453
+ let paid: boolean; //Paid (default to undefined)
1454
1454
 
1455
1455
  const { status, data } = await apiInstance.putUpdatePaymentStatus(
1456
1456
  id,
1457
- id2
1457
+ paid
1458
1458
  );
1459
1459
  ```
1460
1460
 
@@ -1463,7 +1463,7 @@ const { status, data } = await apiInstance.putUpdatePaymentStatus(
1463
1463
  |Name | Type | Description | Notes|
1464
1464
  |------------- | ------------- | ------------- | -------------|
1465
1465
  | **id** | [**number**] | Order ID | defaults to undefined|
1466
- | **id2** | [**boolean**] | Paid | defaults to undefined|
1466
+ | **paid** | [**boolean**] | Paid | defaults to undefined|
1467
1467
 
1468
1468
 
1469
1469
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.92-dev.0",
3
+ "version": "3.2.93-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {