@infisale-client/api 1.2.54 → 1.2.55
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/dist/api/api.d.ts +152 -8
- package/dist/api/api.js +46 -22
- package/dist/api/api.mjs +46 -22
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -5057,6 +5057,37 @@ export interface IOrderCreateResponse {
|
|
|
5057
5057
|
*/
|
|
5058
5058
|
'redirectUrl'?: string;
|
|
5059
5059
|
}
|
|
5060
|
+
/**
|
|
5061
|
+
*
|
|
5062
|
+
* @export
|
|
5063
|
+
* @interface IOrderPatchRequest
|
|
5064
|
+
*/
|
|
5065
|
+
export interface IOrderPatchRequest {
|
|
5066
|
+
/**
|
|
5067
|
+
*
|
|
5068
|
+
* @type {OrderStatusEnum}
|
|
5069
|
+
* @memberof IOrderPatchRequest
|
|
5070
|
+
*/
|
|
5071
|
+
'status'?: OrderStatusEnum;
|
|
5072
|
+
/**
|
|
5073
|
+
*
|
|
5074
|
+
* @type {OrderPaymentStatusEnum}
|
|
5075
|
+
* @memberof IOrderPatchRequest
|
|
5076
|
+
*/
|
|
5077
|
+
'paymentStatus'?: OrderPaymentStatusEnum;
|
|
5078
|
+
/**
|
|
5079
|
+
*
|
|
5080
|
+
* @type {string}
|
|
5081
|
+
* @memberof IOrderPatchRequest
|
|
5082
|
+
*/
|
|
5083
|
+
'cargoCode'?: string;
|
|
5084
|
+
/**
|
|
5085
|
+
*
|
|
5086
|
+
* @type {string}
|
|
5087
|
+
* @memberof IOrderPatchRequest
|
|
5088
|
+
*/
|
|
5089
|
+
'cargoUrl'?: string;
|
|
5090
|
+
}
|
|
5060
5091
|
/**
|
|
5061
5092
|
*
|
|
5062
5093
|
* @export
|
|
@@ -5299,6 +5330,87 @@ export interface IOrderResponse {
|
|
|
5299
5330
|
*/
|
|
5300
5331
|
'paymentStatus': OrderPaymentStatusEnum;
|
|
5301
5332
|
}
|
|
5333
|
+
/**
|
|
5334
|
+
*
|
|
5335
|
+
* @export
|
|
5336
|
+
* @interface IOrderReturnAdminPostRequest
|
|
5337
|
+
*/
|
|
5338
|
+
export interface IOrderReturnAdminPostRequest {
|
|
5339
|
+
/**
|
|
5340
|
+
*
|
|
5341
|
+
* @type {Array<string>}
|
|
5342
|
+
* @memberof IOrderReturnAdminPostRequest
|
|
5343
|
+
*/
|
|
5344
|
+
'products': Array<string>;
|
|
5345
|
+
/**
|
|
5346
|
+
*
|
|
5347
|
+
* @type {number}
|
|
5348
|
+
* @memberof IOrderReturnAdminPostRequest
|
|
5349
|
+
*/
|
|
5350
|
+
'price': number;
|
|
5351
|
+
/**
|
|
5352
|
+
*
|
|
5353
|
+
* @type {string}
|
|
5354
|
+
* @memberof IOrderReturnAdminPostRequest
|
|
5355
|
+
*/
|
|
5356
|
+
'cargoCode'?: string;
|
|
5357
|
+
/**
|
|
5358
|
+
*
|
|
5359
|
+
* @type {string}
|
|
5360
|
+
* @memberof IOrderReturnAdminPostRequest
|
|
5361
|
+
*/
|
|
5362
|
+
'cargoUrl'?: string;
|
|
5363
|
+
/**
|
|
5364
|
+
*
|
|
5365
|
+
* @type {OrderReturnStatusEnum}
|
|
5366
|
+
* @memberof IOrderReturnAdminPostRequest
|
|
5367
|
+
*/
|
|
5368
|
+
'status': OrderReturnStatusEnum;
|
|
5369
|
+
}
|
|
5370
|
+
/**
|
|
5371
|
+
*
|
|
5372
|
+
* @export
|
|
5373
|
+
* @interface IOrderReturnPostRequest
|
|
5374
|
+
*/
|
|
5375
|
+
export interface IOrderReturnPostRequest {
|
|
5376
|
+
/**
|
|
5377
|
+
*
|
|
5378
|
+
* @type {Array<string>}
|
|
5379
|
+
* @memberof IOrderReturnPostRequest
|
|
5380
|
+
*/
|
|
5381
|
+
'products': Array<string>;
|
|
5382
|
+
}
|
|
5383
|
+
/**
|
|
5384
|
+
*
|
|
5385
|
+
* @export
|
|
5386
|
+
* @interface IOrderReturnUpdatePostRequest
|
|
5387
|
+
*/
|
|
5388
|
+
export interface IOrderReturnUpdatePostRequest {
|
|
5389
|
+
/**
|
|
5390
|
+
*
|
|
5391
|
+
* @type {OrderReturnStatusEnum}
|
|
5392
|
+
* @memberof IOrderReturnUpdatePostRequest
|
|
5393
|
+
*/
|
|
5394
|
+
'status'?: OrderReturnStatusEnum;
|
|
5395
|
+
/**
|
|
5396
|
+
*
|
|
5397
|
+
* @type {string}
|
|
5398
|
+
* @memberof IOrderReturnUpdatePostRequest
|
|
5399
|
+
*/
|
|
5400
|
+
'cargoCode'?: string;
|
|
5401
|
+
/**
|
|
5402
|
+
*
|
|
5403
|
+
* @type {string}
|
|
5404
|
+
* @memberof IOrderReturnUpdatePostRequest
|
|
5405
|
+
*/
|
|
5406
|
+
'cargoUrl'?: string;
|
|
5407
|
+
/**
|
|
5408
|
+
*
|
|
5409
|
+
* @type {number}
|
|
5410
|
+
* @memberof IOrderReturnUpdatePostRequest
|
|
5411
|
+
*/
|
|
5412
|
+
'price'?: number;
|
|
5413
|
+
}
|
|
5302
5414
|
/**
|
|
5303
5415
|
*
|
|
5304
5416
|
* @export
|
|
@@ -15138,17 +15250,19 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15138
15250
|
/**
|
|
15139
15251
|
*
|
|
15140
15252
|
* @param {string} id
|
|
15253
|
+
* @param {IOrderReturnPostRequest} iOrderReturnPostRequest
|
|
15141
15254
|
* @param {*} [options] Override http request option.
|
|
15142
15255
|
* @throws {RequiredError}
|
|
15143
15256
|
*/
|
|
15144
|
-
createReturn: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15257
|
+
createReturn: (id: string, iOrderReturnPostRequest: IOrderReturnPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15145
15258
|
/**
|
|
15146
15259
|
*
|
|
15147
15260
|
* @param {string} id
|
|
15261
|
+
* @param {IOrderReturnAdminPostRequest} iOrderReturnAdminPostRequest
|
|
15148
15262
|
* @param {*} [options] Override http request option.
|
|
15149
15263
|
* @throws {RequiredError}
|
|
15150
15264
|
*/
|
|
15151
|
-
createReturnAdmin: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15265
|
+
createReturnAdmin: (id: string, iOrderReturnAdminPostRequest: IOrderReturnAdminPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15152
15266
|
/**
|
|
15153
15267
|
*
|
|
15154
15268
|
* @param {number} [page]
|
|
@@ -15191,18 +15305,20 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15191
15305
|
/**
|
|
15192
15306
|
*
|
|
15193
15307
|
* @param {string} id
|
|
15308
|
+
* @param {IOrderPatchRequest} iOrderPatchRequest
|
|
15194
15309
|
* @param {*} [options] Override http request option.
|
|
15195
15310
|
* @throws {RequiredError}
|
|
15196
15311
|
*/
|
|
15197
|
-
updateOrder: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15312
|
+
updateOrder: (id: string, iOrderPatchRequest: IOrderPatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15198
15313
|
/**
|
|
15199
15314
|
*
|
|
15200
15315
|
* @param {string} orderId
|
|
15201
15316
|
* @param {string} returnId
|
|
15317
|
+
* @param {IOrderReturnUpdatePostRequest} iOrderReturnUpdatePostRequest
|
|
15202
15318
|
* @param {*} [options] Override http request option.
|
|
15203
15319
|
* @throws {RequiredError}
|
|
15204
15320
|
*/
|
|
15205
|
-
updateReturn: (orderId: string, returnId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15321
|
+
updateReturn: (orderId: string, returnId: string, iOrderReturnUpdatePostRequest: IOrderReturnUpdatePostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15206
15322
|
};
|
|
15207
15323
|
/**
|
|
15208
15324
|
* OrderApi - functional programming interface
|
|
@@ -15219,17 +15335,19 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
15219
15335
|
/**
|
|
15220
15336
|
*
|
|
15221
15337
|
* @param {string} id
|
|
15338
|
+
* @param {IOrderReturnPostRequest} iOrderReturnPostRequest
|
|
15222
15339
|
* @param {*} [options] Override http request option.
|
|
15223
15340
|
* @throws {RequiredError}
|
|
15224
15341
|
*/
|
|
15225
|
-
createReturn(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15342
|
+
createReturn(id: string, iOrderReturnPostRequest: IOrderReturnPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15226
15343
|
/**
|
|
15227
15344
|
*
|
|
15228
15345
|
* @param {string} id
|
|
15346
|
+
* @param {IOrderReturnAdminPostRequest} iOrderReturnAdminPostRequest
|
|
15229
15347
|
* @param {*} [options] Override http request option.
|
|
15230
15348
|
* @throws {RequiredError}
|
|
15231
15349
|
*/
|
|
15232
|
-
createReturnAdmin(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15350
|
+
createReturnAdmin(id: string, iOrderReturnAdminPostRequest: IOrderReturnAdminPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15233
15351
|
/**
|
|
15234
15352
|
*
|
|
15235
15353
|
* @param {number} [page]
|
|
@@ -15272,18 +15390,20 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
15272
15390
|
/**
|
|
15273
15391
|
*
|
|
15274
15392
|
* @param {string} id
|
|
15393
|
+
* @param {IOrderPatchRequest} iOrderPatchRequest
|
|
15275
15394
|
* @param {*} [options] Override http request option.
|
|
15276
15395
|
* @throws {RequiredError}
|
|
15277
15396
|
*/
|
|
15278
|
-
updateOrder(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15397
|
+
updateOrder(id: string, iOrderPatchRequest: IOrderPatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15279
15398
|
/**
|
|
15280
15399
|
*
|
|
15281
15400
|
* @param {string} orderId
|
|
15282
15401
|
* @param {string} returnId
|
|
15402
|
+
* @param {IOrderReturnUpdatePostRequest} iOrderReturnUpdatePostRequest
|
|
15283
15403
|
* @param {*} [options] Override http request option.
|
|
15284
15404
|
* @throws {RequiredError}
|
|
15285
15405
|
*/
|
|
15286
|
-
updateReturn(orderId: string, returnId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15406
|
+
updateReturn(orderId: string, returnId: string, iOrderReturnUpdatePostRequest: IOrderReturnUpdatePostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15287
15407
|
};
|
|
15288
15408
|
/**
|
|
15289
15409
|
* OrderApi - factory interface
|
|
@@ -15372,6 +15492,12 @@ export interface OrderApiCreateReturnRequest {
|
|
|
15372
15492
|
* @memberof OrderApiCreateReturn
|
|
15373
15493
|
*/
|
|
15374
15494
|
readonly id: string;
|
|
15495
|
+
/**
|
|
15496
|
+
*
|
|
15497
|
+
* @type {IOrderReturnPostRequest}
|
|
15498
|
+
* @memberof OrderApiCreateReturn
|
|
15499
|
+
*/
|
|
15500
|
+
readonly iOrderReturnPostRequest: IOrderReturnPostRequest;
|
|
15375
15501
|
}
|
|
15376
15502
|
/**
|
|
15377
15503
|
* Request parameters for createReturnAdmin operation in OrderApi.
|
|
@@ -15385,6 +15511,12 @@ export interface OrderApiCreateReturnAdminRequest {
|
|
|
15385
15511
|
* @memberof OrderApiCreateReturnAdmin
|
|
15386
15512
|
*/
|
|
15387
15513
|
readonly id: string;
|
|
15514
|
+
/**
|
|
15515
|
+
*
|
|
15516
|
+
* @type {IOrderReturnAdminPostRequest}
|
|
15517
|
+
* @memberof OrderApiCreateReturnAdmin
|
|
15518
|
+
*/
|
|
15519
|
+
readonly iOrderReturnAdminPostRequest: IOrderReturnAdminPostRequest;
|
|
15388
15520
|
}
|
|
15389
15521
|
/**
|
|
15390
15522
|
* Request parameters for getMyOrders operation in OrderApi.
|
|
@@ -15545,6 +15677,12 @@ export interface OrderApiUpdateOrderRequest {
|
|
|
15545
15677
|
* @memberof OrderApiUpdateOrder
|
|
15546
15678
|
*/
|
|
15547
15679
|
readonly id: string;
|
|
15680
|
+
/**
|
|
15681
|
+
*
|
|
15682
|
+
* @type {IOrderPatchRequest}
|
|
15683
|
+
* @memberof OrderApiUpdateOrder
|
|
15684
|
+
*/
|
|
15685
|
+
readonly iOrderPatchRequest: IOrderPatchRequest;
|
|
15548
15686
|
}
|
|
15549
15687
|
/**
|
|
15550
15688
|
* Request parameters for updateReturn operation in OrderApi.
|
|
@@ -15564,6 +15702,12 @@ export interface OrderApiUpdateReturnRequest {
|
|
|
15564
15702
|
* @memberof OrderApiUpdateReturn
|
|
15565
15703
|
*/
|
|
15566
15704
|
readonly returnId: string;
|
|
15705
|
+
/**
|
|
15706
|
+
*
|
|
15707
|
+
* @type {IOrderReturnUpdatePostRequest}
|
|
15708
|
+
* @memberof OrderApiUpdateReturn
|
|
15709
|
+
*/
|
|
15710
|
+
readonly iOrderReturnUpdatePostRequest: IOrderReturnUpdatePostRequest;
|
|
15567
15711
|
}
|
|
15568
15712
|
/**
|
|
15569
15713
|
* OrderApi - object-oriented interface
|
package/dist/api/api.js
CHANGED
|
@@ -6964,12 +6964,15 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6964
6964
|
/**
|
|
6965
6965
|
*
|
|
6966
6966
|
* @param {string} id
|
|
6967
|
+
* @param {IOrderReturnPostRequest} iOrderReturnPostRequest
|
|
6967
6968
|
* @param {*} [options] Override http request option.
|
|
6968
6969
|
* @throws {RequiredError}
|
|
6969
6970
|
*/
|
|
6970
|
-
createReturn: async (id, options = {}) => {
|
|
6971
|
+
createReturn: async (id, iOrderReturnPostRequest, options = {}) => {
|
|
6971
6972
|
// verify required parameter 'id' is not null or undefined
|
|
6972
6973
|
(0, common_1.assertParamExists)('createReturn', 'id', id);
|
|
6974
|
+
// verify required parameter 'iOrderReturnPostRequest' is not null or undefined
|
|
6975
|
+
(0, common_1.assertParamExists)('createReturn', 'iOrderReturnPostRequest', iOrderReturnPostRequest);
|
|
6973
6976
|
const localVarPath = `/api/orders/{id}/return`
|
|
6974
6977
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6975
6978
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6981,9 +6984,11 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6981
6984
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6982
6985
|
const localVarHeaderParameter = {};
|
|
6983
6986
|
const localVarQueryParameter = {};
|
|
6987
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6984
6988
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6985
6989
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6986
6990
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6991
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iOrderReturnPostRequest, localVarRequestOptions, configuration);
|
|
6987
6992
|
return {
|
|
6988
6993
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6989
6994
|
options: localVarRequestOptions,
|
|
@@ -6992,12 +6997,15 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6992
6997
|
/**
|
|
6993
6998
|
*
|
|
6994
6999
|
* @param {string} id
|
|
7000
|
+
* @param {IOrderReturnAdminPostRequest} iOrderReturnAdminPostRequest
|
|
6995
7001
|
* @param {*} [options] Override http request option.
|
|
6996
7002
|
* @throws {RequiredError}
|
|
6997
7003
|
*/
|
|
6998
|
-
createReturnAdmin: async (id, options = {}) => {
|
|
7004
|
+
createReturnAdmin: async (id, iOrderReturnAdminPostRequest, options = {}) => {
|
|
6999
7005
|
// verify required parameter 'id' is not null or undefined
|
|
7000
7006
|
(0, common_1.assertParamExists)('createReturnAdmin', 'id', id);
|
|
7007
|
+
// verify required parameter 'iOrderReturnAdminPostRequest' is not null or undefined
|
|
7008
|
+
(0, common_1.assertParamExists)('createReturnAdmin', 'iOrderReturnAdminPostRequest', iOrderReturnAdminPostRequest);
|
|
7001
7009
|
const localVarPath = `/api/orders/{id}/return-admin`
|
|
7002
7010
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7003
7011
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -7009,9 +7017,11 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7009
7017
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7010
7018
|
const localVarHeaderParameter = {};
|
|
7011
7019
|
const localVarQueryParameter = {};
|
|
7020
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7012
7021
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7013
7022
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7014
7023
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7024
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iOrderReturnAdminPostRequest, localVarRequestOptions, configuration);
|
|
7015
7025
|
return {
|
|
7016
7026
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7017
7027
|
options: localVarRequestOptions,
|
|
@@ -7186,12 +7196,15 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7186
7196
|
/**
|
|
7187
7197
|
*
|
|
7188
7198
|
* @param {string} id
|
|
7199
|
+
* @param {IOrderPatchRequest} iOrderPatchRequest
|
|
7189
7200
|
* @param {*} [options] Override http request option.
|
|
7190
7201
|
* @throws {RequiredError}
|
|
7191
7202
|
*/
|
|
7192
|
-
updateOrder: async (id, options = {}) => {
|
|
7203
|
+
updateOrder: async (id, iOrderPatchRequest, options = {}) => {
|
|
7193
7204
|
// verify required parameter 'id' is not null or undefined
|
|
7194
7205
|
(0, common_1.assertParamExists)('updateOrder', 'id', id);
|
|
7206
|
+
// verify required parameter 'iOrderPatchRequest' is not null or undefined
|
|
7207
|
+
(0, common_1.assertParamExists)('updateOrder', 'iOrderPatchRequest', iOrderPatchRequest);
|
|
7195
7208
|
const localVarPath = `/api/orders/{id}`
|
|
7196
7209
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7197
7210
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -7200,12 +7213,14 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7200
7213
|
if (configuration) {
|
|
7201
7214
|
baseOptions = configuration.baseOptions;
|
|
7202
7215
|
}
|
|
7203
|
-
const localVarRequestOptions = { method: '
|
|
7216
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7204
7217
|
const localVarHeaderParameter = {};
|
|
7205
7218
|
const localVarQueryParameter = {};
|
|
7219
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7206
7220
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7207
7221
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7208
7222
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7223
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iOrderPatchRequest, localVarRequestOptions, configuration);
|
|
7209
7224
|
return {
|
|
7210
7225
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7211
7226
|
options: localVarRequestOptions,
|
|
@@ -7215,14 +7230,17 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7215
7230
|
*
|
|
7216
7231
|
* @param {string} orderId
|
|
7217
7232
|
* @param {string} returnId
|
|
7233
|
+
* @param {IOrderReturnUpdatePostRequest} iOrderReturnUpdatePostRequest
|
|
7218
7234
|
* @param {*} [options] Override http request option.
|
|
7219
7235
|
* @throws {RequiredError}
|
|
7220
7236
|
*/
|
|
7221
|
-
updateReturn: async (orderId, returnId, options = {}) => {
|
|
7237
|
+
updateReturn: async (orderId, returnId, iOrderReturnUpdatePostRequest, options = {}) => {
|
|
7222
7238
|
// verify required parameter 'orderId' is not null or undefined
|
|
7223
7239
|
(0, common_1.assertParamExists)('updateReturn', 'orderId', orderId);
|
|
7224
7240
|
// verify required parameter 'returnId' is not null or undefined
|
|
7225
7241
|
(0, common_1.assertParamExists)('updateReturn', 'returnId', returnId);
|
|
7242
|
+
// verify required parameter 'iOrderReturnUpdatePostRequest' is not null or undefined
|
|
7243
|
+
(0, common_1.assertParamExists)('updateReturn', 'iOrderReturnUpdatePostRequest', iOrderReturnUpdatePostRequest);
|
|
7226
7244
|
const localVarPath = `/api/orders/{orderId}/return-update/{returnId}`
|
|
7227
7245
|
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
7228
7246
|
.replace(`{${"returnId"}}`, encodeURIComponent(String(returnId)));
|
|
@@ -7232,12 +7250,14 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7232
7250
|
if (configuration) {
|
|
7233
7251
|
baseOptions = configuration.baseOptions;
|
|
7234
7252
|
}
|
|
7235
|
-
const localVarRequestOptions = { method: '
|
|
7253
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7236
7254
|
const localVarHeaderParameter = {};
|
|
7237
7255
|
const localVarQueryParameter = {};
|
|
7256
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7238
7257
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7239
7258
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7240
7259
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7260
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iOrderReturnUpdatePostRequest, localVarRequestOptions, configuration);
|
|
7241
7261
|
return {
|
|
7242
7262
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7243
7263
|
options: localVarRequestOptions,
|
|
@@ -7268,11 +7288,12 @@ const OrderApiFp = function (configuration) {
|
|
|
7268
7288
|
/**
|
|
7269
7289
|
*
|
|
7270
7290
|
* @param {string} id
|
|
7291
|
+
* @param {IOrderReturnPostRequest} iOrderReturnPostRequest
|
|
7271
7292
|
* @param {*} [options] Override http request option.
|
|
7272
7293
|
* @throws {RequiredError}
|
|
7273
7294
|
*/
|
|
7274
|
-
async createReturn(id, options) {
|
|
7275
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturn(id, options);
|
|
7295
|
+
async createReturn(id, iOrderReturnPostRequest, options) {
|
|
7296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturn(id, iOrderReturnPostRequest, options);
|
|
7276
7297
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7277
7298
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createReturn']?.[localVarOperationServerIndex]?.url;
|
|
7278
7299
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7280,11 +7301,12 @@ const OrderApiFp = function (configuration) {
|
|
|
7280
7301
|
/**
|
|
7281
7302
|
*
|
|
7282
7303
|
* @param {string} id
|
|
7304
|
+
* @param {IOrderReturnAdminPostRequest} iOrderReturnAdminPostRequest
|
|
7283
7305
|
* @param {*} [options] Override http request option.
|
|
7284
7306
|
* @throws {RequiredError}
|
|
7285
7307
|
*/
|
|
7286
|
-
async createReturnAdmin(id, options) {
|
|
7287
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturnAdmin(id, options);
|
|
7308
|
+
async createReturnAdmin(id, iOrderReturnAdminPostRequest, options) {
|
|
7309
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturnAdmin(id, iOrderReturnAdminPostRequest, options);
|
|
7288
7310
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7289
7311
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createReturnAdmin']?.[localVarOperationServerIndex]?.url;
|
|
7290
7312
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7346,11 +7368,12 @@ const OrderApiFp = function (configuration) {
|
|
|
7346
7368
|
/**
|
|
7347
7369
|
*
|
|
7348
7370
|
* @param {string} id
|
|
7371
|
+
* @param {IOrderPatchRequest} iOrderPatchRequest
|
|
7349
7372
|
* @param {*} [options] Override http request option.
|
|
7350
7373
|
* @throws {RequiredError}
|
|
7351
7374
|
*/
|
|
7352
|
-
async updateOrder(id, options) {
|
|
7353
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrder(id, options);
|
|
7375
|
+
async updateOrder(id, iOrderPatchRequest, options) {
|
|
7376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrder(id, iOrderPatchRequest, options);
|
|
7354
7377
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7355
7378
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.updateOrder']?.[localVarOperationServerIndex]?.url;
|
|
7356
7379
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7359,11 +7382,12 @@ const OrderApiFp = function (configuration) {
|
|
|
7359
7382
|
*
|
|
7360
7383
|
* @param {string} orderId
|
|
7361
7384
|
* @param {string} returnId
|
|
7385
|
+
* @param {IOrderReturnUpdatePostRequest} iOrderReturnUpdatePostRequest
|
|
7362
7386
|
* @param {*} [options] Override http request option.
|
|
7363
7387
|
* @throws {RequiredError}
|
|
7364
7388
|
*/
|
|
7365
|
-
async updateReturn(orderId, returnId, options) {
|
|
7366
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReturn(orderId, returnId, options);
|
|
7389
|
+
async updateReturn(orderId, returnId, iOrderReturnUpdatePostRequest, options) {
|
|
7390
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReturn(orderId, returnId, iOrderReturnUpdatePostRequest, options);
|
|
7367
7391
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7368
7392
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.updateReturn']?.[localVarOperationServerIndex]?.url;
|
|
7369
7393
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7394,7 +7418,7 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7394
7418
|
* @throws {RequiredError}
|
|
7395
7419
|
*/
|
|
7396
7420
|
createReturn(requestParameters, options) {
|
|
7397
|
-
return localVarFp.createReturn(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7421
|
+
return localVarFp.createReturn(requestParameters.id, requestParameters.iOrderReturnPostRequest, options).then((request) => request(axios, basePath));
|
|
7398
7422
|
},
|
|
7399
7423
|
/**
|
|
7400
7424
|
*
|
|
@@ -7403,7 +7427,7 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7403
7427
|
* @throws {RequiredError}
|
|
7404
7428
|
*/
|
|
7405
7429
|
createReturnAdmin(requestParameters, options) {
|
|
7406
|
-
return localVarFp.createReturnAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7430
|
+
return localVarFp.createReturnAdmin(requestParameters.id, requestParameters.iOrderReturnAdminPostRequest, options).then((request) => request(axios, basePath));
|
|
7407
7431
|
},
|
|
7408
7432
|
/**
|
|
7409
7433
|
*
|
|
@@ -7439,7 +7463,7 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7439
7463
|
* @throws {RequiredError}
|
|
7440
7464
|
*/
|
|
7441
7465
|
updateOrder(requestParameters, options) {
|
|
7442
|
-
return localVarFp.updateOrder(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7466
|
+
return localVarFp.updateOrder(requestParameters.id, requestParameters.iOrderPatchRequest, options).then((request) => request(axios, basePath));
|
|
7443
7467
|
},
|
|
7444
7468
|
/**
|
|
7445
7469
|
*
|
|
@@ -7448,7 +7472,7 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7448
7472
|
* @throws {RequiredError}
|
|
7449
7473
|
*/
|
|
7450
7474
|
updateReturn(requestParameters, options) {
|
|
7451
|
-
return localVarFp.updateReturn(requestParameters.orderId, requestParameters.returnId, options).then((request) => request(axios, basePath));
|
|
7475
|
+
return localVarFp.updateReturn(requestParameters.orderId, requestParameters.returnId, requestParameters.iOrderReturnUpdatePostRequest, options).then((request) => request(axios, basePath));
|
|
7452
7476
|
},
|
|
7453
7477
|
};
|
|
7454
7478
|
};
|
|
@@ -7478,7 +7502,7 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
7478
7502
|
* @memberof OrderApi
|
|
7479
7503
|
*/
|
|
7480
7504
|
createReturn(requestParameters, options) {
|
|
7481
|
-
return (0, exports.OrderApiFp)(this.configuration).createReturn(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7505
|
+
return (0, exports.OrderApiFp)(this.configuration).createReturn(requestParameters.id, requestParameters.iOrderReturnPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7482
7506
|
}
|
|
7483
7507
|
/**
|
|
7484
7508
|
*
|
|
@@ -7488,7 +7512,7 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
7488
7512
|
* @memberof OrderApi
|
|
7489
7513
|
*/
|
|
7490
7514
|
createReturnAdmin(requestParameters, options) {
|
|
7491
|
-
return (0, exports.OrderApiFp)(this.configuration).createReturnAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7515
|
+
return (0, exports.OrderApiFp)(this.configuration).createReturnAdmin(requestParameters.id, requestParameters.iOrderReturnAdminPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7492
7516
|
}
|
|
7493
7517
|
/**
|
|
7494
7518
|
*
|
|
@@ -7528,7 +7552,7 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
7528
7552
|
* @memberof OrderApi
|
|
7529
7553
|
*/
|
|
7530
7554
|
updateOrder(requestParameters, options) {
|
|
7531
|
-
return (0, exports.OrderApiFp)(this.configuration).updateOrder(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7555
|
+
return (0, exports.OrderApiFp)(this.configuration).updateOrder(requestParameters.id, requestParameters.iOrderPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7532
7556
|
}
|
|
7533
7557
|
/**
|
|
7534
7558
|
*
|
|
@@ -7538,7 +7562,7 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
7538
7562
|
* @memberof OrderApi
|
|
7539
7563
|
*/
|
|
7540
7564
|
updateReturn(requestParameters, options) {
|
|
7541
|
-
return (0, exports.OrderApiFp)(this.configuration).updateReturn(requestParameters.orderId, requestParameters.returnId, options).then((request) => request(this.axios, this.basePath));
|
|
7565
|
+
return (0, exports.OrderApiFp)(this.configuration).updateReturn(requestParameters.orderId, requestParameters.returnId, requestParameters.iOrderReturnUpdatePostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7542
7566
|
}
|
|
7543
7567
|
}
|
|
7544
7568
|
exports.OrderApi = OrderApi;
|
package/dist/api/api.mjs
CHANGED
|
@@ -6909,12 +6909,15 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6909
6909
|
/**
|
|
6910
6910
|
*
|
|
6911
6911
|
* @param {string} id
|
|
6912
|
+
* @param {IOrderReturnPostRequest} iOrderReturnPostRequest
|
|
6912
6913
|
* @param {*} [options] Override http request option.
|
|
6913
6914
|
* @throws {RequiredError}
|
|
6914
6915
|
*/
|
|
6915
|
-
createReturn: async (id, options = {}) => {
|
|
6916
|
+
createReturn: async (id, iOrderReturnPostRequest, options = {}) => {
|
|
6916
6917
|
// verify required parameter 'id' is not null or undefined
|
|
6917
6918
|
assertParamExists('createReturn', 'id', id);
|
|
6919
|
+
// verify required parameter 'iOrderReturnPostRequest' is not null or undefined
|
|
6920
|
+
assertParamExists('createReturn', 'iOrderReturnPostRequest', iOrderReturnPostRequest);
|
|
6918
6921
|
const localVarPath = `/api/orders/{id}/return`
|
|
6919
6922
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6920
6923
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6926,9 +6929,11 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6926
6929
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6927
6930
|
const localVarHeaderParameter = {};
|
|
6928
6931
|
const localVarQueryParameter = {};
|
|
6932
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6929
6933
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6930
6934
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6931
6935
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6936
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderReturnPostRequest, localVarRequestOptions, configuration);
|
|
6932
6937
|
return {
|
|
6933
6938
|
url: toPathString(localVarUrlObj),
|
|
6934
6939
|
options: localVarRequestOptions,
|
|
@@ -6937,12 +6942,15 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6937
6942
|
/**
|
|
6938
6943
|
*
|
|
6939
6944
|
* @param {string} id
|
|
6945
|
+
* @param {IOrderReturnAdminPostRequest} iOrderReturnAdminPostRequest
|
|
6940
6946
|
* @param {*} [options] Override http request option.
|
|
6941
6947
|
* @throws {RequiredError}
|
|
6942
6948
|
*/
|
|
6943
|
-
createReturnAdmin: async (id, options = {}) => {
|
|
6949
|
+
createReturnAdmin: async (id, iOrderReturnAdminPostRequest, options = {}) => {
|
|
6944
6950
|
// verify required parameter 'id' is not null or undefined
|
|
6945
6951
|
assertParamExists('createReturnAdmin', 'id', id);
|
|
6952
|
+
// verify required parameter 'iOrderReturnAdminPostRequest' is not null or undefined
|
|
6953
|
+
assertParamExists('createReturnAdmin', 'iOrderReturnAdminPostRequest', iOrderReturnAdminPostRequest);
|
|
6946
6954
|
const localVarPath = `/api/orders/{id}/return-admin`
|
|
6947
6955
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6948
6956
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6954,9 +6962,11 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6954
6962
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6955
6963
|
const localVarHeaderParameter = {};
|
|
6956
6964
|
const localVarQueryParameter = {};
|
|
6965
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6957
6966
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6958
6967
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6959
6968
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6969
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderReturnAdminPostRequest, localVarRequestOptions, configuration);
|
|
6960
6970
|
return {
|
|
6961
6971
|
url: toPathString(localVarUrlObj),
|
|
6962
6972
|
options: localVarRequestOptions,
|
|
@@ -7131,12 +7141,15 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7131
7141
|
/**
|
|
7132
7142
|
*
|
|
7133
7143
|
* @param {string} id
|
|
7144
|
+
* @param {IOrderPatchRequest} iOrderPatchRequest
|
|
7134
7145
|
* @param {*} [options] Override http request option.
|
|
7135
7146
|
* @throws {RequiredError}
|
|
7136
7147
|
*/
|
|
7137
|
-
updateOrder: async (id, options = {}) => {
|
|
7148
|
+
updateOrder: async (id, iOrderPatchRequest, options = {}) => {
|
|
7138
7149
|
// verify required parameter 'id' is not null or undefined
|
|
7139
7150
|
assertParamExists('updateOrder', 'id', id);
|
|
7151
|
+
// verify required parameter 'iOrderPatchRequest' is not null or undefined
|
|
7152
|
+
assertParamExists('updateOrder', 'iOrderPatchRequest', iOrderPatchRequest);
|
|
7140
7153
|
const localVarPath = `/api/orders/{id}`
|
|
7141
7154
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7142
7155
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -7145,12 +7158,14 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7145
7158
|
if (configuration) {
|
|
7146
7159
|
baseOptions = configuration.baseOptions;
|
|
7147
7160
|
}
|
|
7148
|
-
const localVarRequestOptions = { method: '
|
|
7161
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7149
7162
|
const localVarHeaderParameter = {};
|
|
7150
7163
|
const localVarQueryParameter = {};
|
|
7164
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7151
7165
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7152
7166
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7153
7167
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7168
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderPatchRequest, localVarRequestOptions, configuration);
|
|
7154
7169
|
return {
|
|
7155
7170
|
url: toPathString(localVarUrlObj),
|
|
7156
7171
|
options: localVarRequestOptions,
|
|
@@ -7160,14 +7175,17 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7160
7175
|
*
|
|
7161
7176
|
* @param {string} orderId
|
|
7162
7177
|
* @param {string} returnId
|
|
7178
|
+
* @param {IOrderReturnUpdatePostRequest} iOrderReturnUpdatePostRequest
|
|
7163
7179
|
* @param {*} [options] Override http request option.
|
|
7164
7180
|
* @throws {RequiredError}
|
|
7165
7181
|
*/
|
|
7166
|
-
updateReturn: async (orderId, returnId, options = {}) => {
|
|
7182
|
+
updateReturn: async (orderId, returnId, iOrderReturnUpdatePostRequest, options = {}) => {
|
|
7167
7183
|
// verify required parameter 'orderId' is not null or undefined
|
|
7168
7184
|
assertParamExists('updateReturn', 'orderId', orderId);
|
|
7169
7185
|
// verify required parameter 'returnId' is not null or undefined
|
|
7170
7186
|
assertParamExists('updateReturn', 'returnId', returnId);
|
|
7187
|
+
// verify required parameter 'iOrderReturnUpdatePostRequest' is not null or undefined
|
|
7188
|
+
assertParamExists('updateReturn', 'iOrderReturnUpdatePostRequest', iOrderReturnUpdatePostRequest);
|
|
7171
7189
|
const localVarPath = `/api/orders/{orderId}/return-update/{returnId}`
|
|
7172
7190
|
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
7173
7191
|
.replace(`{${"returnId"}}`, encodeURIComponent(String(returnId)));
|
|
@@ -7177,12 +7195,14 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7177
7195
|
if (configuration) {
|
|
7178
7196
|
baseOptions = configuration.baseOptions;
|
|
7179
7197
|
}
|
|
7180
|
-
const localVarRequestOptions = { method: '
|
|
7198
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7181
7199
|
const localVarHeaderParameter = {};
|
|
7182
7200
|
const localVarQueryParameter = {};
|
|
7201
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7183
7202
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7184
7203
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7185
7204
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7205
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderReturnUpdatePostRequest, localVarRequestOptions, configuration);
|
|
7186
7206
|
return {
|
|
7187
7207
|
url: toPathString(localVarUrlObj),
|
|
7188
7208
|
options: localVarRequestOptions,
|
|
@@ -7212,11 +7232,12 @@ export const OrderApiFp = function (configuration) {
|
|
|
7212
7232
|
/**
|
|
7213
7233
|
*
|
|
7214
7234
|
* @param {string} id
|
|
7235
|
+
* @param {IOrderReturnPostRequest} iOrderReturnPostRequest
|
|
7215
7236
|
* @param {*} [options] Override http request option.
|
|
7216
7237
|
* @throws {RequiredError}
|
|
7217
7238
|
*/
|
|
7218
|
-
async createReturn(id, options) {
|
|
7219
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturn(id, options);
|
|
7239
|
+
async createReturn(id, iOrderReturnPostRequest, options) {
|
|
7240
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturn(id, iOrderReturnPostRequest, options);
|
|
7220
7241
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7221
7242
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReturn']?.[localVarOperationServerIndex]?.url;
|
|
7222
7243
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7224,11 +7245,12 @@ export const OrderApiFp = function (configuration) {
|
|
|
7224
7245
|
/**
|
|
7225
7246
|
*
|
|
7226
7247
|
* @param {string} id
|
|
7248
|
+
* @param {IOrderReturnAdminPostRequest} iOrderReturnAdminPostRequest
|
|
7227
7249
|
* @param {*} [options] Override http request option.
|
|
7228
7250
|
* @throws {RequiredError}
|
|
7229
7251
|
*/
|
|
7230
|
-
async createReturnAdmin(id, options) {
|
|
7231
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturnAdmin(id, options);
|
|
7252
|
+
async createReturnAdmin(id, iOrderReturnAdminPostRequest, options) {
|
|
7253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturnAdmin(id, iOrderReturnAdminPostRequest, options);
|
|
7232
7254
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7233
7255
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReturnAdmin']?.[localVarOperationServerIndex]?.url;
|
|
7234
7256
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7290,11 +7312,12 @@ export const OrderApiFp = function (configuration) {
|
|
|
7290
7312
|
/**
|
|
7291
7313
|
*
|
|
7292
7314
|
* @param {string} id
|
|
7315
|
+
* @param {IOrderPatchRequest} iOrderPatchRequest
|
|
7293
7316
|
* @param {*} [options] Override http request option.
|
|
7294
7317
|
* @throws {RequiredError}
|
|
7295
7318
|
*/
|
|
7296
|
-
async updateOrder(id, options) {
|
|
7297
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrder(id, options);
|
|
7319
|
+
async updateOrder(id, iOrderPatchRequest, options) {
|
|
7320
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrder(id, iOrderPatchRequest, options);
|
|
7298
7321
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7299
7322
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateOrder']?.[localVarOperationServerIndex]?.url;
|
|
7300
7323
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7303,11 +7326,12 @@ export const OrderApiFp = function (configuration) {
|
|
|
7303
7326
|
*
|
|
7304
7327
|
* @param {string} orderId
|
|
7305
7328
|
* @param {string} returnId
|
|
7329
|
+
* @param {IOrderReturnUpdatePostRequest} iOrderReturnUpdatePostRequest
|
|
7306
7330
|
* @param {*} [options] Override http request option.
|
|
7307
7331
|
* @throws {RequiredError}
|
|
7308
7332
|
*/
|
|
7309
|
-
async updateReturn(orderId, returnId, options) {
|
|
7310
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReturn(orderId, returnId, options);
|
|
7333
|
+
async updateReturn(orderId, returnId, iOrderReturnUpdatePostRequest, options) {
|
|
7334
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReturn(orderId, returnId, iOrderReturnUpdatePostRequest, options);
|
|
7311
7335
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7312
7336
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateReturn']?.[localVarOperationServerIndex]?.url;
|
|
7313
7337
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7337,7 +7361,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7337
7361
|
* @throws {RequiredError}
|
|
7338
7362
|
*/
|
|
7339
7363
|
createReturn(requestParameters, options) {
|
|
7340
|
-
return localVarFp.createReturn(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7364
|
+
return localVarFp.createReturn(requestParameters.id, requestParameters.iOrderReturnPostRequest, options).then((request) => request(axios, basePath));
|
|
7341
7365
|
},
|
|
7342
7366
|
/**
|
|
7343
7367
|
*
|
|
@@ -7346,7 +7370,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7346
7370
|
* @throws {RequiredError}
|
|
7347
7371
|
*/
|
|
7348
7372
|
createReturnAdmin(requestParameters, options) {
|
|
7349
|
-
return localVarFp.createReturnAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7373
|
+
return localVarFp.createReturnAdmin(requestParameters.id, requestParameters.iOrderReturnAdminPostRequest, options).then((request) => request(axios, basePath));
|
|
7350
7374
|
},
|
|
7351
7375
|
/**
|
|
7352
7376
|
*
|
|
@@ -7382,7 +7406,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7382
7406
|
* @throws {RequiredError}
|
|
7383
7407
|
*/
|
|
7384
7408
|
updateOrder(requestParameters, options) {
|
|
7385
|
-
return localVarFp.updateOrder(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7409
|
+
return localVarFp.updateOrder(requestParameters.id, requestParameters.iOrderPatchRequest, options).then((request) => request(axios, basePath));
|
|
7386
7410
|
},
|
|
7387
7411
|
/**
|
|
7388
7412
|
*
|
|
@@ -7391,7 +7415,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7391
7415
|
* @throws {RequiredError}
|
|
7392
7416
|
*/
|
|
7393
7417
|
updateReturn(requestParameters, options) {
|
|
7394
|
-
return localVarFp.updateReturn(requestParameters.orderId, requestParameters.returnId, options).then((request) => request(axios, basePath));
|
|
7418
|
+
return localVarFp.updateReturn(requestParameters.orderId, requestParameters.returnId, requestParameters.iOrderReturnUpdatePostRequest, options).then((request) => request(axios, basePath));
|
|
7395
7419
|
},
|
|
7396
7420
|
};
|
|
7397
7421
|
};
|
|
@@ -7420,7 +7444,7 @@ export class OrderApi extends BaseAPI {
|
|
|
7420
7444
|
* @memberof OrderApi
|
|
7421
7445
|
*/
|
|
7422
7446
|
createReturn(requestParameters, options) {
|
|
7423
|
-
return OrderApiFp(this.configuration).createReturn(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7447
|
+
return OrderApiFp(this.configuration).createReturn(requestParameters.id, requestParameters.iOrderReturnPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7424
7448
|
}
|
|
7425
7449
|
/**
|
|
7426
7450
|
*
|
|
@@ -7430,7 +7454,7 @@ export class OrderApi extends BaseAPI {
|
|
|
7430
7454
|
* @memberof OrderApi
|
|
7431
7455
|
*/
|
|
7432
7456
|
createReturnAdmin(requestParameters, options) {
|
|
7433
|
-
return OrderApiFp(this.configuration).createReturnAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7457
|
+
return OrderApiFp(this.configuration).createReturnAdmin(requestParameters.id, requestParameters.iOrderReturnAdminPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7434
7458
|
}
|
|
7435
7459
|
/**
|
|
7436
7460
|
*
|
|
@@ -7470,7 +7494,7 @@ export class OrderApi extends BaseAPI {
|
|
|
7470
7494
|
* @memberof OrderApi
|
|
7471
7495
|
*/
|
|
7472
7496
|
updateOrder(requestParameters, options) {
|
|
7473
|
-
return OrderApiFp(this.configuration).updateOrder(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7497
|
+
return OrderApiFp(this.configuration).updateOrder(requestParameters.id, requestParameters.iOrderPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7474
7498
|
}
|
|
7475
7499
|
/**
|
|
7476
7500
|
*
|
|
@@ -7480,7 +7504,7 @@ export class OrderApi extends BaseAPI {
|
|
|
7480
7504
|
* @memberof OrderApi
|
|
7481
7505
|
*/
|
|
7482
7506
|
updateReturn(requestParameters, options) {
|
|
7483
|
-
return OrderApiFp(this.configuration).updateReturn(requestParameters.orderId, requestParameters.returnId, options).then((request) => request(this.axios, this.basePath));
|
|
7507
|
+
return OrderApiFp(this.configuration).updateReturn(requestParameters.orderId, requestParameters.returnId, requestParameters.iOrderReturnUpdatePostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7484
7508
|
}
|
|
7485
7509
|
}
|
|
7486
7510
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.55",
|
|
4
4
|
"description": "api-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0e17563a361f40b1396b5f31a806acf6f6380212"
|
|
41
41
|
}
|