@finverse/sdk-typescript 0.0.147 → 0.0.149

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
@@ -920,11 +920,11 @@ export interface CreatePaymentLinkRequest {
920
920
  */
921
921
  currency: string;
922
922
  /**
923
- * Specifies language to be used in Finverse UI
924
- * @type {string}
923
+ *
924
+ * @type {PaymentLinkCustomizations}
925
925
  * @memberof CreatePaymentLinkRequest
926
926
  */
927
- language?: string;
927
+ link_customizations?: PaymentLinkCustomizations;
928
928
  /**
929
929
  * The payment link mode
930
930
  * @type {string}
@@ -2827,7 +2827,7 @@ export interface LinkTokenRequest {
2827
2827
  */
2828
2828
  link_mode?: string;
2829
2829
  /**
2830
- * The UI mode link is intended to be used in - \"iframe\" (default), \"auto_redirect\" or \"redirect\" or \"standalone\"
2830
+ * The UI mode link is intended to be used in - \"iframe\", \"auto_redirect\", \"redirect\" or \"standalone\"
2831
2831
  * @type {string}
2832
2832
  * @memberof LinkTokenRequest
2833
2833
  */
@@ -3486,7 +3486,7 @@ export interface MandateAuthLinkCustomizations {
3486
3486
  */
3487
3487
  products_supported?: Array<string>;
3488
3488
  /**
3489
- * The UI mode link is intended to be used in - \"iframe\" (default), \"auto_redirect\" or \"redirect\" or \"standalone\"
3489
+ * The UI mode link is intended to be used in - \"iframe\", \"auto_redirect\", \"redirect\" or \"standalone\"
3490
3490
  * @type {string}
3491
3491
  * @memberof MandateAuthLinkCustomizations
3492
3492
  */
@@ -4002,6 +4002,32 @@ export declare const PaymentInstructionTypeEnum: {
4002
4002
  readonly DebitAuthorization: "DEBIT_AUTHORIZATION";
4003
4003
  };
4004
4004
  export declare type PaymentInstructionTypeEnum = (typeof PaymentInstructionTypeEnum)[keyof typeof PaymentInstructionTypeEnum];
4005
+ /**
4006
+ *
4007
+ * @export
4008
+ * @interface PaymentLinkCustomizations
4009
+ */
4010
+ export interface PaymentLinkCustomizations {
4011
+ /**
4012
+ * ISO639-1 language code. Language to display when user open the link, default to English (en) if not specified
4013
+ * @type {string}
4014
+ * @memberof PaymentLinkCustomizations
4015
+ */
4016
+ language?: string;
4017
+ /**
4018
+ * The UI mode link is intended to be used in - \"iframe\", \"auto_redirect\", \"redirect\" or \"standalone\"
4019
+ * @type {string}
4020
+ * @memberof PaymentLinkCustomizations
4021
+ */
4022
+ ui_mode?: PaymentLinkCustomizationsUiModeEnum;
4023
+ }
4024
+ export declare const PaymentLinkCustomizationsUiModeEnum: {
4025
+ readonly Iframe: "iframe";
4026
+ readonly Redirect: "redirect";
4027
+ readonly AutoRedirect: "auto_redirect";
4028
+ readonly Standalone: "standalone";
4029
+ };
4030
+ export declare type PaymentLinkCustomizationsUiModeEnum = (typeof PaymentLinkCustomizationsUiModeEnum)[keyof typeof PaymentLinkCustomizationsUiModeEnum];
4005
4031
  /**
4006
4032
  *
4007
4033
  * @export
@@ -4046,11 +4072,11 @@ export interface PaymentLinkResponse {
4046
4072
  */
4047
4073
  currency?: string;
4048
4074
  /**
4049
- * Specifies language to be used in Finverse UI
4050
- * @type {string}
4075
+ *
4076
+ * @type {PaymentLinkCustomizations}
4051
4077
  * @memberof PaymentLinkResponse
4052
4078
  */
4053
- language?: string;
4079
+ link_customizations?: PaymentLinkCustomizations;
4054
4080
  /**
4055
4081
  * The payment link mode
4056
4082
  * @type {string}
@@ -6113,6 +6139,13 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6113
6139
  * @export
6114
6140
  */
6115
6141
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
6142
+ /**
6143
+ * Cancel a payment link
6144
+ * @param {string} paymentLinkId The payment link id
6145
+ * @param {*} [options] Override http request option.
6146
+ * @throws {RequiredError}
6147
+ */
6148
+ cancelPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6116
6149
  /**
6117
6150
  * Submit manual payment confirmation
6118
6151
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -6209,6 +6242,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
6209
6242
  * @export
6210
6243
  */
6211
6244
  export declare const DefaultApiFp: (configuration?: Configuration) => {
6245
+ /**
6246
+ * Cancel a payment link
6247
+ * @param {string} paymentLinkId The payment link id
6248
+ * @param {*} [options] Override http request option.
6249
+ * @throws {RequiredError}
6250
+ */
6251
+ cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
6212
6252
  /**
6213
6253
  * Submit manual payment confirmation
6214
6254
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -6305,6 +6345,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
6305
6345
  * @export
6306
6346
  */
6307
6347
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6348
+ /**
6349
+ * Cancel a payment link
6350
+ * @param {string} paymentLinkId The payment link id
6351
+ * @param {*} [options] Override http request option.
6352
+ * @throws {RequiredError}
6353
+ */
6354
+ cancelPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
6308
6355
  /**
6309
6356
  * Submit manual payment confirmation
6310
6357
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -6402,6 +6449,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
6402
6449
  * @interface DefaultApi
6403
6450
  */
6404
6451
  export interface DefaultApiInterface {
6452
+ /**
6453
+ * Cancel a payment link
6454
+ * @param {string} paymentLinkId The payment link id
6455
+ * @param {*} [options] Override http request option.
6456
+ * @throws {RequiredError}
6457
+ * @memberof DefaultApiInterface
6458
+ */
6459
+ cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
6405
6460
  /**
6406
6461
  * Submit manual payment confirmation
6407
6462
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -6511,6 +6566,14 @@ export interface DefaultApiInterface {
6511
6566
  * @extends {BaseAPI}
6512
6567
  */
6513
6568
  export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
6569
+ /**
6570
+ * Cancel a payment link
6571
+ * @param {string} paymentLinkId The payment link id
6572
+ * @param {*} [options] Override http request option.
6573
+ * @throws {RequiredError}
6574
+ * @memberof DefaultApi
6575
+ */
6576
+ cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
6514
6577
  /**
6515
6578
  * Submit manual payment confirmation
6516
6579
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
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.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = 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.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = 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
@@ -209,6 +209,12 @@ exports.PaymentInfoPaymentsSupportedEnum = {
209
209
  exports.PaymentInstructionTypeEnum = {
210
210
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
211
211
  };
212
+ exports.PaymentLinkCustomizationsUiModeEnum = {
213
+ Iframe: 'iframe',
214
+ Redirect: 'redirect',
215
+ AutoRedirect: 'auto_redirect',
216
+ Standalone: 'standalone',
217
+ };
212
218
  exports.PaymentLinkResponseModeEnum = {
213
219
  Payment: 'PAYMENT',
214
220
  };
@@ -1585,6 +1591,36 @@ exports.CustomerApi = CustomerApi;
1585
1591
  */
1586
1592
  exports.DefaultApiAxiosParamCreator = function (configuration) {
1587
1593
  return {
1594
+ /**
1595
+ * Cancel a payment link
1596
+ * @param {string} paymentLinkId The payment link id
1597
+ * @param {*} [options] Override http request option.
1598
+ * @throws {RequiredError}
1599
+ */
1600
+ cancelPaymentLink: (paymentLinkId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1601
+ // verify required parameter 'paymentLinkId' is not null or undefined
1602
+ common_1.assertParamExists('cancelPaymentLink', 'paymentLinkId', paymentLinkId);
1603
+ const localVarPath = `/payment_links/{paymentLinkId}/cancel`.replace(`{${'paymentLinkId'}}`, encodeURIComponent(String(paymentLinkId)));
1604
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1605
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1606
+ let baseOptions;
1607
+ if (configuration) {
1608
+ baseOptions = configuration.baseOptions;
1609
+ }
1610
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1611
+ const localVarHeaderParameter = {};
1612
+ const localVarQueryParameter = {};
1613
+ // authentication Oauth2 required
1614
+ // oauth required
1615
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1616
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1617
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1618
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1619
+ return {
1620
+ url: common_1.toPathString(localVarUrlObj),
1621
+ options: localVarRequestOptions,
1622
+ };
1623
+ }),
1588
1624
  /**
1589
1625
  * Submit manual payment confirmation
1590
1626
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -1994,6 +2030,18 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
1994
2030
  exports.DefaultApiFp = function (configuration) {
1995
2031
  const localVarAxiosParamCreator = exports.DefaultApiAxiosParamCreator(configuration);
1996
2032
  return {
2033
+ /**
2034
+ * Cancel a payment link
2035
+ * @param {string} paymentLinkId The payment link id
2036
+ * @param {*} [options] Override http request option.
2037
+ * @throws {RequiredError}
2038
+ */
2039
+ cancelPaymentLink(paymentLinkId, options) {
2040
+ return __awaiter(this, void 0, void 0, function* () {
2041
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPaymentLink(paymentLinkId, options);
2042
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2043
+ });
2044
+ },
1997
2045
  /**
1998
2046
  * Submit manual payment confirmation
1999
2047
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -2148,6 +2196,15 @@ exports.DefaultApiFp = function (configuration) {
2148
2196
  exports.DefaultApiFactory = function (configuration, basePath, axios) {
2149
2197
  const localVarFp = exports.DefaultApiFp(configuration);
2150
2198
  return {
2199
+ /**
2200
+ * Cancel a payment link
2201
+ * @param {string} paymentLinkId The payment link id
2202
+ * @param {*} [options] Override http request option.
2203
+ * @throws {RequiredError}
2204
+ */
2205
+ cancelPaymentLink(paymentLinkId, options) {
2206
+ return localVarFp.cancelPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
2207
+ },
2151
2208
  /**
2152
2209
  * Submit manual payment confirmation
2153
2210
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -2281,6 +2338,18 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2281
2338
  * @extends {BaseAPI}
2282
2339
  */
2283
2340
  class DefaultApi extends base_1.BaseAPI {
2341
+ /**
2342
+ * Cancel a payment link
2343
+ * @param {string} paymentLinkId The payment link id
2344
+ * @param {*} [options] Override http request option.
2345
+ * @throws {RequiredError}
2346
+ * @memberof DefaultApi
2347
+ */
2348
+ cancelPaymentLink(paymentLinkId, options) {
2349
+ return exports.DefaultApiFp(this.configuration)
2350
+ .cancelPaymentLink(paymentLinkId, options)
2351
+ .then((request) => request(this.axios, this.basePath));
2352
+ }
2284
2353
  /**
2285
2354
  * Submit manual payment confirmation
2286
2355
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.147",
3
+ "version": "0.0.149",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [