@finverse/sdk-typescript 0.0.270 → 0.0.271

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.d.ts CHANGED
@@ -8686,6 +8686,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
8686
8686
  * @throws {RequiredError}
8687
8687
  */
8688
8688
  getPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8689
+ /**
8690
+ * Get a payment method
8691
+ * @param {string} paymentMethodId
8692
+ * @param {*} [options] Override http request option.
8693
+ * @throws {RequiredError}
8694
+ */
8695
+ getPaymentMethod: (paymentMethodId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8689
8696
  /**
8690
8697
  * Get payment method in payment link flow
8691
8698
  * @param {*} [options] Override http request option.
@@ -8907,6 +8914,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
8907
8914
  * @throws {RequiredError}
8908
8915
  */
8909
8916
  getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
8917
+ /**
8918
+ * Get a payment method
8919
+ * @param {string} paymentMethodId
8920
+ * @param {*} [options] Override http request option.
8921
+ * @throws {RequiredError}
8922
+ */
8923
+ getPaymentMethod(paymentMethodId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodResponse>>;
8910
8924
  /**
8911
8925
  * Get payment method in payment link flow
8912
8926
  * @param {*} [options] Override http request option.
@@ -9128,6 +9142,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
9128
9142
  * @throws {RequiredError}
9129
9143
  */
9130
9144
  getPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
9145
+ /**
9146
+ * Get a payment method
9147
+ * @param {string} paymentMethodId
9148
+ * @param {*} [options] Override http request option.
9149
+ * @throws {RequiredError}
9150
+ */
9151
+ getPaymentMethod(paymentMethodId: string, options?: any): AxiosPromise<PaymentMethodResponse>;
9131
9152
  /**
9132
9153
  * Get payment method in payment link flow
9133
9154
  * @param {*} [options] Override http request option.
@@ -9367,6 +9388,14 @@ export interface DefaultApiInterface {
9367
9388
  * @memberof DefaultApiInterface
9368
9389
  */
9369
9390
  getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
9391
+ /**
9392
+ * Get a payment method
9393
+ * @param {string} paymentMethodId
9394
+ * @param {*} [options] Override http request option.
9395
+ * @throws {RequiredError}
9396
+ * @memberof DefaultApiInterface
9397
+ */
9398
+ getPaymentMethod(paymentMethodId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodResponse>;
9370
9399
  /**
9371
9400
  * Get payment method in payment link flow
9372
9401
  * @param {*} [options] Override http request option.
@@ -9618,6 +9647,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
9618
9647
  * @memberof DefaultApi
9619
9648
  */
9620
9649
  getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
9650
+ /**
9651
+ * Get a payment method
9652
+ * @param {string} paymentMethodId
9653
+ * @param {*} [options] Override http request option.
9654
+ * @throws {RequiredError}
9655
+ * @memberof DefaultApi
9656
+ */
9657
+ getPaymentMethod(paymentMethodId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentMethodResponse>>;
9621
9658
  /**
9622
9659
  * Get payment method in payment link flow
9623
9660
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -2565,6 +2565,36 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2565
2565
  options: localVarRequestOptions,
2566
2566
  };
2567
2567
  }),
2568
+ /**
2569
+ * Get a payment method
2570
+ * @param {string} paymentMethodId
2571
+ * @param {*} [options] Override http request option.
2572
+ * @throws {RequiredError}
2573
+ */
2574
+ getPaymentMethod: (paymentMethodId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2575
+ // verify required parameter 'paymentMethodId' is not null or undefined
2576
+ common_1.assertParamExists('getPaymentMethod', 'paymentMethodId', paymentMethodId);
2577
+ const localVarPath = `/payment_methods/{paymentMethodId}`.replace(`{${'paymentMethodId'}}`, encodeURIComponent(String(paymentMethodId)));
2578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2579
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2580
+ let baseOptions;
2581
+ if (configuration) {
2582
+ baseOptions = configuration.baseOptions;
2583
+ }
2584
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2585
+ const localVarHeaderParameter = {};
2586
+ const localVarQueryParameter = {};
2587
+ // authentication Oauth2 required
2588
+ // oauth required
2589
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2590
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2591
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2592
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2593
+ return {
2594
+ url: common_1.toPathString(localVarUrlObj),
2595
+ options: localVarRequestOptions,
2596
+ };
2597
+ }),
2568
2598
  /**
2569
2599
  * Get payment method in payment link flow
2570
2600
  * @param {*} [options] Override http request option.
@@ -3206,6 +3236,18 @@ exports.DefaultApiFp = function (configuration) {
3206
3236
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3207
3237
  });
3208
3238
  },
3239
+ /**
3240
+ * Get a payment method
3241
+ * @param {string} paymentMethodId
3242
+ * @param {*} [options] Override http request option.
3243
+ * @throws {RequiredError}
3244
+ */
3245
+ getPaymentMethod(paymentMethodId, options) {
3246
+ return __awaiter(this, void 0, void 0, function* () {
3247
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentMethod(paymentMethodId, options);
3248
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3249
+ });
3250
+ },
3209
3251
  /**
3210
3252
  * Get payment method in payment link flow
3211
3253
  * @param {*} [options] Override http request option.
@@ -3533,6 +3575,15 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
3533
3575
  getPaymentLink(paymentLinkId, options) {
3534
3576
  return localVarFp.getPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
3535
3577
  },
3578
+ /**
3579
+ * Get a payment method
3580
+ * @param {string} paymentMethodId
3581
+ * @param {*} [options] Override http request option.
3582
+ * @throws {RequiredError}
3583
+ */
3584
+ getPaymentMethod(paymentMethodId, options) {
3585
+ return localVarFp.getPaymentMethod(paymentMethodId, options).then((request) => request(axios, basePath));
3586
+ },
3536
3587
  /**
3537
3588
  * Get payment method in payment link flow
3538
3589
  * @param {*} [options] Override http request option.
@@ -3874,6 +3925,18 @@ class DefaultApi extends base_1.BaseAPI {
3874
3925
  .getPaymentLink(paymentLinkId, options)
3875
3926
  .then((request) => request(this.axios, this.basePath));
3876
3927
  }
3928
+ /**
3929
+ * Get a payment method
3930
+ * @param {string} paymentMethodId
3931
+ * @param {*} [options] Override http request option.
3932
+ * @throws {RequiredError}
3933
+ * @memberof DefaultApi
3934
+ */
3935
+ getPaymentMethod(paymentMethodId, options) {
3936
+ return exports.DefaultApiFp(this.configuration)
3937
+ .getPaymentMethod(paymentMethodId, options)
3938
+ .then((request) => request(this.axios, this.basePath));
3939
+ }
3877
3940
  /**
3878
3941
  * Get payment method in payment link flow
3879
3942
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.270",
3
+ "version": "0.0.271",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [