@finverse/sdk-typescript 0.0.112 → 0.0.114

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
@@ -839,6 +839,43 @@ export interface CreatePaymentInstructionResponse {
839
839
  */
840
840
  payment_instruction_id?: string;
841
841
  }
842
+ /**
843
+ *
844
+ * @export
845
+ * @interface CreatePaymentLinkMandateRequest
846
+ */
847
+ export interface CreatePaymentLinkMandateRequest {
848
+ /**
849
+ *
850
+ * @type {string}
851
+ * @memberof CreatePaymentLinkMandateRequest
852
+ */
853
+ invoice_id: string;
854
+ /**
855
+ * The sender type of the mandate
856
+ * @type {string}
857
+ * @memberof CreatePaymentLinkMandateRequest
858
+ */
859
+ sender_type: CreatePaymentLinkMandateRequestSenderTypeEnum;
860
+ }
861
+ export declare const CreatePaymentLinkMandateRequestSenderTypeEnum: {
862
+ readonly Individual: "INDIVIDUAL";
863
+ readonly Business: "BUSINESS";
864
+ };
865
+ export declare type CreatePaymentLinkMandateRequestSenderTypeEnum = (typeof CreatePaymentLinkMandateRequestSenderTypeEnum)[keyof typeof CreatePaymentLinkMandateRequestSenderTypeEnum];
866
+ /**
867
+ *
868
+ * @export
869
+ * @interface CreatePaymentLinkMandateResponse
870
+ */
871
+ export interface CreatePaymentLinkMandateResponse {
872
+ /**
873
+ *
874
+ * @type {PaymentLinkTokenResponse}
875
+ * @memberof CreatePaymentLinkMandateResponse
876
+ */
877
+ mandate_link_token: PaymentLinkTokenResponse;
878
+ }
842
879
  /**
843
880
  *
844
881
  * @export
@@ -3876,6 +3913,41 @@ export declare const PaymentInstructionTypeEnum: {
3876
3913
  readonly DebitAuthorization: "DEBIT_AUTHORIZATION";
3877
3914
  };
3878
3915
  export declare type PaymentInstructionTypeEnum = (typeof PaymentInstructionTypeEnum)[keyof typeof PaymentInstructionTypeEnum];
3916
+ /**
3917
+ *
3918
+ * @export
3919
+ * @interface PaymentLinkTokenResponse
3920
+ */
3921
+ export interface PaymentLinkTokenResponse {
3922
+ /**
3923
+ * Short-lived access-token to interact with Finverse Link
3924
+ * @type {string}
3925
+ * @memberof PaymentLinkTokenResponse
3926
+ */
3927
+ access_token: string;
3928
+ /**
3929
+ * Access token validity duration (in seconds)
3930
+ * @type {number}
3931
+ * @memberof PaymentLinkTokenResponse
3932
+ */
3933
+ expires_in: number;
3934
+ /**
3935
+ * URL to launch Finverse Link to authorize the mandate
3936
+ * @type {string}
3937
+ * @memberof PaymentLinkTokenResponse
3938
+ */
3939
+ link_url: string;
3940
+ /**
3941
+ *
3942
+ * @type {string}
3943
+ * @memberof PaymentLinkTokenResponse
3944
+ */
3945
+ token_type: PaymentLinkTokenResponseTokenTypeEnum;
3946
+ }
3947
+ export declare const PaymentLinkTokenResponseTokenTypeEnum: {
3948
+ readonly Bearer: "Bearer";
3949
+ };
3950
+ export declare type PaymentLinkTokenResponseTokenTypeEnum = (typeof PaymentLinkTokenResponseTokenTypeEnum)[keyof typeof PaymentLinkTokenResponseTokenTypeEnum];
3879
3951
  /**
3880
3952
  *
3881
3953
  * @export
@@ -4218,6 +4290,12 @@ export interface Principal {
4218
4290
  * @memberof Principal
4219
4291
  */
4220
4292
  expires_in?: number;
4293
+ /**
4294
+ *
4295
+ * @type {string}
4296
+ * @memberof Principal
4297
+ */
4298
+ invoice_id?: string;
4221
4299
  /**
4222
4300
  *
4223
4301
  * @type {Array<string>}
@@ -6224,6 +6302,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
6224
6302
  * @throws {RequiredError}
6225
6303
  */
6226
6304
  confirmPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
6305
+ /**
6306
+ * CREATE Mandate for payment link
6307
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
6308
+ * @param {*} [options] Override http request option.
6309
+ * @throws {RequiredError}
6310
+ */
6311
+ createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6227
6312
  /**
6228
6313
  * List mandates
6229
6314
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -6267,6 +6352,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
6267
6352
  * @throws {RequiredError}
6268
6353
  */
6269
6354
  confirmPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentResponse>>;
6355
+ /**
6356
+ * CREATE Mandate for payment link
6357
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
6358
+ * @param {*} [options] Override http request option.
6359
+ * @throws {RequiredError}
6360
+ */
6361
+ createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
6270
6362
  /**
6271
6363
  * List mandates
6272
6364
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -6310,6 +6402,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
6310
6402
  * @throws {RequiredError}
6311
6403
  */
6312
6404
  confirmPayment(options?: any): AxiosPromise<ConfirmPaymentResponse>;
6405
+ /**
6406
+ * CREATE Mandate for payment link
6407
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
6408
+ * @param {*} [options] Override http request option.
6409
+ * @throws {RequiredError}
6410
+ */
6411
+ createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
6313
6412
  /**
6314
6413
  * List mandates
6315
6414
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -6355,6 +6454,14 @@ export interface DefaultApiInterface {
6355
6454
  * @memberof DefaultApiInterface
6356
6455
  */
6357
6456
  confirmPayment(options?: AxiosRequestConfig): AxiosPromise<ConfirmPaymentResponse>;
6457
+ /**
6458
+ * CREATE Mandate for payment link
6459
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
6460
+ * @param {*} [options] Override http request option.
6461
+ * @throws {RequiredError}
6462
+ * @memberof DefaultApiInterface
6463
+ */
6464
+ createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
6358
6465
  /**
6359
6466
  * List mandates
6360
6467
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -6403,6 +6510,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
6403
6510
  * @memberof DefaultApi
6404
6511
  */
6405
6512
  confirmPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfirmPaymentResponse>>;
6513
+ /**
6514
+ * CREATE Mandate for payment link
6515
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
6516
+ * @param {*} [options] Override http request option.
6517
+ * @throws {RequiredError}
6518
+ * @memberof DefaultApi
6519
+ */
6520
+ createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
6406
6521
  /**
6407
6522
  * List mandates
6408
6523
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderResponseSenderTypeEnum = exports.SenderDetailDetailsTypeEnum = exports.SenderAccountResponseAccountTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderSenderTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateSenderRequestSenderTypeEnum = exports.CreateSenderAccountRequestAccountTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreateMandateSenderSenderTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
25
+ exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderResponseSenderTypeEnum = exports.SenderDetailDetailsTypeEnum = exports.SenderAccountResponseAccountTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderSenderTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateSenderRequestSenderTypeEnum = exports.CreateSenderAccountRequestAccountTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderSenderTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -88,6 +88,10 @@ exports.CreateMandateSenderSenderTypeEnum = {
88
88
  Individual: 'INDIVIDUAL',
89
89
  Business: 'BUSINESS',
90
90
  };
91
+ exports.CreatePaymentLinkMandateRequestSenderTypeEnum = {
92
+ Individual: 'INDIVIDUAL',
93
+ Business: 'BUSINESS',
94
+ };
91
95
  exports.CreatePaymentRequestTypeEnum = {
92
96
  Mandate: 'MANDATE',
93
97
  Single: 'SINGLE',
@@ -201,6 +205,9 @@ exports.PaymentInfoPaymentsSupportedEnum = {
201
205
  exports.PaymentInstructionTypeEnum = {
202
206
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
203
207
  };
208
+ exports.PaymentLinkTokenResponseTokenTypeEnum = {
209
+ Bearer: 'Bearer',
210
+ };
204
211
  exports.PaymentResponseTypeEnum = {
205
212
  Mandate: 'MANDATE',
206
213
  Single: 'SINGLE',
@@ -2091,7 +2098,7 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2091
2098
  * @throws {RequiredError}
2092
2099
  */
2093
2100
  confirmPayment: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2094
- const localVarPath = `/payments/confirm`;
2101
+ const localVarPath = `/payment-link/confirm`;
2095
2102
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2096
2103
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2097
2104
  let baseOptions;
@@ -2112,6 +2119,38 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2112
2119
  options: localVarRequestOptions,
2113
2120
  };
2114
2121
  }),
2122
+ /**
2123
+ * CREATE Mandate for payment link
2124
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
2125
+ * @param {*} [options] Override http request option.
2126
+ * @throws {RequiredError}
2127
+ */
2128
+ createPaymentLinkMandate: (createPaymentLinkMandateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2129
+ // verify required parameter 'createPaymentLinkMandateRequest' is not null or undefined
2130
+ common_1.assertParamExists('createPaymentLinkMandate', 'createPaymentLinkMandateRequest', createPaymentLinkMandateRequest);
2131
+ const localVarPath = `/payment-link/mandates`;
2132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2133
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2134
+ let baseOptions;
2135
+ if (configuration) {
2136
+ baseOptions = configuration.baseOptions;
2137
+ }
2138
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2139
+ const localVarHeaderParameter = {};
2140
+ const localVarQueryParameter = {};
2141
+ // authentication Oauth2 required
2142
+ // oauth required
2143
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2144
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2145
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2146
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2147
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2148
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentLinkMandateRequest, localVarRequestOptions, configuration);
2149
+ return {
2150
+ url: common_1.toPathString(localVarUrlObj),
2151
+ options: localVarRequestOptions,
2152
+ };
2153
+ }),
2115
2154
  /**
2116
2155
  * List mandates
2117
2156
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -2266,6 +2305,18 @@ exports.DefaultApiFp = function (configuration) {
2266
2305
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2267
2306
  });
2268
2307
  },
2308
+ /**
2309
+ * CREATE Mandate for payment link
2310
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
2311
+ * @param {*} [options] Override http request option.
2312
+ * @throws {RequiredError}
2313
+ */
2314
+ createPaymentLinkMandate(createPaymentLinkMandateRequest, options) {
2315
+ return __awaiter(this, void 0, void 0, function* () {
2316
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentLinkMandate(createPaymentLinkMandateRequest, options);
2317
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2318
+ });
2319
+ },
2269
2320
  /**
2270
2321
  * List mandates
2271
2322
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -2324,6 +2375,17 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2324
2375
  confirmPayment(options) {
2325
2376
  return localVarFp.confirmPayment(options).then((request) => request(axios, basePath));
2326
2377
  },
2378
+ /**
2379
+ * CREATE Mandate for payment link
2380
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
2381
+ * @param {*} [options] Override http request option.
2382
+ * @throws {RequiredError}
2383
+ */
2384
+ createPaymentLinkMandate(createPaymentLinkMandateRequest, options) {
2385
+ return localVarFp
2386
+ .createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
2387
+ .then((request) => request(axios, basePath));
2388
+ },
2327
2389
  /**
2328
2390
  * List mandates
2329
2391
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -2383,6 +2445,18 @@ class DefaultApi extends base_1.BaseAPI {
2383
2445
  .confirmPayment(options)
2384
2446
  .then((request) => request(this.axios, this.basePath));
2385
2447
  }
2448
+ /**
2449
+ * CREATE Mandate for payment link
2450
+ * @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
2451
+ * @param {*} [options] Override http request option.
2452
+ * @throws {RequiredError}
2453
+ * @memberof DefaultApi
2454
+ */
2455
+ createPaymentLinkMandate(createPaymentLinkMandateRequest, options) {
2456
+ return exports.DefaultApiFp(this.configuration)
2457
+ .createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
2458
+ .then((request) => request(this.axios, this.basePath));
2459
+ }
2386
2460
  /**
2387
2461
  * List mandates
2388
2462
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.112",
3
+ "version": "0.0.114",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [