@finverse/sdk-typescript 0.0.201 → 0.0.203

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
@@ -1214,7 +1214,7 @@ export interface CreatePaymentLinkRequest {
1214
1214
  * @type {number}
1215
1215
  * @memberof CreatePaymentLinkRequest
1216
1216
  */
1217
- amount: number;
1217
+ amount?: number;
1218
1218
  /**
1219
1219
  *
1220
1220
  * @type {string}
@@ -1268,6 +1268,7 @@ export interface CreatePaymentLinkRequest {
1268
1268
  }
1269
1269
  export declare const CreatePaymentLinkRequestModeEnum: {
1270
1270
  readonly Payment: "PAYMENT";
1271
+ readonly Setup: "SETUP";
1271
1272
  };
1272
1273
  export declare type CreatePaymentLinkRequestModeEnum = (typeof CreatePaymentLinkRequestModeEnum)[keyof typeof CreatePaymentLinkRequestModeEnum];
1273
1274
  /**
@@ -4050,6 +4051,43 @@ export interface MandateDetails {
4050
4051
  */
4051
4052
  mandate_bank_reference?: string;
4052
4053
  }
4054
+ /**
4055
+ *
4056
+ * @export
4057
+ * @interface MandateFvLinkResponse
4058
+ */
4059
+ export interface MandateFvLinkResponse {
4060
+ /**
4061
+ *
4062
+ * @type {string}
4063
+ * @memberof MandateFvLinkResponse
4064
+ */
4065
+ mandate_id?: string;
4066
+ /**
4067
+ *
4068
+ * @type {string}
4069
+ * @memberof MandateFvLinkResponse
4070
+ */
4071
+ institution_id?: string;
4072
+ /**
4073
+ *
4074
+ * @type {string}
4075
+ * @memberof MandateFvLinkResponse
4076
+ */
4077
+ mandate_status?: string;
4078
+ /**
4079
+ *
4080
+ * @type {MandateRecipient}
4081
+ * @memberof MandateFvLinkResponse
4082
+ */
4083
+ recipient?: MandateRecipient;
4084
+ /**
4085
+ *
4086
+ * @type {SenderAccountFvLinkResponse}
4087
+ * @memberof MandateFvLinkResponse
4088
+ */
4089
+ sender_account?: SenderAccountFvLinkResponse;
4090
+ }
4053
4091
  /**
4054
4092
  *
4055
4093
  * @export
@@ -4872,6 +4910,31 @@ export declare const PaymentLinkTokenResponseTokenTypeEnum: {
4872
4910
  readonly Bearer: "Bearer";
4873
4911
  };
4874
4912
  export declare type PaymentLinkTokenResponseTokenTypeEnum = (typeof PaymentLinkTokenResponseTokenTypeEnum)[keyof typeof PaymentLinkTokenResponseTokenTypeEnum];
4913
+ /**
4914
+ *
4915
+ * @export
4916
+ * @interface PaymentMethodFvLinkResponse
4917
+ */
4918
+ export interface PaymentMethodFvLinkResponse {
4919
+ /**
4920
+ *
4921
+ * @type {string}
4922
+ * @memberof PaymentMethodFvLinkResponse
4923
+ */
4924
+ payment_method_id?: string;
4925
+ /**
4926
+ *
4927
+ * @type {string}
4928
+ * @memberof PaymentMethodFvLinkResponse
4929
+ */
4930
+ payment_method_type?: string;
4931
+ /**
4932
+ *
4933
+ * @type {MandateFvLinkResponse}
4934
+ * @memberof PaymentMethodFvLinkResponse
4935
+ */
4936
+ mandate?: MandateFvLinkResponse;
4937
+ }
4875
4938
  /**
4876
4939
  *
4877
4940
  * @export
@@ -5597,6 +5660,25 @@ export interface RelinkRequest {
5597
5660
  */
5598
5661
  consent?: boolean | null;
5599
5662
  }
5663
+ /**
5664
+ *
5665
+ * @export
5666
+ * @interface SenderAccountFvLinkResponse
5667
+ */
5668
+ export interface SenderAccountFvLinkResponse {
5669
+ /**
5670
+ *
5671
+ * @type {string}
5672
+ * @memberof SenderAccountFvLinkResponse
5673
+ */
5674
+ account_number_masked?: string;
5675
+ /**
5676
+ *
5677
+ * @type {string}
5678
+ * @memberof SenderAccountFvLinkResponse
5679
+ */
5680
+ institution_id?: string;
5681
+ }
5600
5682
  /**
5601
5683
  *
5602
5684
  * @export
@@ -7167,6 +7249,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7167
7249
  * @throws {RequiredError}
7168
7250
  */
7169
7251
  getPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7252
+ /**
7253
+ * Get payment method in payment link flow
7254
+ * @param {*} [options] Override http request option.
7255
+ * @throws {RequiredError}
7256
+ */
7257
+ getPaymentMethodPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
7170
7258
  /**
7171
7259
  * Get payout by payout_id
7172
7260
  * @param {string} payoutId payout id
@@ -7312,6 +7400,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7312
7400
  * @throws {RequiredError}
7313
7401
  */
7314
7402
  getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
7403
+ /**
7404
+ * Get payment method in payment link flow
7405
+ * @param {*} [options] Override http request option.
7406
+ * @throws {RequiredError}
7407
+ */
7408
+ getPaymentMethodPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodFvLinkResponse>>;
7315
7409
  /**
7316
7410
  * Get payout by payout_id
7317
7411
  * @param {string} payoutId payout id
@@ -7457,6 +7551,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7457
7551
  * @throws {RequiredError}
7458
7552
  */
7459
7553
  getPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
7554
+ /**
7555
+ * Get payment method in payment link flow
7556
+ * @param {*} [options] Override http request option.
7557
+ * @throws {RequiredError}
7558
+ */
7559
+ getPaymentMethodPaymentLink(options?: any): AxiosPromise<PaymentMethodFvLinkResponse>;
7460
7560
  /**
7461
7561
  * Get payout by payout_id
7462
7562
  * @param {string} payoutId payout id
@@ -7616,6 +7716,13 @@ export interface DefaultApiInterface {
7616
7716
  * @memberof DefaultApiInterface
7617
7717
  */
7618
7718
  getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
7719
+ /**
7720
+ * Get payment method in payment link flow
7721
+ * @param {*} [options] Override http request option.
7722
+ * @throws {RequiredError}
7723
+ * @memberof DefaultApiInterface
7724
+ */
7725
+ getPaymentMethodPaymentLink(options?: AxiosRequestConfig): AxiosPromise<PaymentMethodFvLinkResponse>;
7619
7726
  /**
7620
7727
  * Get payout by payout_id
7621
7728
  * @param {string} payoutId payout id
@@ -7781,6 +7888,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
7781
7888
  * @memberof DefaultApi
7782
7889
  */
7783
7890
  getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
7891
+ /**
7892
+ * Get payment method in payment link flow
7893
+ * @param {*} [options] Override http request option.
7894
+ * @throws {RequiredError}
7895
+ * @memberof DefaultApi
7896
+ */
7897
+ getPaymentMethodPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentMethodFvLinkResponse>>;
7784
7898
  /**
7785
7899
  * Get payout by payout_id
7786
7900
  * @param {string} payoutId payout id
package/dist/api.js CHANGED
@@ -97,6 +97,7 @@ exports.CreatePaymentLinkMandateRequestSenderTypeEnum = {
97
97
  };
98
98
  exports.CreatePaymentLinkRequestModeEnum = {
99
99
  Payment: 'PAYMENT',
100
+ Setup: 'SETUP',
100
101
  };
101
102
  exports.CreatePaymentRequestTypeEnum = {
102
103
  Mandate: 'MANDATE',
@@ -2262,6 +2263,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2262
2263
  options: localVarRequestOptions,
2263
2264
  };
2264
2265
  }),
2266
+ /**
2267
+ * Get payment method in payment link flow
2268
+ * @param {*} [options] Override http request option.
2269
+ * @throws {RequiredError}
2270
+ */
2271
+ getPaymentMethodPaymentLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2272
+ const localVarPath = `/payment_link/fvlink/payment_method`;
2273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2274
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2275
+ let baseOptions;
2276
+ if (configuration) {
2277
+ baseOptions = configuration.baseOptions;
2278
+ }
2279
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2280
+ const localVarHeaderParameter = {};
2281
+ const localVarQueryParameter = {};
2282
+ // authentication Oauth2 required
2283
+ // oauth required
2284
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2285
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2286
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2287
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2288
+ return {
2289
+ url: common_1.toPathString(localVarUrlObj),
2290
+ options: localVarRequestOptions,
2291
+ };
2292
+ }),
2265
2293
  /**
2266
2294
  * Get payout by payout_id
2267
2295
  * @param {string} payoutId payout id
@@ -2647,6 +2675,17 @@ exports.DefaultApiFp = function (configuration) {
2647
2675
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2648
2676
  });
2649
2677
  },
2678
+ /**
2679
+ * Get payment method in payment link flow
2680
+ * @param {*} [options] Override http request option.
2681
+ * @throws {RequiredError}
2682
+ */
2683
+ getPaymentMethodPaymentLink(options) {
2684
+ return __awaiter(this, void 0, void 0, function* () {
2685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentMethodPaymentLink(options);
2686
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2687
+ });
2688
+ },
2650
2689
  /**
2651
2690
  * Get payout by payout_id
2652
2691
  * @param {string} payoutId payout id
@@ -2856,6 +2895,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2856
2895
  getPaymentLink(paymentLinkId, options) {
2857
2896
  return localVarFp.getPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
2858
2897
  },
2898
+ /**
2899
+ * Get payment method in payment link flow
2900
+ * @param {*} [options] Override http request option.
2901
+ * @throws {RequiredError}
2902
+ */
2903
+ getPaymentMethodPaymentLink(options) {
2904
+ return localVarFp.getPaymentMethodPaymentLink(options).then((request) => request(axios, basePath));
2905
+ },
2859
2906
  /**
2860
2907
  * Get payout by payout_id
2861
2908
  * @param {string} payoutId payout id
@@ -3085,6 +3132,17 @@ class DefaultApi extends base_1.BaseAPI {
3085
3132
  .getPaymentLink(paymentLinkId, options)
3086
3133
  .then((request) => request(this.axios, this.basePath));
3087
3134
  }
3135
+ /**
3136
+ * Get payment method in payment link flow
3137
+ * @param {*} [options] Override http request option.
3138
+ * @throws {RequiredError}
3139
+ * @memberof DefaultApi
3140
+ */
3141
+ getPaymentMethodPaymentLink(options) {
3142
+ return exports.DefaultApiFp(this.configuration)
3143
+ .getPaymentMethodPaymentLink(options)
3144
+ .then((request) => request(this.axios, this.basePath));
3145
+ }
3088
3146
  /**
3089
3147
  * Get payout by payout_id
3090
3148
  * @param {string} payoutId payout id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.201",
3
+ "version": "0.0.203",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [