@infisale-client/api 1.2.84 → 1.2.86
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 +367 -12
- package/dist/api/api.js +208 -5
- package/dist/api/api.mjs +204 -1
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -2231,6 +2231,12 @@ export interface ICompany {
|
|
|
2231
2231
|
* @memberof ICompany
|
|
2232
2232
|
*/
|
|
2233
2233
|
'versions': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTVersionsInner>;
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @type {string}
|
|
2237
|
+
* @memberof ICompany
|
|
2238
|
+
*/
|
|
2239
|
+
'subscriptionEndsAt': string;
|
|
2234
2240
|
}
|
|
2235
2241
|
/**
|
|
2236
2242
|
*
|
|
@@ -2426,6 +2432,12 @@ export interface ICompanyAdminResponse {
|
|
|
2426
2432
|
* @memberof ICompanyAdminResponse
|
|
2427
2433
|
*/
|
|
2428
2434
|
'autoApproveReviews': boolean;
|
|
2435
|
+
/**
|
|
2436
|
+
*
|
|
2437
|
+
* @type {string}
|
|
2438
|
+
* @memberof ICompanyAdminResponse
|
|
2439
|
+
*/
|
|
2440
|
+
'subscriptionEndsAt': string;
|
|
2429
2441
|
/**
|
|
2430
2442
|
*
|
|
2431
2443
|
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles}
|
|
@@ -2864,6 +2876,12 @@ export interface ICompanyPatchRequest {
|
|
|
2864
2876
|
* @memberof ICompanyPatchRequest
|
|
2865
2877
|
*/
|
|
2866
2878
|
'autoApproveReviews'?: boolean;
|
|
2879
|
+
/**
|
|
2880
|
+
*
|
|
2881
|
+
* @type {string}
|
|
2882
|
+
* @memberof ICompanyPatchRequest
|
|
2883
|
+
*/
|
|
2884
|
+
'subscriptionEndsAt'?: string;
|
|
2867
2885
|
}
|
|
2868
2886
|
/**
|
|
2869
2887
|
*
|
|
@@ -3170,6 +3188,12 @@ export interface ICompanyResponse {
|
|
|
3170
3188
|
* @memberof ICompanyResponse
|
|
3171
3189
|
*/
|
|
3172
3190
|
'autoApproveReviews': boolean;
|
|
3191
|
+
/**
|
|
3192
|
+
*
|
|
3193
|
+
* @type {string}
|
|
3194
|
+
* @memberof ICompanyResponse
|
|
3195
|
+
*/
|
|
3196
|
+
'subscriptionEndsAt': string;
|
|
3173
3197
|
/**
|
|
3174
3198
|
*
|
|
3175
3199
|
* @type {PickICompanyNameOrDomainsOrIdOrLanguage}
|
|
@@ -5223,28 +5247,28 @@ export interface IOrderPostRequest {
|
|
|
5223
5247
|
'cardOwner'?: string;
|
|
5224
5248
|
/**
|
|
5225
5249
|
*
|
|
5226
|
-
* @type {
|
|
5250
|
+
* @type {string}
|
|
5227
5251
|
* @memberof IOrderPostRequest
|
|
5228
5252
|
*/
|
|
5229
|
-
'cardNumber'?:
|
|
5253
|
+
'cardNumber'?: string;
|
|
5230
5254
|
/**
|
|
5231
5255
|
*
|
|
5232
|
-
* @type {
|
|
5256
|
+
* @type {string}
|
|
5233
5257
|
* @memberof IOrderPostRequest
|
|
5234
5258
|
*/
|
|
5235
|
-
'cardExpiryMonth'?:
|
|
5259
|
+
'cardExpiryMonth'?: string;
|
|
5236
5260
|
/**
|
|
5237
5261
|
*
|
|
5238
|
-
* @type {
|
|
5262
|
+
* @type {string}
|
|
5239
5263
|
* @memberof IOrderPostRequest
|
|
5240
5264
|
*/
|
|
5241
|
-
'cardExpiryYear'?:
|
|
5265
|
+
'cardExpiryYear'?: string;
|
|
5242
5266
|
/**
|
|
5243
5267
|
*
|
|
5244
|
-
* @type {
|
|
5268
|
+
* @type {string}
|
|
5245
5269
|
* @memberof IOrderPostRequest
|
|
5246
5270
|
*/
|
|
5247
|
-
'cardCvv'?:
|
|
5271
|
+
'cardCvv'?: string;
|
|
5248
5272
|
/**
|
|
5249
5273
|
*
|
|
5250
5274
|
* @type {string}
|
|
@@ -5938,6 +5962,177 @@ export interface IPagesResponse {
|
|
|
5938
5962
|
*/
|
|
5939
5963
|
'data': Array<IPageResponse>;
|
|
5940
5964
|
}
|
|
5965
|
+
/**
|
|
5966
|
+
*
|
|
5967
|
+
* @export
|
|
5968
|
+
* @interface IPayment
|
|
5969
|
+
*/
|
|
5970
|
+
export interface IPayment {
|
|
5971
|
+
/**
|
|
5972
|
+
*
|
|
5973
|
+
* @type {string}
|
|
5974
|
+
* @memberof IPayment
|
|
5975
|
+
*/
|
|
5976
|
+
'_id': string;
|
|
5977
|
+
/**
|
|
5978
|
+
*
|
|
5979
|
+
* @type {number}
|
|
5980
|
+
* @memberof IPayment
|
|
5981
|
+
*/
|
|
5982
|
+
'__v': number;
|
|
5983
|
+
/**
|
|
5984
|
+
*
|
|
5985
|
+
* @type {string}
|
|
5986
|
+
* @memberof IPayment
|
|
5987
|
+
*/
|
|
5988
|
+
'createdAt': string;
|
|
5989
|
+
/**
|
|
5990
|
+
*
|
|
5991
|
+
* @type {string}
|
|
5992
|
+
* @memberof IPayment
|
|
5993
|
+
*/
|
|
5994
|
+
'updatedAt': string;
|
|
5995
|
+
/**
|
|
5996
|
+
*
|
|
5997
|
+
* @type {string}
|
|
5998
|
+
* @memberof IPayment
|
|
5999
|
+
*/
|
|
6000
|
+
'company': string;
|
|
6001
|
+
/**
|
|
6002
|
+
*
|
|
6003
|
+
* @type {number}
|
|
6004
|
+
* @memberof IPayment
|
|
6005
|
+
*/
|
|
6006
|
+
'period': number;
|
|
6007
|
+
/**
|
|
6008
|
+
*
|
|
6009
|
+
* @type {number}
|
|
6010
|
+
* @memberof IPayment
|
|
6011
|
+
*/
|
|
6012
|
+
'total': number;
|
|
6013
|
+
/**
|
|
6014
|
+
*
|
|
6015
|
+
* @type {PaymentStatusEnum}
|
|
6016
|
+
* @memberof IPayment
|
|
6017
|
+
*/
|
|
6018
|
+
'status': PaymentStatusEnum;
|
|
6019
|
+
}
|
|
6020
|
+
/**
|
|
6021
|
+
*
|
|
6022
|
+
* @export
|
|
6023
|
+
* @interface IPaymentCreateResponse
|
|
6024
|
+
*/
|
|
6025
|
+
export interface IPaymentCreateResponse {
|
|
6026
|
+
/**
|
|
6027
|
+
*
|
|
6028
|
+
* @type {string}
|
|
6029
|
+
* @memberof IPaymentCreateResponse
|
|
6030
|
+
*/
|
|
6031
|
+
'redirectUrl': string;
|
|
6032
|
+
/**
|
|
6033
|
+
*
|
|
6034
|
+
* @type {string}
|
|
6035
|
+
* @memberof IPaymentCreateResponse
|
|
6036
|
+
*/
|
|
6037
|
+
'html'?: string;
|
|
6038
|
+
/**
|
|
6039
|
+
*
|
|
6040
|
+
* @type {string}
|
|
6041
|
+
* @memberof IPaymentCreateResponse
|
|
6042
|
+
*/
|
|
6043
|
+
'paymentId'?: string;
|
|
6044
|
+
/**
|
|
6045
|
+
*
|
|
6046
|
+
* @type {string}
|
|
6047
|
+
* @memberof IPaymentCreateResponse
|
|
6048
|
+
*/
|
|
6049
|
+
'iframe'?: string;
|
|
6050
|
+
}
|
|
6051
|
+
/**
|
|
6052
|
+
*
|
|
6053
|
+
* @export
|
|
6054
|
+
* @interface IPaymentPostRequest
|
|
6055
|
+
*/
|
|
6056
|
+
export interface IPaymentPostRequest {
|
|
6057
|
+
/**
|
|
6058
|
+
*
|
|
6059
|
+
* @type {string}
|
|
6060
|
+
* @memberof IPaymentPostRequest
|
|
6061
|
+
*/
|
|
6062
|
+
'period': IPaymentPostRequestPeriodEnum;
|
|
6063
|
+
/**
|
|
6064
|
+
*
|
|
6065
|
+
* @type {string}
|
|
6066
|
+
* @memberof IPaymentPostRequest
|
|
6067
|
+
*/
|
|
6068
|
+
'cardOwner': string;
|
|
6069
|
+
/**
|
|
6070
|
+
*
|
|
6071
|
+
* @type {string}
|
|
6072
|
+
* @memberof IPaymentPostRequest
|
|
6073
|
+
*/
|
|
6074
|
+
'cardNumber': string;
|
|
6075
|
+
/**
|
|
6076
|
+
*
|
|
6077
|
+
* @type {string}
|
|
6078
|
+
* @memberof IPaymentPostRequest
|
|
6079
|
+
*/
|
|
6080
|
+
'cardExpiryMonth': string;
|
|
6081
|
+
/**
|
|
6082
|
+
*
|
|
6083
|
+
* @type {string}
|
|
6084
|
+
* @memberof IPaymentPostRequest
|
|
6085
|
+
*/
|
|
6086
|
+
'cardExpiryYear': string;
|
|
6087
|
+
/**
|
|
6088
|
+
*
|
|
6089
|
+
* @type {string}
|
|
6090
|
+
* @memberof IPaymentPostRequest
|
|
6091
|
+
*/
|
|
6092
|
+
'cardCvv': string;
|
|
6093
|
+
}
|
|
6094
|
+
export declare const IPaymentPostRequestPeriodEnum: {
|
|
6095
|
+
readonly MONTHLY: "monthly";
|
|
6096
|
+
readonly YEARLY: "yearly";
|
|
6097
|
+
};
|
|
6098
|
+
export type IPaymentPostRequestPeriodEnum = typeof IPaymentPostRequestPeriodEnum[keyof typeof IPaymentPostRequestPeriodEnum];
|
|
6099
|
+
/**
|
|
6100
|
+
*
|
|
6101
|
+
* @export
|
|
6102
|
+
* @interface IPaymentResponse
|
|
6103
|
+
*/
|
|
6104
|
+
export interface IPaymentResponse {
|
|
6105
|
+
/**
|
|
6106
|
+
*
|
|
6107
|
+
* @type {number}
|
|
6108
|
+
* @memberof IPaymentResponse
|
|
6109
|
+
*/
|
|
6110
|
+
'totalPages': number;
|
|
6111
|
+
/**
|
|
6112
|
+
*
|
|
6113
|
+
* @type {number}
|
|
6114
|
+
* @memberof IPaymentResponse
|
|
6115
|
+
*/
|
|
6116
|
+
'page': number;
|
|
6117
|
+
/**
|
|
6118
|
+
*
|
|
6119
|
+
* @type {number}
|
|
6120
|
+
* @memberof IPaymentResponse
|
|
6121
|
+
*/
|
|
6122
|
+
'itemsPerPage': number;
|
|
6123
|
+
/**
|
|
6124
|
+
*
|
|
6125
|
+
* @type {number}
|
|
6126
|
+
* @memberof IPaymentResponse
|
|
6127
|
+
*/
|
|
6128
|
+
'total': number;
|
|
6129
|
+
/**
|
|
6130
|
+
*
|
|
6131
|
+
* @type {Array<IPayment>}
|
|
6132
|
+
* @memberof IPaymentResponse
|
|
6133
|
+
*/
|
|
6134
|
+
'data': Array<IPayment>;
|
|
6135
|
+
}
|
|
5941
6136
|
/**
|
|
5942
6137
|
*
|
|
5943
6138
|
* @export
|
|
@@ -6528,7 +6723,7 @@ export interface IProductPostRequest {
|
|
|
6528
6723
|
* @type {{ [key: string]: StockTypeValue; }}
|
|
6529
6724
|
* @memberof IProductPostRequest
|
|
6530
6725
|
*/
|
|
6531
|
-
'stock'
|
|
6726
|
+
'stock'?: {
|
|
6532
6727
|
[key: string]: StockTypeValue;
|
|
6533
6728
|
};
|
|
6534
6729
|
/**
|
|
@@ -6681,7 +6876,7 @@ export interface IProductResponse {
|
|
|
6681
6876
|
* @type {{ [key: string]: StockTypeValue; }}
|
|
6682
6877
|
* @memberof IProductResponse
|
|
6683
6878
|
*/
|
|
6684
|
-
'stock'
|
|
6879
|
+
'stock'?: {
|
|
6685
6880
|
[key: string]: StockTypeValue;
|
|
6686
6881
|
};
|
|
6687
6882
|
/**
|
|
@@ -8878,6 +9073,7 @@ export interface PartialRecordLanguageEnumTitleString {
|
|
|
8878
9073
|
export declare const PaymentGatewayEnum: {
|
|
8879
9074
|
readonly IYZICO: "iyzico";
|
|
8880
9075
|
readonly PAYTR: "paytr";
|
|
9076
|
+
readonly PAPARA: "papara";
|
|
8881
9077
|
};
|
|
8882
9078
|
export type PaymentGatewayEnum = typeof PaymentGatewayEnum[keyof typeof PaymentGatewayEnum];
|
|
8883
9079
|
/**
|
|
@@ -8892,6 +9088,17 @@ export declare const PaymentMethodEnum: {
|
|
|
8892
9088
|
readonly CARD_ON_DELIVERY: "card_on_delivery";
|
|
8893
9089
|
};
|
|
8894
9090
|
export type PaymentMethodEnum = typeof PaymentMethodEnum[keyof typeof PaymentMethodEnum];
|
|
9091
|
+
/**
|
|
9092
|
+
*
|
|
9093
|
+
* @export
|
|
9094
|
+
* @enum {string}
|
|
9095
|
+
*/
|
|
9096
|
+
export declare const PaymentStatusEnum: {
|
|
9097
|
+
readonly WAITING_APPROVAL: "waiting_approval";
|
|
9098
|
+
readonly PAID: "paid";
|
|
9099
|
+
readonly FAILED: "failed";
|
|
9100
|
+
};
|
|
9101
|
+
export type PaymentStatusEnum = typeof PaymentStatusEnum[keyof typeof PaymentStatusEnum];
|
|
8895
9102
|
/**
|
|
8896
9103
|
* From T, pick a set of properties whose keys are in the union K
|
|
8897
9104
|
* @export
|
|
@@ -9369,6 +9576,12 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
|
|
|
9369
9576
|
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
9370
9577
|
*/
|
|
9371
9578
|
'autoApproveReviews': boolean;
|
|
9579
|
+
/**
|
|
9580
|
+
*
|
|
9581
|
+
* @type {string}
|
|
9582
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
9583
|
+
*/
|
|
9584
|
+
'subscriptionEndsAt': string;
|
|
9372
9585
|
}
|
|
9373
9586
|
/**
|
|
9374
9587
|
*
|
|
@@ -10176,7 +10389,7 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttr
|
|
|
10176
10389
|
* @type {{ [key: string]: StockTypeValue; }}
|
|
10177
10390
|
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
10178
10391
|
*/
|
|
10179
|
-
'stock'
|
|
10392
|
+
'stock'?: {
|
|
10180
10393
|
[key: string]: StockTypeValue;
|
|
10181
10394
|
};
|
|
10182
10395
|
/**
|
|
@@ -10304,7 +10517,7 @@ export interface PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPo
|
|
|
10304
10517
|
* @type {{ [key: string]: StockTypeValue; }}
|
|
10305
10518
|
* @memberof PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPostRequestOmitFields
|
|
10306
10519
|
*/
|
|
10307
|
-
'stock'
|
|
10520
|
+
'stock'?: {
|
|
10308
10521
|
[key: string]: StockTypeValue;
|
|
10309
10522
|
};
|
|
10310
10523
|
/**
|
|
@@ -13724,6 +13937,14 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
|
|
|
13724
13937
|
* @throws {RequiredError}
|
|
13725
13938
|
*/
|
|
13726
13939
|
createCompany: (iCompanyPostRequest: ICompanyPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13940
|
+
/**
|
|
13941
|
+
*
|
|
13942
|
+
* @param {string} id
|
|
13943
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
13944
|
+
* @param {*} [options] Override http request option.
|
|
13945
|
+
* @throws {RequiredError}
|
|
13946
|
+
*/
|
|
13947
|
+
createCompanyPayment: (id: string, iPaymentPostRequest: IPaymentPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13727
13948
|
/**
|
|
13728
13949
|
*
|
|
13729
13950
|
* @param {string} id
|
|
@@ -13802,6 +14023,14 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
|
|
|
13802
14023
|
* @throws {RequiredError}
|
|
13803
14024
|
*/
|
|
13804
14025
|
getCompanyCustomers: (id: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetCompanyCustomersDateFieldEnum, order?: OrderEnum, sort?: string, status?: CompanyUserStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14026
|
+
/**
|
|
14027
|
+
*
|
|
14028
|
+
* @param {string} id
|
|
14029
|
+
* @param {string} paymentId
|
|
14030
|
+
* @param {*} [options] Override http request option.
|
|
14031
|
+
* @throws {RequiredError}
|
|
14032
|
+
*/
|
|
14033
|
+
getCompanyPayment: (id: string, paymentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13805
14034
|
/**
|
|
13806
14035
|
*
|
|
13807
14036
|
* @param {string} id
|
|
@@ -13809,6 +14038,13 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
|
|
|
13809
14038
|
* @throws {RequiredError}
|
|
13810
14039
|
*/
|
|
13811
14040
|
getCompanyPaymentGateways: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14041
|
+
/**
|
|
14042
|
+
*
|
|
14043
|
+
* @param {string} id
|
|
14044
|
+
* @param {*} [options] Override http request option.
|
|
14045
|
+
* @throws {RequiredError}
|
|
14046
|
+
*/
|
|
14047
|
+
getCompanyPayments: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13812
14048
|
/**
|
|
13813
14049
|
*
|
|
13814
14050
|
* @param {string} id
|
|
@@ -13949,6 +14185,14 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
13949
14185
|
* @throws {RequiredError}
|
|
13950
14186
|
*/
|
|
13951
14187
|
createCompany(iCompanyPostRequest: ICompanyPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyResponse>>;
|
|
14188
|
+
/**
|
|
14189
|
+
*
|
|
14190
|
+
* @param {string} id
|
|
14191
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
14192
|
+
* @param {*} [options] Override http request option.
|
|
14193
|
+
* @throws {RequiredError}
|
|
14194
|
+
*/
|
|
14195
|
+
createCompanyPayment(id: string, iPaymentPostRequest: IPaymentPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPaymentCreateResponse>>;
|
|
13952
14196
|
/**
|
|
13953
14197
|
*
|
|
13954
14198
|
* @param {string} id
|
|
@@ -14027,6 +14271,14 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
14027
14271
|
* @throws {RequiredError}
|
|
14028
14272
|
*/
|
|
14029
14273
|
getCompanyCustomers(id: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetCompanyCustomersDateFieldEnum, order?: OrderEnum, sort?: string, status?: CompanyUserStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUsersResponse>>;
|
|
14274
|
+
/**
|
|
14275
|
+
*
|
|
14276
|
+
* @param {string} id
|
|
14277
|
+
* @param {string} paymentId
|
|
14278
|
+
* @param {*} [options] Override http request option.
|
|
14279
|
+
* @throws {RequiredError}
|
|
14280
|
+
*/
|
|
14281
|
+
getCompanyPayment(id: string, paymentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPayment>>;
|
|
14030
14282
|
/**
|
|
14031
14283
|
*
|
|
14032
14284
|
* @param {string} id
|
|
@@ -14034,6 +14286,13 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
14034
14286
|
* @throws {RequiredError}
|
|
14035
14287
|
*/
|
|
14036
14288
|
getCompanyPaymentGateways(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyPaymentGatewaysResponse>>;
|
|
14289
|
+
/**
|
|
14290
|
+
*
|
|
14291
|
+
* @param {string} id
|
|
14292
|
+
* @param {*} [options] Override http request option.
|
|
14293
|
+
* @throws {RequiredError}
|
|
14294
|
+
*/
|
|
14295
|
+
getCompanyPayments(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPaymentResponse>>;
|
|
14037
14296
|
/**
|
|
14038
14297
|
*
|
|
14039
14298
|
* @param {string} id
|
|
@@ -14172,6 +14431,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
14172
14431
|
* @throws {RequiredError}
|
|
14173
14432
|
*/
|
|
14174
14433
|
createCompany(requestParameters: CompanyApiCreateCompanyRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyResponse>;
|
|
14434
|
+
/**
|
|
14435
|
+
*
|
|
14436
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
14437
|
+
* @param {*} [options] Override http request option.
|
|
14438
|
+
* @throws {RequiredError}
|
|
14439
|
+
*/
|
|
14440
|
+
createCompanyPayment(requestParameters: CompanyApiCreateCompanyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPaymentCreateResponse>;
|
|
14175
14441
|
/**
|
|
14176
14442
|
*
|
|
14177
14443
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -14228,6 +14494,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
14228
14494
|
* @throws {RequiredError}
|
|
14229
14495
|
*/
|
|
14230
14496
|
getCompanyCustomers(requestParameters: CompanyApiGetCompanyCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUsersResponse>;
|
|
14497
|
+
/**
|
|
14498
|
+
*
|
|
14499
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
14500
|
+
* @param {*} [options] Override http request option.
|
|
14501
|
+
* @throws {RequiredError}
|
|
14502
|
+
*/
|
|
14503
|
+
getCompanyPayment(requestParameters: CompanyApiGetCompanyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPayment>;
|
|
14231
14504
|
/**
|
|
14232
14505
|
*
|
|
14233
14506
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -14235,6 +14508,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
14235
14508
|
* @throws {RequiredError}
|
|
14236
14509
|
*/
|
|
14237
14510
|
getCompanyPaymentGateways(requestParameters: CompanyApiGetCompanyPaymentGatewaysRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyPaymentGatewaysResponse>;
|
|
14511
|
+
/**
|
|
14512
|
+
*
|
|
14513
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
14514
|
+
* @param {*} [options] Override http request option.
|
|
14515
|
+
* @throws {RequiredError}
|
|
14516
|
+
*/
|
|
14517
|
+
getCompanyPayments(requestParameters: CompanyApiGetCompanyPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPaymentResponse>;
|
|
14238
14518
|
/**
|
|
14239
14519
|
*
|
|
14240
14520
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
@@ -14391,6 +14671,25 @@ export interface CompanyApiCreateCompanyRequest {
|
|
|
14391
14671
|
*/
|
|
14392
14672
|
readonly iCompanyPostRequest: ICompanyPostRequest;
|
|
14393
14673
|
}
|
|
14674
|
+
/**
|
|
14675
|
+
* Request parameters for createCompanyPayment operation in CompanyApi.
|
|
14676
|
+
* @export
|
|
14677
|
+
* @interface CompanyApiCreateCompanyPaymentRequest
|
|
14678
|
+
*/
|
|
14679
|
+
export interface CompanyApiCreateCompanyPaymentRequest {
|
|
14680
|
+
/**
|
|
14681
|
+
*
|
|
14682
|
+
* @type {string}
|
|
14683
|
+
* @memberof CompanyApiCreateCompanyPayment
|
|
14684
|
+
*/
|
|
14685
|
+
readonly id: string;
|
|
14686
|
+
/**
|
|
14687
|
+
*
|
|
14688
|
+
* @type {IPaymentPostRequest}
|
|
14689
|
+
* @memberof CompanyApiCreateCompanyPayment
|
|
14690
|
+
*/
|
|
14691
|
+
readonly iPaymentPostRequest: IPaymentPostRequest;
|
|
14692
|
+
}
|
|
14394
14693
|
/**
|
|
14395
14694
|
* Request parameters for deleteCompany operation in CompanyApi.
|
|
14396
14695
|
* @export
|
|
@@ -14627,6 +14926,25 @@ export interface CompanyApiGetCompanyCustomersRequest {
|
|
|
14627
14926
|
*/
|
|
14628
14927
|
readonly status?: CompanyUserStatusEnum;
|
|
14629
14928
|
}
|
|
14929
|
+
/**
|
|
14930
|
+
* Request parameters for getCompanyPayment operation in CompanyApi.
|
|
14931
|
+
* @export
|
|
14932
|
+
* @interface CompanyApiGetCompanyPaymentRequest
|
|
14933
|
+
*/
|
|
14934
|
+
export interface CompanyApiGetCompanyPaymentRequest {
|
|
14935
|
+
/**
|
|
14936
|
+
*
|
|
14937
|
+
* @type {string}
|
|
14938
|
+
* @memberof CompanyApiGetCompanyPayment
|
|
14939
|
+
*/
|
|
14940
|
+
readonly id: string;
|
|
14941
|
+
/**
|
|
14942
|
+
*
|
|
14943
|
+
* @type {string}
|
|
14944
|
+
* @memberof CompanyApiGetCompanyPayment
|
|
14945
|
+
*/
|
|
14946
|
+
readonly paymentId: string;
|
|
14947
|
+
}
|
|
14630
14948
|
/**
|
|
14631
14949
|
* Request parameters for getCompanyPaymentGateways operation in CompanyApi.
|
|
14632
14950
|
* @export
|
|
@@ -14640,6 +14958,19 @@ export interface CompanyApiGetCompanyPaymentGatewaysRequest {
|
|
|
14640
14958
|
*/
|
|
14641
14959
|
readonly id: string;
|
|
14642
14960
|
}
|
|
14961
|
+
/**
|
|
14962
|
+
* Request parameters for getCompanyPayments operation in CompanyApi.
|
|
14963
|
+
* @export
|
|
14964
|
+
* @interface CompanyApiGetCompanyPaymentsRequest
|
|
14965
|
+
*/
|
|
14966
|
+
export interface CompanyApiGetCompanyPaymentsRequest {
|
|
14967
|
+
/**
|
|
14968
|
+
*
|
|
14969
|
+
* @type {string}
|
|
14970
|
+
* @memberof CompanyApiGetCompanyPayments
|
|
14971
|
+
*/
|
|
14972
|
+
readonly id: string;
|
|
14973
|
+
}
|
|
14643
14974
|
/**
|
|
14644
14975
|
* Request parameters for getCompanyProductReviews operation in CompanyApi.
|
|
14645
14976
|
* @export
|
|
@@ -14926,6 +15257,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
14926
15257
|
* @memberof CompanyApi
|
|
14927
15258
|
*/
|
|
14928
15259
|
createCompany(requestParameters: CompanyApiCreateCompanyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyResponse, any>>;
|
|
15260
|
+
/**
|
|
15261
|
+
*
|
|
15262
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
15263
|
+
* @param {*} [options] Override http request option.
|
|
15264
|
+
* @throws {RequiredError}
|
|
15265
|
+
* @memberof CompanyApi
|
|
15266
|
+
*/
|
|
15267
|
+
createCompanyPayment(requestParameters: CompanyApiCreateCompanyPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPaymentCreateResponse, any>>;
|
|
14929
15268
|
/**
|
|
14930
15269
|
*
|
|
14931
15270
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -14990,6 +15329,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
14990
15329
|
* @memberof CompanyApi
|
|
14991
15330
|
*/
|
|
14992
15331
|
getCompanyCustomers(requestParameters: CompanyApiGetCompanyCustomersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUsersResponse, any>>;
|
|
15332
|
+
/**
|
|
15333
|
+
*
|
|
15334
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
15335
|
+
* @param {*} [options] Override http request option.
|
|
15336
|
+
* @throws {RequiredError}
|
|
15337
|
+
* @memberof CompanyApi
|
|
15338
|
+
*/
|
|
15339
|
+
getCompanyPayment(requestParameters: CompanyApiGetCompanyPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPayment, any>>;
|
|
14993
15340
|
/**
|
|
14994
15341
|
*
|
|
14995
15342
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -14998,6 +15345,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
14998
15345
|
* @memberof CompanyApi
|
|
14999
15346
|
*/
|
|
15000
15347
|
getCompanyPaymentGateways(requestParameters: CompanyApiGetCompanyPaymentGatewaysRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyPaymentGatewaysResponse, any>>;
|
|
15348
|
+
/**
|
|
15349
|
+
*
|
|
15350
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
15351
|
+
* @param {*} [options] Override http request option.
|
|
15352
|
+
* @throws {RequiredError}
|
|
15353
|
+
* @memberof CompanyApi
|
|
15354
|
+
*/
|
|
15355
|
+
getCompanyPayments(requestParameters: CompanyApiGetCompanyPaymentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPaymentResponse, any>>;
|
|
15001
15356
|
/**
|
|
15002
15357
|
*
|
|
15003
15358
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -16,10 +16,10 @@ 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.
|
|
22
|
-
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = void 0;
|
|
19
|
+
exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = 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.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.ReviewStatusEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PickIThemeExcludeKeyofIThemeTemplateConfigBlogCardTextAlignEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = void 0;
|
|
21
|
+
exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = 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 = exports.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = void 0;
|
|
22
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = void 0;
|
|
23
23
|
const axios_1 = __importDefault(require("axios"));
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -567,6 +567,10 @@ exports.IPageCollectionQueryParamsDateFieldEnum = {
|
|
|
567
567
|
CREATED_AT: 'createdAt',
|
|
568
568
|
UPDATED_AT: 'updatedAt'
|
|
569
569
|
};
|
|
570
|
+
exports.IPaymentPostRequestPeriodEnum = {
|
|
571
|
+
MONTHLY: 'monthly',
|
|
572
|
+
YEARLY: 'yearly'
|
|
573
|
+
};
|
|
570
574
|
exports.IPlanCollectionQueryParamsDateFieldEnum = {
|
|
571
575
|
CREATED_AT: 'createdAt',
|
|
572
576
|
UPDATED_AT: 'updatedAt'
|
|
@@ -715,7 +719,8 @@ exports.PageTypeEnum = {
|
|
|
715
719
|
*/
|
|
716
720
|
exports.PaymentGatewayEnum = {
|
|
717
721
|
IYZICO: 'iyzico',
|
|
718
|
-
PAYTR: 'paytr'
|
|
722
|
+
PAYTR: 'paytr',
|
|
723
|
+
PAPARA: 'papara'
|
|
719
724
|
};
|
|
720
725
|
/**
|
|
721
726
|
*
|
|
@@ -728,6 +733,16 @@ exports.PaymentMethodEnum = {
|
|
|
728
733
|
CASH_ON_DELIVERY: 'cash_on_delivery',
|
|
729
734
|
CARD_ON_DELIVERY: 'card_on_delivery'
|
|
730
735
|
};
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @export
|
|
739
|
+
* @enum {string}
|
|
740
|
+
*/
|
|
741
|
+
exports.PaymentStatusEnum = {
|
|
742
|
+
WAITING_APPROVAL: 'waiting_approval',
|
|
743
|
+
PAID: 'paid',
|
|
744
|
+
FAILED: 'failed'
|
|
745
|
+
};
|
|
731
746
|
exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = {
|
|
732
747
|
CREATED_AT: 'createdAt',
|
|
733
748
|
UPDATED_AT: 'updatedAt'
|
|
@@ -3782,6 +3797,39 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3782
3797
|
options: localVarRequestOptions,
|
|
3783
3798
|
};
|
|
3784
3799
|
},
|
|
3800
|
+
/**
|
|
3801
|
+
*
|
|
3802
|
+
* @param {string} id
|
|
3803
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
3804
|
+
* @param {*} [options] Override http request option.
|
|
3805
|
+
* @throws {RequiredError}
|
|
3806
|
+
*/
|
|
3807
|
+
createCompanyPayment: async (id, iPaymentPostRequest, options = {}) => {
|
|
3808
|
+
// verify required parameter 'id' is not null or undefined
|
|
3809
|
+
(0, common_1.assertParamExists)('createCompanyPayment', 'id', id);
|
|
3810
|
+
// verify required parameter 'iPaymentPostRequest' is not null or undefined
|
|
3811
|
+
(0, common_1.assertParamExists)('createCompanyPayment', 'iPaymentPostRequest', iPaymentPostRequest);
|
|
3812
|
+
const localVarPath = `/api/companies/{id}/payments`
|
|
3813
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3815
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3816
|
+
let baseOptions;
|
|
3817
|
+
if (configuration) {
|
|
3818
|
+
baseOptions = configuration.baseOptions;
|
|
3819
|
+
}
|
|
3820
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3821
|
+
const localVarHeaderParameter = {};
|
|
3822
|
+
const localVarQueryParameter = {};
|
|
3823
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3824
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3826
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3827
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iPaymentPostRequest, localVarRequestOptions, configuration);
|
|
3828
|
+
return {
|
|
3829
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3830
|
+
options: localVarRequestOptions,
|
|
3831
|
+
};
|
|
3832
|
+
},
|
|
3785
3833
|
/**
|
|
3786
3834
|
*
|
|
3787
3835
|
* @param {string} id
|
|
@@ -4102,6 +4150,38 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4102
4150
|
options: localVarRequestOptions,
|
|
4103
4151
|
};
|
|
4104
4152
|
},
|
|
4153
|
+
/**
|
|
4154
|
+
*
|
|
4155
|
+
* @param {string} id
|
|
4156
|
+
* @param {string} paymentId
|
|
4157
|
+
* @param {*} [options] Override http request option.
|
|
4158
|
+
* @throws {RequiredError}
|
|
4159
|
+
*/
|
|
4160
|
+
getCompanyPayment: async (id, paymentId, options = {}) => {
|
|
4161
|
+
// verify required parameter 'id' is not null or undefined
|
|
4162
|
+
(0, common_1.assertParamExists)('getCompanyPayment', 'id', id);
|
|
4163
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
4164
|
+
(0, common_1.assertParamExists)('getCompanyPayment', 'paymentId', paymentId);
|
|
4165
|
+
const localVarPath = `/api/companies/{id}/payments/{paymentId}`
|
|
4166
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4167
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
4168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4169
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4170
|
+
let baseOptions;
|
|
4171
|
+
if (configuration) {
|
|
4172
|
+
baseOptions = configuration.baseOptions;
|
|
4173
|
+
}
|
|
4174
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4175
|
+
const localVarHeaderParameter = {};
|
|
4176
|
+
const localVarQueryParameter = {};
|
|
4177
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4179
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4180
|
+
return {
|
|
4181
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4182
|
+
options: localVarRequestOptions,
|
|
4183
|
+
};
|
|
4184
|
+
},
|
|
4105
4185
|
/**
|
|
4106
4186
|
*
|
|
4107
4187
|
* @param {string} id
|
|
@@ -4130,6 +4210,34 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4130
4210
|
options: localVarRequestOptions,
|
|
4131
4211
|
};
|
|
4132
4212
|
},
|
|
4213
|
+
/**
|
|
4214
|
+
*
|
|
4215
|
+
* @param {string} id
|
|
4216
|
+
* @param {*} [options] Override http request option.
|
|
4217
|
+
* @throws {RequiredError}
|
|
4218
|
+
*/
|
|
4219
|
+
getCompanyPayments: async (id, options = {}) => {
|
|
4220
|
+
// verify required parameter 'id' is not null or undefined
|
|
4221
|
+
(0, common_1.assertParamExists)('getCompanyPayments', 'id', id);
|
|
4222
|
+
const localVarPath = `/api/companies/{id}/payments`
|
|
4223
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4224
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4225
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4226
|
+
let baseOptions;
|
|
4227
|
+
if (configuration) {
|
|
4228
|
+
baseOptions = configuration.baseOptions;
|
|
4229
|
+
}
|
|
4230
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4231
|
+
const localVarHeaderParameter = {};
|
|
4232
|
+
const localVarQueryParameter = {};
|
|
4233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4235
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4236
|
+
return {
|
|
4237
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4238
|
+
options: localVarRequestOptions,
|
|
4239
|
+
};
|
|
4240
|
+
},
|
|
4133
4241
|
/**
|
|
4134
4242
|
*
|
|
4135
4243
|
* @param {string} id
|
|
@@ -4614,6 +4722,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
4614
4722
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompany']?.[localVarOperationServerIndex]?.url;
|
|
4615
4723
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4616
4724
|
},
|
|
4725
|
+
/**
|
|
4726
|
+
*
|
|
4727
|
+
* @param {string} id
|
|
4728
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
4729
|
+
* @param {*} [options] Override http request option.
|
|
4730
|
+
* @throws {RequiredError}
|
|
4731
|
+
*/
|
|
4732
|
+
async createCompanyPayment(id, iPaymentPostRequest, options) {
|
|
4733
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyPayment(id, iPaymentPostRequest, options);
|
|
4734
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4735
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4736
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4737
|
+
},
|
|
4617
4738
|
/**
|
|
4618
4739
|
*
|
|
4619
4740
|
* @param {string} id
|
|
@@ -4732,6 +4853,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
4732
4853
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4733
4854
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4734
4855
|
},
|
|
4856
|
+
/**
|
|
4857
|
+
*
|
|
4858
|
+
* @param {string} id
|
|
4859
|
+
* @param {string} paymentId
|
|
4860
|
+
* @param {*} [options] Override http request option.
|
|
4861
|
+
* @throws {RequiredError}
|
|
4862
|
+
*/
|
|
4863
|
+
async getCompanyPayment(id, paymentId, options) {
|
|
4864
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayment(id, paymentId, options);
|
|
4865
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4866
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4867
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4868
|
+
},
|
|
4735
4869
|
/**
|
|
4736
4870
|
*
|
|
4737
4871
|
* @param {string} id
|
|
@@ -4744,6 +4878,18 @@ const CompanyApiFp = function (configuration) {
|
|
|
4744
4878
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
4745
4879
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4746
4880
|
},
|
|
4881
|
+
/**
|
|
4882
|
+
*
|
|
4883
|
+
* @param {string} id
|
|
4884
|
+
* @param {*} [options] Override http request option.
|
|
4885
|
+
* @throws {RequiredError}
|
|
4886
|
+
*/
|
|
4887
|
+
async getCompanyPayments(id, options) {
|
|
4888
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayments(id, options);
|
|
4889
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4890
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPayments']?.[localVarOperationServerIndex]?.url;
|
|
4891
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4892
|
+
},
|
|
4747
4893
|
/**
|
|
4748
4894
|
*
|
|
4749
4895
|
* @param {string} id
|
|
@@ -4959,6 +5105,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4959
5105
|
createCompany(requestParameters, options) {
|
|
4960
5106
|
return localVarFp.createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(axios, basePath));
|
|
4961
5107
|
},
|
|
5108
|
+
/**
|
|
5109
|
+
*
|
|
5110
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5111
|
+
* @param {*} [options] Override http request option.
|
|
5112
|
+
* @throws {RequiredError}
|
|
5113
|
+
*/
|
|
5114
|
+
createCompanyPayment(requestParameters, options) {
|
|
5115
|
+
return localVarFp.createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(axios, basePath));
|
|
5116
|
+
},
|
|
4962
5117
|
/**
|
|
4963
5118
|
*
|
|
4964
5119
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5031,6 +5186,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5031
5186
|
getCompanyCustomers(requestParameters, options) {
|
|
5032
5187
|
return localVarFp.getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5033
5188
|
},
|
|
5189
|
+
/**
|
|
5190
|
+
*
|
|
5191
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
5192
|
+
* @param {*} [options] Override http request option.
|
|
5193
|
+
* @throws {RequiredError}
|
|
5194
|
+
*/
|
|
5195
|
+
getCompanyPayment(requestParameters, options) {
|
|
5196
|
+
return localVarFp.getCompanyPayment(requestParameters.id, requestParameters.paymentId, options).then((request) => request(axios, basePath));
|
|
5197
|
+
},
|
|
5034
5198
|
/**
|
|
5035
5199
|
*
|
|
5036
5200
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5040,6 +5204,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5040
5204
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5041
5205
|
return localVarFp.getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5042
5206
|
},
|
|
5207
|
+
/**
|
|
5208
|
+
*
|
|
5209
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
5210
|
+
* @param {*} [options] Override http request option.
|
|
5211
|
+
* @throws {RequiredError}
|
|
5212
|
+
*/
|
|
5213
|
+
getCompanyPayments(requestParameters, options) {
|
|
5214
|
+
return localVarFp.getCompanyPayments(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5215
|
+
},
|
|
5043
5216
|
/**
|
|
5044
5217
|
*
|
|
5045
5218
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
@@ -5207,6 +5380,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5207
5380
|
createCompany(requestParameters, options) {
|
|
5208
5381
|
return (0, exports.CompanyApiFp)(this.configuration).createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5209
5382
|
}
|
|
5383
|
+
/**
|
|
5384
|
+
*
|
|
5385
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5386
|
+
* @param {*} [options] Override http request option.
|
|
5387
|
+
* @throws {RequiredError}
|
|
5388
|
+
* @memberof CompanyApi
|
|
5389
|
+
*/
|
|
5390
|
+
createCompanyPayment(requestParameters, options) {
|
|
5391
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5392
|
+
}
|
|
5210
5393
|
/**
|
|
5211
5394
|
*
|
|
5212
5395
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5287,6 +5470,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5287
5470
|
getCompanyCustomers(requestParameters, options) {
|
|
5288
5471
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
5289
5472
|
}
|
|
5473
|
+
/**
|
|
5474
|
+
*
|
|
5475
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
5476
|
+
* @param {*} [options] Override http request option.
|
|
5477
|
+
* @throws {RequiredError}
|
|
5478
|
+
* @memberof CompanyApi
|
|
5479
|
+
*/
|
|
5480
|
+
getCompanyPayment(requestParameters, options) {
|
|
5481
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyPayment(requestParameters.id, requestParameters.paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
5482
|
+
}
|
|
5290
5483
|
/**
|
|
5291
5484
|
*
|
|
5292
5485
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5297,6 +5490,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5297
5490
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5298
5491
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5299
5492
|
}
|
|
5493
|
+
/**
|
|
5494
|
+
*
|
|
5495
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
5496
|
+
* @param {*} [options] Override http request option.
|
|
5497
|
+
* @throws {RequiredError}
|
|
5498
|
+
* @memberof CompanyApi
|
|
5499
|
+
*/
|
|
5500
|
+
getCompanyPayments(requestParameters, options) {
|
|
5501
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyPayments(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5502
|
+
}
|
|
5300
5503
|
/**
|
|
5301
5504
|
*
|
|
5302
5505
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -555,6 +555,10 @@ export const IPageCollectionQueryParamsDateFieldEnum = {
|
|
|
555
555
|
CREATED_AT: 'createdAt',
|
|
556
556
|
UPDATED_AT: 'updatedAt'
|
|
557
557
|
};
|
|
558
|
+
export const IPaymentPostRequestPeriodEnum = {
|
|
559
|
+
MONTHLY: 'monthly',
|
|
560
|
+
YEARLY: 'yearly'
|
|
561
|
+
};
|
|
558
562
|
export const IPlanCollectionQueryParamsDateFieldEnum = {
|
|
559
563
|
CREATED_AT: 'createdAt',
|
|
560
564
|
UPDATED_AT: 'updatedAt'
|
|
@@ -703,7 +707,8 @@ export const PageTypeEnum = {
|
|
|
703
707
|
*/
|
|
704
708
|
export const PaymentGatewayEnum = {
|
|
705
709
|
IYZICO: 'iyzico',
|
|
706
|
-
PAYTR: 'paytr'
|
|
710
|
+
PAYTR: 'paytr',
|
|
711
|
+
PAPARA: 'papara'
|
|
707
712
|
};
|
|
708
713
|
/**
|
|
709
714
|
*
|
|
@@ -716,6 +721,16 @@ export const PaymentMethodEnum = {
|
|
|
716
721
|
CASH_ON_DELIVERY: 'cash_on_delivery',
|
|
717
722
|
CARD_ON_DELIVERY: 'card_on_delivery'
|
|
718
723
|
};
|
|
724
|
+
/**
|
|
725
|
+
*
|
|
726
|
+
* @export
|
|
727
|
+
* @enum {string}
|
|
728
|
+
*/
|
|
729
|
+
export const PaymentStatusEnum = {
|
|
730
|
+
WAITING_APPROVAL: 'waiting_approval',
|
|
731
|
+
PAID: 'paid',
|
|
732
|
+
FAILED: 'failed'
|
|
733
|
+
};
|
|
719
734
|
export const PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = {
|
|
720
735
|
CREATED_AT: 'createdAt',
|
|
721
736
|
UPDATED_AT: 'updatedAt'
|
|
@@ -3746,6 +3761,39 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3746
3761
|
options: localVarRequestOptions,
|
|
3747
3762
|
};
|
|
3748
3763
|
},
|
|
3764
|
+
/**
|
|
3765
|
+
*
|
|
3766
|
+
* @param {string} id
|
|
3767
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
3768
|
+
* @param {*} [options] Override http request option.
|
|
3769
|
+
* @throws {RequiredError}
|
|
3770
|
+
*/
|
|
3771
|
+
createCompanyPayment: async (id, iPaymentPostRequest, options = {}) => {
|
|
3772
|
+
// verify required parameter 'id' is not null or undefined
|
|
3773
|
+
assertParamExists('createCompanyPayment', 'id', id);
|
|
3774
|
+
// verify required parameter 'iPaymentPostRequest' is not null or undefined
|
|
3775
|
+
assertParamExists('createCompanyPayment', 'iPaymentPostRequest', iPaymentPostRequest);
|
|
3776
|
+
const localVarPath = `/api/companies/{id}/payments`
|
|
3777
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3778
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3779
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3780
|
+
let baseOptions;
|
|
3781
|
+
if (configuration) {
|
|
3782
|
+
baseOptions = configuration.baseOptions;
|
|
3783
|
+
}
|
|
3784
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3785
|
+
const localVarHeaderParameter = {};
|
|
3786
|
+
const localVarQueryParameter = {};
|
|
3787
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3788
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3789
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3790
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3791
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iPaymentPostRequest, localVarRequestOptions, configuration);
|
|
3792
|
+
return {
|
|
3793
|
+
url: toPathString(localVarUrlObj),
|
|
3794
|
+
options: localVarRequestOptions,
|
|
3795
|
+
};
|
|
3796
|
+
},
|
|
3749
3797
|
/**
|
|
3750
3798
|
*
|
|
3751
3799
|
* @param {string} id
|
|
@@ -4066,6 +4114,38 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4066
4114
|
options: localVarRequestOptions,
|
|
4067
4115
|
};
|
|
4068
4116
|
},
|
|
4117
|
+
/**
|
|
4118
|
+
*
|
|
4119
|
+
* @param {string} id
|
|
4120
|
+
* @param {string} paymentId
|
|
4121
|
+
* @param {*} [options] Override http request option.
|
|
4122
|
+
* @throws {RequiredError}
|
|
4123
|
+
*/
|
|
4124
|
+
getCompanyPayment: async (id, paymentId, options = {}) => {
|
|
4125
|
+
// verify required parameter 'id' is not null or undefined
|
|
4126
|
+
assertParamExists('getCompanyPayment', 'id', id);
|
|
4127
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
4128
|
+
assertParamExists('getCompanyPayment', 'paymentId', paymentId);
|
|
4129
|
+
const localVarPath = `/api/companies/{id}/payments/{paymentId}`
|
|
4130
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4131
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
4132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4134
|
+
let baseOptions;
|
|
4135
|
+
if (configuration) {
|
|
4136
|
+
baseOptions = configuration.baseOptions;
|
|
4137
|
+
}
|
|
4138
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4139
|
+
const localVarHeaderParameter = {};
|
|
4140
|
+
const localVarQueryParameter = {};
|
|
4141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4143
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4144
|
+
return {
|
|
4145
|
+
url: toPathString(localVarUrlObj),
|
|
4146
|
+
options: localVarRequestOptions,
|
|
4147
|
+
};
|
|
4148
|
+
},
|
|
4069
4149
|
/**
|
|
4070
4150
|
*
|
|
4071
4151
|
* @param {string} id
|
|
@@ -4094,6 +4174,34 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4094
4174
|
options: localVarRequestOptions,
|
|
4095
4175
|
};
|
|
4096
4176
|
},
|
|
4177
|
+
/**
|
|
4178
|
+
*
|
|
4179
|
+
* @param {string} id
|
|
4180
|
+
* @param {*} [options] Override http request option.
|
|
4181
|
+
* @throws {RequiredError}
|
|
4182
|
+
*/
|
|
4183
|
+
getCompanyPayments: async (id, options = {}) => {
|
|
4184
|
+
// verify required parameter 'id' is not null or undefined
|
|
4185
|
+
assertParamExists('getCompanyPayments', 'id', id);
|
|
4186
|
+
const localVarPath = `/api/companies/{id}/payments`
|
|
4187
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4188
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4189
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4190
|
+
let baseOptions;
|
|
4191
|
+
if (configuration) {
|
|
4192
|
+
baseOptions = configuration.baseOptions;
|
|
4193
|
+
}
|
|
4194
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4195
|
+
const localVarHeaderParameter = {};
|
|
4196
|
+
const localVarQueryParameter = {};
|
|
4197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4199
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4200
|
+
return {
|
|
4201
|
+
url: toPathString(localVarUrlObj),
|
|
4202
|
+
options: localVarRequestOptions,
|
|
4203
|
+
};
|
|
4204
|
+
},
|
|
4097
4205
|
/**
|
|
4098
4206
|
*
|
|
4099
4207
|
* @param {string} id
|
|
@@ -4577,6 +4685,19 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4577
4685
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompany']?.[localVarOperationServerIndex]?.url;
|
|
4578
4686
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4579
4687
|
},
|
|
4688
|
+
/**
|
|
4689
|
+
*
|
|
4690
|
+
* @param {string} id
|
|
4691
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
4692
|
+
* @param {*} [options] Override http request option.
|
|
4693
|
+
* @throws {RequiredError}
|
|
4694
|
+
*/
|
|
4695
|
+
async createCompanyPayment(id, iPaymentPostRequest, options) {
|
|
4696
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyPayment(id, iPaymentPostRequest, options);
|
|
4697
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4698
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4699
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4700
|
+
},
|
|
4580
4701
|
/**
|
|
4581
4702
|
*
|
|
4582
4703
|
* @param {string} id
|
|
@@ -4695,6 +4816,19 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4695
4816
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4696
4817
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4697
4818
|
},
|
|
4819
|
+
/**
|
|
4820
|
+
*
|
|
4821
|
+
* @param {string} id
|
|
4822
|
+
* @param {string} paymentId
|
|
4823
|
+
* @param {*} [options] Override http request option.
|
|
4824
|
+
* @throws {RequiredError}
|
|
4825
|
+
*/
|
|
4826
|
+
async getCompanyPayment(id, paymentId, options) {
|
|
4827
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayment(id, paymentId, options);
|
|
4828
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4829
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4830
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4831
|
+
},
|
|
4698
4832
|
/**
|
|
4699
4833
|
*
|
|
4700
4834
|
* @param {string} id
|
|
@@ -4707,6 +4841,18 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4707
4841
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
4708
4842
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4709
4843
|
},
|
|
4844
|
+
/**
|
|
4845
|
+
*
|
|
4846
|
+
* @param {string} id
|
|
4847
|
+
* @param {*} [options] Override http request option.
|
|
4848
|
+
* @throws {RequiredError}
|
|
4849
|
+
*/
|
|
4850
|
+
async getCompanyPayments(id, options) {
|
|
4851
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayments(id, options);
|
|
4852
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4853
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPayments']?.[localVarOperationServerIndex]?.url;
|
|
4854
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4855
|
+
},
|
|
4710
4856
|
/**
|
|
4711
4857
|
*
|
|
4712
4858
|
* @param {string} id
|
|
@@ -4921,6 +5067,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4921
5067
|
createCompany(requestParameters, options) {
|
|
4922
5068
|
return localVarFp.createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(axios, basePath));
|
|
4923
5069
|
},
|
|
5070
|
+
/**
|
|
5071
|
+
*
|
|
5072
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5073
|
+
* @param {*} [options] Override http request option.
|
|
5074
|
+
* @throws {RequiredError}
|
|
5075
|
+
*/
|
|
5076
|
+
createCompanyPayment(requestParameters, options) {
|
|
5077
|
+
return localVarFp.createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(axios, basePath));
|
|
5078
|
+
},
|
|
4924
5079
|
/**
|
|
4925
5080
|
*
|
|
4926
5081
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -4993,6 +5148,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4993
5148
|
getCompanyCustomers(requestParameters, options) {
|
|
4994
5149
|
return localVarFp.getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4995
5150
|
},
|
|
5151
|
+
/**
|
|
5152
|
+
*
|
|
5153
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
5154
|
+
* @param {*} [options] Override http request option.
|
|
5155
|
+
* @throws {RequiredError}
|
|
5156
|
+
*/
|
|
5157
|
+
getCompanyPayment(requestParameters, options) {
|
|
5158
|
+
return localVarFp.getCompanyPayment(requestParameters.id, requestParameters.paymentId, options).then((request) => request(axios, basePath));
|
|
5159
|
+
},
|
|
4996
5160
|
/**
|
|
4997
5161
|
*
|
|
4998
5162
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5002,6 +5166,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5002
5166
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5003
5167
|
return localVarFp.getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5004
5168
|
},
|
|
5169
|
+
/**
|
|
5170
|
+
*
|
|
5171
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
5172
|
+
* @param {*} [options] Override http request option.
|
|
5173
|
+
* @throws {RequiredError}
|
|
5174
|
+
*/
|
|
5175
|
+
getCompanyPayments(requestParameters, options) {
|
|
5176
|
+
return localVarFp.getCompanyPayments(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5177
|
+
},
|
|
5005
5178
|
/**
|
|
5006
5179
|
*
|
|
5007
5180
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
@@ -5168,6 +5341,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5168
5341
|
createCompany(requestParameters, options) {
|
|
5169
5342
|
return CompanyApiFp(this.configuration).createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5170
5343
|
}
|
|
5344
|
+
/**
|
|
5345
|
+
*
|
|
5346
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5347
|
+
* @param {*} [options] Override http request option.
|
|
5348
|
+
* @throws {RequiredError}
|
|
5349
|
+
* @memberof CompanyApi
|
|
5350
|
+
*/
|
|
5351
|
+
createCompanyPayment(requestParameters, options) {
|
|
5352
|
+
return CompanyApiFp(this.configuration).createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5353
|
+
}
|
|
5171
5354
|
/**
|
|
5172
5355
|
*
|
|
5173
5356
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5248,6 +5431,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5248
5431
|
getCompanyCustomers(requestParameters, options) {
|
|
5249
5432
|
return CompanyApiFp(this.configuration).getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
5250
5433
|
}
|
|
5434
|
+
/**
|
|
5435
|
+
*
|
|
5436
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
5437
|
+
* @param {*} [options] Override http request option.
|
|
5438
|
+
* @throws {RequiredError}
|
|
5439
|
+
* @memberof CompanyApi
|
|
5440
|
+
*/
|
|
5441
|
+
getCompanyPayment(requestParameters, options) {
|
|
5442
|
+
return CompanyApiFp(this.configuration).getCompanyPayment(requestParameters.id, requestParameters.paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
5443
|
+
}
|
|
5251
5444
|
/**
|
|
5252
5445
|
*
|
|
5253
5446
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5258,6 +5451,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5258
5451
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5259
5452
|
return CompanyApiFp(this.configuration).getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5260
5453
|
}
|
|
5454
|
+
/**
|
|
5455
|
+
*
|
|
5456
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
5457
|
+
* @param {*} [options] Override http request option.
|
|
5458
|
+
* @throws {RequiredError}
|
|
5459
|
+
* @memberof CompanyApi
|
|
5460
|
+
*/
|
|
5461
|
+
getCompanyPayments(requestParameters, options) {
|
|
5462
|
+
return CompanyApiFp(this.configuration).getCompanyPayments(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5463
|
+
}
|
|
5261
5464
|
/**
|
|
5262
5465
|
*
|
|
5263
5466
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.86",
|
|
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": "b4d72ad087dec98f5f24eb46bf5bf319826c318d"
|
|
41
41
|
}
|