yellowgrid-api-ts 3.2.296 → 3.2.297

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.
@@ -182,6 +182,7 @@ docs/OutboundCli.md
182
182
  docs/PartnerDTO.md
183
183
  docs/PasswordSenderDTO.md
184
184
  docs/PasswordSenderEntity.md
185
+ docs/PatchApproveRmaRequest.md
185
186
  docs/PatchUpdateAccountCnameRequest.md
186
187
  docs/PatchUpdateAccountCompanyNumberRequest.md
187
188
  docs/PatchUpdateAccountContactPasswordRequest.md
package/README.md CHANGED
@@ -613,6 +613,7 @@ Class | Method | HTTP request | Description
613
613
  - [PartnerDTO](docs/PartnerDTO.md)
614
614
  - [PasswordSenderDTO](docs/PasswordSenderDTO.md)
615
615
  - [PasswordSenderEntity](docs/PasswordSenderEntity.md)
616
+ - [PatchApproveRmaRequest](docs/PatchApproveRmaRequest.md)
616
617
  - [PatchUpdateAccountCnameRequest](docs/PatchUpdateAccountCnameRequest.md)
617
618
  - [PatchUpdateAccountCompanyNumberRequest](docs/PatchUpdateAccountCompanyNumberRequest.md)
618
619
  - [PatchUpdateAccountContactPasswordRequest](docs/PatchUpdateAccountContactPasswordRequest.md)
package/api.ts CHANGED
@@ -5504,6 +5504,12 @@ export interface PasswordSenderEntity {
5504
5504
  */
5505
5505
  'description': string;
5506
5506
  }
5507
+ export interface PatchApproveRmaRequest {
5508
+ /**
5509
+ * Send email to customer
5510
+ */
5511
+ 'sendEmail'?: boolean;
5512
+ }
5507
5513
  export interface PatchUpdateAccountCnameRequest {
5508
5514
  /**
5509
5515
  * CNAME
@@ -33658,10 +33664,11 @@ export const RMAApiAxiosParamCreator = function (configuration?: Configuration)
33658
33664
  /**
33659
33665
  * Approve an RMA
33660
33666
  * @param {number} id
33667
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
33661
33668
  * @param {*} [options] Override http request option.
33662
33669
  * @throws {RequiredError}
33663
33670
  */
33664
- patchApproveRma: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33671
+ patchApproveRma: async (id: number, patchApproveRmaRequest?: PatchApproveRmaRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33665
33672
  // verify required parameter 'id' is not null or undefined
33666
33673
  assertParamExists('patchApproveRma', 'id', id)
33667
33674
  const localVarPath = `/admin/rma/{id}/approve`
@@ -33677,10 +33684,12 @@ export const RMAApiAxiosParamCreator = function (configuration?: Configuration)
33677
33684
  const localVarHeaderParameter = {} as any;
33678
33685
  const localVarQueryParameter = {} as any;
33679
33686
 
33687
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33680
33688
 
33681
33689
  setSearchParams(localVarUrlObj, localVarQueryParameter);
33682
33690
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33683
33691
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33692
+ localVarRequestOptions.data = serializeDataIfNeeded(patchApproveRmaRequest, localVarRequestOptions, configuration)
33684
33693
 
33685
33694
  return {
33686
33695
  url: toPathString(localVarUrlObj),
@@ -34504,11 +34513,12 @@ export const RMAApiFp = function(configuration?: Configuration) {
34504
34513
  /**
34505
34514
  * Approve an RMA
34506
34515
  * @param {number} id
34516
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
34507
34517
  * @param {*} [options] Override http request option.
34508
34518
  * @throws {RequiredError}
34509
34519
  */
34510
- async patchApproveRma(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34511
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchApproveRma(id, options);
34520
+ async patchApproveRma(id: number, patchApproveRmaRequest?: PatchApproveRmaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34521
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchApproveRma(id, patchApproveRmaRequest, options);
34512
34522
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34513
34523
  const localVarOperationServerBasePath = operationServerMap['RMAApi.patchApproveRma']?.[localVarOperationServerIndex]?.url;
34514
34524
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -34869,11 +34879,12 @@ export const RMAApiFactory = function (configuration?: Configuration, basePath?:
34869
34879
  /**
34870
34880
  * Approve an RMA
34871
34881
  * @param {number} id
34882
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
34872
34883
  * @param {*} [options] Override http request option.
34873
34884
  * @throws {RequiredError}
34874
34885
  */
34875
- patchApproveRma(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
34876
- return localVarFp.patchApproveRma(id, options).then((request) => request(axios, basePath));
34886
+ patchApproveRma(id: number, patchApproveRmaRequest?: PatchApproveRmaRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
34887
+ return localVarFp.patchApproveRma(id, patchApproveRmaRequest, options).then((request) => request(axios, basePath));
34877
34888
  },
34878
34889
  /**
34879
34890
  * Mark RMA item as binned
@@ -35182,11 +35193,12 @@ export class RMAApi extends BaseAPI {
35182
35193
  /**
35183
35194
  * Approve an RMA
35184
35195
  * @param {number} id
35196
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
35185
35197
  * @param {*} [options] Override http request option.
35186
35198
  * @throws {RequiredError}
35187
35199
  */
35188
- public patchApproveRma(id: number, options?: RawAxiosRequestConfig) {
35189
- return RMAApiFp(this.configuration).patchApproveRma(id, options).then((request) => request(this.axios, this.basePath));
35200
+ public patchApproveRma(id: number, patchApproveRmaRequest?: PatchApproveRmaRequest, options?: RawAxiosRequestConfig) {
35201
+ return RMAApiFp(this.configuration).patchApproveRma(id, patchApproveRmaRequest, options).then((request) => request(this.axios, this.basePath));
35190
35202
  }
35191
35203
 
35192
35204
  /**
package/dist/api.d.ts CHANGED
@@ -5420,6 +5420,12 @@ export interface PasswordSenderEntity {
5420
5420
  */
5421
5421
  'description': string;
5422
5422
  }
5423
+ export interface PatchApproveRmaRequest {
5424
+ /**
5425
+ * Send email to customer
5426
+ */
5427
+ 'sendEmail'?: boolean;
5428
+ }
5423
5429
  export interface PatchUpdateAccountCnameRequest {
5424
5430
  /**
5425
5431
  * CNAME
@@ -21460,10 +21466,11 @@ export declare const RMAApiAxiosParamCreator: (configuration?: Configuration) =>
21460
21466
  /**
21461
21467
  * Approve an RMA
21462
21468
  * @param {number} id
21469
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
21463
21470
  * @param {*} [options] Override http request option.
21464
21471
  * @throws {RequiredError}
21465
21472
  */
21466
- patchApproveRma: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21473
+ patchApproveRma: (id: number, patchApproveRmaRequest?: PatchApproveRmaRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21467
21474
  /**
21468
21475
  * Mark RMA item as binned
21469
21476
  * @param {number} id
@@ -21701,10 +21708,11 @@ export declare const RMAApiFp: (configuration?: Configuration) => {
21701
21708
  /**
21702
21709
  * Approve an RMA
21703
21710
  * @param {number} id
21711
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
21704
21712
  * @param {*} [options] Override http request option.
21705
21713
  * @throws {RequiredError}
21706
21714
  */
21707
- patchApproveRma(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
21715
+ patchApproveRma(id: number, patchApproveRmaRequest?: PatchApproveRmaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
21708
21716
  /**
21709
21717
  * Mark RMA item as binned
21710
21718
  * @param {number} id
@@ -21942,10 +21950,11 @@ export declare const RMAApiFactory: (configuration?: Configuration, basePath?: s
21942
21950
  /**
21943
21951
  * Approve an RMA
21944
21952
  * @param {number} id
21953
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
21945
21954
  * @param {*} [options] Override http request option.
21946
21955
  * @throws {RequiredError}
21947
21956
  */
21948
- patchApproveRma(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
21957
+ patchApproveRma(id: number, patchApproveRmaRequest?: PatchApproveRmaRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
21949
21958
  /**
21950
21959
  * Mark RMA item as binned
21951
21960
  * @param {number} id
@@ -22183,10 +22192,11 @@ export declare class RMAApi extends BaseAPI {
22183
22192
  /**
22184
22193
  * Approve an RMA
22185
22194
  * @param {number} id
22195
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
22186
22196
  * @param {*} [options] Override http request option.
22187
22197
  * @throws {RequiredError}
22188
22198
  */
22189
- patchApproveRma(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
22199
+ patchApproveRma(id: number, patchApproveRmaRequest?: PatchApproveRmaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
22190
22200
  /**
22191
22201
  * Mark RMA item as binned
22192
22202
  * @param {number} id
package/dist/api.js CHANGED
@@ -27066,15 +27066,16 @@ var RMAApiAxiosParamCreator = function (configuration) {
27066
27066
  /**
27067
27067
  * Approve an RMA
27068
27068
  * @param {number} id
27069
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
27069
27070
  * @param {*} [options] Override http request option.
27070
27071
  * @throws {RequiredError}
27071
27072
  */
27072
- patchApproveRma: function (id_1) {
27073
+ patchApproveRma: function (id_1, patchApproveRmaRequest_1) {
27073
27074
  var args_1 = [];
27074
- for (var _i = 1; _i < arguments.length; _i++) {
27075
- args_1[_i - 1] = arguments[_i];
27075
+ for (var _i = 2; _i < arguments.length; _i++) {
27076
+ args_1[_i - 2] = arguments[_i];
27076
27077
  }
27077
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
27078
+ return __awaiter(_this, __spreadArray([id_1, patchApproveRmaRequest_1], args_1, true), void 0, function (id, patchApproveRmaRequest, options) {
27078
27079
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
27079
27080
  if (options === void 0) { options = {}; }
27080
27081
  return __generator(this, function (_a) {
@@ -27089,9 +27090,11 @@ var RMAApiAxiosParamCreator = function (configuration) {
27089
27090
  localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
27090
27091
  localVarHeaderParameter = {};
27091
27092
  localVarQueryParameter = {};
27093
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27092
27094
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
27093
27095
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27094
27096
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27097
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchApproveRmaRequest, localVarRequestOptions, configuration);
27095
27098
  return [2 /*return*/, {
27096
27099
  url: (0, common_1.toPathString)(localVarUrlObj),
27097
27100
  options: localVarRequestOptions,
@@ -28092,16 +28095,17 @@ var RMAApiFp = function (configuration) {
28092
28095
  /**
28093
28096
  * Approve an RMA
28094
28097
  * @param {number} id
28098
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
28095
28099
  * @param {*} [options] Override http request option.
28096
28100
  * @throws {RequiredError}
28097
28101
  */
28098
- patchApproveRma: function (id, options) {
28102
+ patchApproveRma: function (id, patchApproveRmaRequest, options) {
28099
28103
  return __awaiter(this, void 0, void 0, function () {
28100
28104
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
28101
28105
  var _a, _b, _c;
28102
28106
  return __generator(this, function (_d) {
28103
28107
  switch (_d.label) {
28104
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchApproveRma(id, options)];
28108
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchApproveRma(id, patchApproveRmaRequest, options)];
28105
28109
  case 1:
28106
28110
  localVarAxiosArgs = _d.sent();
28107
28111
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -28657,11 +28661,12 @@ var RMAApiFactory = function (configuration, basePath, axios) {
28657
28661
  /**
28658
28662
  * Approve an RMA
28659
28663
  * @param {number} id
28664
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
28660
28665
  * @param {*} [options] Override http request option.
28661
28666
  * @throws {RequiredError}
28662
28667
  */
28663
- patchApproveRma: function (id, options) {
28664
- return localVarFp.patchApproveRma(id, options).then(function (request) { return request(axios, basePath); });
28668
+ patchApproveRma: function (id, patchApproveRmaRequest, options) {
28669
+ return localVarFp.patchApproveRma(id, patchApproveRmaRequest, options).then(function (request) { return request(axios, basePath); });
28665
28670
  },
28666
28671
  /**
28667
28672
  * Mark RMA item as binned
@@ -28974,12 +28979,13 @@ var RMAApi = /** @class */ (function (_super) {
28974
28979
  /**
28975
28980
  * Approve an RMA
28976
28981
  * @param {number} id
28982
+ * @param {PatchApproveRmaRequest} [patchApproveRmaRequest]
28977
28983
  * @param {*} [options] Override http request option.
28978
28984
  * @throws {RequiredError}
28979
28985
  */
28980
- RMAApi.prototype.patchApproveRma = function (id, options) {
28986
+ RMAApi.prototype.patchApproveRma = function (id, patchApproveRmaRequest, options) {
28981
28987
  var _this = this;
28982
- return (0, exports.RMAApiFp)(this.configuration).patchApproveRma(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
28988
+ return (0, exports.RMAApiFp)(this.configuration).patchApproveRma(id, patchApproveRmaRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
28983
28989
  };
28984
28990
  /**
28985
28991
  * Mark RMA item as binned
@@ -0,0 +1,20 @@
1
+ # PatchApproveRmaRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sendEmail** | **boolean** | Send email to customer | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { PatchApproveRmaRequest } from 'yellowgrid-api-ts';
14
+
15
+ const instance: PatchApproveRmaRequest = {
16
+ sendEmail,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/RMAApi.md CHANGED
@@ -603,16 +603,19 @@ Approve an RMA
603
603
  ```typescript
604
604
  import {
605
605
  RMAApi,
606
- Configuration
606
+ Configuration,
607
+ PatchApproveRmaRequest
607
608
  } from 'yellowgrid-api-ts';
608
609
 
609
610
  const configuration = new Configuration();
610
611
  const apiInstance = new RMAApi(configuration);
611
612
 
612
613
  let id: number; // (default to undefined)
614
+ let patchApproveRmaRequest: PatchApproveRmaRequest; // (optional)
613
615
 
614
616
  const { status, data } = await apiInstance.patchApproveRma(
615
- id
617
+ id,
618
+ patchApproveRmaRequest
616
619
  );
617
620
  ```
618
621
 
@@ -620,6 +623,7 @@ const { status, data } = await apiInstance.patchApproveRma(
620
623
 
621
624
  |Name | Type | Description | Notes|
622
625
  |------------- | ------------- | ------------- | -------------|
626
+ | **patchApproveRmaRequest** | **PatchApproveRmaRequest**| | |
623
627
  | **id** | [**number**] | | defaults to undefined|
624
628
 
625
629
 
@@ -633,7 +637,7 @@ No authorization required
633
637
 
634
638
  ### HTTP request headers
635
639
 
636
- - **Content-Type**: Not defined
640
+ - **Content-Type**: application/json
637
641
  - **Accept**: Not defined
638
642
 
639
643
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.296",
3
+ "version": "3.2.297",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {