@infisale-client/api-client 1.2.106 → 1.2.108

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 CHANGED
@@ -1096,12 +1096,6 @@ export interface IBrandPatchRequest {
1096
1096
  * @memberof IBrandPatchRequest
1097
1097
  */
1098
1098
  'contents'?: PartialRecordLanguageEnumIContentsValue;
1099
- /**
1100
- *
1101
- * @type {Array<string>}
1102
- * @memberof IBrandPatchRequest
1103
- */
1104
- 'slugs'?: Array<string>;
1105
1099
  /**
1106
1100
  *
1107
1101
  * @type {IImage}
@@ -1127,12 +1121,6 @@ export interface IBrandPostRequest {
1127
1121
  * @memberof IBrandPostRequest
1128
1122
  */
1129
1123
  'contents': PartialRecordLanguageEnumIContentsValue;
1130
- /**
1131
- *
1132
- * @type {Array<string>}
1133
- * @memberof IBrandPostRequest
1134
- */
1135
- 'slugs': Array<string>;
1136
1124
  /**
1137
1125
  *
1138
1126
  * @type {IImage}
@@ -1423,12 +1411,6 @@ export interface ICategoryPatchRequest {
1423
1411
  * @memberof ICategoryPatchRequest
1424
1412
  */
1425
1413
  'contents'?: PartialRecordLanguageEnumIContentsValue;
1426
- /**
1427
- *
1428
- * @type {Array<string>}
1429
- * @memberof ICategoryPatchRequest
1430
- */
1431
- 'slugs'?: Array<string>;
1432
1414
  /**
1433
1415
  *
1434
1416
  * @type {IImage}
@@ -1460,12 +1442,6 @@ export interface ICategoryPostRequest {
1460
1442
  * @memberof ICategoryPostRequest
1461
1443
  */
1462
1444
  'contents': PartialRecordLanguageEnumIContentsValue;
1463
- /**
1464
- *
1465
- * @type {Array<string>}
1466
- * @memberof ICategoryPostRequest
1467
- */
1468
- 'slugs': Array<string>;
1469
1445
  /**
1470
1446
  *
1471
1447
  * @type {IImage}
@@ -1809,12 +1785,6 @@ export interface ICollectionPatchRequest {
1809
1785
  * @memberof ICollectionPatchRequest
1810
1786
  */
1811
1787
  'contents'?: PartialRecordLanguageEnumIContentsValue;
1812
- /**
1813
- *
1814
- * @type {Array<string>}
1815
- * @memberof ICollectionPatchRequest
1816
- */
1817
- 'slugs'?: Array<string>;
1818
1788
  /**
1819
1789
  *
1820
1790
  * @type {IImage}
@@ -1840,12 +1810,6 @@ export interface ICollectionPostRequest {
1840
1810
  * @memberof ICollectionPostRequest
1841
1811
  */
1842
1812
  'contents': PartialRecordLanguageEnumIContentsValue;
1843
- /**
1844
- *
1845
- * @type {Array<string>}
1846
- * @memberof ICollectionPostRequest
1847
- */
1848
- 'slugs': Array<string>;
1849
1813
  /**
1850
1814
  *
1851
1815
  * @type {IImage}
@@ -6298,12 +6262,6 @@ export interface IPagePatchRequest {
6298
6262
  * @memberof IPagePatchRequest
6299
6263
  */
6300
6264
  'contents'?: PartialRecordLanguageEnumIContentsValue;
6301
- /**
6302
- *
6303
- * @type {Array<string>}
6304
- * @memberof IPagePatchRequest
6305
- */
6306
- 'slugs'?: Array<string>;
6307
6265
  /**
6308
6266
  *
6309
6267
  * @type {IImage}
@@ -6335,12 +6293,6 @@ export interface IPagePostRequest {
6335
6293
  * @memberof IPagePostRequest
6336
6294
  */
6337
6295
  'contents': PartialRecordLanguageEnumIContentsValue;
6338
- /**
6339
- *
6340
- * @type {Array<string>}
6341
- * @memberof IPagePostRequest
6342
- */
6343
- 'slugs': Array<string>;
6344
6296
  /**
6345
6297
  *
6346
6298
  * @type {IImage}
@@ -7139,12 +7091,6 @@ export interface IProductPatchRequest {
7139
7091
  * @memberof IProductPatchRequest
7140
7092
  */
7141
7093
  'contents'?: PartialRecordLanguageEnumIContentsValue;
7142
- /**
7143
- *
7144
- * @type {Array<string>}
7145
- * @memberof IProductPatchRequest
7146
- */
7147
- 'slugs'?: Array<string>;
7148
7094
  /**
7149
7095
  *
7150
7096
  * @type {Array<VariantType>}
@@ -7230,12 +7176,6 @@ export interface IProductPostRequest {
7230
7176
  * @memberof IProductPostRequest
7231
7177
  */
7232
7178
  'contents': PartialRecordLanguageEnumIContentsValue;
7233
- /**
7234
- *
7235
- * @type {Array<string>}
7236
- * @memberof IProductPostRequest
7237
- */
7238
- 'slugs': Array<string>;
7239
7179
  /**
7240
7180
  *
7241
7181
  * @type {Array<VariantType>}
@@ -9723,31 +9663,25 @@ export interface PickIBasketExcludeKeyofIBasketItems {
9723
9663
  /**
9724
9664
  * From T, pick a set of properties whose keys are in the union K
9725
9665
  * @export
9726
- * @interface PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponse
9666
+ * @interface PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs
9727
9667
  */
9728
- export interface PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponse {
9668
+ export interface PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs {
9729
9669
  /**
9730
9670
  *
9731
9671
  * @type {string}
9732
- * @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponse
9672
+ * @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs
9733
9673
  */
9734
9674
  'company': string;
9735
9675
  /**
9736
9676
  *
9737
9677
  * @type {PartialRecordLanguageEnumIContentsValue}
9738
- * @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponse
9678
+ * @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs
9739
9679
  */
9740
9680
  'contents': PartialRecordLanguageEnumIContentsValue;
9741
- /**
9742
- *
9743
- * @type {Array<string>}
9744
- * @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponse
9745
- */
9746
- 'slugs': Array<string>;
9747
9681
  /**
9748
9682
  *
9749
9683
  * @type {IImage}
9750
- * @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponse
9684
+ * @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs
9751
9685
  */
9752
9686
  'thumbnail'?: IImage;
9753
9687
  }
@@ -9815,37 +9749,31 @@ export interface PickICategoryExcludeKeyofICategoryAttributes {
9815
9749
  /**
9816
9750
  * From T, pick a set of properties whose keys are in the union K
9817
9751
  * @export
9818
- * @interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributes
9752
+ * @interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
9819
9753
  */
9820
- export interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributes {
9754
+ export interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs {
9821
9755
  /**
9822
9756
  *
9823
9757
  * @type {string}
9824
- * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributes
9758
+ * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
9825
9759
  */
9826
9760
  'company': string;
9827
9761
  /**
9828
9762
  *
9829
9763
  * @type {PartialRecordLanguageEnumIContentsValue}
9830
- * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributes
9764
+ * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
9831
9765
  */
9832
9766
  'contents': PartialRecordLanguageEnumIContentsValue;
9833
- /**
9834
- *
9835
- * @type {Array<string>}
9836
- * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributes
9837
- */
9838
- 'slugs': Array<string>;
9839
9767
  /**
9840
9768
  *
9841
9769
  * @type {IImage}
9842
- * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributes
9770
+ * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
9843
9771
  */
9844
9772
  'thumbnail'?: IImage;
9845
9773
  /**
9846
9774
  *
9847
9775
  * @type {string}
9848
- * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributes
9776
+ * @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
9849
9777
  */
9850
9778
  'main'?: string;
9851
9779
  }
@@ -9956,31 +9884,25 @@ export type PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDate
9956
9884
  /**
9957
9885
  * From T, pick a set of properties whose keys are in the union K
9958
9886
  * @export
9959
- * @interface PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplates
9887
+ * @interface PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
9960
9888
  */
9961
- export interface PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplates {
9889
+ export interface PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs {
9962
9890
  /**
9963
9891
  *
9964
9892
  * @type {string}
9965
- * @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplates
9893
+ * @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
9966
9894
  */
9967
9895
  'company': string;
9968
9896
  /**
9969
9897
  *
9970
9898
  * @type {PartialRecordLanguageEnumIContentsValue}
9971
- * @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplates
9899
+ * @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
9972
9900
  */
9973
9901
  'contents': PartialRecordLanguageEnumIContentsValue;
9974
- /**
9975
- *
9976
- * @type {Array<string>}
9977
- * @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplates
9978
- */
9979
- 'slugs': Array<string>;
9980
9902
  /**
9981
9903
  *
9982
9904
  * @type {IImage}
9983
- * @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplates
9905
+ * @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
9984
9906
  */
9985
9907
  'thumbnail'?: IImage;
9986
9908
  }
@@ -11009,37 +10931,31 @@ export interface PickIPageExcludeKeyofIPageTemplate {
11009
10931
  /**
11010
10932
  * From T, pick a set of properties whose keys are in the union K
11011
10933
  * @export
11012
- * @interface PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplates
10934
+ * @interface PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
11013
10935
  */
11014
- export interface PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplates {
10936
+ export interface PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs {
11015
10937
  /**
11016
10938
  *
11017
10939
  * @type {string}
11018
- * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplates
10940
+ * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
11019
10941
  */
11020
10942
  'company': string;
11021
10943
  /**
11022
10944
  *
11023
10945
  * @type {PartialRecordLanguageEnumIContentsValue}
11024
- * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplates
10946
+ * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
11025
10947
  */
11026
10948
  'contents': PartialRecordLanguageEnumIContentsValue;
11027
- /**
11028
- *
11029
- * @type {Array<string>}
11030
- * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplates
11031
- */
11032
- 'slugs': Array<string>;
11033
10949
  /**
11034
10950
  *
11035
10951
  * @type {IImage}
11036
- * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplates
10952
+ * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
11037
10953
  */
11038
10954
  'thumbnail'?: IImage;
11039
10955
  /**
11040
10956
  *
11041
10957
  * @type {PageTypeEnum}
11042
- * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplates
10958
+ * @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
11043
10959
  */
11044
10960
  'type': PageTypeEnum;
11045
10961
  }
@@ -11314,12 +11230,6 @@ export interface PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPo
11314
11230
  * @memberof PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPostRequestOmitFields
11315
11231
  */
11316
11232
  'contents': PartialRecordLanguageEnumIContentsValue;
11317
- /**
11318
- *
11319
- * @type {Array<string>}
11320
- * @memberof PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPostRequestOmitFields
11321
- */
11322
- 'slugs': Array<string>;
11323
11233
  /**
11324
11234
  *
11325
11235
  * @type {Array<VariantType>}
@@ -13629,6 +13539,13 @@ export type GetCollectionsDateFieldEnum = typeof GetCollectionsDateFieldEnum[key
13629
13539
  * @export
13630
13540
  */
13631
13541
  export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration) => {
13542
+ /**
13543
+ *
13544
+ * @param {string} id
13545
+ * @param {*} [options] Override http request option.
13546
+ * @throws {RequiredError}
13547
+ */
13548
+ getCompanyAvailablePaymentGateways: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13632
13549
  /**
13633
13550
  *
13634
13551
  * @param {string} domain
@@ -13642,6 +13559,13 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
13642
13559
  * @export
13643
13560
  */
13644
13561
  export declare const CompanyApiFp: (configuration?: Configuration) => {
13562
+ /**
13563
+ *
13564
+ * @param {string} id
13565
+ * @param {*} [options] Override http request option.
13566
+ * @throws {RequiredError}
13567
+ */
13568
+ getCompanyAvailablePaymentGateways(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyAvailablePaymentGatewaysResponse>>;
13645
13569
  /**
13646
13570
  *
13647
13571
  * @param {string} domain
@@ -13655,6 +13579,13 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
13655
13579
  * @export
13656
13580
  */
13657
13581
  export declare const CompanyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13582
+ /**
13583
+ *
13584
+ * @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
13585
+ * @param {*} [options] Override http request option.
13586
+ * @throws {RequiredError}
13587
+ */
13588
+ getCompanyAvailablePaymentGateways(requestParameters: CompanyApiGetCompanyAvailablePaymentGatewaysRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyAvailablePaymentGatewaysResponse>;
13658
13589
  /**
13659
13590
  *
13660
13591
  * @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
@@ -13663,6 +13594,19 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
13663
13594
  */
13664
13595
  getCompanyByDomainName(requestParameters: CompanyApiGetCompanyByDomainNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyResponse>;
13665
13596
  };
13597
+ /**
13598
+ * Request parameters for getCompanyAvailablePaymentGateways operation in CompanyApi.
13599
+ * @export
13600
+ * @interface CompanyApiGetCompanyAvailablePaymentGatewaysRequest
13601
+ */
13602
+ export interface CompanyApiGetCompanyAvailablePaymentGatewaysRequest {
13603
+ /**
13604
+ *
13605
+ * @type {string}
13606
+ * @memberof CompanyApiGetCompanyAvailablePaymentGateways
13607
+ */
13608
+ readonly id: string;
13609
+ }
13666
13610
  /**
13667
13611
  * Request parameters for getCompanyByDomainName operation in CompanyApi.
13668
13612
  * @export
@@ -13683,6 +13627,14 @@ export interface CompanyApiGetCompanyByDomainNameRequest {
13683
13627
  * @extends {BaseAPI}
13684
13628
  */
13685
13629
  export declare class CompanyApi extends BaseAPI {
13630
+ /**
13631
+ *
13632
+ * @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
13633
+ * @param {*} [options] Override http request option.
13634
+ * @throws {RequiredError}
13635
+ * @memberof CompanyApi
13636
+ */
13637
+ getCompanyAvailablePaymentGateways(requestParameters: CompanyApiGetCompanyAvailablePaymentGatewaysRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyAvailablePaymentGatewaysResponse, any>>;
13686
13638
  /**
13687
13639
  *
13688
13640
  * @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -2254,6 +2254,34 @@ exports.GetCollectionsDateFieldEnum = {
2254
2254
  */
2255
2255
  const CompanyApiAxiosParamCreator = function (configuration) {
2256
2256
  return {
2257
+ /**
2258
+ *
2259
+ * @param {string} id
2260
+ * @param {*} [options] Override http request option.
2261
+ * @throws {RequiredError}
2262
+ */
2263
+ getCompanyAvailablePaymentGateways: async (id, options = {}) => {
2264
+ // verify required parameter 'id' is not null or undefined
2265
+ (0, common_1.assertParamExists)('getCompanyAvailablePaymentGateways', 'id', id);
2266
+ const localVarPath = `/api/companies/{id}/payment-gateways/available`
2267
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2269
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2270
+ let baseOptions;
2271
+ if (configuration) {
2272
+ baseOptions = configuration.baseOptions;
2273
+ }
2274
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2275
+ const localVarHeaderParameter = {};
2276
+ const localVarQueryParameter = {};
2277
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2279
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2280
+ return {
2281
+ url: (0, common_1.toPathString)(localVarUrlObj),
2282
+ options: localVarRequestOptions,
2283
+ };
2284
+ },
2257
2285
  /**
2258
2286
  *
2259
2287
  * @param {string} domain
@@ -2292,6 +2320,18 @@ exports.CompanyApiAxiosParamCreator = CompanyApiAxiosParamCreator;
2292
2320
  const CompanyApiFp = function (configuration) {
2293
2321
  const localVarAxiosParamCreator = (0, exports.CompanyApiAxiosParamCreator)(configuration);
2294
2322
  return {
2323
+ /**
2324
+ *
2325
+ * @param {string} id
2326
+ * @param {*} [options] Override http request option.
2327
+ * @throws {RequiredError}
2328
+ */
2329
+ async getCompanyAvailablePaymentGateways(id, options) {
2330
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyAvailablePaymentGateways(id, options);
2331
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2332
+ const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyAvailablePaymentGateways']?.[localVarOperationServerIndex]?.url;
2333
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2334
+ },
2295
2335
  /**
2296
2336
  *
2297
2337
  * @param {string} domain
@@ -2314,6 +2354,15 @@ exports.CompanyApiFp = CompanyApiFp;
2314
2354
  const CompanyApiFactory = function (configuration, basePath, axios) {
2315
2355
  const localVarFp = (0, exports.CompanyApiFp)(configuration);
2316
2356
  return {
2357
+ /**
2358
+ *
2359
+ * @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
2360
+ * @param {*} [options] Override http request option.
2361
+ * @throws {RequiredError}
2362
+ */
2363
+ getCompanyAvailablePaymentGateways(requestParameters, options) {
2364
+ return localVarFp.getCompanyAvailablePaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
2365
+ },
2317
2366
  /**
2318
2367
  *
2319
2368
  * @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
@@ -2333,6 +2382,16 @@ exports.CompanyApiFactory = CompanyApiFactory;
2333
2382
  * @extends {BaseAPI}
2334
2383
  */
2335
2384
  class CompanyApi extends base_1.BaseAPI {
2385
+ /**
2386
+ *
2387
+ * @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
2388
+ * @param {*} [options] Override http request option.
2389
+ * @throws {RequiredError}
2390
+ * @memberof CompanyApi
2391
+ */
2392
+ getCompanyAvailablePaymentGateways(requestParameters, options) {
2393
+ return (0, exports.CompanyApiFp)(this.configuration).getCompanyAvailablePaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2394
+ }
2336
2395
  /**
2337
2396
  *
2338
2397
  * @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -2227,6 +2227,34 @@ export const GetCollectionsDateFieldEnum = {
2227
2227
  */
2228
2228
  export const CompanyApiAxiosParamCreator = function (configuration) {
2229
2229
  return {
2230
+ /**
2231
+ *
2232
+ * @param {string} id
2233
+ * @param {*} [options] Override http request option.
2234
+ * @throws {RequiredError}
2235
+ */
2236
+ getCompanyAvailablePaymentGateways: async (id, options = {}) => {
2237
+ // verify required parameter 'id' is not null or undefined
2238
+ assertParamExists('getCompanyAvailablePaymentGateways', 'id', id);
2239
+ const localVarPath = `/api/companies/{id}/payment-gateways/available`
2240
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2243
+ let baseOptions;
2244
+ if (configuration) {
2245
+ baseOptions = configuration.baseOptions;
2246
+ }
2247
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2248
+ const localVarHeaderParameter = {};
2249
+ const localVarQueryParameter = {};
2250
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2251
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2252
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2253
+ return {
2254
+ url: toPathString(localVarUrlObj),
2255
+ options: localVarRequestOptions,
2256
+ };
2257
+ },
2230
2258
  /**
2231
2259
  *
2232
2260
  * @param {string} domain
@@ -2264,6 +2292,18 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
2264
2292
  export const CompanyApiFp = function (configuration) {
2265
2293
  const localVarAxiosParamCreator = CompanyApiAxiosParamCreator(configuration);
2266
2294
  return {
2295
+ /**
2296
+ *
2297
+ * @param {string} id
2298
+ * @param {*} [options] Override http request option.
2299
+ * @throws {RequiredError}
2300
+ */
2301
+ async getCompanyAvailablePaymentGateways(id, options) {
2302
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyAvailablePaymentGateways(id, options);
2303
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2304
+ const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyAvailablePaymentGateways']?.[localVarOperationServerIndex]?.url;
2305
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2306
+ },
2267
2307
  /**
2268
2308
  *
2269
2309
  * @param {string} domain
@@ -2285,6 +2325,15 @@ export const CompanyApiFp = function (configuration) {
2285
2325
  export const CompanyApiFactory = function (configuration, basePath, axios) {
2286
2326
  const localVarFp = CompanyApiFp(configuration);
2287
2327
  return {
2328
+ /**
2329
+ *
2330
+ * @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
2331
+ * @param {*} [options] Override http request option.
2332
+ * @throws {RequiredError}
2333
+ */
2334
+ getCompanyAvailablePaymentGateways(requestParameters, options) {
2335
+ return localVarFp.getCompanyAvailablePaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
2336
+ },
2288
2337
  /**
2289
2338
  *
2290
2339
  * @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
@@ -2303,6 +2352,16 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
2303
2352
  * @extends {BaseAPI}
2304
2353
  */
2305
2354
  export class CompanyApi extends BaseAPI {
2355
+ /**
2356
+ *
2357
+ * @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
2358
+ * @param {*} [options] Override http request option.
2359
+ * @throws {RequiredError}
2360
+ * @memberof CompanyApi
2361
+ */
2362
+ getCompanyAvailablePaymentGateways(requestParameters, options) {
2363
+ return CompanyApiFp(this.configuration).getCompanyAvailablePaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2364
+ }
2306
2365
  /**
2307
2366
  *
2308
2367
  * @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.106",
3
+ "version": "1.2.108",
4
4
  "description": "api-client-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": "c181635a96029e7d54448598f3766064502880ec"
40
+ "gitHead": "e5a6d0c044c421d1902f1513504aca522af880af"
41
41
  }