@finverse/sdk-typescript 0.0.140 → 0.0.141

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
@@ -901,6 +901,86 @@ export interface CreatePaymentLinkMandateResponse {
901
901
  */
902
902
  mandate_link_token: PaymentLinkTokenResponse;
903
903
  }
904
+ /**
905
+ *
906
+ * @export
907
+ * @interface CreatePaymentLinkRequest
908
+ */
909
+ export interface CreatePaymentLinkRequest {
910
+ /**
911
+ * The amount of the payment. Expressed in currency\'s smallest unit or “minor unit”, as defined in ISO 4217.
912
+ * @type {number}
913
+ * @memberof CreatePaymentLinkRequest
914
+ */
915
+ amount: number;
916
+ /**
917
+ *
918
+ * @type {string}
919
+ * @memberof CreatePaymentLinkRequest
920
+ */
921
+ currency: string;
922
+ /**
923
+ * Specifies language to be used in Finverse UI
924
+ * @type {string}
925
+ * @memberof CreatePaymentLinkRequest
926
+ */
927
+ language?: string;
928
+ /**
929
+ * The payment link mode
930
+ * @type {string}
931
+ * @memberof CreatePaymentLinkRequest
932
+ */
933
+ mode: CreatePaymentLinkRequestModeEnum;
934
+ /**
935
+ *
936
+ * @type {PaymentLinkDetails}
937
+ * @memberof CreatePaymentLinkRequest
938
+ */
939
+ payment_details: PaymentLinkDetails;
940
+ /**
941
+ *
942
+ * @type {PaymentLinkRecipientAccount}
943
+ * @memberof CreatePaymentLinkRequest
944
+ */
945
+ recipient_account: PaymentLinkRecipientAccount;
946
+ /**
947
+ *
948
+ * @type {PaymentLinkSender}
949
+ * @memberof CreatePaymentLinkRequest
950
+ */
951
+ sender: PaymentLinkSender;
952
+ /**
953
+ * Unique reference id to identifying the payment to be collected.
954
+ * @type {string}
955
+ * @memberof CreatePaymentLinkRequest
956
+ */
957
+ unique_reference_id: string;
958
+ /**
959
+ * Additional attributes of the payment link in key:value format (e.g. payment_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
960
+ * @type {{ [key: string]: string; }}
961
+ * @memberof CreatePaymentLinkRequest
962
+ */
963
+ metadata?: {
964
+ [key: string]: string;
965
+ };
966
+ }
967
+ export declare const CreatePaymentLinkRequestModeEnum: {
968
+ readonly Payment: "PAYMENT";
969
+ };
970
+ export declare type CreatePaymentLinkRequestModeEnum = (typeof CreatePaymentLinkRequestModeEnum)[keyof typeof CreatePaymentLinkRequestModeEnum];
971
+ /**
972
+ *
973
+ * @export
974
+ * @interface CreatePaymentLinkResponse
975
+ */
976
+ export interface CreatePaymentLinkResponse {
977
+ /**
978
+ * The URL for payment link
979
+ * @type {string}
980
+ * @memberof CreatePaymentLinkResponse
981
+ */
982
+ payment_link_url: string;
983
+ }
904
984
  /**
905
985
  *
906
986
  * @export
@@ -3941,6 +4021,63 @@ export declare const PaymentInstructionTypeEnum: {
3941
4021
  readonly DebitAuthorization: "DEBIT_AUTHORIZATION";
3942
4022
  };
3943
4023
  export declare type PaymentInstructionTypeEnum = (typeof PaymentInstructionTypeEnum)[keyof typeof PaymentInstructionTypeEnum];
4024
+ /**
4025
+ *
4026
+ * @export
4027
+ * @interface PaymentLinkDetails
4028
+ */
4029
+ export interface PaymentLinkDetails {
4030
+ /**
4031
+ *
4032
+ * @type {string}
4033
+ * @memberof PaymentLinkDetails
4034
+ */
4035
+ description?: string;
4036
+ /**
4037
+ * For external invoice reference
4038
+ * @type {string}
4039
+ * @memberof PaymentLinkDetails
4040
+ */
4041
+ external_invoice_id?: string;
4042
+ }
4043
+ /**
4044
+ *
4045
+ * @export
4046
+ * @interface PaymentLinkRecipientAccount
4047
+ */
4048
+ export interface PaymentLinkRecipientAccount {
4049
+ /**
4050
+ * Merchant account ID assigned by Finverse
4051
+ * @type {string}
4052
+ * @memberof PaymentLinkRecipientAccount
4053
+ */
4054
+ recipient_account_id: string;
4055
+ }
4056
+ /**
4057
+ *
4058
+ * @export
4059
+ * @interface PaymentLinkSender
4060
+ */
4061
+ export interface PaymentLinkSender {
4062
+ /**
4063
+ *
4064
+ * @type {string}
4065
+ * @memberof PaymentLinkSender
4066
+ */
4067
+ email?: string;
4068
+ /**
4069
+ * Customer App\'s user ID, representing the end-user making the payment.
4070
+ * @type {string}
4071
+ * @memberof PaymentLinkSender
4072
+ */
4073
+ external_user_id: string;
4074
+ /**
4075
+ * Accountholder name of the sender\'s account
4076
+ * @type {string}
4077
+ * @memberof PaymentLinkSender
4078
+ */
4079
+ name: string;
4080
+ }
3944
4081
  /**
3945
4082
  *
3946
4083
  * @export
@@ -5881,6 +6018,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
5881
6018
  * @throws {RequiredError}
5882
6019
  */
5883
6020
  createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
6021
+ /**
6022
+ * Create payment link
6023
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
6024
+ * @param {*} [options] Override http request option.
6025
+ * @throws {RequiredError}
6026
+ */
6027
+ createPaymentLink: (createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5884
6028
  /**
5885
6029
  * Initiate Card Payment for a Payment Link
5886
6030
  * @param {*} [options] Override http request option.
@@ -5963,6 +6107,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
5963
6107
  * @throws {RequiredError}
5964
6108
  */
5965
6109
  createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
6110
+ /**
6111
+ * Create payment link
6112
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
6113
+ * @param {*} [options] Override http request option.
6114
+ * @throws {RequiredError}
6115
+ */
6116
+ createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkResponse>>;
5966
6117
  /**
5967
6118
  * Initiate Card Payment for a Payment Link
5968
6119
  * @param {*} [options] Override http request option.
@@ -6045,6 +6196,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
6045
6196
  * @throws {RequiredError}
6046
6197
  */
6047
6198
  createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
6199
+ /**
6200
+ * Create payment link
6201
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
6202
+ * @param {*} [options] Override http request option.
6203
+ * @throws {RequiredError}
6204
+ */
6205
+ createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: any): AxiosPromise<CreatePaymentLinkResponse>;
6048
6206
  /**
6049
6207
  * Initiate Card Payment for a Payment Link
6050
6208
  * @param {*} [options] Override http request option.
@@ -6131,6 +6289,14 @@ export interface DefaultApiInterface {
6131
6289
  * @memberof DefaultApiInterface
6132
6290
  */
6133
6291
  createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
6292
+ /**
6293
+ * Create payment link
6294
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
6295
+ * @param {*} [options] Override http request option.
6296
+ * @throws {RequiredError}
6297
+ * @memberof DefaultApiInterface
6298
+ */
6299
+ createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkResponse>;
6134
6300
  /**
6135
6301
  * Initiate Card Payment for a Payment Link
6136
6302
  * @param {*} [options] Override http request option.
@@ -6224,6 +6390,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
6224
6390
  * @memberof DefaultApi
6225
6391
  */
6226
6392
  createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
6393
+ /**
6394
+ * Create payment link
6395
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
6396
+ * @param {*} [options] Override http request option.
6397
+ * @throws {RequiredError}
6398
+ * @memberof DefaultApi
6399
+ */
6400
+ createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkResponse>>;
6227
6401
  /**
6228
6402
  * Initiate Card Payment for a Payment Link
6229
6403
  * @param {*} [options] Override http request option.
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.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.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.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
@@ -92,6 +92,9 @@ exports.CreatePaymentLinkMandateRequestSenderTypeEnum = {
92
92
  Individual: 'INDIVIDUAL',
93
93
  Business: 'BUSINESS',
94
94
  };
95
+ exports.CreatePaymentLinkRequestModeEnum = {
96
+ Payment: 'PAYMENT',
97
+ };
95
98
  exports.CreatePaymentRequestTypeEnum = {
96
99
  Mandate: 'MANDATE',
97
100
  Single: 'SINGLE',
@@ -1660,6 +1663,38 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
1660
1663
  options: localVarRequestOptions,
1661
1664
  };
1662
1665
  }),
1666
+ /**
1667
+ * Create payment link
1668
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
1669
+ * @param {*} [options] Override http request option.
1670
+ * @throws {RequiredError}
1671
+ */
1672
+ createPaymentLink: (createPaymentLinkRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1673
+ // verify required parameter 'createPaymentLinkRequest' is not null or undefined
1674
+ common_1.assertParamExists('createPaymentLink', 'createPaymentLinkRequest', createPaymentLinkRequest);
1675
+ const localVarPath = `/payment_links`;
1676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1677
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1678
+ let baseOptions;
1679
+ if (configuration) {
1680
+ baseOptions = configuration.baseOptions;
1681
+ }
1682
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1683
+ const localVarHeaderParameter = {};
1684
+ const localVarQueryParameter = {};
1685
+ // authentication Oauth2 required
1686
+ // oauth required
1687
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1688
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1689
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1690
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1691
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1692
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentLinkRequest, localVarRequestOptions, configuration);
1693
+ return {
1694
+ url: common_1.toPathString(localVarUrlObj),
1695
+ options: localVarRequestOptions,
1696
+ };
1697
+ }),
1663
1698
  /**
1664
1699
  * Initiate Card Payment for a Payment Link
1665
1700
  * @param {*} [options] Override http request option.
@@ -1955,6 +1990,18 @@ exports.DefaultApiFp = function (configuration) {
1955
1990
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1956
1991
  });
1957
1992
  },
1993
+ /**
1994
+ * Create payment link
1995
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
1996
+ * @param {*} [options] Override http request option.
1997
+ * @throws {RequiredError}
1998
+ */
1999
+ createPaymentLink(createPaymentLinkRequest, options) {
2000
+ return __awaiter(this, void 0, void 0, function* () {
2001
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentLink(createPaymentLinkRequest, options);
2002
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2003
+ });
2004
+ },
1958
2005
  /**
1959
2006
  * Initiate Card Payment for a Payment Link
1960
2007
  * @param {*} [options] Override http request option.
@@ -2078,6 +2125,17 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2078
2125
  createFpsToken(options) {
2079
2126
  return localVarFp.createFpsToken(options).then((request) => request(axios, basePath));
2080
2127
  },
2128
+ /**
2129
+ * Create payment link
2130
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
2131
+ * @param {*} [options] Override http request option.
2132
+ * @throws {RequiredError}
2133
+ */
2134
+ createPaymentLink(createPaymentLinkRequest, options) {
2135
+ return localVarFp
2136
+ .createPaymentLink(createPaymentLinkRequest, options)
2137
+ .then((request) => request(axios, basePath));
2138
+ },
2081
2139
  /**
2082
2140
  * Initiate Card Payment for a Payment Link
2083
2141
  * @param {*} [options] Override http request option.
@@ -2198,6 +2256,18 @@ class DefaultApi extends base_1.BaseAPI {
2198
2256
  .createFpsToken(options)
2199
2257
  .then((request) => request(this.axios, this.basePath));
2200
2258
  }
2259
+ /**
2260
+ * Create payment link
2261
+ * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
2262
+ * @param {*} [options] Override http request option.
2263
+ * @throws {RequiredError}
2264
+ * @memberof DefaultApi
2265
+ */
2266
+ createPaymentLink(createPaymentLinkRequest, options) {
2267
+ return exports.DefaultApiFp(this.configuration)
2268
+ .createPaymentLink(createPaymentLinkRequest, options)
2269
+ .then((request) => request(this.axios, this.basePath));
2270
+ }
2201
2271
  /**
2202
2272
  * Initiate Card Payment for a Payment Link
2203
2273
  * @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.140",
3
+ "version": "0.0.141",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [