flexinet-api 0.0.455-prerelease0 → 0.0.463-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 +16 -25
- package/dist/api.d.ts +8 -21
- package/dist/api.js +15 -12
- package/dist/esm/api.d.ts +8 -21
- package/dist/esm/api.js +15 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.463-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.463-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -567,19 +567,6 @@ export const Condition = {
|
|
|
567
567
|
export type Condition = typeof Condition[keyof typeof Condition];
|
|
568
568
|
|
|
569
569
|
|
|
570
|
-
/**
|
|
571
|
-
*
|
|
572
|
-
* @export
|
|
573
|
-
* @interface CreateOrderRequest
|
|
574
|
-
*/
|
|
575
|
-
export interface CreateOrderRequest {
|
|
576
|
-
/**
|
|
577
|
-
*
|
|
578
|
-
* @type {OrderCreationRequest}
|
|
579
|
-
* @memberof CreateOrderRequest
|
|
580
|
-
*/
|
|
581
|
-
'tag'?: OrderCreationRequest;
|
|
582
|
-
}
|
|
583
570
|
/**
|
|
584
571
|
*
|
|
585
572
|
* @export
|
|
@@ -5217,11 +5204,11 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5217
5204
|
/**
|
|
5218
5205
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
5219
5206
|
* @summary Create an order for a product
|
|
5220
|
-
* @param {
|
|
5207
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
5221
5208
|
* @param {*} [options] Override http request option.
|
|
5222
5209
|
* @throws {RequiredError}
|
|
5223
5210
|
*/
|
|
5224
|
-
createOrder: async (
|
|
5211
|
+
createOrder: async (orderCreationRequest?: OrderCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5225
5212
|
const localVarPath = `/users/orders`;
|
|
5226
5213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5227
5214
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5234,6 +5221,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5234
5221
|
const localVarHeaderParameter = {} as any;
|
|
5235
5222
|
const localVarQueryParameter = {} as any;
|
|
5236
5223
|
|
|
5224
|
+
// authentication jwt required
|
|
5225
|
+
// http bearer authentication required
|
|
5226
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5227
|
+
|
|
5237
5228
|
|
|
5238
5229
|
|
|
5239
5230
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -5241,7 +5232,7 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5241
5232
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5242
5233
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5243
5234
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5244
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
5235
|
+
localVarRequestOptions.data = serializeDataIfNeeded(orderCreationRequest, localVarRequestOptions, configuration)
|
|
5245
5236
|
|
|
5246
5237
|
return {
|
|
5247
5238
|
url: toPathString(localVarUrlObj),
|
|
@@ -5427,12 +5418,12 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
5427
5418
|
/**
|
|
5428
5419
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
5429
5420
|
* @summary Create an order for a product
|
|
5430
|
-
* @param {
|
|
5421
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
5431
5422
|
* @param {*} [options] Override http request option.
|
|
5432
5423
|
* @throws {RequiredError}
|
|
5433
5424
|
*/
|
|
5434
|
-
async createOrder(
|
|
5435
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(
|
|
5425
|
+
async createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
|
|
5426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(orderCreationRequest, options);
|
|
5436
5427
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5437
5428
|
},
|
|
5438
5429
|
/**
|
|
@@ -5491,12 +5482,12 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
|
5491
5482
|
/**
|
|
5492
5483
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
5493
5484
|
* @summary Create an order for a product
|
|
5494
|
-
* @param {
|
|
5485
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
5495
5486
|
* @param {*} [options] Override http request option.
|
|
5496
5487
|
* @throws {RequiredError}
|
|
5497
5488
|
*/
|
|
5498
|
-
createOrder(
|
|
5499
|
-
return localVarFp.createOrder(
|
|
5489
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<Order> {
|
|
5490
|
+
return localVarFp.createOrder(orderCreationRequest, options).then((request) => request(axios, basePath));
|
|
5500
5491
|
},
|
|
5501
5492
|
/**
|
|
5502
5493
|
* Get order details
|
|
@@ -5551,13 +5542,13 @@ export class OrderApi extends BaseAPI {
|
|
|
5551
5542
|
/**
|
|
5552
5543
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
5553
5544
|
* @summary Create an order for a product
|
|
5554
|
-
* @param {
|
|
5545
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
5555
5546
|
* @param {*} [options] Override http request option.
|
|
5556
5547
|
* @throws {RequiredError}
|
|
5557
5548
|
* @memberof OrderApi
|
|
5558
5549
|
*/
|
|
5559
|
-
public createOrder(
|
|
5560
|
-
return OrderApiFp(this.configuration).createOrder(
|
|
5550
|
+
public createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig) {
|
|
5551
|
+
return OrderApiFp(this.configuration).createOrder(orderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5561
5552
|
}
|
|
5562
5553
|
|
|
5563
5554
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -533,19 +533,6 @@ export declare const Condition: {
|
|
|
533
533
|
readonly Contains: "contains";
|
|
534
534
|
};
|
|
535
535
|
export type Condition = typeof Condition[keyof typeof Condition];
|
|
536
|
-
/**
|
|
537
|
-
*
|
|
538
|
-
* @export
|
|
539
|
-
* @interface CreateOrderRequest
|
|
540
|
-
*/
|
|
541
|
-
export interface CreateOrderRequest {
|
|
542
|
-
/**
|
|
543
|
-
*
|
|
544
|
-
* @type {OrderCreationRequest}
|
|
545
|
-
* @memberof CreateOrderRequest
|
|
546
|
-
*/
|
|
547
|
-
'tag'?: OrderCreationRequest;
|
|
548
|
-
}
|
|
549
536
|
/**
|
|
550
537
|
*
|
|
551
538
|
* @export
|
|
@@ -4048,11 +4035,11 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4048
4035
|
/**
|
|
4049
4036
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
4050
4037
|
* @summary Create an order for a product
|
|
4051
|
-
* @param {
|
|
4038
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
4052
4039
|
* @param {*} [options] Override http request option.
|
|
4053
4040
|
* @throws {RequiredError}
|
|
4054
4041
|
*/
|
|
4055
|
-
createOrder: (
|
|
4042
|
+
createOrder: (orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4056
4043
|
/**
|
|
4057
4044
|
* Get order details
|
|
4058
4045
|
* @summary Get order details
|
|
@@ -4096,11 +4083,11 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
4096
4083
|
/**
|
|
4097
4084
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
4098
4085
|
* @summary Create an order for a product
|
|
4099
|
-
* @param {
|
|
4086
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
4100
4087
|
* @param {*} [options] Override http request option.
|
|
4101
4088
|
* @throws {RequiredError}
|
|
4102
4089
|
*/
|
|
4103
|
-
createOrder(
|
|
4090
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
4104
4091
|
/**
|
|
4105
4092
|
* Get order details
|
|
4106
4093
|
* @summary Get order details
|
|
@@ -4144,11 +4131,11 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4144
4131
|
/**
|
|
4145
4132
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
4146
4133
|
* @summary Create an order for a product
|
|
4147
|
-
* @param {
|
|
4134
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
4148
4135
|
* @param {*} [options] Override http request option.
|
|
4149
4136
|
* @throws {RequiredError}
|
|
4150
4137
|
*/
|
|
4151
|
-
createOrder(
|
|
4138
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<Order>;
|
|
4152
4139
|
/**
|
|
4153
4140
|
* Get order details
|
|
4154
4141
|
* @summary Get order details
|
|
@@ -4194,12 +4181,12 @@ export declare class OrderApi extends BaseAPI {
|
|
|
4194
4181
|
/**
|
|
4195
4182
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
4196
4183
|
* @summary Create an order for a product
|
|
4197
|
-
* @param {
|
|
4184
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
4198
4185
|
* @param {*} [options] Override http request option.
|
|
4199
4186
|
* @throws {RequiredError}
|
|
4200
4187
|
* @memberof OrderApi
|
|
4201
4188
|
*/
|
|
4202
|
-
createOrder(
|
|
4189
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
4203
4190
|
/**
|
|
4204
4191
|
* Get order details
|
|
4205
4192
|
* @summary Get order details
|
package/dist/api.js
CHANGED
|
@@ -2198,11 +2198,11 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2198
2198
|
/**
|
|
2199
2199
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
2200
2200
|
* @summary Create an order for a product
|
|
2201
|
-
* @param {
|
|
2201
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
2202
2202
|
* @param {*} [options] Override http request option.
|
|
2203
2203
|
* @throws {RequiredError}
|
|
2204
2204
|
*/
|
|
2205
|
-
createOrder: (
|
|
2205
|
+
createOrder: (orderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2206
2206
|
const localVarPath = `/users/orders`;
|
|
2207
2207
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2208
2208
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2213,11 +2213,14 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2213
2213
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2214
2214
|
const localVarHeaderParameter = {};
|
|
2215
2215
|
const localVarQueryParameter = {};
|
|
2216
|
+
// authentication jwt required
|
|
2217
|
+
// http bearer authentication required
|
|
2218
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2216
2219
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2217
2220
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2218
2221
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2219
2222
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2220
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2223
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(orderCreationRequest, localVarRequestOptions, configuration);
|
|
2221
2224
|
return {
|
|
2222
2225
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2223
2226
|
options: localVarRequestOptions,
|
|
@@ -2374,13 +2377,13 @@ const OrderApiFp = function (configuration) {
|
|
|
2374
2377
|
/**
|
|
2375
2378
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
2376
2379
|
* @summary Create an order for a product
|
|
2377
|
-
* @param {
|
|
2380
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
2378
2381
|
* @param {*} [options] Override http request option.
|
|
2379
2382
|
* @throws {RequiredError}
|
|
2380
2383
|
*/
|
|
2381
|
-
createOrder(
|
|
2384
|
+
createOrder(orderCreationRequest, options) {
|
|
2382
2385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2383
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(
|
|
2386
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(orderCreationRequest, options);
|
|
2384
2387
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2385
2388
|
});
|
|
2386
2389
|
},
|
|
@@ -2446,12 +2449,12 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2446
2449
|
/**
|
|
2447
2450
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
2448
2451
|
* @summary Create an order for a product
|
|
2449
|
-
* @param {
|
|
2452
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
2450
2453
|
* @param {*} [options] Override http request option.
|
|
2451
2454
|
* @throws {RequiredError}
|
|
2452
2455
|
*/
|
|
2453
|
-
createOrder(
|
|
2454
|
-
return localVarFp.createOrder(
|
|
2456
|
+
createOrder(orderCreationRequest, options) {
|
|
2457
|
+
return localVarFp.createOrder(orderCreationRequest, options).then((request) => request(axios, basePath));
|
|
2455
2458
|
},
|
|
2456
2459
|
/**
|
|
2457
2460
|
* Get order details
|
|
@@ -2506,13 +2509,13 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
2506
2509
|
/**
|
|
2507
2510
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
2508
2511
|
* @summary Create an order for a product
|
|
2509
|
-
* @param {
|
|
2512
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
2510
2513
|
* @param {*} [options] Override http request option.
|
|
2511
2514
|
* @throws {RequiredError}
|
|
2512
2515
|
* @memberof OrderApi
|
|
2513
2516
|
*/
|
|
2514
|
-
createOrder(
|
|
2515
|
-
return (0, exports.OrderApiFp)(this.configuration).createOrder(
|
|
2517
|
+
createOrder(orderCreationRequest, options) {
|
|
2518
|
+
return (0, exports.OrderApiFp)(this.configuration).createOrder(orderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2516
2519
|
}
|
|
2517
2520
|
/**
|
|
2518
2521
|
* Get order details
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -533,19 +533,6 @@ export declare const Condition: {
|
|
|
533
533
|
readonly Contains: "contains";
|
|
534
534
|
};
|
|
535
535
|
export type Condition = typeof Condition[keyof typeof Condition];
|
|
536
|
-
/**
|
|
537
|
-
*
|
|
538
|
-
* @export
|
|
539
|
-
* @interface CreateOrderRequest
|
|
540
|
-
*/
|
|
541
|
-
export interface CreateOrderRequest {
|
|
542
|
-
/**
|
|
543
|
-
*
|
|
544
|
-
* @type {OrderCreationRequest}
|
|
545
|
-
* @memberof CreateOrderRequest
|
|
546
|
-
*/
|
|
547
|
-
'tag'?: OrderCreationRequest;
|
|
548
|
-
}
|
|
549
536
|
/**
|
|
550
537
|
*
|
|
551
538
|
* @export
|
|
@@ -4048,11 +4035,11 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4048
4035
|
/**
|
|
4049
4036
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
4050
4037
|
* @summary Create an order for a product
|
|
4051
|
-
* @param {
|
|
4038
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
4052
4039
|
* @param {*} [options] Override http request option.
|
|
4053
4040
|
* @throws {RequiredError}
|
|
4054
4041
|
*/
|
|
4055
|
-
createOrder: (
|
|
4042
|
+
createOrder: (orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4056
4043
|
/**
|
|
4057
4044
|
* Get order details
|
|
4058
4045
|
* @summary Get order details
|
|
@@ -4096,11 +4083,11 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
4096
4083
|
/**
|
|
4097
4084
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
4098
4085
|
* @summary Create an order for a product
|
|
4099
|
-
* @param {
|
|
4086
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
4100
4087
|
* @param {*} [options] Override http request option.
|
|
4101
4088
|
* @throws {RequiredError}
|
|
4102
4089
|
*/
|
|
4103
|
-
createOrder(
|
|
4090
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
4104
4091
|
/**
|
|
4105
4092
|
* Get order details
|
|
4106
4093
|
* @summary Get order details
|
|
@@ -4144,11 +4131,11 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4144
4131
|
/**
|
|
4145
4132
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
4146
4133
|
* @summary Create an order for a product
|
|
4147
|
-
* @param {
|
|
4134
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
4148
4135
|
* @param {*} [options] Override http request option.
|
|
4149
4136
|
* @throws {RequiredError}
|
|
4150
4137
|
*/
|
|
4151
|
-
createOrder(
|
|
4138
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<Order>;
|
|
4152
4139
|
/**
|
|
4153
4140
|
* Get order details
|
|
4154
4141
|
* @summary Get order details
|
|
@@ -4194,12 +4181,12 @@ export declare class OrderApi extends BaseAPI {
|
|
|
4194
4181
|
/**
|
|
4195
4182
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
4196
4183
|
* @summary Create an order for a product
|
|
4197
|
-
* @param {
|
|
4184
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
4198
4185
|
* @param {*} [options] Override http request option.
|
|
4199
4186
|
* @throws {RequiredError}
|
|
4200
4187
|
* @memberof OrderApi
|
|
4201
4188
|
*/
|
|
4202
|
-
createOrder(
|
|
4189
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
4203
4190
|
/**
|
|
4204
4191
|
* Get order details
|
|
4205
4192
|
* @summary Get order details
|
package/dist/esm/api.js
CHANGED
|
@@ -2157,11 +2157,11 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
2159
2159
|
* @summary Create an order for a product
|
|
2160
|
-
* @param {
|
|
2160
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
2161
2161
|
* @param {*} [options] Override http request option.
|
|
2162
2162
|
* @throws {RequiredError}
|
|
2163
2163
|
*/
|
|
2164
|
-
createOrder: (
|
|
2164
|
+
createOrder: (orderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2165
2165
|
const localVarPath = `/users/orders`;
|
|
2166
2166
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2167
2167
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2172,11 +2172,14 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2172
2172
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2173
2173
|
const localVarHeaderParameter = {};
|
|
2174
2174
|
const localVarQueryParameter = {};
|
|
2175
|
+
// authentication jwt required
|
|
2176
|
+
// http bearer authentication required
|
|
2177
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2175
2178
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2176
2179
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2177
2180
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2178
2181
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2179
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2182
|
+
localVarRequestOptions.data = serializeDataIfNeeded(orderCreationRequest, localVarRequestOptions, configuration);
|
|
2180
2183
|
return {
|
|
2181
2184
|
url: toPathString(localVarUrlObj),
|
|
2182
2185
|
options: localVarRequestOptions,
|
|
@@ -2332,13 +2335,13 @@ export const OrderApiFp = function (configuration) {
|
|
|
2332
2335
|
/**
|
|
2333
2336
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
2334
2337
|
* @summary Create an order for a product
|
|
2335
|
-
* @param {
|
|
2338
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
2336
2339
|
* @param {*} [options] Override http request option.
|
|
2337
2340
|
* @throws {RequiredError}
|
|
2338
2341
|
*/
|
|
2339
|
-
createOrder(
|
|
2342
|
+
createOrder(orderCreationRequest, options) {
|
|
2340
2343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2341
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(
|
|
2344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(orderCreationRequest, options);
|
|
2342
2345
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2343
2346
|
});
|
|
2344
2347
|
},
|
|
@@ -2403,12 +2406,12 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2403
2406
|
/**
|
|
2404
2407
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
2405
2408
|
* @summary Create an order for a product
|
|
2406
|
-
* @param {
|
|
2409
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
2407
2410
|
* @param {*} [options] Override http request option.
|
|
2408
2411
|
* @throws {RequiredError}
|
|
2409
2412
|
*/
|
|
2410
|
-
createOrder(
|
|
2411
|
-
return localVarFp.createOrder(
|
|
2413
|
+
createOrder(orderCreationRequest, options) {
|
|
2414
|
+
return localVarFp.createOrder(orderCreationRequest, options).then((request) => request(axios, basePath));
|
|
2412
2415
|
},
|
|
2413
2416
|
/**
|
|
2414
2417
|
* Get order details
|
|
@@ -2462,13 +2465,13 @@ export class OrderApi extends BaseAPI {
|
|
|
2462
2465
|
/**
|
|
2463
2466
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
|
2464
2467
|
* @summary Create an order for a product
|
|
2465
|
-
* @param {
|
|
2468
|
+
* @param {OrderCreationRequest} [orderCreationRequest]
|
|
2466
2469
|
* @param {*} [options] Override http request option.
|
|
2467
2470
|
* @throws {RequiredError}
|
|
2468
2471
|
* @memberof OrderApi
|
|
2469
2472
|
*/
|
|
2470
|
-
createOrder(
|
|
2471
|
-
return OrderApiFp(this.configuration).createOrder(
|
|
2473
|
+
createOrder(orderCreationRequest, options) {
|
|
2474
|
+
return OrderApiFp(this.configuration).createOrder(orderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2472
2475
|
}
|
|
2473
2476
|
/**
|
|
2474
2477
|
* Get order details
|