flexinet-api 0.0.528-prerelease0 → 0.0.529-prerelease0
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 +2 -2
- package/api.ts +71 -0
- package/dist/api.d.ts +33 -0
- package/dist/api.js +66 -0
- package/dist/esm/api.d.ts +33 -0
- package/dist/esm/api.js +66 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.529-prerelease0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install flexinet-api@0.0.
|
|
39
|
+
npm install flexinet-api@0.0.529-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -5493,6 +5493,44 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5493
5493
|
getOrder: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5494
5494
|
// verify required parameter 'id' is not null or undefined
|
|
5495
5495
|
assertParamExists('getOrder', 'id', id)
|
|
5496
|
+
const localVarPath = `/admins/orders/{id}`
|
|
5497
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5498
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5499
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5500
|
+
let baseOptions;
|
|
5501
|
+
if (configuration) {
|
|
5502
|
+
baseOptions = configuration.baseOptions;
|
|
5503
|
+
}
|
|
5504
|
+
|
|
5505
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5506
|
+
const localVarHeaderParameter = {} as any;
|
|
5507
|
+
const localVarQueryParameter = {} as any;
|
|
5508
|
+
|
|
5509
|
+
// authentication systemJWT required
|
|
5510
|
+
// http bearer authentication required
|
|
5511
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5512
|
+
|
|
5513
|
+
|
|
5514
|
+
|
|
5515
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5517
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5518
|
+
|
|
5519
|
+
return {
|
|
5520
|
+
url: toPathString(localVarUrlObj),
|
|
5521
|
+
options: localVarRequestOptions,
|
|
5522
|
+
};
|
|
5523
|
+
},
|
|
5524
|
+
/**
|
|
5525
|
+
* Get order details
|
|
5526
|
+
* @summary Get order details
|
|
5527
|
+
* @param {string} id Order id
|
|
5528
|
+
* @param {*} [options] Override http request option.
|
|
5529
|
+
* @throws {RequiredError}
|
|
5530
|
+
*/
|
|
5531
|
+
getUserOrder: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5532
|
+
// verify required parameter 'id' is not null or undefined
|
|
5533
|
+
assertParamExists('getUserOrder', 'id', id)
|
|
5496
5534
|
const localVarPath = `/users/orders/{id}`
|
|
5497
5535
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5498
5536
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -5699,6 +5737,17 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
5699
5737
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(id, options);
|
|
5700
5738
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5701
5739
|
},
|
|
5740
|
+
/**
|
|
5741
|
+
* Get order details
|
|
5742
|
+
* @summary Get order details
|
|
5743
|
+
* @param {string} id Order id
|
|
5744
|
+
* @param {*} [options] Override http request option.
|
|
5745
|
+
* @throws {RequiredError}
|
|
5746
|
+
*/
|
|
5747
|
+
async getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
|
|
5748
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserOrder(id, options);
|
|
5749
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5750
|
+
},
|
|
5702
5751
|
/**
|
|
5703
5752
|
* List existing orders
|
|
5704
5753
|
* @summary List existing orders
|
|
@@ -5763,6 +5812,16 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
|
5763
5812
|
getOrder(id: string, options?: any): AxiosPromise<Order> {
|
|
5764
5813
|
return localVarFp.getOrder(id, options).then((request) => request(axios, basePath));
|
|
5765
5814
|
},
|
|
5815
|
+
/**
|
|
5816
|
+
* Get order details
|
|
5817
|
+
* @summary Get order details
|
|
5818
|
+
* @param {string} id Order id
|
|
5819
|
+
* @param {*} [options] Override http request option.
|
|
5820
|
+
* @throws {RequiredError}
|
|
5821
|
+
*/
|
|
5822
|
+
getUserOrder(id: string, options?: any): AxiosPromise<Order> {
|
|
5823
|
+
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
|
5824
|
+
},
|
|
5766
5825
|
/**
|
|
5767
5826
|
* List existing orders
|
|
5768
5827
|
* @summary List existing orders
|
|
@@ -5829,6 +5888,18 @@ export class OrderApi extends BaseAPI {
|
|
|
5829
5888
|
return OrderApiFp(this.configuration).getOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
5830
5889
|
}
|
|
5831
5890
|
|
|
5891
|
+
/**
|
|
5892
|
+
* Get order details
|
|
5893
|
+
* @summary Get order details
|
|
5894
|
+
* @param {string} id Order id
|
|
5895
|
+
* @param {*} [options] Override http request option.
|
|
5896
|
+
* @throws {RequiredError}
|
|
5897
|
+
* @memberof OrderApi
|
|
5898
|
+
*/
|
|
5899
|
+
public getUserOrder(id: string, options?: AxiosRequestConfig) {
|
|
5900
|
+
return OrderApiFp(this.configuration).getUserOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
5901
|
+
}
|
|
5902
|
+
|
|
5832
5903
|
/**
|
|
5833
5904
|
* List existing orders
|
|
5834
5905
|
* @summary List existing orders
|
package/dist/api.d.ts
CHANGED
|
@@ -4214,6 +4214,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4214
4214
|
* @throws {RequiredError}
|
|
4215
4215
|
*/
|
|
4216
4216
|
getOrder: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4217
|
+
/**
|
|
4218
|
+
* Get order details
|
|
4219
|
+
* @summary Get order details
|
|
4220
|
+
* @param {string} id Order id
|
|
4221
|
+
* @param {*} [options] Override http request option.
|
|
4222
|
+
* @throws {RequiredError}
|
|
4223
|
+
*/
|
|
4224
|
+
getUserOrder: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4217
4225
|
/**
|
|
4218
4226
|
* List existing orders
|
|
4219
4227
|
* @summary List existing orders
|
|
@@ -4264,6 +4272,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
4264
4272
|
* @throws {RequiredError}
|
|
4265
4273
|
*/
|
|
4266
4274
|
getOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
4275
|
+
/**
|
|
4276
|
+
* Get order details
|
|
4277
|
+
* @summary Get order details
|
|
4278
|
+
* @param {string} id Order id
|
|
4279
|
+
* @param {*} [options] Override http request option.
|
|
4280
|
+
* @throws {RequiredError}
|
|
4281
|
+
*/
|
|
4282
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
4267
4283
|
/**
|
|
4268
4284
|
* List existing orders
|
|
4269
4285
|
* @summary List existing orders
|
|
@@ -4314,6 +4330,14 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4314
4330
|
* @throws {RequiredError}
|
|
4315
4331
|
*/
|
|
4316
4332
|
getOrder(id: string, options?: any): AxiosPromise<Order>;
|
|
4333
|
+
/**
|
|
4334
|
+
* Get order details
|
|
4335
|
+
* @summary Get order details
|
|
4336
|
+
* @param {string} id Order id
|
|
4337
|
+
* @param {*} [options] Override http request option.
|
|
4338
|
+
* @throws {RequiredError}
|
|
4339
|
+
*/
|
|
4340
|
+
getUserOrder(id: string, options?: any): AxiosPromise<Order>;
|
|
4317
4341
|
/**
|
|
4318
4342
|
* List existing orders
|
|
4319
4343
|
* @summary List existing orders
|
|
@@ -4368,6 +4392,15 @@ export declare class OrderApi extends BaseAPI {
|
|
|
4368
4392
|
* @memberof OrderApi
|
|
4369
4393
|
*/
|
|
4370
4394
|
getOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
4395
|
+
/**
|
|
4396
|
+
* Get order details
|
|
4397
|
+
* @summary Get order details
|
|
4398
|
+
* @param {string} id Order id
|
|
4399
|
+
* @param {*} [options] Override http request option.
|
|
4400
|
+
* @throws {RequiredError}
|
|
4401
|
+
* @memberof OrderApi
|
|
4402
|
+
*/
|
|
4403
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
4371
4404
|
/**
|
|
4372
4405
|
* List existing orders
|
|
4373
4406
|
* @summary List existing orders
|
package/dist/api.js
CHANGED
|
@@ -2344,6 +2344,38 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2344
2344
|
getOrder: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2345
2345
|
// verify required parameter 'id' is not null or undefined
|
|
2346
2346
|
(0, common_1.assertParamExists)('getOrder', 'id', id);
|
|
2347
|
+
const localVarPath = `/admins/orders/{id}`
|
|
2348
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2349
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2350
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2351
|
+
let baseOptions;
|
|
2352
|
+
if (configuration) {
|
|
2353
|
+
baseOptions = configuration.baseOptions;
|
|
2354
|
+
}
|
|
2355
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2356
|
+
const localVarHeaderParameter = {};
|
|
2357
|
+
const localVarQueryParameter = {};
|
|
2358
|
+
// authentication systemJWT required
|
|
2359
|
+
// http bearer authentication required
|
|
2360
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2361
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2363
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2364
|
+
return {
|
|
2365
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2366
|
+
options: localVarRequestOptions,
|
|
2367
|
+
};
|
|
2368
|
+
}),
|
|
2369
|
+
/**
|
|
2370
|
+
* Get order details
|
|
2371
|
+
* @summary Get order details
|
|
2372
|
+
* @param {string} id Order id
|
|
2373
|
+
* @param {*} [options] Override http request option.
|
|
2374
|
+
* @throws {RequiredError}
|
|
2375
|
+
*/
|
|
2376
|
+
getUserOrder: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2377
|
+
// verify required parameter 'id' is not null or undefined
|
|
2378
|
+
(0, common_1.assertParamExists)('getUserOrder', 'id', id);
|
|
2347
2379
|
const localVarPath = `/users/orders/{id}`
|
|
2348
2380
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2349
2381
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2522,6 +2554,19 @@ const OrderApiFp = function (configuration) {
|
|
|
2522
2554
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2523
2555
|
});
|
|
2524
2556
|
},
|
|
2557
|
+
/**
|
|
2558
|
+
* Get order details
|
|
2559
|
+
* @summary Get order details
|
|
2560
|
+
* @param {string} id Order id
|
|
2561
|
+
* @param {*} [options] Override http request option.
|
|
2562
|
+
* @throws {RequiredError}
|
|
2563
|
+
*/
|
|
2564
|
+
getUserOrder(id, options) {
|
|
2565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2566
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserOrder(id, options);
|
|
2567
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2568
|
+
});
|
|
2569
|
+
},
|
|
2525
2570
|
/**
|
|
2526
2571
|
* List existing orders
|
|
2527
2572
|
* @summary List existing orders
|
|
@@ -2590,6 +2635,16 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2590
2635
|
getOrder(id, options) {
|
|
2591
2636
|
return localVarFp.getOrder(id, options).then((request) => request(axios, basePath));
|
|
2592
2637
|
},
|
|
2638
|
+
/**
|
|
2639
|
+
* Get order details
|
|
2640
|
+
* @summary Get order details
|
|
2641
|
+
* @param {string} id Order id
|
|
2642
|
+
* @param {*} [options] Override http request option.
|
|
2643
|
+
* @throws {RequiredError}
|
|
2644
|
+
*/
|
|
2645
|
+
getUserOrder(id, options) {
|
|
2646
|
+
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
|
2647
|
+
},
|
|
2593
2648
|
/**
|
|
2594
2649
|
* List existing orders
|
|
2595
2650
|
* @summary List existing orders
|
|
@@ -2654,6 +2709,17 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
2654
2709
|
getOrder(id, options) {
|
|
2655
2710
|
return (0, exports.OrderApiFp)(this.configuration).getOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
2656
2711
|
}
|
|
2712
|
+
/**
|
|
2713
|
+
* Get order details
|
|
2714
|
+
* @summary Get order details
|
|
2715
|
+
* @param {string} id Order id
|
|
2716
|
+
* @param {*} [options] Override http request option.
|
|
2717
|
+
* @throws {RequiredError}
|
|
2718
|
+
* @memberof OrderApi
|
|
2719
|
+
*/
|
|
2720
|
+
getUserOrder(id, options) {
|
|
2721
|
+
return (0, exports.OrderApiFp)(this.configuration).getUserOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
2722
|
+
}
|
|
2657
2723
|
/**
|
|
2658
2724
|
* List existing orders
|
|
2659
2725
|
* @summary List existing orders
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -4214,6 +4214,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4214
4214
|
* @throws {RequiredError}
|
|
4215
4215
|
*/
|
|
4216
4216
|
getOrder: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4217
|
+
/**
|
|
4218
|
+
* Get order details
|
|
4219
|
+
* @summary Get order details
|
|
4220
|
+
* @param {string} id Order id
|
|
4221
|
+
* @param {*} [options] Override http request option.
|
|
4222
|
+
* @throws {RequiredError}
|
|
4223
|
+
*/
|
|
4224
|
+
getUserOrder: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4217
4225
|
/**
|
|
4218
4226
|
* List existing orders
|
|
4219
4227
|
* @summary List existing orders
|
|
@@ -4264,6 +4272,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
4264
4272
|
* @throws {RequiredError}
|
|
4265
4273
|
*/
|
|
4266
4274
|
getOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
4275
|
+
/**
|
|
4276
|
+
* Get order details
|
|
4277
|
+
* @summary Get order details
|
|
4278
|
+
* @param {string} id Order id
|
|
4279
|
+
* @param {*} [options] Override http request option.
|
|
4280
|
+
* @throws {RequiredError}
|
|
4281
|
+
*/
|
|
4282
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
4267
4283
|
/**
|
|
4268
4284
|
* List existing orders
|
|
4269
4285
|
* @summary List existing orders
|
|
@@ -4314,6 +4330,14 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4314
4330
|
* @throws {RequiredError}
|
|
4315
4331
|
*/
|
|
4316
4332
|
getOrder(id: string, options?: any): AxiosPromise<Order>;
|
|
4333
|
+
/**
|
|
4334
|
+
* Get order details
|
|
4335
|
+
* @summary Get order details
|
|
4336
|
+
* @param {string} id Order id
|
|
4337
|
+
* @param {*} [options] Override http request option.
|
|
4338
|
+
* @throws {RequiredError}
|
|
4339
|
+
*/
|
|
4340
|
+
getUserOrder(id: string, options?: any): AxiosPromise<Order>;
|
|
4317
4341
|
/**
|
|
4318
4342
|
* List existing orders
|
|
4319
4343
|
* @summary List existing orders
|
|
@@ -4368,6 +4392,15 @@ export declare class OrderApi extends BaseAPI {
|
|
|
4368
4392
|
* @memberof OrderApi
|
|
4369
4393
|
*/
|
|
4370
4394
|
getOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
4395
|
+
/**
|
|
4396
|
+
* Get order details
|
|
4397
|
+
* @summary Get order details
|
|
4398
|
+
* @param {string} id Order id
|
|
4399
|
+
* @param {*} [options] Override http request option.
|
|
4400
|
+
* @throws {RequiredError}
|
|
4401
|
+
* @memberof OrderApi
|
|
4402
|
+
*/
|
|
4403
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
4371
4404
|
/**
|
|
4372
4405
|
* List existing orders
|
|
4373
4406
|
* @summary List existing orders
|
package/dist/esm/api.js
CHANGED
|
@@ -2303,6 +2303,38 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2303
2303
|
getOrder: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2304
2304
|
// verify required parameter 'id' is not null or undefined
|
|
2305
2305
|
assertParamExists('getOrder', 'id', id);
|
|
2306
|
+
const localVarPath = `/admins/orders/{id}`
|
|
2307
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2309
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2310
|
+
let baseOptions;
|
|
2311
|
+
if (configuration) {
|
|
2312
|
+
baseOptions = configuration.baseOptions;
|
|
2313
|
+
}
|
|
2314
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2315
|
+
const localVarHeaderParameter = {};
|
|
2316
|
+
const localVarQueryParameter = {};
|
|
2317
|
+
// authentication systemJWT required
|
|
2318
|
+
// http bearer authentication required
|
|
2319
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2320
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2321
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2322
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2323
|
+
return {
|
|
2324
|
+
url: toPathString(localVarUrlObj),
|
|
2325
|
+
options: localVarRequestOptions,
|
|
2326
|
+
};
|
|
2327
|
+
}),
|
|
2328
|
+
/**
|
|
2329
|
+
* Get order details
|
|
2330
|
+
* @summary Get order details
|
|
2331
|
+
* @param {string} id Order id
|
|
2332
|
+
* @param {*} [options] Override http request option.
|
|
2333
|
+
* @throws {RequiredError}
|
|
2334
|
+
*/
|
|
2335
|
+
getUserOrder: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2336
|
+
// verify required parameter 'id' is not null or undefined
|
|
2337
|
+
assertParamExists('getUserOrder', 'id', id);
|
|
2306
2338
|
const localVarPath = `/users/orders/{id}`
|
|
2307
2339
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2308
2340
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2480,6 +2512,19 @@ export const OrderApiFp = function (configuration) {
|
|
|
2480
2512
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2481
2513
|
});
|
|
2482
2514
|
},
|
|
2515
|
+
/**
|
|
2516
|
+
* Get order details
|
|
2517
|
+
* @summary Get order details
|
|
2518
|
+
* @param {string} id Order id
|
|
2519
|
+
* @param {*} [options] Override http request option.
|
|
2520
|
+
* @throws {RequiredError}
|
|
2521
|
+
*/
|
|
2522
|
+
getUserOrder(id, options) {
|
|
2523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2524
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserOrder(id, options);
|
|
2525
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2526
|
+
});
|
|
2527
|
+
},
|
|
2483
2528
|
/**
|
|
2484
2529
|
* List existing orders
|
|
2485
2530
|
* @summary List existing orders
|
|
@@ -2547,6 +2592,16 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2547
2592
|
getOrder(id, options) {
|
|
2548
2593
|
return localVarFp.getOrder(id, options).then((request) => request(axios, basePath));
|
|
2549
2594
|
},
|
|
2595
|
+
/**
|
|
2596
|
+
* Get order details
|
|
2597
|
+
* @summary Get order details
|
|
2598
|
+
* @param {string} id Order id
|
|
2599
|
+
* @param {*} [options] Override http request option.
|
|
2600
|
+
* @throws {RequiredError}
|
|
2601
|
+
*/
|
|
2602
|
+
getUserOrder(id, options) {
|
|
2603
|
+
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
|
2604
|
+
},
|
|
2550
2605
|
/**
|
|
2551
2606
|
* List existing orders
|
|
2552
2607
|
* @summary List existing orders
|
|
@@ -2610,6 +2665,17 @@ export class OrderApi extends BaseAPI {
|
|
|
2610
2665
|
getOrder(id, options) {
|
|
2611
2666
|
return OrderApiFp(this.configuration).getOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
2612
2667
|
}
|
|
2668
|
+
/**
|
|
2669
|
+
* Get order details
|
|
2670
|
+
* @summary Get order details
|
|
2671
|
+
* @param {string} id Order id
|
|
2672
|
+
* @param {*} [options] Override http request option.
|
|
2673
|
+
* @throws {RequiredError}
|
|
2674
|
+
* @memberof OrderApi
|
|
2675
|
+
*/
|
|
2676
|
+
getUserOrder(id, options) {
|
|
2677
|
+
return OrderApiFp(this.configuration).getUserOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
2678
|
+
}
|
|
2613
2679
|
/**
|
|
2614
2680
|
* List existing orders
|
|
2615
2681
|
* @summary List existing orders
|