@infisale-client/api 1.2.85 → 1.2.87
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 +379 -8
- package/dist/api/api.js +218 -5
- package/dist/api/api.mjs +214 -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 IPaymentsResponse
|
|
6103
|
+
*/
|
|
6104
|
+
export interface IPaymentsResponse {
|
|
6105
|
+
/**
|
|
6106
|
+
*
|
|
6107
|
+
* @type {number}
|
|
6108
|
+
* @memberof IPaymentsResponse
|
|
6109
|
+
*/
|
|
6110
|
+
'totalPages': number;
|
|
6111
|
+
/**
|
|
6112
|
+
*
|
|
6113
|
+
* @type {number}
|
|
6114
|
+
* @memberof IPaymentsResponse
|
|
6115
|
+
*/
|
|
6116
|
+
'page': number;
|
|
6117
|
+
/**
|
|
6118
|
+
*
|
|
6119
|
+
* @type {number}
|
|
6120
|
+
* @memberof IPaymentsResponse
|
|
6121
|
+
*/
|
|
6122
|
+
'itemsPerPage': number;
|
|
6123
|
+
/**
|
|
6124
|
+
*
|
|
6125
|
+
* @type {number}
|
|
6126
|
+
* @memberof IPaymentsResponse
|
|
6127
|
+
*/
|
|
6128
|
+
'total': number;
|
|
6129
|
+
/**
|
|
6130
|
+
*
|
|
6131
|
+
* @type {Array<IPayment>}
|
|
6132
|
+
* @memberof IPaymentsResponse
|
|
6133
|
+
*/
|
|
6134
|
+
'data': Array<IPayment>;
|
|
6135
|
+
}
|
|
5941
6136
|
/**
|
|
5942
6137
|
*
|
|
5943
6138
|
* @export
|
|
@@ -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
|
*
|
|
@@ -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,15 @@ 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 {number} [itemsPerPage]
|
|
14045
|
+
* @param {number} [page]
|
|
14046
|
+
* @param {*} [options] Override http request option.
|
|
14047
|
+
* @throws {RequiredError}
|
|
14048
|
+
*/
|
|
14049
|
+
getCompanyPayments: (id: string, itemsPerPage?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13812
14050
|
/**
|
|
13813
14051
|
*
|
|
13814
14052
|
* @param {string} id
|
|
@@ -13949,6 +14187,14 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
13949
14187
|
* @throws {RequiredError}
|
|
13950
14188
|
*/
|
|
13951
14189
|
createCompany(iCompanyPostRequest: ICompanyPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyResponse>>;
|
|
14190
|
+
/**
|
|
14191
|
+
*
|
|
14192
|
+
* @param {string} id
|
|
14193
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
14194
|
+
* @param {*} [options] Override http request option.
|
|
14195
|
+
* @throws {RequiredError}
|
|
14196
|
+
*/
|
|
14197
|
+
createCompanyPayment(id: string, iPaymentPostRequest: IPaymentPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPaymentCreateResponse>>;
|
|
13952
14198
|
/**
|
|
13953
14199
|
*
|
|
13954
14200
|
* @param {string} id
|
|
@@ -14027,6 +14273,14 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
14027
14273
|
* @throws {RequiredError}
|
|
14028
14274
|
*/
|
|
14029
14275
|
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>>;
|
|
14276
|
+
/**
|
|
14277
|
+
*
|
|
14278
|
+
* @param {string} id
|
|
14279
|
+
* @param {string} paymentId
|
|
14280
|
+
* @param {*} [options] Override http request option.
|
|
14281
|
+
* @throws {RequiredError}
|
|
14282
|
+
*/
|
|
14283
|
+
getCompanyPayment(id: string, paymentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPayment>>;
|
|
14030
14284
|
/**
|
|
14031
14285
|
*
|
|
14032
14286
|
* @param {string} id
|
|
@@ -14034,6 +14288,15 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
14034
14288
|
* @throws {RequiredError}
|
|
14035
14289
|
*/
|
|
14036
14290
|
getCompanyPaymentGateways(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyPaymentGatewaysResponse>>;
|
|
14291
|
+
/**
|
|
14292
|
+
*
|
|
14293
|
+
* @param {string} id
|
|
14294
|
+
* @param {number} [itemsPerPage]
|
|
14295
|
+
* @param {number} [page]
|
|
14296
|
+
* @param {*} [options] Override http request option.
|
|
14297
|
+
* @throws {RequiredError}
|
|
14298
|
+
*/
|
|
14299
|
+
getCompanyPayments(id: string, itemsPerPage?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPaymentsResponse>>;
|
|
14037
14300
|
/**
|
|
14038
14301
|
*
|
|
14039
14302
|
* @param {string} id
|
|
@@ -14172,6 +14435,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
14172
14435
|
* @throws {RequiredError}
|
|
14173
14436
|
*/
|
|
14174
14437
|
createCompany(requestParameters: CompanyApiCreateCompanyRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyResponse>;
|
|
14438
|
+
/**
|
|
14439
|
+
*
|
|
14440
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
14441
|
+
* @param {*} [options] Override http request option.
|
|
14442
|
+
* @throws {RequiredError}
|
|
14443
|
+
*/
|
|
14444
|
+
createCompanyPayment(requestParameters: CompanyApiCreateCompanyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPaymentCreateResponse>;
|
|
14175
14445
|
/**
|
|
14176
14446
|
*
|
|
14177
14447
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -14228,6 +14498,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
14228
14498
|
* @throws {RequiredError}
|
|
14229
14499
|
*/
|
|
14230
14500
|
getCompanyCustomers(requestParameters: CompanyApiGetCompanyCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUsersResponse>;
|
|
14501
|
+
/**
|
|
14502
|
+
*
|
|
14503
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
14504
|
+
* @param {*} [options] Override http request option.
|
|
14505
|
+
* @throws {RequiredError}
|
|
14506
|
+
*/
|
|
14507
|
+
getCompanyPayment(requestParameters: CompanyApiGetCompanyPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPayment>;
|
|
14231
14508
|
/**
|
|
14232
14509
|
*
|
|
14233
14510
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -14235,6 +14512,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
14235
14512
|
* @throws {RequiredError}
|
|
14236
14513
|
*/
|
|
14237
14514
|
getCompanyPaymentGateways(requestParameters: CompanyApiGetCompanyPaymentGatewaysRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyPaymentGatewaysResponse>;
|
|
14515
|
+
/**
|
|
14516
|
+
*
|
|
14517
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
14518
|
+
* @param {*} [options] Override http request option.
|
|
14519
|
+
* @throws {RequiredError}
|
|
14520
|
+
*/
|
|
14521
|
+
getCompanyPayments(requestParameters: CompanyApiGetCompanyPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPaymentsResponse>;
|
|
14238
14522
|
/**
|
|
14239
14523
|
*
|
|
14240
14524
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
@@ -14391,6 +14675,25 @@ export interface CompanyApiCreateCompanyRequest {
|
|
|
14391
14675
|
*/
|
|
14392
14676
|
readonly iCompanyPostRequest: ICompanyPostRequest;
|
|
14393
14677
|
}
|
|
14678
|
+
/**
|
|
14679
|
+
* Request parameters for createCompanyPayment operation in CompanyApi.
|
|
14680
|
+
* @export
|
|
14681
|
+
* @interface CompanyApiCreateCompanyPaymentRequest
|
|
14682
|
+
*/
|
|
14683
|
+
export interface CompanyApiCreateCompanyPaymentRequest {
|
|
14684
|
+
/**
|
|
14685
|
+
*
|
|
14686
|
+
* @type {string}
|
|
14687
|
+
* @memberof CompanyApiCreateCompanyPayment
|
|
14688
|
+
*/
|
|
14689
|
+
readonly id: string;
|
|
14690
|
+
/**
|
|
14691
|
+
*
|
|
14692
|
+
* @type {IPaymentPostRequest}
|
|
14693
|
+
* @memberof CompanyApiCreateCompanyPayment
|
|
14694
|
+
*/
|
|
14695
|
+
readonly iPaymentPostRequest: IPaymentPostRequest;
|
|
14696
|
+
}
|
|
14394
14697
|
/**
|
|
14395
14698
|
* Request parameters for deleteCompany operation in CompanyApi.
|
|
14396
14699
|
* @export
|
|
@@ -14627,6 +14930,25 @@ export interface CompanyApiGetCompanyCustomersRequest {
|
|
|
14627
14930
|
*/
|
|
14628
14931
|
readonly status?: CompanyUserStatusEnum;
|
|
14629
14932
|
}
|
|
14933
|
+
/**
|
|
14934
|
+
* Request parameters for getCompanyPayment operation in CompanyApi.
|
|
14935
|
+
* @export
|
|
14936
|
+
* @interface CompanyApiGetCompanyPaymentRequest
|
|
14937
|
+
*/
|
|
14938
|
+
export interface CompanyApiGetCompanyPaymentRequest {
|
|
14939
|
+
/**
|
|
14940
|
+
*
|
|
14941
|
+
* @type {string}
|
|
14942
|
+
* @memberof CompanyApiGetCompanyPayment
|
|
14943
|
+
*/
|
|
14944
|
+
readonly id: string;
|
|
14945
|
+
/**
|
|
14946
|
+
*
|
|
14947
|
+
* @type {string}
|
|
14948
|
+
* @memberof CompanyApiGetCompanyPayment
|
|
14949
|
+
*/
|
|
14950
|
+
readonly paymentId: string;
|
|
14951
|
+
}
|
|
14630
14952
|
/**
|
|
14631
14953
|
* Request parameters for getCompanyPaymentGateways operation in CompanyApi.
|
|
14632
14954
|
* @export
|
|
@@ -14640,6 +14962,31 @@ export interface CompanyApiGetCompanyPaymentGatewaysRequest {
|
|
|
14640
14962
|
*/
|
|
14641
14963
|
readonly id: string;
|
|
14642
14964
|
}
|
|
14965
|
+
/**
|
|
14966
|
+
* Request parameters for getCompanyPayments operation in CompanyApi.
|
|
14967
|
+
* @export
|
|
14968
|
+
* @interface CompanyApiGetCompanyPaymentsRequest
|
|
14969
|
+
*/
|
|
14970
|
+
export interface CompanyApiGetCompanyPaymentsRequest {
|
|
14971
|
+
/**
|
|
14972
|
+
*
|
|
14973
|
+
* @type {string}
|
|
14974
|
+
* @memberof CompanyApiGetCompanyPayments
|
|
14975
|
+
*/
|
|
14976
|
+
readonly id: string;
|
|
14977
|
+
/**
|
|
14978
|
+
*
|
|
14979
|
+
* @type {number}
|
|
14980
|
+
* @memberof CompanyApiGetCompanyPayments
|
|
14981
|
+
*/
|
|
14982
|
+
readonly itemsPerPage?: number;
|
|
14983
|
+
/**
|
|
14984
|
+
*
|
|
14985
|
+
* @type {number}
|
|
14986
|
+
* @memberof CompanyApiGetCompanyPayments
|
|
14987
|
+
*/
|
|
14988
|
+
readonly page?: number;
|
|
14989
|
+
}
|
|
14643
14990
|
/**
|
|
14644
14991
|
* Request parameters for getCompanyProductReviews operation in CompanyApi.
|
|
14645
14992
|
* @export
|
|
@@ -14926,6 +15273,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
14926
15273
|
* @memberof CompanyApi
|
|
14927
15274
|
*/
|
|
14928
15275
|
createCompany(requestParameters: CompanyApiCreateCompanyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyResponse, any>>;
|
|
15276
|
+
/**
|
|
15277
|
+
*
|
|
15278
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
15279
|
+
* @param {*} [options] Override http request option.
|
|
15280
|
+
* @throws {RequiredError}
|
|
15281
|
+
* @memberof CompanyApi
|
|
15282
|
+
*/
|
|
15283
|
+
createCompanyPayment(requestParameters: CompanyApiCreateCompanyPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPaymentCreateResponse, any>>;
|
|
14929
15284
|
/**
|
|
14930
15285
|
*
|
|
14931
15286
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -14990,6 +15345,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
14990
15345
|
* @memberof CompanyApi
|
|
14991
15346
|
*/
|
|
14992
15347
|
getCompanyCustomers(requestParameters: CompanyApiGetCompanyCustomersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUsersResponse, any>>;
|
|
15348
|
+
/**
|
|
15349
|
+
*
|
|
15350
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
15351
|
+
* @param {*} [options] Override http request option.
|
|
15352
|
+
* @throws {RequiredError}
|
|
15353
|
+
* @memberof CompanyApi
|
|
15354
|
+
*/
|
|
15355
|
+
getCompanyPayment(requestParameters: CompanyApiGetCompanyPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPayment, any>>;
|
|
14993
15356
|
/**
|
|
14994
15357
|
*
|
|
14995
15358
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -14998,6 +15361,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
14998
15361
|
* @memberof CompanyApi
|
|
14999
15362
|
*/
|
|
15000
15363
|
getCompanyPaymentGateways(requestParameters: CompanyApiGetCompanyPaymentGatewaysRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyPaymentGatewaysResponse, any>>;
|
|
15364
|
+
/**
|
|
15365
|
+
*
|
|
15366
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
15367
|
+
* @param {*} [options] Override http request option.
|
|
15368
|
+
* @throws {RequiredError}
|
|
15369
|
+
* @memberof CompanyApi
|
|
15370
|
+
*/
|
|
15371
|
+
getCompanyPayments(requestParameters: CompanyApiGetCompanyPaymentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPaymentsResponse, any>>;
|
|
15001
15372
|
/**
|
|
15002
15373
|
*
|
|
15003
15374
|
* @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,42 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4130
4210
|
options: localVarRequestOptions,
|
|
4131
4211
|
};
|
|
4132
4212
|
},
|
|
4213
|
+
/**
|
|
4214
|
+
*
|
|
4215
|
+
* @param {string} id
|
|
4216
|
+
* @param {number} [itemsPerPage]
|
|
4217
|
+
* @param {number} [page]
|
|
4218
|
+
* @param {*} [options] Override http request option.
|
|
4219
|
+
* @throws {RequiredError}
|
|
4220
|
+
*/
|
|
4221
|
+
getCompanyPayments: async (id, itemsPerPage, page, options = {}) => {
|
|
4222
|
+
// verify required parameter 'id' is not null or undefined
|
|
4223
|
+
(0, common_1.assertParamExists)('getCompanyPayments', 'id', id);
|
|
4224
|
+
const localVarPath = `/api/companies/{id}/payments`
|
|
4225
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4226
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4227
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4228
|
+
let baseOptions;
|
|
4229
|
+
if (configuration) {
|
|
4230
|
+
baseOptions = configuration.baseOptions;
|
|
4231
|
+
}
|
|
4232
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4233
|
+
const localVarHeaderParameter = {};
|
|
4234
|
+
const localVarQueryParameter = {};
|
|
4235
|
+
if (itemsPerPage !== undefined) {
|
|
4236
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
4237
|
+
}
|
|
4238
|
+
if (page !== undefined) {
|
|
4239
|
+
localVarQueryParameter['page'] = page;
|
|
4240
|
+
}
|
|
4241
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4242
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4243
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4244
|
+
return {
|
|
4245
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4246
|
+
options: localVarRequestOptions,
|
|
4247
|
+
};
|
|
4248
|
+
},
|
|
4133
4249
|
/**
|
|
4134
4250
|
*
|
|
4135
4251
|
* @param {string} id
|
|
@@ -4614,6 +4730,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
4614
4730
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompany']?.[localVarOperationServerIndex]?.url;
|
|
4615
4731
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4616
4732
|
},
|
|
4733
|
+
/**
|
|
4734
|
+
*
|
|
4735
|
+
* @param {string} id
|
|
4736
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
4737
|
+
* @param {*} [options] Override http request option.
|
|
4738
|
+
* @throws {RequiredError}
|
|
4739
|
+
*/
|
|
4740
|
+
async createCompanyPayment(id, iPaymentPostRequest, options) {
|
|
4741
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyPayment(id, iPaymentPostRequest, options);
|
|
4742
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4743
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4744
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4745
|
+
},
|
|
4617
4746
|
/**
|
|
4618
4747
|
*
|
|
4619
4748
|
* @param {string} id
|
|
@@ -4732,6 +4861,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
4732
4861
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4733
4862
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4734
4863
|
},
|
|
4864
|
+
/**
|
|
4865
|
+
*
|
|
4866
|
+
* @param {string} id
|
|
4867
|
+
* @param {string} paymentId
|
|
4868
|
+
* @param {*} [options] Override http request option.
|
|
4869
|
+
* @throws {RequiredError}
|
|
4870
|
+
*/
|
|
4871
|
+
async getCompanyPayment(id, paymentId, options) {
|
|
4872
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayment(id, paymentId, options);
|
|
4873
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4874
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4875
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4876
|
+
},
|
|
4735
4877
|
/**
|
|
4736
4878
|
*
|
|
4737
4879
|
* @param {string} id
|
|
@@ -4744,6 +4886,20 @@ const CompanyApiFp = function (configuration) {
|
|
|
4744
4886
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
4745
4887
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4746
4888
|
},
|
|
4889
|
+
/**
|
|
4890
|
+
*
|
|
4891
|
+
* @param {string} id
|
|
4892
|
+
* @param {number} [itemsPerPage]
|
|
4893
|
+
* @param {number} [page]
|
|
4894
|
+
* @param {*} [options] Override http request option.
|
|
4895
|
+
* @throws {RequiredError}
|
|
4896
|
+
*/
|
|
4897
|
+
async getCompanyPayments(id, itemsPerPage, page, options) {
|
|
4898
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayments(id, itemsPerPage, page, options);
|
|
4899
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4900
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPayments']?.[localVarOperationServerIndex]?.url;
|
|
4901
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4902
|
+
},
|
|
4747
4903
|
/**
|
|
4748
4904
|
*
|
|
4749
4905
|
* @param {string} id
|
|
@@ -4959,6 +5115,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4959
5115
|
createCompany(requestParameters, options) {
|
|
4960
5116
|
return localVarFp.createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(axios, basePath));
|
|
4961
5117
|
},
|
|
5118
|
+
/**
|
|
5119
|
+
*
|
|
5120
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5121
|
+
* @param {*} [options] Override http request option.
|
|
5122
|
+
* @throws {RequiredError}
|
|
5123
|
+
*/
|
|
5124
|
+
createCompanyPayment(requestParameters, options) {
|
|
5125
|
+
return localVarFp.createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(axios, basePath));
|
|
5126
|
+
},
|
|
4962
5127
|
/**
|
|
4963
5128
|
*
|
|
4964
5129
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5031,6 +5196,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5031
5196
|
getCompanyCustomers(requestParameters, options) {
|
|
5032
5197
|
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
5198
|
},
|
|
5199
|
+
/**
|
|
5200
|
+
*
|
|
5201
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
5202
|
+
* @param {*} [options] Override http request option.
|
|
5203
|
+
* @throws {RequiredError}
|
|
5204
|
+
*/
|
|
5205
|
+
getCompanyPayment(requestParameters, options) {
|
|
5206
|
+
return localVarFp.getCompanyPayment(requestParameters.id, requestParameters.paymentId, options).then((request) => request(axios, basePath));
|
|
5207
|
+
},
|
|
5034
5208
|
/**
|
|
5035
5209
|
*
|
|
5036
5210
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5040,6 +5214,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5040
5214
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5041
5215
|
return localVarFp.getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5042
5216
|
},
|
|
5217
|
+
/**
|
|
5218
|
+
*
|
|
5219
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
5220
|
+
* @param {*} [options] Override http request option.
|
|
5221
|
+
* @throws {RequiredError}
|
|
5222
|
+
*/
|
|
5223
|
+
getCompanyPayments(requestParameters, options) {
|
|
5224
|
+
return localVarFp.getCompanyPayments(requestParameters.id, requestParameters.itemsPerPage, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
5225
|
+
},
|
|
5043
5226
|
/**
|
|
5044
5227
|
*
|
|
5045
5228
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
@@ -5207,6 +5390,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5207
5390
|
createCompany(requestParameters, options) {
|
|
5208
5391
|
return (0, exports.CompanyApiFp)(this.configuration).createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5209
5392
|
}
|
|
5393
|
+
/**
|
|
5394
|
+
*
|
|
5395
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5396
|
+
* @param {*} [options] Override http request option.
|
|
5397
|
+
* @throws {RequiredError}
|
|
5398
|
+
* @memberof CompanyApi
|
|
5399
|
+
*/
|
|
5400
|
+
createCompanyPayment(requestParameters, options) {
|
|
5401
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5402
|
+
}
|
|
5210
5403
|
/**
|
|
5211
5404
|
*
|
|
5212
5405
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5287,6 +5480,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5287
5480
|
getCompanyCustomers(requestParameters, options) {
|
|
5288
5481
|
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
5482
|
}
|
|
5483
|
+
/**
|
|
5484
|
+
*
|
|
5485
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
5486
|
+
* @param {*} [options] Override http request option.
|
|
5487
|
+
* @throws {RequiredError}
|
|
5488
|
+
* @memberof CompanyApi
|
|
5489
|
+
*/
|
|
5490
|
+
getCompanyPayment(requestParameters, options) {
|
|
5491
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyPayment(requestParameters.id, requestParameters.paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
5492
|
+
}
|
|
5290
5493
|
/**
|
|
5291
5494
|
*
|
|
5292
5495
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5297,6 +5500,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5297
5500
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5298
5501
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5299
5502
|
}
|
|
5503
|
+
/**
|
|
5504
|
+
*
|
|
5505
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
5506
|
+
* @param {*} [options] Override http request option.
|
|
5507
|
+
* @throws {RequiredError}
|
|
5508
|
+
* @memberof CompanyApi
|
|
5509
|
+
*/
|
|
5510
|
+
getCompanyPayments(requestParameters, options) {
|
|
5511
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyPayments(requestParameters.id, requestParameters.itemsPerPage, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
5512
|
+
}
|
|
5300
5513
|
/**
|
|
5301
5514
|
*
|
|
5302
5515
|
* @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,42 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4094
4174
|
options: localVarRequestOptions,
|
|
4095
4175
|
};
|
|
4096
4176
|
},
|
|
4177
|
+
/**
|
|
4178
|
+
*
|
|
4179
|
+
* @param {string} id
|
|
4180
|
+
* @param {number} [itemsPerPage]
|
|
4181
|
+
* @param {number} [page]
|
|
4182
|
+
* @param {*} [options] Override http request option.
|
|
4183
|
+
* @throws {RequiredError}
|
|
4184
|
+
*/
|
|
4185
|
+
getCompanyPayments: async (id, itemsPerPage, page, options = {}) => {
|
|
4186
|
+
// verify required parameter 'id' is not null or undefined
|
|
4187
|
+
assertParamExists('getCompanyPayments', 'id', id);
|
|
4188
|
+
const localVarPath = `/api/companies/{id}/payments`
|
|
4189
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4191
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4192
|
+
let baseOptions;
|
|
4193
|
+
if (configuration) {
|
|
4194
|
+
baseOptions = configuration.baseOptions;
|
|
4195
|
+
}
|
|
4196
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4197
|
+
const localVarHeaderParameter = {};
|
|
4198
|
+
const localVarQueryParameter = {};
|
|
4199
|
+
if (itemsPerPage !== undefined) {
|
|
4200
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
4201
|
+
}
|
|
4202
|
+
if (page !== undefined) {
|
|
4203
|
+
localVarQueryParameter['page'] = page;
|
|
4204
|
+
}
|
|
4205
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4207
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4208
|
+
return {
|
|
4209
|
+
url: toPathString(localVarUrlObj),
|
|
4210
|
+
options: localVarRequestOptions,
|
|
4211
|
+
};
|
|
4212
|
+
},
|
|
4097
4213
|
/**
|
|
4098
4214
|
*
|
|
4099
4215
|
* @param {string} id
|
|
@@ -4577,6 +4693,19 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4577
4693
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompany']?.[localVarOperationServerIndex]?.url;
|
|
4578
4694
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4579
4695
|
},
|
|
4696
|
+
/**
|
|
4697
|
+
*
|
|
4698
|
+
* @param {string} id
|
|
4699
|
+
* @param {IPaymentPostRequest} iPaymentPostRequest
|
|
4700
|
+
* @param {*} [options] Override http request option.
|
|
4701
|
+
* @throws {RequiredError}
|
|
4702
|
+
*/
|
|
4703
|
+
async createCompanyPayment(id, iPaymentPostRequest, options) {
|
|
4704
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyPayment(id, iPaymentPostRequest, options);
|
|
4705
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4706
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4707
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4708
|
+
},
|
|
4580
4709
|
/**
|
|
4581
4710
|
*
|
|
4582
4711
|
* @param {string} id
|
|
@@ -4695,6 +4824,19 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4695
4824
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4696
4825
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4697
4826
|
},
|
|
4827
|
+
/**
|
|
4828
|
+
*
|
|
4829
|
+
* @param {string} id
|
|
4830
|
+
* @param {string} paymentId
|
|
4831
|
+
* @param {*} [options] Override http request option.
|
|
4832
|
+
* @throws {RequiredError}
|
|
4833
|
+
*/
|
|
4834
|
+
async getCompanyPayment(id, paymentId, options) {
|
|
4835
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayment(id, paymentId, options);
|
|
4836
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4837
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4838
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4839
|
+
},
|
|
4698
4840
|
/**
|
|
4699
4841
|
*
|
|
4700
4842
|
* @param {string} id
|
|
@@ -4707,6 +4849,20 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4707
4849
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
4708
4850
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4709
4851
|
},
|
|
4852
|
+
/**
|
|
4853
|
+
*
|
|
4854
|
+
* @param {string} id
|
|
4855
|
+
* @param {number} [itemsPerPage]
|
|
4856
|
+
* @param {number} [page]
|
|
4857
|
+
* @param {*} [options] Override http request option.
|
|
4858
|
+
* @throws {RequiredError}
|
|
4859
|
+
*/
|
|
4860
|
+
async getCompanyPayments(id, itemsPerPage, page, options) {
|
|
4861
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayments(id, itemsPerPage, page, options);
|
|
4862
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4863
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPayments']?.[localVarOperationServerIndex]?.url;
|
|
4864
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4865
|
+
},
|
|
4710
4866
|
/**
|
|
4711
4867
|
*
|
|
4712
4868
|
* @param {string} id
|
|
@@ -4921,6 +5077,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4921
5077
|
createCompany(requestParameters, options) {
|
|
4922
5078
|
return localVarFp.createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(axios, basePath));
|
|
4923
5079
|
},
|
|
5080
|
+
/**
|
|
5081
|
+
*
|
|
5082
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5083
|
+
* @param {*} [options] Override http request option.
|
|
5084
|
+
* @throws {RequiredError}
|
|
5085
|
+
*/
|
|
5086
|
+
createCompanyPayment(requestParameters, options) {
|
|
5087
|
+
return localVarFp.createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(axios, basePath));
|
|
5088
|
+
},
|
|
4924
5089
|
/**
|
|
4925
5090
|
*
|
|
4926
5091
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -4993,6 +5158,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4993
5158
|
getCompanyCustomers(requestParameters, options) {
|
|
4994
5159
|
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
5160
|
},
|
|
5161
|
+
/**
|
|
5162
|
+
*
|
|
5163
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
5164
|
+
* @param {*} [options] Override http request option.
|
|
5165
|
+
* @throws {RequiredError}
|
|
5166
|
+
*/
|
|
5167
|
+
getCompanyPayment(requestParameters, options) {
|
|
5168
|
+
return localVarFp.getCompanyPayment(requestParameters.id, requestParameters.paymentId, options).then((request) => request(axios, basePath));
|
|
5169
|
+
},
|
|
4996
5170
|
/**
|
|
4997
5171
|
*
|
|
4998
5172
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5002,6 +5176,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5002
5176
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5003
5177
|
return localVarFp.getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5004
5178
|
},
|
|
5179
|
+
/**
|
|
5180
|
+
*
|
|
5181
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
5182
|
+
* @param {*} [options] Override http request option.
|
|
5183
|
+
* @throws {RequiredError}
|
|
5184
|
+
*/
|
|
5185
|
+
getCompanyPayments(requestParameters, options) {
|
|
5186
|
+
return localVarFp.getCompanyPayments(requestParameters.id, requestParameters.itemsPerPage, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
5187
|
+
},
|
|
5005
5188
|
/**
|
|
5006
5189
|
*
|
|
5007
5190
|
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
@@ -5168,6 +5351,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5168
5351
|
createCompany(requestParameters, options) {
|
|
5169
5352
|
return CompanyApiFp(this.configuration).createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5170
5353
|
}
|
|
5354
|
+
/**
|
|
5355
|
+
*
|
|
5356
|
+
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5357
|
+
* @param {*} [options] Override http request option.
|
|
5358
|
+
* @throws {RequiredError}
|
|
5359
|
+
* @memberof CompanyApi
|
|
5360
|
+
*/
|
|
5361
|
+
createCompanyPayment(requestParameters, options) {
|
|
5362
|
+
return CompanyApiFp(this.configuration).createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5363
|
+
}
|
|
5171
5364
|
/**
|
|
5172
5365
|
*
|
|
5173
5366
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5248,6 +5441,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5248
5441
|
getCompanyCustomers(requestParameters, options) {
|
|
5249
5442
|
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
5443
|
}
|
|
5444
|
+
/**
|
|
5445
|
+
*
|
|
5446
|
+
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
5447
|
+
* @param {*} [options] Override http request option.
|
|
5448
|
+
* @throws {RequiredError}
|
|
5449
|
+
* @memberof CompanyApi
|
|
5450
|
+
*/
|
|
5451
|
+
getCompanyPayment(requestParameters, options) {
|
|
5452
|
+
return CompanyApiFp(this.configuration).getCompanyPayment(requestParameters.id, requestParameters.paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
5453
|
+
}
|
|
5251
5454
|
/**
|
|
5252
5455
|
*
|
|
5253
5456
|
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5258,6 +5461,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5258
5461
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5259
5462
|
return CompanyApiFp(this.configuration).getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5260
5463
|
}
|
|
5464
|
+
/**
|
|
5465
|
+
*
|
|
5466
|
+
* @param {CompanyApiGetCompanyPaymentsRequest} requestParameters Request parameters.
|
|
5467
|
+
* @param {*} [options] Override http request option.
|
|
5468
|
+
* @throws {RequiredError}
|
|
5469
|
+
* @memberof CompanyApi
|
|
5470
|
+
*/
|
|
5471
|
+
getCompanyPayments(requestParameters, options) {
|
|
5472
|
+
return CompanyApiFp(this.configuration).getCompanyPayments(requestParameters.id, requestParameters.itemsPerPage, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
5473
|
+
}
|
|
5261
5474
|
/**
|
|
5262
5475
|
*
|
|
5263
5476
|
* @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.87",
|
|
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": "d0e994e8a21df80f67ff804ad6ed9bd27cc1821e"
|
|
41
41
|
}
|