yellowgrid-api-ts 3.2.224-dev.0 → 3.2.225-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
@@ -324,6 +324,7 @@ Class | Method | HTTP request | Description
324
324
  *RMAApi* | [**deleteGetAdminRma**](docs/RMAApi.md#deletegetadminrma) | **DELETE** /admin/rma/{id} |
325
325
  *RMAApi* | [**getCreateRma**](docs/RMAApi.md#getcreaterma) | **GET** /rma |
326
326
  *RMAApi* | [**getGetAdminRma**](docs/RMAApi.md#getgetadminrma) | **GET** /admin/rma/{id} |
327
+ *RMAApi* | [**getGetAdminRmaOrder**](docs/RMAApi.md#getgetadminrmaorder) | **GET** /admin/rma/{id}/order |
327
328
  *RMAApi* | [**getGetAdminRmas**](docs/RMAApi.md#getgetadminrmas) | **GET** /admin/rma |
328
329
  *RMAApi* | [**getGetRma**](docs/RMAApi.md#getgetrma) | **GET** /rma/{id} |
329
330
  *RMAApi* | [**getGetRmaOrder**](docs/RMAApi.md#getgetrmaorder) | **GET** /rma/orders/{id} |
package/api.ts CHANGED
@@ -31070,6 +31070,39 @@ export const RMAApiAxiosParamCreator = function (configuration?: Configuration)
31070
31070
  options: localVarRequestOptions,
31071
31071
  };
31072
31072
  },
31073
+ /**
31074
+ * Get an RMA\'s Associated Order
31075
+ * @param {number} id
31076
+ * @param {*} [options] Override http request option.
31077
+ * @throws {RequiredError}
31078
+ */
31079
+ getGetAdminRmaOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31080
+ // verify required parameter 'id' is not null or undefined
31081
+ assertParamExists('getGetAdminRmaOrder', 'id', id)
31082
+ const localVarPath = `/admin/rma/{id}/order`
31083
+ .replace('{id}', encodeURIComponent(String(id)));
31084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31085
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31086
+ let baseOptions;
31087
+ if (configuration) {
31088
+ baseOptions = configuration.baseOptions;
31089
+ }
31090
+
31091
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31092
+ const localVarHeaderParameter = {} as any;
31093
+ const localVarQueryParameter = {} as any;
31094
+
31095
+ localVarHeaderParameter['Accept'] = 'application/json';
31096
+
31097
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31098
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31099
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31100
+
31101
+ return {
31102
+ url: toPathString(localVarUrlObj),
31103
+ options: localVarRequestOptions,
31104
+ };
31105
+ },
31073
31106
  /**
31074
31107
  * Get Admin RMAs
31075
31108
  * @param {number} [pageSize] Number Of Results
@@ -31984,6 +32017,18 @@ export const RMAApiFp = function(configuration?: Configuration) {
31984
32017
  const localVarOperationServerBasePath = operationServerMap['RMAApi.getGetAdminRma']?.[localVarOperationServerIndex]?.url;
31985
32018
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31986
32019
  },
32020
+ /**
32021
+ * Get an RMA\'s Associated Order
32022
+ * @param {number} id
32023
+ * @param {*} [options] Override http request option.
32024
+ * @throws {RequiredError}
32025
+ */
32026
+ async getGetAdminRmaOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RmaOrderDTO>> {
32027
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminRmaOrder(id, options);
32028
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32029
+ const localVarOperationServerBasePath = operationServerMap['RMAApi.getGetAdminRmaOrder']?.[localVarOperationServerIndex]?.url;
32030
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32031
+ },
31987
32032
  /**
31988
32033
  * Get Admin RMAs
31989
32034
  * @param {number} [pageSize] Number Of Results
@@ -32342,6 +32387,15 @@ export const RMAApiFactory = function (configuration?: Configuration, basePath?:
32342
32387
  getGetAdminRma(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminRmaDTO> {
32343
32388
  return localVarFp.getGetAdminRma(id, options).then((request) => request(axios, basePath));
32344
32389
  },
32390
+ /**
32391
+ * Get an RMA\'s Associated Order
32392
+ * @param {number} id
32393
+ * @param {*} [options] Override http request option.
32394
+ * @throws {RequiredError}
32395
+ */
32396
+ getGetAdminRmaOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<RmaOrderDTO> {
32397
+ return localVarFp.getGetAdminRmaOrder(id, options).then((request) => request(axios, basePath));
32398
+ },
32345
32399
  /**
32346
32400
  * Get Admin RMAs
32347
32401
  * @param {number} [pageSize] Number Of Results
@@ -32630,6 +32684,16 @@ export class RMAApi extends BaseAPI {
32630
32684
  return RMAApiFp(this.configuration).getGetAdminRma(id, options).then((request) => request(this.axios, this.basePath));
32631
32685
  }
32632
32686
 
32687
+ /**
32688
+ * Get an RMA\'s Associated Order
32689
+ * @param {number} id
32690
+ * @param {*} [options] Override http request option.
32691
+ * @throws {RequiredError}
32692
+ */
32693
+ public getGetAdminRmaOrder(id: number, options?: RawAxiosRequestConfig) {
32694
+ return RMAApiFp(this.configuration).getGetAdminRmaOrder(id, options).then((request) => request(this.axios, this.basePath));
32695
+ }
32696
+
32633
32697
  /**
32634
32698
  * Get Admin RMAs
32635
32699
  * @param {number} [pageSize] Number Of Results
package/dist/api.d.ts CHANGED
@@ -20049,6 +20049,13 @@ export declare const RMAApiAxiosParamCreator: (configuration?: Configuration) =>
20049
20049
  * @throws {RequiredError}
20050
20050
  */
20051
20051
  getGetAdminRma: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20052
+ /**
20053
+ * Get an RMA\'s Associated Order
20054
+ * @param {number} id
20055
+ * @param {*} [options] Override http request option.
20056
+ * @throws {RequiredError}
20057
+ */
20058
+ getGetAdminRmaOrder: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20052
20059
  /**
20053
20060
  * Get Admin RMAs
20054
20061
  * @param {number} [pageSize] Number Of Results
@@ -20275,6 +20282,13 @@ export declare const RMAApiFp: (configuration?: Configuration) => {
20275
20282
  * @throws {RequiredError}
20276
20283
  */
20277
20284
  getGetAdminRma(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminRmaDTO>>;
20285
+ /**
20286
+ * Get an RMA\'s Associated Order
20287
+ * @param {number} id
20288
+ * @param {*} [options] Override http request option.
20289
+ * @throws {RequiredError}
20290
+ */
20291
+ getGetAdminRmaOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RmaOrderDTO>>;
20278
20292
  /**
20279
20293
  * Get Admin RMAs
20280
20294
  * @param {number} [pageSize] Number Of Results
@@ -20501,6 +20515,13 @@ export declare const RMAApiFactory: (configuration?: Configuration, basePath?: s
20501
20515
  * @throws {RequiredError}
20502
20516
  */
20503
20517
  getGetAdminRma(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminRmaDTO>;
20518
+ /**
20519
+ * Get an RMA\'s Associated Order
20520
+ * @param {number} id
20521
+ * @param {*} [options] Override http request option.
20522
+ * @throws {RequiredError}
20523
+ */
20524
+ getGetAdminRmaOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<RmaOrderDTO>;
20504
20525
  /**
20505
20526
  * Get Admin RMAs
20506
20527
  * @param {number} [pageSize] Number Of Results
@@ -20727,6 +20748,13 @@ export declare class RMAApi extends BaseAPI {
20727
20748
  * @throws {RequiredError}
20728
20749
  */
20729
20750
  getGetAdminRma(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminRmaDTO, any, {}>>;
20751
+ /**
20752
+ * Get an RMA\'s Associated Order
20753
+ * @param {number} id
20754
+ * @param {*} [options] Override http request option.
20755
+ * @throws {RequiredError}
20756
+ */
20757
+ getGetAdminRmaOrder(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RmaOrderDTO, any, {}>>;
20730
20758
  /**
20731
20759
  * Get Admin RMAs
20732
20760
  * @param {number} [pageSize] Number Of Results
package/dist/api.js CHANGED
@@ -24688,6 +24688,43 @@ var RMAApiAxiosParamCreator = function (configuration) {
24688
24688
  });
24689
24689
  });
24690
24690
  },
24691
+ /**
24692
+ * Get an RMA\'s Associated Order
24693
+ * @param {number} id
24694
+ * @param {*} [options] Override http request option.
24695
+ * @throws {RequiredError}
24696
+ */
24697
+ getGetAdminRmaOrder: function (id_1) {
24698
+ var args_1 = [];
24699
+ for (var _i = 1; _i < arguments.length; _i++) {
24700
+ args_1[_i - 1] = arguments[_i];
24701
+ }
24702
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
24703
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
24704
+ if (options === void 0) { options = {}; }
24705
+ return __generator(this, function (_a) {
24706
+ // verify required parameter 'id' is not null or undefined
24707
+ (0, common_1.assertParamExists)('getGetAdminRmaOrder', 'id', id);
24708
+ localVarPath = "/admin/rma/{id}/order"
24709
+ .replace('{id}', encodeURIComponent(String(id)));
24710
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
24711
+ if (configuration) {
24712
+ baseOptions = configuration.baseOptions;
24713
+ }
24714
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
24715
+ localVarHeaderParameter = {};
24716
+ localVarQueryParameter = {};
24717
+ localVarHeaderParameter['Accept'] = 'application/json';
24718
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
24719
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24720
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24721
+ return [2 /*return*/, {
24722
+ url: (0, common_1.toPathString)(localVarUrlObj),
24723
+ options: localVarRequestOptions,
24724
+ }];
24725
+ });
24726
+ });
24727
+ },
24691
24728
  /**
24692
24729
  * Get Admin RMAs
24693
24730
  * @param {number} [pageSize] Number Of Results
@@ -25734,6 +25771,28 @@ var RMAApiFp = function (configuration) {
25734
25771
  });
25735
25772
  });
25736
25773
  },
25774
+ /**
25775
+ * Get an RMA\'s Associated Order
25776
+ * @param {number} id
25777
+ * @param {*} [options] Override http request option.
25778
+ * @throws {RequiredError}
25779
+ */
25780
+ getGetAdminRmaOrder: function (id, options) {
25781
+ return __awaiter(this, void 0, void 0, function () {
25782
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
25783
+ var _a, _b, _c;
25784
+ return __generator(this, function (_d) {
25785
+ switch (_d.label) {
25786
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminRmaOrder(id, options)];
25787
+ case 1:
25788
+ localVarAxiosArgs = _d.sent();
25789
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25790
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getGetAdminRmaOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25791
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
25792
+ }
25793
+ });
25794
+ });
25795
+ },
25737
25796
  /**
25738
25797
  * Get Admin RMAs
25739
25798
  * @param {number} [pageSize] Number Of Results
@@ -26332,6 +26391,15 @@ var RMAApiFactory = function (configuration, basePath, axios) {
26332
26391
  getGetAdminRma: function (id, options) {
26333
26392
  return localVarFp.getGetAdminRma(id, options).then(function (request) { return request(axios, basePath); });
26334
26393
  },
26394
+ /**
26395
+ * Get an RMA\'s Associated Order
26396
+ * @param {number} id
26397
+ * @param {*} [options] Override http request option.
26398
+ * @throws {RequiredError}
26399
+ */
26400
+ getGetAdminRmaOrder: function (id, options) {
26401
+ return localVarFp.getGetAdminRmaOrder(id, options).then(function (request) { return request(axios, basePath); });
26402
+ },
26335
26403
  /**
26336
26404
  * Get Admin RMAs
26337
26405
  * @param {number} [pageSize] Number Of Results
@@ -26624,6 +26692,16 @@ var RMAApi = /** @class */ (function (_super) {
26624
26692
  var _this = this;
26625
26693
  return (0, exports.RMAApiFp)(this.configuration).getGetAdminRma(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
26626
26694
  };
26695
+ /**
26696
+ * Get an RMA\'s Associated Order
26697
+ * @param {number} id
26698
+ * @param {*} [options] Override http request option.
26699
+ * @throws {RequiredError}
26700
+ */
26701
+ RMAApi.prototype.getGetAdminRmaOrder = function (id, options) {
26702
+ var _this = this;
26703
+ return (0, exports.RMAApiFp)(this.configuration).getGetAdminRmaOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
26704
+ };
26627
26705
  /**
26628
26706
  * Get Admin RMAs
26629
26707
  * @param {number} [pageSize] Number Of Results
package/docs/RMAApi.md CHANGED
@@ -8,6 +8,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
8
8
  |[**deleteGetAdminRma**](#deletegetadminrma) | **DELETE** /admin/rma/{id} | |
9
9
  |[**getCreateRma**](#getcreaterma) | **GET** /rma | |
10
10
  |[**getGetAdminRma**](#getgetadminrma) | **GET** /admin/rma/{id} | |
11
+ |[**getGetAdminRmaOrder**](#getgetadminrmaorder) | **GET** /admin/rma/{id}/order | |
11
12
  |[**getGetAdminRmas**](#getgetadminrmas) | **GET** /admin/rma | |
12
13
  |[**getGetRma**](#getgetrma) | **GET** /rma/{id} | |
13
14
  |[**getGetRmaOrder**](#getgetrmaorder) | **GET** /rma/orders/{id} | |
@@ -258,6 +259,60 @@ No authorization required
258
259
 
259
260
  [[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)
260
261
 
262
+ # **getGetAdminRmaOrder**
263
+ > RmaOrderDTO getGetAdminRmaOrder()
264
+
265
+ Get an RMA\'s Associated Order
266
+
267
+ ### Example
268
+
269
+ ```typescript
270
+ import {
271
+ RMAApi,
272
+ Configuration
273
+ } from 'yellowgrid-api-ts';
274
+
275
+ const configuration = new Configuration();
276
+ const apiInstance = new RMAApi(configuration);
277
+
278
+ let id: number; // (default to undefined)
279
+
280
+ const { status, data } = await apiInstance.getGetAdminRmaOrder(
281
+ id
282
+ );
283
+ ```
284
+
285
+ ### Parameters
286
+
287
+ |Name | Type | Description | Notes|
288
+ |------------- | ------------- | ------------- | -------------|
289
+ | **id** | [**number**] | | defaults to undefined|
290
+
291
+
292
+ ### Return type
293
+
294
+ **RmaOrderDTO**
295
+
296
+ ### Authorization
297
+
298
+ No authorization required
299
+
300
+ ### HTTP request headers
301
+
302
+ - **Content-Type**: Not defined
303
+ - **Accept**: application/json
304
+
305
+
306
+ ### HTTP response details
307
+ | Status code | Description | Response headers |
308
+ |-------------|-------------|------------------|
309
+ |**200** | Admin RMA Order | - |
310
+ |**400** | Bad Request | - |
311
+ |**401** | Unauthorised | - |
312
+ |**403** | Access Denied | - |
313
+
314
+ [[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)
315
+
261
316
  # **getGetAdminRmas**
262
317
  > AdminCustomerRmasModel getGetAdminRmas()
263
318
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.224-dev.0",
3
+ "version": "3.2.225-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {