@finverse/sdk-typescript 0.0.295 → 0.0.297
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 +347 -0
- package/dist/api.js +108 -3
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -2143,6 +2143,79 @@ export declare const FeePaidByEnum: {
|
|
|
2143
2143
|
readonly Sender: "SENDER";
|
|
2144
2144
|
};
|
|
2145
2145
|
export type FeePaidByEnum = (typeof FeePaidByEnum)[keyof typeof FeePaidByEnum];
|
|
2146
|
+
/**
|
|
2147
|
+
*
|
|
2148
|
+
* @export
|
|
2149
|
+
* @interface FeeRule
|
|
2150
|
+
*/
|
|
2151
|
+
export interface FeeRule {
|
|
2152
|
+
/**
|
|
2153
|
+
* Minimum fee amount that will be charged. Actual amount multiplied by 1000
|
|
2154
|
+
* @type {number}
|
|
2155
|
+
* @memberof FeeRule
|
|
2156
|
+
*/
|
|
2157
|
+
min_amount?: number;
|
|
2158
|
+
/**
|
|
2159
|
+
* Maximum fee amount that will be charged. Actual amount multiplied by 1000
|
|
2160
|
+
* @type {number}
|
|
2161
|
+
* @memberof FeeRule
|
|
2162
|
+
*/
|
|
2163
|
+
max_amount?: number;
|
|
2164
|
+
/**
|
|
2165
|
+
* The BPS amount that will be used to calculate the fee.
|
|
2166
|
+
* @type {number}
|
|
2167
|
+
* @memberof FeeRule
|
|
2168
|
+
*/
|
|
2169
|
+
fee_bps?: number;
|
|
2170
|
+
/**
|
|
2171
|
+
* The currency the fee is charged in
|
|
2172
|
+
* @type {string}
|
|
2173
|
+
* @memberof FeeRule
|
|
2174
|
+
*/
|
|
2175
|
+
currency: string;
|
|
2176
|
+
/**
|
|
2177
|
+
* The fixed fee amount that will be charged on top of the calculated fee
|
|
2178
|
+
* @type {number}
|
|
2179
|
+
* @memberof FeeRule
|
|
2180
|
+
*/
|
|
2181
|
+
fee_fixed?: number;
|
|
2182
|
+
/**
|
|
2183
|
+
* Whether the fee is paid by the RECIPIENT or SENDER
|
|
2184
|
+
* @type {string}
|
|
2185
|
+
* @memberof FeeRule
|
|
2186
|
+
*/
|
|
2187
|
+
fee_paid_by: FeeRuleFeePaidByEnum;
|
|
2188
|
+
}
|
|
2189
|
+
export declare const FeeRuleFeePaidByEnum: {
|
|
2190
|
+
readonly Sender: "SENDER";
|
|
2191
|
+
readonly Recipient: "RECIPIENT";
|
|
2192
|
+
};
|
|
2193
|
+
export type FeeRuleFeePaidByEnum = (typeof FeeRuleFeePaidByEnum)[keyof typeof FeeRuleFeePaidByEnum];
|
|
2194
|
+
/**
|
|
2195
|
+
* Fee rule applicable to this payment account
|
|
2196
|
+
* @export
|
|
2197
|
+
* @interface FeeRules
|
|
2198
|
+
*/
|
|
2199
|
+
export interface FeeRules {
|
|
2200
|
+
/**
|
|
2201
|
+
* Fee rule applicable to mandate
|
|
2202
|
+
* @type {Array<FeeRule>}
|
|
2203
|
+
* @memberof FeeRules
|
|
2204
|
+
*/
|
|
2205
|
+
mandate_rules: Array<FeeRule>;
|
|
2206
|
+
/**
|
|
2207
|
+
* Fee rule applicable to payment
|
|
2208
|
+
* @type {Array<FeeRule>}
|
|
2209
|
+
* @memberof FeeRules
|
|
2210
|
+
*/
|
|
2211
|
+
payment_rules: Array<FeeRule>;
|
|
2212
|
+
/**
|
|
2213
|
+
* Fee rule applicable to payouts
|
|
2214
|
+
* @type {Array<FeeRule>}
|
|
2215
|
+
* @memberof FeeRules
|
|
2216
|
+
*/
|
|
2217
|
+
payout_rules: Array<FeeRule>;
|
|
2218
|
+
}
|
|
2146
2219
|
/**
|
|
2147
2220
|
*
|
|
2148
2221
|
* @export
|
|
@@ -4039,6 +4112,25 @@ export interface ListPaymentAccountsResponse {
|
|
|
4039
4112
|
*/
|
|
4040
4113
|
payment_accounts?: Array<PaymentAccountDetails>;
|
|
4041
4114
|
}
|
|
4115
|
+
/**
|
|
4116
|
+
*
|
|
4117
|
+
* @export
|
|
4118
|
+
* @interface ListPaymentAccountsWithEnrichedDataResponse
|
|
4119
|
+
*/
|
|
4120
|
+
export interface ListPaymentAccountsWithEnrichedDataResponse {
|
|
4121
|
+
/**
|
|
4122
|
+
*
|
|
4123
|
+
* @type {Array<PaymentAccountDetailsWithEnrichedData>}
|
|
4124
|
+
* @memberof ListPaymentAccountsWithEnrichedDataResponse
|
|
4125
|
+
*/
|
|
4126
|
+
payment_accounts?: Array<PaymentAccountDetailsWithEnrichedData>;
|
|
4127
|
+
/**
|
|
4128
|
+
* Total number of matching payment accounts
|
|
4129
|
+
* @type {number}
|
|
4130
|
+
* @memberof ListPaymentAccountsWithEnrichedDataResponse
|
|
4131
|
+
*/
|
|
4132
|
+
total?: number;
|
|
4133
|
+
}
|
|
4042
4134
|
/**
|
|
4043
4135
|
*
|
|
4044
4136
|
* @export
|
|
@@ -5168,6 +5260,12 @@ export interface PaymentAccountDetails {
|
|
|
5168
5260
|
* @memberof PaymentAccountDetails
|
|
5169
5261
|
*/
|
|
5170
5262
|
accountholder_name?: string;
|
|
5263
|
+
/**
|
|
5264
|
+
* The customer app ID
|
|
5265
|
+
* @type {string}
|
|
5266
|
+
* @memberof PaymentAccountDetails
|
|
5267
|
+
*/
|
|
5268
|
+
customer_app_id?: string;
|
|
5171
5269
|
/**
|
|
5172
5270
|
* Finverse Institution ID for the payment institution.
|
|
5173
5271
|
* @type {string}
|
|
@@ -5210,6 +5308,12 @@ export interface PaymentAccountDetails {
|
|
|
5210
5308
|
* @memberof PaymentAccountDetails
|
|
5211
5309
|
*/
|
|
5212
5310
|
business_units?: Array<string>;
|
|
5311
|
+
/**
|
|
5312
|
+
* This field is only applicable to settlement account
|
|
5313
|
+
* @type {string}
|
|
5314
|
+
* @memberof PaymentAccountDetails
|
|
5315
|
+
*/
|
|
5316
|
+
legal_entity_name?: string;
|
|
5213
5317
|
/**
|
|
5214
5318
|
* Additional attributes of the sender account in key:value format (e.g. sender_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 1000 characters respectively.
|
|
5215
5319
|
* @type {{ [key: string]: string; }}
|
|
@@ -5218,6 +5322,12 @@ export interface PaymentAccountDetails {
|
|
|
5218
5322
|
metadata?: {
|
|
5219
5323
|
[key: string]: string;
|
|
5220
5324
|
};
|
|
5325
|
+
/**
|
|
5326
|
+
*
|
|
5327
|
+
* @type {FeeRules}
|
|
5328
|
+
* @memberof PaymentAccountDetails
|
|
5329
|
+
*/
|
|
5330
|
+
fee_rules?: FeeRules;
|
|
5221
5331
|
/**
|
|
5222
5332
|
* Timestamp of when the payment link was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
5223
5333
|
* @type {string}
|
|
@@ -5236,6 +5346,134 @@ export declare const PaymentAccountDetailsAccountTypeEnum: {
|
|
|
5236
5346
|
readonly SettlementAccount: "SETTLEMENT_ACCOUNT";
|
|
5237
5347
|
};
|
|
5238
5348
|
export type PaymentAccountDetailsAccountTypeEnum = (typeof PaymentAccountDetailsAccountTypeEnum)[keyof typeof PaymentAccountDetailsAccountTypeEnum];
|
|
5349
|
+
/**
|
|
5350
|
+
*
|
|
5351
|
+
* @export
|
|
5352
|
+
* @interface PaymentAccountDetailsWithEnrichedData
|
|
5353
|
+
*/
|
|
5354
|
+
export interface PaymentAccountDetailsWithEnrichedData {
|
|
5355
|
+
/**
|
|
5356
|
+
* Payment account id
|
|
5357
|
+
* @type {string}
|
|
5358
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5359
|
+
*/
|
|
5360
|
+
account_id?: string;
|
|
5361
|
+
/**
|
|
5362
|
+
*
|
|
5363
|
+
* @type {RecipientAccountNumber}
|
|
5364
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5365
|
+
*/
|
|
5366
|
+
account_number?: RecipientAccountNumber;
|
|
5367
|
+
/**
|
|
5368
|
+
* Masked Account number of the payment account
|
|
5369
|
+
* @type {string}
|
|
5370
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5371
|
+
*/
|
|
5372
|
+
account_number_masked?: string;
|
|
5373
|
+
/**
|
|
5374
|
+
* Type of payment account.
|
|
5375
|
+
* @type {string}
|
|
5376
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5377
|
+
*/
|
|
5378
|
+
account_type?: PaymentAccountDetailsWithEnrichedDataAccountTypeEnum;
|
|
5379
|
+
/**
|
|
5380
|
+
* Accountholder name of the payment account
|
|
5381
|
+
* @type {string}
|
|
5382
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5383
|
+
*/
|
|
5384
|
+
accountholder_name?: string;
|
|
5385
|
+
/**
|
|
5386
|
+
* The customer app ID
|
|
5387
|
+
* @type {string}
|
|
5388
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5389
|
+
*/
|
|
5390
|
+
customer_app_id?: string;
|
|
5391
|
+
/**
|
|
5392
|
+
* Finverse Institution ID for the payment institution.
|
|
5393
|
+
* @type {string}
|
|
5394
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5395
|
+
*/
|
|
5396
|
+
institution_id?: string;
|
|
5397
|
+
/**
|
|
5398
|
+
* Institution Name for the sender’s institution.
|
|
5399
|
+
* @type {string}
|
|
5400
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5401
|
+
*/
|
|
5402
|
+
institution_name?: string;
|
|
5403
|
+
/**
|
|
5404
|
+
* A unique identifier generated after creating user (Finverse Payment User ID)
|
|
5405
|
+
* @type {string}
|
|
5406
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5407
|
+
*/
|
|
5408
|
+
user_id?: string;
|
|
5409
|
+
/**
|
|
5410
|
+
* 3-digit code associated with bank
|
|
5411
|
+
* @type {string}
|
|
5412
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5413
|
+
*/
|
|
5414
|
+
bank_code?: string;
|
|
5415
|
+
/**
|
|
5416
|
+
* 3-digit code used to identify specific bank branch
|
|
5417
|
+
* @type {string}
|
|
5418
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5419
|
+
*/
|
|
5420
|
+
branch_code?: string;
|
|
5421
|
+
/**
|
|
5422
|
+
* List of currencies supported by the payment account
|
|
5423
|
+
* @type {Array<string>}
|
|
5424
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5425
|
+
*/
|
|
5426
|
+
currencies?: Array<string>;
|
|
5427
|
+
/**
|
|
5428
|
+
* The business units the payment account belongs to
|
|
5429
|
+
* @type {Array<string>}
|
|
5430
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5431
|
+
*/
|
|
5432
|
+
business_units?: Array<string>;
|
|
5433
|
+
/**
|
|
5434
|
+
* This field is only applicable to settlement account
|
|
5435
|
+
* @type {string}
|
|
5436
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5437
|
+
*/
|
|
5438
|
+
legal_entity_name?: string;
|
|
5439
|
+
/**
|
|
5440
|
+
* Additional attributes of the sender account in key:value format (e.g. sender_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 1000 characters respectively.
|
|
5441
|
+
* @type {{ [key: string]: string; }}
|
|
5442
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5443
|
+
*/
|
|
5444
|
+
metadata?: {
|
|
5445
|
+
[key: string]: string;
|
|
5446
|
+
};
|
|
5447
|
+
/**
|
|
5448
|
+
*
|
|
5449
|
+
* @type {FeeRules}
|
|
5450
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5451
|
+
*/
|
|
5452
|
+
fee_rules?: FeeRules;
|
|
5453
|
+
/**
|
|
5454
|
+
* Timestamp of when the payment link was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
5455
|
+
* @type {string}
|
|
5456
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5457
|
+
*/
|
|
5458
|
+
created_at?: string;
|
|
5459
|
+
/**
|
|
5460
|
+
* Timestamp of when the payment link was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
5461
|
+
* @type {string}
|
|
5462
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5463
|
+
*/
|
|
5464
|
+
updated_at?: string;
|
|
5465
|
+
/**
|
|
5466
|
+
*
|
|
5467
|
+
* @type {PaymentMethodOverview}
|
|
5468
|
+
* @memberof PaymentAccountDetailsWithEnrichedData
|
|
5469
|
+
*/
|
|
5470
|
+
payment_method_overview?: PaymentMethodOverview;
|
|
5471
|
+
}
|
|
5472
|
+
export declare const PaymentAccountDetailsWithEnrichedDataAccountTypeEnum: {
|
|
5473
|
+
readonly ExternalAccount: "EXTERNAL_ACCOUNT";
|
|
5474
|
+
readonly SettlementAccount: "SETTLEMENT_ACCOUNT";
|
|
5475
|
+
};
|
|
5476
|
+
export type PaymentAccountDetailsWithEnrichedDataAccountTypeEnum = (typeof PaymentAccountDetailsWithEnrichedDataAccountTypeEnum)[keyof typeof PaymentAccountDetailsWithEnrichedDataAccountTypeEnum];
|
|
5239
5477
|
/**
|
|
5240
5478
|
*
|
|
5241
5479
|
* @export
|
|
@@ -5976,6 +6214,55 @@ export interface PaymentMethodIntegrationMetadataStripeMetadataCustomer {
|
|
|
5976
6214
|
*/
|
|
5977
6215
|
id: string;
|
|
5978
6216
|
}
|
|
6217
|
+
/**
|
|
6218
|
+
*
|
|
6219
|
+
* @export
|
|
6220
|
+
* @interface PaymentMethodOverview
|
|
6221
|
+
*/
|
|
6222
|
+
export interface PaymentMethodOverview {
|
|
6223
|
+
/**
|
|
6224
|
+
* STRIPE, CYBERSOURCE, UOB, DBS (only shown when payment flows funds via a 3rd party gateway direct to the customer)
|
|
6225
|
+
* @type {string}
|
|
6226
|
+
* @memberof PaymentMethodOverview
|
|
6227
|
+
*/
|
|
6228
|
+
external_gateway?: string;
|
|
6229
|
+
/**
|
|
6230
|
+
* It can be either REALTIME or DELAYED
|
|
6231
|
+
* @type {string}
|
|
6232
|
+
* @memberof PaymentMethodOverview
|
|
6233
|
+
*/
|
|
6234
|
+
payment_confirmation_speed?: string;
|
|
6235
|
+
/**
|
|
6236
|
+
* The payment method type, possible values CARD, MANDATE and MANUAL
|
|
6237
|
+
* @type {string}
|
|
6238
|
+
* @memberof PaymentMethodOverview
|
|
6239
|
+
*/
|
|
6240
|
+
payment_method_type?: string;
|
|
6241
|
+
/**
|
|
6242
|
+
* The payment method subtype
|
|
6243
|
+
* @type {string}
|
|
6244
|
+
* @memberof PaymentMethodOverview
|
|
6245
|
+
*/
|
|
6246
|
+
payment_method_subtype?: string;
|
|
6247
|
+
/**
|
|
6248
|
+
* Only shown if funds flow via Finverse, possible values FINVERSE
|
|
6249
|
+
* @type {string}
|
|
6250
|
+
* @memberof PaymentMethodOverview
|
|
6251
|
+
*/
|
|
6252
|
+
payment_processor?: string;
|
|
6253
|
+
/**
|
|
6254
|
+
* Whether the payment method can move real money or not
|
|
6255
|
+
* @type {boolean}
|
|
6256
|
+
* @memberof PaymentMethodOverview
|
|
6257
|
+
*/
|
|
6258
|
+
live_mode?: boolean;
|
|
6259
|
+
/**
|
|
6260
|
+
* Shows which currencies are supported
|
|
6261
|
+
* @type {Array<string>}
|
|
6262
|
+
* @memberof PaymentMethodOverview
|
|
6263
|
+
*/
|
|
6264
|
+
supported_currencies?: Array<string>;
|
|
6265
|
+
}
|
|
5979
6266
|
/**
|
|
5980
6267
|
*
|
|
5981
6268
|
* @export
|
|
@@ -7997,6 +8284,16 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7997
8284
|
* @throws {RequiredError}
|
|
7998
8285
|
*/
|
|
7999
8286
|
listPaymentAccounts: (paymentUserId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8287
|
+
/**
|
|
8288
|
+
* Get payment account for customer app
|
|
8289
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
8290
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
8291
|
+
* @param {number} [offset] default is 0
|
|
8292
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
8293
|
+
* @param {*} [options] Override http request option.
|
|
8294
|
+
* @throws {RequiredError}
|
|
8295
|
+
*/
|
|
8296
|
+
listPaymentAccountsWithEnrichedData: (accountType?: ListPaymentAccountsWithEnrichedDataAccountTypeEnum, currencies?: Array<string>, offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8000
8297
|
/**
|
|
8001
8298
|
* Refresh an access token
|
|
8002
8299
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -8185,6 +8482,16 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
8185
8482
|
* @throws {RequiredError}
|
|
8186
8483
|
*/
|
|
8187
8484
|
listPaymentAccounts(paymentUserId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentAccountsResponse>>;
|
|
8485
|
+
/**
|
|
8486
|
+
* Get payment account for customer app
|
|
8487
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
8488
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
8489
|
+
* @param {number} [offset] default is 0
|
|
8490
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
8491
|
+
* @param {*} [options] Override http request option.
|
|
8492
|
+
* @throws {RequiredError}
|
|
8493
|
+
*/
|
|
8494
|
+
listPaymentAccountsWithEnrichedData(accountType?: ListPaymentAccountsWithEnrichedDataAccountTypeEnum, currencies?: Array<string>, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentAccountsWithEnrichedDataResponse>>;
|
|
8188
8495
|
/**
|
|
8189
8496
|
* Refresh an access token
|
|
8190
8497
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -8373,6 +8680,16 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
8373
8680
|
* @throws {RequiredError}
|
|
8374
8681
|
*/
|
|
8375
8682
|
listPaymentAccounts(paymentUserId: string, options?: RawAxiosRequestConfig): AxiosPromise<ListPaymentAccountsResponse>;
|
|
8683
|
+
/**
|
|
8684
|
+
* Get payment account for customer app
|
|
8685
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
8686
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
8687
|
+
* @param {number} [offset] default is 0
|
|
8688
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
8689
|
+
* @param {*} [options] Override http request option.
|
|
8690
|
+
* @throws {RequiredError}
|
|
8691
|
+
*/
|
|
8692
|
+
listPaymentAccountsWithEnrichedData(accountType?: ListPaymentAccountsWithEnrichedDataAccountTypeEnum, currencies?: Array<string>, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListPaymentAccountsWithEnrichedDataResponse>;
|
|
8376
8693
|
/**
|
|
8377
8694
|
* Refresh an access token
|
|
8378
8695
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -8582,6 +8899,17 @@ export interface CustomerApiInterface {
|
|
|
8582
8899
|
* @memberof CustomerApiInterface
|
|
8583
8900
|
*/
|
|
8584
8901
|
listPaymentAccounts(paymentUserId: string, options?: RawAxiosRequestConfig): AxiosPromise<ListPaymentAccountsResponse>;
|
|
8902
|
+
/**
|
|
8903
|
+
* Get payment account for customer app
|
|
8904
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
8905
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
8906
|
+
* @param {number} [offset] default is 0
|
|
8907
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
8908
|
+
* @param {*} [options] Override http request option.
|
|
8909
|
+
* @throws {RequiredError}
|
|
8910
|
+
* @memberof CustomerApiInterface
|
|
8911
|
+
*/
|
|
8912
|
+
listPaymentAccountsWithEnrichedData(accountType?: ListPaymentAccountsWithEnrichedDataAccountTypeEnum, currencies?: Array<string>, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListPaymentAccountsWithEnrichedDataResponse>;
|
|
8585
8913
|
/**
|
|
8586
8914
|
* Refresh an access token
|
|
8587
8915
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -8797,6 +9125,17 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
8797
9125
|
* @memberof CustomerApi
|
|
8798
9126
|
*/
|
|
8799
9127
|
listPaymentAccounts(paymentUserId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentAccountsResponse, any>>;
|
|
9128
|
+
/**
|
|
9129
|
+
* Get payment account for customer app
|
|
9130
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
9131
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
9132
|
+
* @param {number} [offset] default is 0
|
|
9133
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
9134
|
+
* @param {*} [options] Override http request option.
|
|
9135
|
+
* @throws {RequiredError}
|
|
9136
|
+
* @memberof CustomerApi
|
|
9137
|
+
*/
|
|
9138
|
+
listPaymentAccountsWithEnrichedData(accountType?: ListPaymentAccountsWithEnrichedDataAccountTypeEnum, currencies?: Array<string>, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentAccountsWithEnrichedDataResponse, any>>;
|
|
8800
9139
|
/**
|
|
8801
9140
|
* Refresh an access token
|
|
8802
9141
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -8857,6 +9196,14 @@ export declare const ListInstitutionsInstitutionTypeEnum: {
|
|
|
8857
9196
|
readonly Test: "TEST";
|
|
8858
9197
|
};
|
|
8859
9198
|
export type ListInstitutionsInstitutionTypeEnum = (typeof ListInstitutionsInstitutionTypeEnum)[keyof typeof ListInstitutionsInstitutionTypeEnum];
|
|
9199
|
+
/**
|
|
9200
|
+
* @export
|
|
9201
|
+
*/
|
|
9202
|
+
export declare const ListPaymentAccountsWithEnrichedDataAccountTypeEnum: {
|
|
9203
|
+
readonly ExternalAccount: "EXTERNAL_ACCOUNT";
|
|
9204
|
+
readonly SettlementAccount: "SETTLEMENT_ACCOUNT";
|
|
9205
|
+
};
|
|
9206
|
+
export type ListPaymentAccountsWithEnrichedDataAccountTypeEnum = (typeof ListPaymentAccountsWithEnrichedDataAccountTypeEnum)[keyof typeof ListPaymentAccountsWithEnrichedDataAccountTypeEnum];
|
|
8860
9207
|
/**
|
|
8861
9208
|
* DefaultApi - axios parameter creator
|
|
8862
9209
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.GetBalanceHistorySourceEnum = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.TokenGrantTypeEnum = exports.LinkApi = exports.LinkApiFactory = void 0;
|
|
25
|
+
exports.ManualPaymentConfirmationResponseStatusEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.MandateAuthLinkCustomizationsLanguageEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestLanguageEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = 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.FvEmbeddedErrorModelTypeEnum = exports.FeeRuleFeePaidByEnum = exports.FeePaidByEnum = exports.FVCardDetailsFundingEnum = exports.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateMandateRequestWithDdaReferenceStatusEnum = exports.CreateCardRequestStatusEnum = exports.CardFvLinkResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AutopayEnrollmentConfigurationEnrollmentPrefillValueEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
26
|
+
exports.ListPayoutsStatusesEnum = exports.ListPaymentsPaymentTypesEnum = exports.ListPaymentsPaymentTypeEnum = exports.ListPaymentsSenderTypeEnum = exports.ListPaymentsStatusesEnum = exports.ListMandatesSenderTypeEnum = exports.ListMandatesStatusesEnum = exports.ListDetokenizedMandatesSenderTypeEnum = exports.ListDetokenizedMandatesStatusesEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ListPaymentAccountsWithEnrichedDataAccountTypeEnum = exports.ListInstitutionsInstitutionTypeEnum = exports.GetLineItemsForDisplayPaymentTypeEnum = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.UpdateTestPaymentStatusRequestStatusEnum = exports.UpdatePaymentUserRequestUserTypeEnum = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = exports.RefreshLoginIdentityLinkCustomizationsLanguageEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutSnapshotResponseTypeEnum = exports.PayoutSnapshotResponseStatusEnum = exports.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentLinkCustomizationsLanguageEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentFvLinkResponseStatusEnum = exports.PaymentAccountDetailsWithEnrichedDataAccountTypeEnum = exports.PaymentAccountDetailsAccountTypeEnum = void 0;
|
|
27
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.GetBalanceHistorySourceEnum = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.TokenGrantTypeEnum = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.ListPayoutsPayoutTypesEnum = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -145,6 +145,10 @@ exports.FeePaidByEnum = {
|
|
|
145
145
|
Recipient: 'RECIPIENT',
|
|
146
146
|
Sender: 'SENDER',
|
|
147
147
|
};
|
|
148
|
+
exports.FeeRuleFeePaidByEnum = {
|
|
149
|
+
Sender: 'SENDER',
|
|
150
|
+
Recipient: 'RECIPIENT',
|
|
151
|
+
};
|
|
148
152
|
exports.FvEmbeddedErrorModelTypeEnum = {
|
|
149
153
|
LinkError: 'LINK_ERROR',
|
|
150
154
|
ApiError: 'API_ERROR',
|
|
@@ -277,6 +281,10 @@ exports.PaymentAccountDetailsAccountTypeEnum = {
|
|
|
277
281
|
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
278
282
|
SettlementAccount: 'SETTLEMENT_ACCOUNT',
|
|
279
283
|
};
|
|
284
|
+
exports.PaymentAccountDetailsWithEnrichedDataAccountTypeEnum = {
|
|
285
|
+
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
286
|
+
SettlementAccount: 'SETTLEMENT_ACCOUNT',
|
|
287
|
+
};
|
|
280
288
|
exports.PaymentFvLinkResponseStatusEnum = {
|
|
281
289
|
AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
|
|
282
290
|
Authorizing: 'AUTHORIZING',
|
|
@@ -1067,6 +1075,49 @@ const CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
1067
1075
|
options: localVarRequestOptions,
|
|
1068
1076
|
};
|
|
1069
1077
|
}),
|
|
1078
|
+
/**
|
|
1079
|
+
* Get payment account for customer app
|
|
1080
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
1081
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
1082
|
+
* @param {number} [offset] default is 0
|
|
1083
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
*/
|
|
1087
|
+
listPaymentAccountsWithEnrichedData: (accountType_1, currencies_1, offset_1, limit_1, ...args_1) => __awaiter(this, [accountType_1, currencies_1, offset_1, limit_1, ...args_1], void 0, function* (accountType, currencies, offset, limit, options = {}) {
|
|
1088
|
+
const localVarPath = `/payment_accounts`;
|
|
1089
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1090
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1091
|
+
let baseOptions;
|
|
1092
|
+
if (configuration) {
|
|
1093
|
+
baseOptions = configuration.baseOptions;
|
|
1094
|
+
}
|
|
1095
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1096
|
+
const localVarHeaderParameter = {};
|
|
1097
|
+
const localVarQueryParameter = {};
|
|
1098
|
+
// authentication Oauth2 required
|
|
1099
|
+
// oauth required
|
|
1100
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1101
|
+
if (accountType !== undefined) {
|
|
1102
|
+
localVarQueryParameter['account_type'] = accountType;
|
|
1103
|
+
}
|
|
1104
|
+
if (currencies) {
|
|
1105
|
+
localVarQueryParameter['currencies'] = currencies.join(base_1.COLLECTION_FORMATS.csv);
|
|
1106
|
+
}
|
|
1107
|
+
if (offset !== undefined) {
|
|
1108
|
+
localVarQueryParameter['offset'] = offset;
|
|
1109
|
+
}
|
|
1110
|
+
if (limit !== undefined) {
|
|
1111
|
+
localVarQueryParameter['limit'] = limit;
|
|
1112
|
+
}
|
|
1113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1115
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1116
|
+
return {
|
|
1117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1118
|
+
options: localVarRequestOptions,
|
|
1119
|
+
};
|
|
1120
|
+
}),
|
|
1070
1121
|
/**
|
|
1071
1122
|
* Refresh an access token
|
|
1072
1123
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -1548,6 +1599,24 @@ const CustomerApiFp = function (configuration) {
|
|
|
1548
1599
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1549
1600
|
});
|
|
1550
1601
|
},
|
|
1602
|
+
/**
|
|
1603
|
+
* Get payment account for customer app
|
|
1604
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
1605
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
1606
|
+
* @param {number} [offset] default is 0
|
|
1607
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
1608
|
+
* @param {*} [options] Override http request option.
|
|
1609
|
+
* @throws {RequiredError}
|
|
1610
|
+
*/
|
|
1611
|
+
listPaymentAccountsWithEnrichedData(accountType, currencies, offset, limit, options) {
|
|
1612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1613
|
+
var _a, _b, _c;
|
|
1614
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPaymentAccountsWithEnrichedData(accountType, currencies, offset, limit, options);
|
|
1615
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1616
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomerApi.listPaymentAccountsWithEnrichedData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1617
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1618
|
+
});
|
|
1619
|
+
},
|
|
1551
1620
|
/**
|
|
1552
1621
|
* Refresh an access token
|
|
1553
1622
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -1838,6 +1907,20 @@ const CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1838
1907
|
listPaymentAccounts(paymentUserId, options) {
|
|
1839
1908
|
return localVarFp.listPaymentAccounts(paymentUserId, options).then((request) => request(axios, basePath));
|
|
1840
1909
|
},
|
|
1910
|
+
/**
|
|
1911
|
+
* Get payment account for customer app
|
|
1912
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
1913
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
1914
|
+
* @param {number} [offset] default is 0
|
|
1915
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
1916
|
+
* @param {*} [options] Override http request option.
|
|
1917
|
+
* @throws {RequiredError}
|
|
1918
|
+
*/
|
|
1919
|
+
listPaymentAccountsWithEnrichedData(accountType, currencies, offset, limit, options) {
|
|
1920
|
+
return localVarFp
|
|
1921
|
+
.listPaymentAccountsWithEnrichedData(accountType, currencies, offset, limit, options)
|
|
1922
|
+
.then((request) => request(axios, basePath));
|
|
1923
|
+
},
|
|
1841
1924
|
/**
|
|
1842
1925
|
* Refresh an access token
|
|
1843
1926
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -2146,6 +2229,21 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
2146
2229
|
.listPaymentAccounts(paymentUserId, options)
|
|
2147
2230
|
.then((request) => request(this.axios, this.basePath));
|
|
2148
2231
|
}
|
|
2232
|
+
/**
|
|
2233
|
+
* Get payment account for customer app
|
|
2234
|
+
* @param {ListPaymentAccountsWithEnrichedDataAccountTypeEnum} [accountType] The account_type to filter for
|
|
2235
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
2236
|
+
* @param {number} [offset] default is 0
|
|
2237
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
2238
|
+
* @param {*} [options] Override http request option.
|
|
2239
|
+
* @throws {RequiredError}
|
|
2240
|
+
* @memberof CustomerApi
|
|
2241
|
+
*/
|
|
2242
|
+
listPaymentAccountsWithEnrichedData(accountType, currencies, offset, limit, options) {
|
|
2243
|
+
return (0, exports.CustomerApiFp)(this.configuration)
|
|
2244
|
+
.listPaymentAccountsWithEnrichedData(accountType, currencies, offset, limit, options)
|
|
2245
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2246
|
+
}
|
|
2149
2247
|
/**
|
|
2150
2248
|
* Refresh an access token
|
|
2151
2249
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -2225,6 +2323,13 @@ exports.ListInstitutionsInstitutionTypeEnum = {
|
|
|
2225
2323
|
Wallet: 'WALLET',
|
|
2226
2324
|
Test: 'TEST',
|
|
2227
2325
|
};
|
|
2326
|
+
/**
|
|
2327
|
+
* @export
|
|
2328
|
+
*/
|
|
2329
|
+
exports.ListPaymentAccountsWithEnrichedDataAccountTypeEnum = {
|
|
2330
|
+
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
2331
|
+
SettlementAccount: 'SETTLEMENT_ACCOUNT',
|
|
2332
|
+
};
|
|
2228
2333
|
/**
|
|
2229
2334
|
* DefaultApi - axios parameter creator
|
|
2230
2335
|
* @export
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.297",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"axios": "1.8.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/chai": "^5.2.
|
|
30
|
+
"@types/chai": "^5.2.1",
|
|
31
31
|
"@types/mocha": "^10.0.10",
|
|
32
32
|
"@types/node": "12.11.5 - 12.20.42",
|
|
33
33
|
"axios-mock-adapter": "^1.21.2",
|