@infisale-client/api 1.2.53 → 1.2.54
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 +316 -3
- package/dist/api/api.js +267 -7
- package/dist/api/api.mjs +264 -4
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -5274,6 +5274,30 @@ export interface IOrderResponse {
|
|
|
5274
5274
|
* @memberof IOrderResponse
|
|
5275
5275
|
*/
|
|
5276
5276
|
'note'?: string;
|
|
5277
|
+
/**
|
|
5278
|
+
*
|
|
5279
|
+
* @type {string}
|
|
5280
|
+
* @memberof IOrderResponse
|
|
5281
|
+
*/
|
|
5282
|
+
'cargoCode'?: string;
|
|
5283
|
+
/**
|
|
5284
|
+
*
|
|
5285
|
+
* @type {string}
|
|
5286
|
+
* @memberof IOrderResponse
|
|
5287
|
+
*/
|
|
5288
|
+
'cargoUrl'?: string;
|
|
5289
|
+
/**
|
|
5290
|
+
*
|
|
5291
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>}
|
|
5292
|
+
* @memberof IOrderResponse
|
|
5293
|
+
*/
|
|
5294
|
+
'returns': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>;
|
|
5295
|
+
/**
|
|
5296
|
+
*
|
|
5297
|
+
* @type {OrderPaymentStatusEnum}
|
|
5298
|
+
* @memberof IOrderResponse
|
|
5299
|
+
*/
|
|
5300
|
+
'paymentStatus': OrderPaymentStatusEnum;
|
|
5277
5301
|
}
|
|
5278
5302
|
/**
|
|
5279
5303
|
*
|
|
@@ -7892,14 +7916,35 @@ export type OrderEnum = typeof OrderEnum[keyof typeof OrderEnum];
|
|
|
7892
7916
|
* @export
|
|
7893
7917
|
* @enum {string}
|
|
7894
7918
|
*/
|
|
7895
|
-
export declare const
|
|
7919
|
+
export declare const OrderPaymentStatusEnum: {
|
|
7896
7920
|
readonly WAITING_PAYMENT: "waiting_payment";
|
|
7897
7921
|
readonly PAID: "paid";
|
|
7898
|
-
readonly
|
|
7922
|
+
readonly FAILED: "failed";
|
|
7923
|
+
};
|
|
7924
|
+
export type OrderPaymentStatusEnum = typeof OrderPaymentStatusEnum[keyof typeof OrderPaymentStatusEnum];
|
|
7925
|
+
/**
|
|
7926
|
+
*
|
|
7927
|
+
* @export
|
|
7928
|
+
* @enum {string}
|
|
7929
|
+
*/
|
|
7930
|
+
export declare const OrderReturnStatusEnum: {
|
|
7931
|
+
readonly WAITING_APPROVAL: "waiting_approval";
|
|
7932
|
+
readonly REJECTED: "rejected";
|
|
7933
|
+
readonly WAITING_RETURN: "waiting_return";
|
|
7934
|
+
readonly RETURNED: "returned";
|
|
7935
|
+
};
|
|
7936
|
+
export type OrderReturnStatusEnum = typeof OrderReturnStatusEnum[keyof typeof OrderReturnStatusEnum];
|
|
7937
|
+
/**
|
|
7938
|
+
*
|
|
7939
|
+
* @export
|
|
7940
|
+
* @enum {string}
|
|
7941
|
+
*/
|
|
7942
|
+
export declare const OrderStatusEnum: {
|
|
7943
|
+
readonly CANCELLED: "cancelled";
|
|
7944
|
+
readonly NOT_SHIPPED: "not_shipped";
|
|
7899
7945
|
readonly READY_TO_SHIP: "ready_to_ship";
|
|
7900
7946
|
readonly SHIPPED: "shipped";
|
|
7901
7947
|
readonly COMPLETED: "completed";
|
|
7902
|
-
readonly FAILED: "failed";
|
|
7903
7948
|
};
|
|
7904
7949
|
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
7905
7950
|
/**
|
|
@@ -8826,6 +8871,30 @@ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframe {
|
|
|
8826
8871
|
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8827
8872
|
*/
|
|
8828
8873
|
'note'?: string;
|
|
8874
|
+
/**
|
|
8875
|
+
*
|
|
8876
|
+
* @type {string}
|
|
8877
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8878
|
+
*/
|
|
8879
|
+
'cargoCode'?: string;
|
|
8880
|
+
/**
|
|
8881
|
+
*
|
|
8882
|
+
* @type {string}
|
|
8883
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8884
|
+
*/
|
|
8885
|
+
'cargoUrl'?: string;
|
|
8886
|
+
/**
|
|
8887
|
+
*
|
|
8888
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>}
|
|
8889
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8890
|
+
*/
|
|
8891
|
+
'returns': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>;
|
|
8892
|
+
/**
|
|
8893
|
+
*
|
|
8894
|
+
* @type {OrderPaymentStatusEnum}
|
|
8895
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
8896
|
+
*/
|
|
8897
|
+
'paymentStatus': OrderPaymentStatusEnum;
|
|
8829
8898
|
}
|
|
8830
8899
|
/**
|
|
8831
8900
|
*
|
|
@@ -8893,6 +8962,74 @@ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner {
|
|
|
8893
8962
|
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
8894
8963
|
*/
|
|
8895
8964
|
'productId': string;
|
|
8965
|
+
/**
|
|
8966
|
+
*
|
|
8967
|
+
* @type {string}
|
|
8968
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
|
|
8969
|
+
*/
|
|
8970
|
+
'_id': string;
|
|
8971
|
+
}
|
|
8972
|
+
/**
|
|
8973
|
+
*
|
|
8974
|
+
* @export
|
|
8975
|
+
* @interface PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
8976
|
+
*/
|
|
8977
|
+
export interface PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner {
|
|
8978
|
+
/**
|
|
8979
|
+
*
|
|
8980
|
+
* @type {string}
|
|
8981
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
8982
|
+
*/
|
|
8983
|
+
'returnedAt'?: string;
|
|
8984
|
+
/**
|
|
8985
|
+
*
|
|
8986
|
+
* @type {string}
|
|
8987
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
8988
|
+
*/
|
|
8989
|
+
'createdAt': string;
|
|
8990
|
+
/**
|
|
8991
|
+
*
|
|
8992
|
+
* @type {OrderReturnStatusEnum}
|
|
8993
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
8994
|
+
*/
|
|
8995
|
+
'status': OrderReturnStatusEnum;
|
|
8996
|
+
/**
|
|
8997
|
+
*
|
|
8998
|
+
* @type {string}
|
|
8999
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
9000
|
+
*/
|
|
9001
|
+
'cargoUrl'?: string;
|
|
9002
|
+
/**
|
|
9003
|
+
*
|
|
9004
|
+
* @type {string}
|
|
9005
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
9006
|
+
*/
|
|
9007
|
+
'cargoCode'?: string;
|
|
9008
|
+
/**
|
|
9009
|
+
*
|
|
9010
|
+
* @type {number}
|
|
9011
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
9012
|
+
*/
|
|
9013
|
+
'price': number;
|
|
9014
|
+
/**
|
|
9015
|
+
*
|
|
9016
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner>}
|
|
9017
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
9018
|
+
*/
|
|
9019
|
+
'products': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner>;
|
|
9020
|
+
/**
|
|
9021
|
+
*
|
|
9022
|
+
* @type {string}
|
|
9023
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
|
|
9024
|
+
*/
|
|
9025
|
+
'_id': string;
|
|
9026
|
+
}
|
|
9027
|
+
/**
|
|
9028
|
+
*
|
|
9029
|
+
* @export
|
|
9030
|
+
* @interface PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner
|
|
9031
|
+
*/
|
|
9032
|
+
export interface PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner {
|
|
8896
9033
|
}
|
|
8897
9034
|
/**
|
|
8898
9035
|
* From T, pick a set of properties whose keys are in the union K
|
|
@@ -14998,6 +15135,20 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
14998
15135
|
* @throws {RequiredError}
|
|
14999
15136
|
*/
|
|
15000
15137
|
createOrder: (iOrderPostRequest: IOrderPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15138
|
+
/**
|
|
15139
|
+
*
|
|
15140
|
+
* @param {string} id
|
|
15141
|
+
* @param {*} [options] Override http request option.
|
|
15142
|
+
* @throws {RequiredError}
|
|
15143
|
+
*/
|
|
15144
|
+
createReturn: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15145
|
+
/**
|
|
15146
|
+
*
|
|
15147
|
+
* @param {string} id
|
|
15148
|
+
* @param {*} [options] Override http request option.
|
|
15149
|
+
* @throws {RequiredError}
|
|
15150
|
+
*/
|
|
15151
|
+
createReturnAdmin: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15001
15152
|
/**
|
|
15002
15153
|
*
|
|
15003
15154
|
* @param {number} [page]
|
|
@@ -15037,6 +15188,21 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15037
15188
|
* @throws {RequiredError}
|
|
15038
15189
|
*/
|
|
15039
15190
|
getOrders: (company: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetOrdersDateFieldEnum, order?: OrderEnum, sort?: string, user?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15191
|
+
/**
|
|
15192
|
+
*
|
|
15193
|
+
* @param {string} id
|
|
15194
|
+
* @param {*} [options] Override http request option.
|
|
15195
|
+
* @throws {RequiredError}
|
|
15196
|
+
*/
|
|
15197
|
+
updateOrder: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15198
|
+
/**
|
|
15199
|
+
*
|
|
15200
|
+
* @param {string} orderId
|
|
15201
|
+
* @param {string} returnId
|
|
15202
|
+
* @param {*} [options] Override http request option.
|
|
15203
|
+
* @throws {RequiredError}
|
|
15204
|
+
*/
|
|
15205
|
+
updateReturn: (orderId: string, returnId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15040
15206
|
};
|
|
15041
15207
|
/**
|
|
15042
15208
|
* OrderApi - functional programming interface
|
|
@@ -15050,6 +15216,20 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
15050
15216
|
* @throws {RequiredError}
|
|
15051
15217
|
*/
|
|
15052
15218
|
createOrder(iOrderPostRequest: IOrderPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderCreateResponse>>;
|
|
15219
|
+
/**
|
|
15220
|
+
*
|
|
15221
|
+
* @param {string} id
|
|
15222
|
+
* @param {*} [options] Override http request option.
|
|
15223
|
+
* @throws {RequiredError}
|
|
15224
|
+
*/
|
|
15225
|
+
createReturn(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15226
|
+
/**
|
|
15227
|
+
*
|
|
15228
|
+
* @param {string} id
|
|
15229
|
+
* @param {*} [options] Override http request option.
|
|
15230
|
+
* @throws {RequiredError}
|
|
15231
|
+
*/
|
|
15232
|
+
createReturnAdmin(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15053
15233
|
/**
|
|
15054
15234
|
*
|
|
15055
15235
|
* @param {number} [page]
|
|
@@ -15089,6 +15269,21 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
15089
15269
|
* @throws {RequiredError}
|
|
15090
15270
|
*/
|
|
15091
15271
|
getOrders(company: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetOrdersDateFieldEnum, order?: OrderEnum, sort?: string, user?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrdersResponse>>;
|
|
15272
|
+
/**
|
|
15273
|
+
*
|
|
15274
|
+
* @param {string} id
|
|
15275
|
+
* @param {*} [options] Override http request option.
|
|
15276
|
+
* @throws {RequiredError}
|
|
15277
|
+
*/
|
|
15278
|
+
updateOrder(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15279
|
+
/**
|
|
15280
|
+
*
|
|
15281
|
+
* @param {string} orderId
|
|
15282
|
+
* @param {string} returnId
|
|
15283
|
+
* @param {*} [options] Override http request option.
|
|
15284
|
+
* @throws {RequiredError}
|
|
15285
|
+
*/
|
|
15286
|
+
updateReturn(orderId: string, returnId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
15092
15287
|
};
|
|
15093
15288
|
/**
|
|
15094
15289
|
* OrderApi - factory interface
|
|
@@ -15102,6 +15297,20 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
15102
15297
|
* @throws {RequiredError}
|
|
15103
15298
|
*/
|
|
15104
15299
|
createOrder(requestParameters: OrderApiCreateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrderCreateResponse>;
|
|
15300
|
+
/**
|
|
15301
|
+
*
|
|
15302
|
+
* @param {OrderApiCreateReturnRequest} requestParameters Request parameters.
|
|
15303
|
+
* @param {*} [options] Override http request option.
|
|
15304
|
+
* @throws {RequiredError}
|
|
15305
|
+
*/
|
|
15306
|
+
createReturn(requestParameters: OrderApiCreateReturnRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
15307
|
+
/**
|
|
15308
|
+
*
|
|
15309
|
+
* @param {OrderApiCreateReturnAdminRequest} requestParameters Request parameters.
|
|
15310
|
+
* @param {*} [options] Override http request option.
|
|
15311
|
+
* @throws {RequiredError}
|
|
15312
|
+
*/
|
|
15313
|
+
createReturnAdmin(requestParameters: OrderApiCreateReturnAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
15105
15314
|
/**
|
|
15106
15315
|
*
|
|
15107
15316
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -15123,6 +15332,20 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
15123
15332
|
* @throws {RequiredError}
|
|
15124
15333
|
*/
|
|
15125
15334
|
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrdersResponse>;
|
|
15335
|
+
/**
|
|
15336
|
+
*
|
|
15337
|
+
* @param {OrderApiUpdateOrderRequest} requestParameters Request parameters.
|
|
15338
|
+
* @param {*} [options] Override http request option.
|
|
15339
|
+
* @throws {RequiredError}
|
|
15340
|
+
*/
|
|
15341
|
+
updateOrder(requestParameters: OrderApiUpdateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
15342
|
+
/**
|
|
15343
|
+
*
|
|
15344
|
+
* @param {OrderApiUpdateReturnRequest} requestParameters Request parameters.
|
|
15345
|
+
* @param {*} [options] Override http request option.
|
|
15346
|
+
* @throws {RequiredError}
|
|
15347
|
+
*/
|
|
15348
|
+
updateReturn(requestParameters: OrderApiUpdateReturnRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
15126
15349
|
};
|
|
15127
15350
|
/**
|
|
15128
15351
|
* Request parameters for createOrder operation in OrderApi.
|
|
@@ -15137,6 +15360,32 @@ export interface OrderApiCreateOrderRequest {
|
|
|
15137
15360
|
*/
|
|
15138
15361
|
readonly iOrderPostRequest: IOrderPostRequest;
|
|
15139
15362
|
}
|
|
15363
|
+
/**
|
|
15364
|
+
* Request parameters for createReturn operation in OrderApi.
|
|
15365
|
+
* @export
|
|
15366
|
+
* @interface OrderApiCreateReturnRequest
|
|
15367
|
+
*/
|
|
15368
|
+
export interface OrderApiCreateReturnRequest {
|
|
15369
|
+
/**
|
|
15370
|
+
*
|
|
15371
|
+
* @type {string}
|
|
15372
|
+
* @memberof OrderApiCreateReturn
|
|
15373
|
+
*/
|
|
15374
|
+
readonly id: string;
|
|
15375
|
+
}
|
|
15376
|
+
/**
|
|
15377
|
+
* Request parameters for createReturnAdmin operation in OrderApi.
|
|
15378
|
+
* @export
|
|
15379
|
+
* @interface OrderApiCreateReturnAdminRequest
|
|
15380
|
+
*/
|
|
15381
|
+
export interface OrderApiCreateReturnAdminRequest {
|
|
15382
|
+
/**
|
|
15383
|
+
*
|
|
15384
|
+
* @type {string}
|
|
15385
|
+
* @memberof OrderApiCreateReturnAdmin
|
|
15386
|
+
*/
|
|
15387
|
+
readonly id: string;
|
|
15388
|
+
}
|
|
15140
15389
|
/**
|
|
15141
15390
|
* Request parameters for getMyOrders operation in OrderApi.
|
|
15142
15391
|
* @export
|
|
@@ -15284,6 +15533,38 @@ export interface OrderApiGetOrdersRequest {
|
|
|
15284
15533
|
*/
|
|
15285
15534
|
readonly status?: OrderStatusEnum;
|
|
15286
15535
|
}
|
|
15536
|
+
/**
|
|
15537
|
+
* Request parameters for updateOrder operation in OrderApi.
|
|
15538
|
+
* @export
|
|
15539
|
+
* @interface OrderApiUpdateOrderRequest
|
|
15540
|
+
*/
|
|
15541
|
+
export interface OrderApiUpdateOrderRequest {
|
|
15542
|
+
/**
|
|
15543
|
+
*
|
|
15544
|
+
* @type {string}
|
|
15545
|
+
* @memberof OrderApiUpdateOrder
|
|
15546
|
+
*/
|
|
15547
|
+
readonly id: string;
|
|
15548
|
+
}
|
|
15549
|
+
/**
|
|
15550
|
+
* Request parameters for updateReturn operation in OrderApi.
|
|
15551
|
+
* @export
|
|
15552
|
+
* @interface OrderApiUpdateReturnRequest
|
|
15553
|
+
*/
|
|
15554
|
+
export interface OrderApiUpdateReturnRequest {
|
|
15555
|
+
/**
|
|
15556
|
+
*
|
|
15557
|
+
* @type {string}
|
|
15558
|
+
* @memberof OrderApiUpdateReturn
|
|
15559
|
+
*/
|
|
15560
|
+
readonly orderId: string;
|
|
15561
|
+
/**
|
|
15562
|
+
*
|
|
15563
|
+
* @type {string}
|
|
15564
|
+
* @memberof OrderApiUpdateReturn
|
|
15565
|
+
*/
|
|
15566
|
+
readonly returnId: string;
|
|
15567
|
+
}
|
|
15287
15568
|
/**
|
|
15288
15569
|
* OrderApi - object-oriented interface
|
|
15289
15570
|
* @export
|
|
@@ -15299,6 +15580,22 @@ export declare class OrderApi extends BaseAPI {
|
|
|
15299
15580
|
* @memberof OrderApi
|
|
15300
15581
|
*/
|
|
15301
15582
|
createOrder(requestParameters: OrderApiCreateOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrderCreateResponse, any>>;
|
|
15583
|
+
/**
|
|
15584
|
+
*
|
|
15585
|
+
* @param {OrderApiCreateReturnRequest} requestParameters Request parameters.
|
|
15586
|
+
* @param {*} [options] Override http request option.
|
|
15587
|
+
* @throws {RequiredError}
|
|
15588
|
+
* @memberof OrderApi
|
|
15589
|
+
*/
|
|
15590
|
+
createReturn(requestParameters: OrderApiCreateReturnRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
15591
|
+
/**
|
|
15592
|
+
*
|
|
15593
|
+
* @param {OrderApiCreateReturnAdminRequest} requestParameters Request parameters.
|
|
15594
|
+
* @param {*} [options] Override http request option.
|
|
15595
|
+
* @throws {RequiredError}
|
|
15596
|
+
* @memberof OrderApi
|
|
15597
|
+
*/
|
|
15598
|
+
createReturnAdmin(requestParameters: OrderApiCreateReturnAdminRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
15302
15599
|
/**
|
|
15303
15600
|
*
|
|
15304
15601
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -15323,6 +15620,22 @@ export declare class OrderApi extends BaseAPI {
|
|
|
15323
15620
|
* @memberof OrderApi
|
|
15324
15621
|
*/
|
|
15325
15622
|
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrdersResponse, any>>;
|
|
15623
|
+
/**
|
|
15624
|
+
*
|
|
15625
|
+
* @param {OrderApiUpdateOrderRequest} requestParameters Request parameters.
|
|
15626
|
+
* @param {*} [options] Override http request option.
|
|
15627
|
+
* @throws {RequiredError}
|
|
15628
|
+
* @memberof OrderApi
|
|
15629
|
+
*/
|
|
15630
|
+
updateOrder(requestParameters: OrderApiUpdateOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
15631
|
+
/**
|
|
15632
|
+
*
|
|
15633
|
+
* @param {OrderApiUpdateReturnRequest} requestParameters Request parameters.
|
|
15634
|
+
* @param {*} [options] Override http request option.
|
|
15635
|
+
* @throws {RequiredError}
|
|
15636
|
+
* @memberof OrderApi
|
|
15637
|
+
*/
|
|
15638
|
+
updateReturn(requestParameters: OrderApiUpdateReturnRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
15326
15639
|
}
|
|
15327
15640
|
/**
|
|
15328
15641
|
* @export
|
package/dist/api/api.js
CHANGED
|
@@ -16,9 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPlansDateFieldEnum = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.GetOperationsDateFieldEnum = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = void 0;
|
|
19
|
+
exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ContentPositionYEnum = exports.ContentPositionXEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = exports.ButtonVariantEnum = void 0;
|
|
20
|
+
exports.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.GetCompanyCustomersDateFieldEnum = exports.GetCompaniesDateFieldEnum = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.GetCategoriesDateFieldEnum = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.GetBrandsDateFieldEnum = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ProductDetailImageZoomTypeEnum = void 0;
|
|
21
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPlansDateFieldEnum = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.GetOperationsDateFieldEnum = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = void 0;
|
|
22
22
|
const axios_1 = __importDefault(require("axios"));
|
|
23
23
|
// Some imports not used depending on template conditions
|
|
24
24
|
// @ts-ignore
|
|
@@ -631,14 +631,33 @@ exports.OrderEnum = {
|
|
|
631
631
|
* @export
|
|
632
632
|
* @enum {string}
|
|
633
633
|
*/
|
|
634
|
-
exports.
|
|
634
|
+
exports.OrderPaymentStatusEnum = {
|
|
635
635
|
WAITING_PAYMENT: 'waiting_payment',
|
|
636
636
|
PAID: 'paid',
|
|
637
|
-
|
|
637
|
+
FAILED: 'failed'
|
|
638
|
+
};
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @export
|
|
642
|
+
* @enum {string}
|
|
643
|
+
*/
|
|
644
|
+
exports.OrderReturnStatusEnum = {
|
|
645
|
+
WAITING_APPROVAL: 'waiting_approval',
|
|
646
|
+
REJECTED: 'rejected',
|
|
647
|
+
WAITING_RETURN: 'waiting_return',
|
|
648
|
+
RETURNED: 'returned'
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @export
|
|
653
|
+
* @enum {string}
|
|
654
|
+
*/
|
|
655
|
+
exports.OrderStatusEnum = {
|
|
656
|
+
CANCELLED: 'cancelled',
|
|
657
|
+
NOT_SHIPPED: 'not_shipped',
|
|
638
658
|
READY_TO_SHIP: 'ready_to_ship',
|
|
639
659
|
SHIPPED: 'shipped',
|
|
640
|
-
COMPLETED: 'completed'
|
|
641
|
-
FAILED: 'failed'
|
|
660
|
+
COMPLETED: 'completed'
|
|
642
661
|
};
|
|
643
662
|
/**
|
|
644
663
|
*
|
|
@@ -6942,6 +6961,62 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6942
6961
|
options: localVarRequestOptions,
|
|
6943
6962
|
};
|
|
6944
6963
|
},
|
|
6964
|
+
/**
|
|
6965
|
+
*
|
|
6966
|
+
* @param {string} id
|
|
6967
|
+
* @param {*} [options] Override http request option.
|
|
6968
|
+
* @throws {RequiredError}
|
|
6969
|
+
*/
|
|
6970
|
+
createReturn: async (id, options = {}) => {
|
|
6971
|
+
// verify required parameter 'id' is not null or undefined
|
|
6972
|
+
(0, common_1.assertParamExists)('createReturn', 'id', id);
|
|
6973
|
+
const localVarPath = `/api/orders/{id}/return`
|
|
6974
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6975
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6976
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6977
|
+
let baseOptions;
|
|
6978
|
+
if (configuration) {
|
|
6979
|
+
baseOptions = configuration.baseOptions;
|
|
6980
|
+
}
|
|
6981
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6982
|
+
const localVarHeaderParameter = {};
|
|
6983
|
+
const localVarQueryParameter = {};
|
|
6984
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6985
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6986
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6987
|
+
return {
|
|
6988
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6989
|
+
options: localVarRequestOptions,
|
|
6990
|
+
};
|
|
6991
|
+
},
|
|
6992
|
+
/**
|
|
6993
|
+
*
|
|
6994
|
+
* @param {string} id
|
|
6995
|
+
* @param {*} [options] Override http request option.
|
|
6996
|
+
* @throws {RequiredError}
|
|
6997
|
+
*/
|
|
6998
|
+
createReturnAdmin: async (id, options = {}) => {
|
|
6999
|
+
// verify required parameter 'id' is not null or undefined
|
|
7000
|
+
(0, common_1.assertParamExists)('createReturnAdmin', 'id', id);
|
|
7001
|
+
const localVarPath = `/api/orders/{id}/return-admin`
|
|
7002
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7003
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7004
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7005
|
+
let baseOptions;
|
|
7006
|
+
if (configuration) {
|
|
7007
|
+
baseOptions = configuration.baseOptions;
|
|
7008
|
+
}
|
|
7009
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7010
|
+
const localVarHeaderParameter = {};
|
|
7011
|
+
const localVarQueryParameter = {};
|
|
7012
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7013
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7014
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7015
|
+
return {
|
|
7016
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7017
|
+
options: localVarRequestOptions,
|
|
7018
|
+
};
|
|
7019
|
+
},
|
|
6945
7020
|
/**
|
|
6946
7021
|
*
|
|
6947
7022
|
* @param {number} [page]
|
|
@@ -7108,6 +7183,66 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7108
7183
|
options: localVarRequestOptions,
|
|
7109
7184
|
};
|
|
7110
7185
|
},
|
|
7186
|
+
/**
|
|
7187
|
+
*
|
|
7188
|
+
* @param {string} id
|
|
7189
|
+
* @param {*} [options] Override http request option.
|
|
7190
|
+
* @throws {RequiredError}
|
|
7191
|
+
*/
|
|
7192
|
+
updateOrder: async (id, options = {}) => {
|
|
7193
|
+
// verify required parameter 'id' is not null or undefined
|
|
7194
|
+
(0, common_1.assertParamExists)('updateOrder', 'id', id);
|
|
7195
|
+
const localVarPath = `/api/orders/{id}`
|
|
7196
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7198
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7199
|
+
let baseOptions;
|
|
7200
|
+
if (configuration) {
|
|
7201
|
+
baseOptions = configuration.baseOptions;
|
|
7202
|
+
}
|
|
7203
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
7204
|
+
const localVarHeaderParameter = {};
|
|
7205
|
+
const localVarQueryParameter = {};
|
|
7206
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7208
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7209
|
+
return {
|
|
7210
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7211
|
+
options: localVarRequestOptions,
|
|
7212
|
+
};
|
|
7213
|
+
},
|
|
7214
|
+
/**
|
|
7215
|
+
*
|
|
7216
|
+
* @param {string} orderId
|
|
7217
|
+
* @param {string} returnId
|
|
7218
|
+
* @param {*} [options] Override http request option.
|
|
7219
|
+
* @throws {RequiredError}
|
|
7220
|
+
*/
|
|
7221
|
+
updateReturn: async (orderId, returnId, options = {}) => {
|
|
7222
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
7223
|
+
(0, common_1.assertParamExists)('updateReturn', 'orderId', orderId);
|
|
7224
|
+
// verify required parameter 'returnId' is not null or undefined
|
|
7225
|
+
(0, common_1.assertParamExists)('updateReturn', 'returnId', returnId);
|
|
7226
|
+
const localVarPath = `/api/orders/{orderId}/return-update/{returnId}`
|
|
7227
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
7228
|
+
.replace(`{${"returnId"}}`, encodeURIComponent(String(returnId)));
|
|
7229
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7230
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7231
|
+
let baseOptions;
|
|
7232
|
+
if (configuration) {
|
|
7233
|
+
baseOptions = configuration.baseOptions;
|
|
7234
|
+
}
|
|
7235
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
7236
|
+
const localVarHeaderParameter = {};
|
|
7237
|
+
const localVarQueryParameter = {};
|
|
7238
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7240
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7241
|
+
return {
|
|
7242
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7243
|
+
options: localVarRequestOptions,
|
|
7244
|
+
};
|
|
7245
|
+
},
|
|
7111
7246
|
};
|
|
7112
7247
|
};
|
|
7113
7248
|
exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
|
|
@@ -7130,6 +7265,30 @@ const OrderApiFp = function (configuration) {
|
|
|
7130
7265
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
7131
7266
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7132
7267
|
},
|
|
7268
|
+
/**
|
|
7269
|
+
*
|
|
7270
|
+
* @param {string} id
|
|
7271
|
+
* @param {*} [options] Override http request option.
|
|
7272
|
+
* @throws {RequiredError}
|
|
7273
|
+
*/
|
|
7274
|
+
async createReturn(id, options) {
|
|
7275
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturn(id, options);
|
|
7276
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7277
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createReturn']?.[localVarOperationServerIndex]?.url;
|
|
7278
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7279
|
+
},
|
|
7280
|
+
/**
|
|
7281
|
+
*
|
|
7282
|
+
* @param {string} id
|
|
7283
|
+
* @param {*} [options] Override http request option.
|
|
7284
|
+
* @throws {RequiredError}
|
|
7285
|
+
*/
|
|
7286
|
+
async createReturnAdmin(id, options) {
|
|
7287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturnAdmin(id, options);
|
|
7288
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7289
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createReturnAdmin']?.[localVarOperationServerIndex]?.url;
|
|
7290
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7291
|
+
},
|
|
7133
7292
|
/**
|
|
7134
7293
|
*
|
|
7135
7294
|
* @param {number} [page]
|
|
@@ -7184,6 +7343,31 @@ const OrderApiFp = function (configuration) {
|
|
|
7184
7343
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
7185
7344
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7186
7345
|
},
|
|
7346
|
+
/**
|
|
7347
|
+
*
|
|
7348
|
+
* @param {string} id
|
|
7349
|
+
* @param {*} [options] Override http request option.
|
|
7350
|
+
* @throws {RequiredError}
|
|
7351
|
+
*/
|
|
7352
|
+
async updateOrder(id, options) {
|
|
7353
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrder(id, options);
|
|
7354
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7355
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.updateOrder']?.[localVarOperationServerIndex]?.url;
|
|
7356
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7357
|
+
},
|
|
7358
|
+
/**
|
|
7359
|
+
*
|
|
7360
|
+
* @param {string} orderId
|
|
7361
|
+
* @param {string} returnId
|
|
7362
|
+
* @param {*} [options] Override http request option.
|
|
7363
|
+
* @throws {RequiredError}
|
|
7364
|
+
*/
|
|
7365
|
+
async updateReturn(orderId, returnId, options) {
|
|
7366
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReturn(orderId, returnId, options);
|
|
7367
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7368
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.updateReturn']?.[localVarOperationServerIndex]?.url;
|
|
7369
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7370
|
+
},
|
|
7187
7371
|
};
|
|
7188
7372
|
};
|
|
7189
7373
|
exports.OrderApiFp = OrderApiFp;
|
|
@@ -7203,6 +7387,24 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7203
7387
|
createOrder(requestParameters, options) {
|
|
7204
7388
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
7205
7389
|
},
|
|
7390
|
+
/**
|
|
7391
|
+
*
|
|
7392
|
+
* @param {OrderApiCreateReturnRequest} requestParameters Request parameters.
|
|
7393
|
+
* @param {*} [options] Override http request option.
|
|
7394
|
+
* @throws {RequiredError}
|
|
7395
|
+
*/
|
|
7396
|
+
createReturn(requestParameters, options) {
|
|
7397
|
+
return localVarFp.createReturn(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7398
|
+
},
|
|
7399
|
+
/**
|
|
7400
|
+
*
|
|
7401
|
+
* @param {OrderApiCreateReturnAdminRequest} requestParameters Request parameters.
|
|
7402
|
+
* @param {*} [options] Override http request option.
|
|
7403
|
+
* @throws {RequiredError}
|
|
7404
|
+
*/
|
|
7405
|
+
createReturnAdmin(requestParameters, options) {
|
|
7406
|
+
return localVarFp.createReturnAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7407
|
+
},
|
|
7206
7408
|
/**
|
|
7207
7409
|
*
|
|
7208
7410
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -7230,6 +7432,24 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7230
7432
|
getOrders(requestParameters, options) {
|
|
7231
7433
|
return localVarFp.getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
7232
7434
|
},
|
|
7435
|
+
/**
|
|
7436
|
+
*
|
|
7437
|
+
* @param {OrderApiUpdateOrderRequest} requestParameters Request parameters.
|
|
7438
|
+
* @param {*} [options] Override http request option.
|
|
7439
|
+
* @throws {RequiredError}
|
|
7440
|
+
*/
|
|
7441
|
+
updateOrder(requestParameters, options) {
|
|
7442
|
+
return localVarFp.updateOrder(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7443
|
+
},
|
|
7444
|
+
/**
|
|
7445
|
+
*
|
|
7446
|
+
* @param {OrderApiUpdateReturnRequest} requestParameters Request parameters.
|
|
7447
|
+
* @param {*} [options] Override http request option.
|
|
7448
|
+
* @throws {RequiredError}
|
|
7449
|
+
*/
|
|
7450
|
+
updateReturn(requestParameters, options) {
|
|
7451
|
+
return localVarFp.updateReturn(requestParameters.orderId, requestParameters.returnId, options).then((request) => request(axios, basePath));
|
|
7452
|
+
},
|
|
7233
7453
|
};
|
|
7234
7454
|
};
|
|
7235
7455
|
exports.OrderApiFactory = OrderApiFactory;
|
|
@@ -7250,6 +7470,26 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
7250
7470
|
createOrder(requestParameters, options) {
|
|
7251
7471
|
return (0, exports.OrderApiFp)(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7252
7472
|
}
|
|
7473
|
+
/**
|
|
7474
|
+
*
|
|
7475
|
+
* @param {OrderApiCreateReturnRequest} requestParameters Request parameters.
|
|
7476
|
+
* @param {*} [options] Override http request option.
|
|
7477
|
+
* @throws {RequiredError}
|
|
7478
|
+
* @memberof OrderApi
|
|
7479
|
+
*/
|
|
7480
|
+
createReturn(requestParameters, options) {
|
|
7481
|
+
return (0, exports.OrderApiFp)(this.configuration).createReturn(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7482
|
+
}
|
|
7483
|
+
/**
|
|
7484
|
+
*
|
|
7485
|
+
* @param {OrderApiCreateReturnAdminRequest} requestParameters Request parameters.
|
|
7486
|
+
* @param {*} [options] Override http request option.
|
|
7487
|
+
* @throws {RequiredError}
|
|
7488
|
+
* @memberof OrderApi
|
|
7489
|
+
*/
|
|
7490
|
+
createReturnAdmin(requestParameters, options) {
|
|
7491
|
+
return (0, exports.OrderApiFp)(this.configuration).createReturnAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7492
|
+
}
|
|
7253
7493
|
/**
|
|
7254
7494
|
*
|
|
7255
7495
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -7280,6 +7520,26 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
7280
7520
|
getOrders(requestParameters, options) {
|
|
7281
7521
|
return (0, exports.OrderApiFp)(this.configuration).getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
7282
7522
|
}
|
|
7523
|
+
/**
|
|
7524
|
+
*
|
|
7525
|
+
* @param {OrderApiUpdateOrderRequest} requestParameters Request parameters.
|
|
7526
|
+
* @param {*} [options] Override http request option.
|
|
7527
|
+
* @throws {RequiredError}
|
|
7528
|
+
* @memberof OrderApi
|
|
7529
|
+
*/
|
|
7530
|
+
updateOrder(requestParameters, options) {
|
|
7531
|
+
return (0, exports.OrderApiFp)(this.configuration).updateOrder(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7532
|
+
}
|
|
7533
|
+
/**
|
|
7534
|
+
*
|
|
7535
|
+
* @param {OrderApiUpdateReturnRequest} requestParameters Request parameters.
|
|
7536
|
+
* @param {*} [options] Override http request option.
|
|
7537
|
+
* @throws {RequiredError}
|
|
7538
|
+
* @memberof OrderApi
|
|
7539
|
+
*/
|
|
7540
|
+
updateReturn(requestParameters, options) {
|
|
7541
|
+
return (0, exports.OrderApiFp)(this.configuration).updateReturn(requestParameters.orderId, requestParameters.returnId, options).then((request) => request(this.axios, this.basePath));
|
|
7542
|
+
}
|
|
7283
7543
|
}
|
|
7284
7544
|
exports.OrderApi = OrderApi;
|
|
7285
7545
|
/**
|
package/dist/api/api.mjs
CHANGED
|
@@ -620,14 +620,33 @@ export const OrderEnum = {
|
|
|
620
620
|
* @export
|
|
621
621
|
* @enum {string}
|
|
622
622
|
*/
|
|
623
|
-
export const
|
|
623
|
+
export const OrderPaymentStatusEnum = {
|
|
624
624
|
WAITING_PAYMENT: 'waiting_payment',
|
|
625
625
|
PAID: 'paid',
|
|
626
|
-
|
|
626
|
+
FAILED: 'failed'
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
* @export
|
|
631
|
+
* @enum {string}
|
|
632
|
+
*/
|
|
633
|
+
export const OrderReturnStatusEnum = {
|
|
634
|
+
WAITING_APPROVAL: 'waiting_approval',
|
|
635
|
+
REJECTED: 'rejected',
|
|
636
|
+
WAITING_RETURN: 'waiting_return',
|
|
637
|
+
RETURNED: 'returned'
|
|
638
|
+
};
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @export
|
|
642
|
+
* @enum {string}
|
|
643
|
+
*/
|
|
644
|
+
export const OrderStatusEnum = {
|
|
645
|
+
CANCELLED: 'cancelled',
|
|
646
|
+
NOT_SHIPPED: 'not_shipped',
|
|
627
647
|
READY_TO_SHIP: 'ready_to_ship',
|
|
628
648
|
SHIPPED: 'shipped',
|
|
629
|
-
COMPLETED: 'completed'
|
|
630
|
-
FAILED: 'failed'
|
|
649
|
+
COMPLETED: 'completed'
|
|
631
650
|
};
|
|
632
651
|
/**
|
|
633
652
|
*
|
|
@@ -6887,6 +6906,62 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6887
6906
|
options: localVarRequestOptions,
|
|
6888
6907
|
};
|
|
6889
6908
|
},
|
|
6909
|
+
/**
|
|
6910
|
+
*
|
|
6911
|
+
* @param {string} id
|
|
6912
|
+
* @param {*} [options] Override http request option.
|
|
6913
|
+
* @throws {RequiredError}
|
|
6914
|
+
*/
|
|
6915
|
+
createReturn: async (id, options = {}) => {
|
|
6916
|
+
// verify required parameter 'id' is not null or undefined
|
|
6917
|
+
assertParamExists('createReturn', 'id', id);
|
|
6918
|
+
const localVarPath = `/api/orders/{id}/return`
|
|
6919
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6920
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6921
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6922
|
+
let baseOptions;
|
|
6923
|
+
if (configuration) {
|
|
6924
|
+
baseOptions = configuration.baseOptions;
|
|
6925
|
+
}
|
|
6926
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6927
|
+
const localVarHeaderParameter = {};
|
|
6928
|
+
const localVarQueryParameter = {};
|
|
6929
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6930
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6931
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6932
|
+
return {
|
|
6933
|
+
url: toPathString(localVarUrlObj),
|
|
6934
|
+
options: localVarRequestOptions,
|
|
6935
|
+
};
|
|
6936
|
+
},
|
|
6937
|
+
/**
|
|
6938
|
+
*
|
|
6939
|
+
* @param {string} id
|
|
6940
|
+
* @param {*} [options] Override http request option.
|
|
6941
|
+
* @throws {RequiredError}
|
|
6942
|
+
*/
|
|
6943
|
+
createReturnAdmin: async (id, options = {}) => {
|
|
6944
|
+
// verify required parameter 'id' is not null or undefined
|
|
6945
|
+
assertParamExists('createReturnAdmin', 'id', id);
|
|
6946
|
+
const localVarPath = `/api/orders/{id}/return-admin`
|
|
6947
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6948
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6949
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6950
|
+
let baseOptions;
|
|
6951
|
+
if (configuration) {
|
|
6952
|
+
baseOptions = configuration.baseOptions;
|
|
6953
|
+
}
|
|
6954
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6955
|
+
const localVarHeaderParameter = {};
|
|
6956
|
+
const localVarQueryParameter = {};
|
|
6957
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6958
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6959
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6960
|
+
return {
|
|
6961
|
+
url: toPathString(localVarUrlObj),
|
|
6962
|
+
options: localVarRequestOptions,
|
|
6963
|
+
};
|
|
6964
|
+
},
|
|
6890
6965
|
/**
|
|
6891
6966
|
*
|
|
6892
6967
|
* @param {number} [page]
|
|
@@ -7053,6 +7128,66 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7053
7128
|
options: localVarRequestOptions,
|
|
7054
7129
|
};
|
|
7055
7130
|
},
|
|
7131
|
+
/**
|
|
7132
|
+
*
|
|
7133
|
+
* @param {string} id
|
|
7134
|
+
* @param {*} [options] Override http request option.
|
|
7135
|
+
* @throws {RequiredError}
|
|
7136
|
+
*/
|
|
7137
|
+
updateOrder: async (id, options = {}) => {
|
|
7138
|
+
// verify required parameter 'id' is not null or undefined
|
|
7139
|
+
assertParamExists('updateOrder', 'id', id);
|
|
7140
|
+
const localVarPath = `/api/orders/{id}`
|
|
7141
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7144
|
+
let baseOptions;
|
|
7145
|
+
if (configuration) {
|
|
7146
|
+
baseOptions = configuration.baseOptions;
|
|
7147
|
+
}
|
|
7148
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
7149
|
+
const localVarHeaderParameter = {};
|
|
7150
|
+
const localVarQueryParameter = {};
|
|
7151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7153
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7154
|
+
return {
|
|
7155
|
+
url: toPathString(localVarUrlObj),
|
|
7156
|
+
options: localVarRequestOptions,
|
|
7157
|
+
};
|
|
7158
|
+
},
|
|
7159
|
+
/**
|
|
7160
|
+
*
|
|
7161
|
+
* @param {string} orderId
|
|
7162
|
+
* @param {string} returnId
|
|
7163
|
+
* @param {*} [options] Override http request option.
|
|
7164
|
+
* @throws {RequiredError}
|
|
7165
|
+
*/
|
|
7166
|
+
updateReturn: async (orderId, returnId, options = {}) => {
|
|
7167
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
7168
|
+
assertParamExists('updateReturn', 'orderId', orderId);
|
|
7169
|
+
// verify required parameter 'returnId' is not null or undefined
|
|
7170
|
+
assertParamExists('updateReturn', 'returnId', returnId);
|
|
7171
|
+
const localVarPath = `/api/orders/{orderId}/return-update/{returnId}`
|
|
7172
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
7173
|
+
.replace(`{${"returnId"}}`, encodeURIComponent(String(returnId)));
|
|
7174
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7175
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7176
|
+
let baseOptions;
|
|
7177
|
+
if (configuration) {
|
|
7178
|
+
baseOptions = configuration.baseOptions;
|
|
7179
|
+
}
|
|
7180
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
7181
|
+
const localVarHeaderParameter = {};
|
|
7182
|
+
const localVarQueryParameter = {};
|
|
7183
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7185
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7186
|
+
return {
|
|
7187
|
+
url: toPathString(localVarUrlObj),
|
|
7188
|
+
options: localVarRequestOptions,
|
|
7189
|
+
};
|
|
7190
|
+
},
|
|
7056
7191
|
};
|
|
7057
7192
|
};
|
|
7058
7193
|
/**
|
|
@@ -7074,6 +7209,30 @@ export const OrderApiFp = function (configuration) {
|
|
|
7074
7209
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
7075
7210
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7076
7211
|
},
|
|
7212
|
+
/**
|
|
7213
|
+
*
|
|
7214
|
+
* @param {string} id
|
|
7215
|
+
* @param {*} [options] Override http request option.
|
|
7216
|
+
* @throws {RequiredError}
|
|
7217
|
+
*/
|
|
7218
|
+
async createReturn(id, options) {
|
|
7219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturn(id, options);
|
|
7220
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7221
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReturn']?.[localVarOperationServerIndex]?.url;
|
|
7222
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7223
|
+
},
|
|
7224
|
+
/**
|
|
7225
|
+
*
|
|
7226
|
+
* @param {string} id
|
|
7227
|
+
* @param {*} [options] Override http request option.
|
|
7228
|
+
* @throws {RequiredError}
|
|
7229
|
+
*/
|
|
7230
|
+
async createReturnAdmin(id, options) {
|
|
7231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturnAdmin(id, options);
|
|
7232
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7233
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReturnAdmin']?.[localVarOperationServerIndex]?.url;
|
|
7234
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7235
|
+
},
|
|
7077
7236
|
/**
|
|
7078
7237
|
*
|
|
7079
7238
|
* @param {number} [page]
|
|
@@ -7128,6 +7287,31 @@ export const OrderApiFp = function (configuration) {
|
|
|
7128
7287
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
7129
7288
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7130
7289
|
},
|
|
7290
|
+
/**
|
|
7291
|
+
*
|
|
7292
|
+
* @param {string} id
|
|
7293
|
+
* @param {*} [options] Override http request option.
|
|
7294
|
+
* @throws {RequiredError}
|
|
7295
|
+
*/
|
|
7296
|
+
async updateOrder(id, options) {
|
|
7297
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrder(id, options);
|
|
7298
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7299
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateOrder']?.[localVarOperationServerIndex]?.url;
|
|
7300
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7301
|
+
},
|
|
7302
|
+
/**
|
|
7303
|
+
*
|
|
7304
|
+
* @param {string} orderId
|
|
7305
|
+
* @param {string} returnId
|
|
7306
|
+
* @param {*} [options] Override http request option.
|
|
7307
|
+
* @throws {RequiredError}
|
|
7308
|
+
*/
|
|
7309
|
+
async updateReturn(orderId, returnId, options) {
|
|
7310
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReturn(orderId, returnId, options);
|
|
7311
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7312
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateReturn']?.[localVarOperationServerIndex]?.url;
|
|
7313
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7314
|
+
},
|
|
7131
7315
|
};
|
|
7132
7316
|
};
|
|
7133
7317
|
/**
|
|
@@ -7146,6 +7330,24 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7146
7330
|
createOrder(requestParameters, options) {
|
|
7147
7331
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
7148
7332
|
},
|
|
7333
|
+
/**
|
|
7334
|
+
*
|
|
7335
|
+
* @param {OrderApiCreateReturnRequest} requestParameters Request parameters.
|
|
7336
|
+
* @param {*} [options] Override http request option.
|
|
7337
|
+
* @throws {RequiredError}
|
|
7338
|
+
*/
|
|
7339
|
+
createReturn(requestParameters, options) {
|
|
7340
|
+
return localVarFp.createReturn(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7341
|
+
},
|
|
7342
|
+
/**
|
|
7343
|
+
*
|
|
7344
|
+
* @param {OrderApiCreateReturnAdminRequest} requestParameters Request parameters.
|
|
7345
|
+
* @param {*} [options] Override http request option.
|
|
7346
|
+
* @throws {RequiredError}
|
|
7347
|
+
*/
|
|
7348
|
+
createReturnAdmin(requestParameters, options) {
|
|
7349
|
+
return localVarFp.createReturnAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7350
|
+
},
|
|
7149
7351
|
/**
|
|
7150
7352
|
*
|
|
7151
7353
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -7173,6 +7375,24 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7173
7375
|
getOrders(requestParameters, options) {
|
|
7174
7376
|
return localVarFp.getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
7175
7377
|
},
|
|
7378
|
+
/**
|
|
7379
|
+
*
|
|
7380
|
+
* @param {OrderApiUpdateOrderRequest} requestParameters Request parameters.
|
|
7381
|
+
* @param {*} [options] Override http request option.
|
|
7382
|
+
* @throws {RequiredError}
|
|
7383
|
+
*/
|
|
7384
|
+
updateOrder(requestParameters, options) {
|
|
7385
|
+
return localVarFp.updateOrder(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7386
|
+
},
|
|
7387
|
+
/**
|
|
7388
|
+
*
|
|
7389
|
+
* @param {OrderApiUpdateReturnRequest} requestParameters Request parameters.
|
|
7390
|
+
* @param {*} [options] Override http request option.
|
|
7391
|
+
* @throws {RequiredError}
|
|
7392
|
+
*/
|
|
7393
|
+
updateReturn(requestParameters, options) {
|
|
7394
|
+
return localVarFp.updateReturn(requestParameters.orderId, requestParameters.returnId, options).then((request) => request(axios, basePath));
|
|
7395
|
+
},
|
|
7176
7396
|
};
|
|
7177
7397
|
};
|
|
7178
7398
|
/**
|
|
@@ -7192,6 +7412,26 @@ export class OrderApi extends BaseAPI {
|
|
|
7192
7412
|
createOrder(requestParameters, options) {
|
|
7193
7413
|
return OrderApiFp(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7194
7414
|
}
|
|
7415
|
+
/**
|
|
7416
|
+
*
|
|
7417
|
+
* @param {OrderApiCreateReturnRequest} requestParameters Request parameters.
|
|
7418
|
+
* @param {*} [options] Override http request option.
|
|
7419
|
+
* @throws {RequiredError}
|
|
7420
|
+
* @memberof OrderApi
|
|
7421
|
+
*/
|
|
7422
|
+
createReturn(requestParameters, options) {
|
|
7423
|
+
return OrderApiFp(this.configuration).createReturn(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7424
|
+
}
|
|
7425
|
+
/**
|
|
7426
|
+
*
|
|
7427
|
+
* @param {OrderApiCreateReturnAdminRequest} requestParameters Request parameters.
|
|
7428
|
+
* @param {*} [options] Override http request option.
|
|
7429
|
+
* @throws {RequiredError}
|
|
7430
|
+
* @memberof OrderApi
|
|
7431
|
+
*/
|
|
7432
|
+
createReturnAdmin(requestParameters, options) {
|
|
7433
|
+
return OrderApiFp(this.configuration).createReturnAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7434
|
+
}
|
|
7195
7435
|
/**
|
|
7196
7436
|
*
|
|
7197
7437
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -7222,6 +7462,26 @@ export class OrderApi extends BaseAPI {
|
|
|
7222
7462
|
getOrders(requestParameters, options) {
|
|
7223
7463
|
return OrderApiFp(this.configuration).getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
7224
7464
|
}
|
|
7465
|
+
/**
|
|
7466
|
+
*
|
|
7467
|
+
* @param {OrderApiUpdateOrderRequest} requestParameters Request parameters.
|
|
7468
|
+
* @param {*} [options] Override http request option.
|
|
7469
|
+
* @throws {RequiredError}
|
|
7470
|
+
* @memberof OrderApi
|
|
7471
|
+
*/
|
|
7472
|
+
updateOrder(requestParameters, options) {
|
|
7473
|
+
return OrderApiFp(this.configuration).updateOrder(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7474
|
+
}
|
|
7475
|
+
/**
|
|
7476
|
+
*
|
|
7477
|
+
* @param {OrderApiUpdateReturnRequest} requestParameters Request parameters.
|
|
7478
|
+
* @param {*} [options] Override http request option.
|
|
7479
|
+
* @throws {RequiredError}
|
|
7480
|
+
* @memberof OrderApi
|
|
7481
|
+
*/
|
|
7482
|
+
updateReturn(requestParameters, options) {
|
|
7483
|
+
return OrderApiFp(this.configuration).updateReturn(requestParameters.orderId, requestParameters.returnId, options).then((request) => request(this.axios, this.basePath));
|
|
7484
|
+
}
|
|
7225
7485
|
}
|
|
7226
7486
|
/**
|
|
7227
7487
|
* @export
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.54",
|
|
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": "06af9e7831c4470bfe4ec03484f9ded54fdedb56"
|
|
41
41
|
}
|