@finverse/sdk-typescript 0.0.230 → 0.0.232
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 +184 -13
- package/dist/api.js +135 -5
- package/dist/test/responses/transaction.js +0 -18
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -1347,6 +1347,14 @@ export interface CreatePaymentLinkRequest {
|
|
|
1347
1347
|
metadata?: {
|
|
1348
1348
|
[key: string]: string;
|
|
1349
1349
|
};
|
|
1350
|
+
/**
|
|
1351
|
+
* Key-Value metadata to store on payments created on this Payment Link
|
|
1352
|
+
* @type {{ [key: string]: string; }}
|
|
1353
|
+
* @memberof CreatePaymentLinkRequest
|
|
1354
|
+
*/
|
|
1355
|
+
payment_metadata?: {
|
|
1356
|
+
[key: string]: string;
|
|
1357
|
+
};
|
|
1350
1358
|
/**
|
|
1351
1359
|
*
|
|
1352
1360
|
* @type {IntegrationMetadataRequest}
|
|
@@ -4398,11 +4406,17 @@ export interface MandateSenderAccount {
|
|
|
4398
4406
|
*/
|
|
4399
4407
|
account_id?: string;
|
|
4400
4408
|
/**
|
|
4401
|
-
*
|
|
4409
|
+
* Tokenized accountholder name of the sender\'s account
|
|
4402
4410
|
* @type {string}
|
|
4403
4411
|
* @memberof MandateSenderAccount
|
|
4404
4412
|
*/
|
|
4405
4413
|
accountholder_name?: string;
|
|
4414
|
+
/**
|
|
4415
|
+
* Accountholder name of the sender\'s account in plain text
|
|
4416
|
+
* @type {string}
|
|
4417
|
+
* @memberof MandateSenderAccount
|
|
4418
|
+
*/
|
|
4419
|
+
accountholder_name_plaintext?: string | null;
|
|
4406
4420
|
/**
|
|
4407
4421
|
*
|
|
4408
4422
|
* @type {RecipientAccountNumber}
|
|
@@ -5007,6 +5021,14 @@ export interface PaymentLinkResponse {
|
|
|
5007
5021
|
metadata?: {
|
|
5008
5022
|
[key: string]: string;
|
|
5009
5023
|
};
|
|
5024
|
+
/**
|
|
5025
|
+
* Key-Value metadata to store on payments created on this Payment Link
|
|
5026
|
+
* @type {{ [key: string]: string; }}
|
|
5027
|
+
* @memberof PaymentLinkResponse
|
|
5028
|
+
*/
|
|
5029
|
+
payment_metadata?: {
|
|
5030
|
+
[key: string]: string;
|
|
5031
|
+
};
|
|
5010
5032
|
/**
|
|
5011
5033
|
* The URL for payment link
|
|
5012
5034
|
* @type {string}
|
|
@@ -5019,6 +5041,12 @@ export interface PaymentLinkResponse {
|
|
|
5019
5041
|
* @memberof PaymentLinkResponse
|
|
5020
5042
|
*/
|
|
5021
5043
|
status?: PaymentLinkResponseStatusEnum;
|
|
5044
|
+
/**
|
|
5045
|
+
* The session status of payment link
|
|
5046
|
+
* @type {string}
|
|
5047
|
+
* @memberof PaymentLinkResponse
|
|
5048
|
+
*/
|
|
5049
|
+
session_status?: PaymentLinkResponseSessionStatusEnum;
|
|
5022
5050
|
/**
|
|
5023
5051
|
* Timestamp of when the payment link was or will expired in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
5024
5052
|
* @type {string}
|
|
@@ -5072,6 +5100,13 @@ export declare const PaymentLinkResponseStatusEnum: {
|
|
|
5072
5100
|
readonly Expired: "EXPIRED";
|
|
5073
5101
|
};
|
|
5074
5102
|
export declare type PaymentLinkResponseStatusEnum = (typeof PaymentLinkResponseStatusEnum)[keyof typeof PaymentLinkResponseStatusEnum];
|
|
5103
|
+
export declare const PaymentLinkResponseSessionStatusEnum: {
|
|
5104
|
+
readonly Open: "OPEN";
|
|
5105
|
+
readonly Processing: "PROCESSING";
|
|
5106
|
+
readonly Complete: "COMPLETE";
|
|
5107
|
+
readonly Failed: "FAILED";
|
|
5108
|
+
};
|
|
5109
|
+
export declare type PaymentLinkResponseSessionStatusEnum = (typeof PaymentLinkResponseSessionStatusEnum)[keyof typeof PaymentLinkResponseSessionStatusEnum];
|
|
5075
5110
|
/**
|
|
5076
5111
|
*
|
|
5077
5112
|
* @export
|
|
@@ -5341,11 +5376,18 @@ export interface PaymentResponse {
|
|
|
5341
5376
|
* @memberof PaymentResponse
|
|
5342
5377
|
*/
|
|
5343
5378
|
error?: FvErrorModelV2;
|
|
5379
|
+
/**
|
|
5380
|
+
*
|
|
5381
|
+
* @type {PaymentSnapshotPaymentMethod}
|
|
5382
|
+
* @memberof PaymentResponse
|
|
5383
|
+
*/
|
|
5384
|
+
payment_method?: PaymentSnapshotPaymentMethod;
|
|
5344
5385
|
}
|
|
5345
5386
|
export declare const PaymentResponseTypeEnum: {
|
|
5346
5387
|
readonly Mandate: "MANDATE";
|
|
5347
5388
|
readonly Single: "SINGLE";
|
|
5348
5389
|
readonly Card: "CARD";
|
|
5390
|
+
readonly Manual: "MANUAL";
|
|
5349
5391
|
};
|
|
5350
5392
|
export declare type PaymentResponseTypeEnum = (typeof PaymentResponseTypeEnum)[keyof typeof PaymentResponseTypeEnum];
|
|
5351
5393
|
export declare const PaymentResponseStatusEnum: {
|
|
@@ -5403,12 +5445,51 @@ export interface PaymentSetupOptions {
|
|
|
5403
5445
|
* @memberof PaymentSetupOptions
|
|
5404
5446
|
*/
|
|
5405
5447
|
mandate_details?: MandateDetailsForPaymentLink;
|
|
5448
|
+
/**
|
|
5449
|
+
*
|
|
5450
|
+
* @type {Array<string>}
|
|
5451
|
+
* @memberof PaymentSetupOptions
|
|
5452
|
+
*/
|
|
5453
|
+
payment_method_types?: Array<PaymentSetupOptionsPaymentMethodTypesEnum>;
|
|
5406
5454
|
}
|
|
5407
5455
|
export declare const PaymentSetupOptionsFuturePaymentsEnum: {
|
|
5408
5456
|
readonly Autopay: "AUTOPAY";
|
|
5409
5457
|
readonly ClickToPay: "CLICK_TO_PAY";
|
|
5410
5458
|
};
|
|
5411
5459
|
export declare type PaymentSetupOptionsFuturePaymentsEnum = (typeof PaymentSetupOptionsFuturePaymentsEnum)[keyof typeof PaymentSetupOptionsFuturePaymentsEnum];
|
|
5460
|
+
export declare const PaymentSetupOptionsPaymentMethodTypesEnum: {
|
|
5461
|
+
readonly Mandate: "MANDATE";
|
|
5462
|
+
readonly Single: "SINGLE";
|
|
5463
|
+
readonly Card: "CARD";
|
|
5464
|
+
readonly Manual: "MANUAL";
|
|
5465
|
+
};
|
|
5466
|
+
export declare type PaymentSetupOptionsPaymentMethodTypesEnum = (typeof PaymentSetupOptionsPaymentMethodTypesEnum)[keyof typeof PaymentSetupOptionsPaymentMethodTypesEnum];
|
|
5467
|
+
/**
|
|
5468
|
+
*
|
|
5469
|
+
* @export
|
|
5470
|
+
* @interface PaymentSnapshotPaymentMethod
|
|
5471
|
+
*/
|
|
5472
|
+
export interface PaymentSnapshotPaymentMethod {
|
|
5473
|
+
/**
|
|
5474
|
+
*
|
|
5475
|
+
* @type {PaymentSnapshotPaymentMethodCard}
|
|
5476
|
+
* @memberof PaymentSnapshotPaymentMethod
|
|
5477
|
+
*/
|
|
5478
|
+
card?: PaymentSnapshotPaymentMethodCard;
|
|
5479
|
+
}
|
|
5480
|
+
/**
|
|
5481
|
+
*
|
|
5482
|
+
* @export
|
|
5483
|
+
* @interface PaymentSnapshotPaymentMethodCard
|
|
5484
|
+
*/
|
|
5485
|
+
export interface PaymentSnapshotPaymentMethodCard {
|
|
5486
|
+
/**
|
|
5487
|
+
*
|
|
5488
|
+
* @type {FVCardDetails}
|
|
5489
|
+
* @memberof PaymentSnapshotPaymentMethodCard
|
|
5490
|
+
*/
|
|
5491
|
+
card_details?: FVCardDetails;
|
|
5492
|
+
}
|
|
5412
5493
|
/**
|
|
5413
5494
|
*
|
|
5414
5495
|
* @export
|
|
@@ -5900,6 +5981,12 @@ export interface RecipientAccountNumber {
|
|
|
5900
5981
|
* @memberof RecipientAccountNumber
|
|
5901
5982
|
*/
|
|
5902
5983
|
number: string;
|
|
5984
|
+
/**
|
|
5985
|
+
* Account number value
|
|
5986
|
+
* @type {string}
|
|
5987
|
+
* @memberof RecipientAccountNumber
|
|
5988
|
+
*/
|
|
5989
|
+
number_plaintext?: string | null;
|
|
5903
5990
|
}
|
|
5904
5991
|
export declare const RecipientAccountNumberTypeEnum: {
|
|
5905
5992
|
readonly Local: "LOCAL";
|
|
@@ -6442,11 +6529,11 @@ export interface Transaction {
|
|
|
6442
6529
|
*/
|
|
6443
6530
|
amount?: CurrencyAmount;
|
|
6444
6531
|
/**
|
|
6445
|
-
*
|
|
6532
|
+
* Transaction Details
|
|
6446
6533
|
* @type {object}
|
|
6447
6534
|
* @memberof Transaction
|
|
6448
6535
|
*/
|
|
6449
|
-
|
|
6536
|
+
transaction_details?: object;
|
|
6450
6537
|
/**
|
|
6451
6538
|
*
|
|
6452
6539
|
* @type {string}
|
|
@@ -6465,6 +6552,18 @@ export interface Transaction {
|
|
|
6465
6552
|
* @memberof Transaction
|
|
6466
6553
|
*/
|
|
6467
6554
|
categories?: Array<string>;
|
|
6555
|
+
/**
|
|
6556
|
+
* Optional field indicating when the transaction happened
|
|
6557
|
+
* @type {string}
|
|
6558
|
+
* @memberof Transaction
|
|
6559
|
+
*/
|
|
6560
|
+
transaction_time?: string | null;
|
|
6561
|
+
/**
|
|
6562
|
+
* Transaction reference provided by the bank
|
|
6563
|
+
* @type {string}
|
|
6564
|
+
* @memberof Transaction
|
|
6565
|
+
*/
|
|
6566
|
+
transaction_reference?: string;
|
|
6468
6567
|
/**
|
|
6469
6568
|
*
|
|
6470
6569
|
* @type {Array<CategoryPredictions>}
|
|
@@ -7644,6 +7743,20 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
7644
7743
|
* @throws {RequiredError}
|
|
7645
7744
|
*/
|
|
7646
7745
|
getSenderPaymentUser: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7746
|
+
/**
|
|
7747
|
+
* List mandates details
|
|
7748
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
7749
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
7750
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
7751
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
7752
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
7753
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
7754
|
+
* @param {number} [offset] default is 0
|
|
7755
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
7756
|
+
* @param {*} [options] Override http request option.
|
|
7757
|
+
* @throws {RequiredError}
|
|
7758
|
+
*/
|
|
7759
|
+
listDetokenizedMandates: (dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, offset?: number, limit?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7647
7760
|
/**
|
|
7648
7761
|
* List mandates
|
|
7649
7762
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -7673,7 +7786,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
7673
7786
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
7674
7787
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
7675
7788
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
7676
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
7789
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
7677
7790
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
7678
7791
|
* @param {string} [currency] The currency the payment is made in
|
|
7679
7792
|
* @param {number} [offset] default is 0
|
|
@@ -7681,7 +7794,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
7681
7794
|
* @param {*} [options] Override http request option.
|
|
7682
7795
|
* @throws {RequiredError}
|
|
7683
7796
|
*/
|
|
7684
|
-
listPayments: (dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7797
|
+
listPayments: (dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7685
7798
|
/**
|
|
7686
7799
|
* Set autopay consent for payment user
|
|
7687
7800
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -7808,6 +7921,20 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
7808
7921
|
* @throws {RequiredError}
|
|
7809
7922
|
*/
|
|
7810
7923
|
getSenderPaymentUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentUserResponse>>;
|
|
7924
|
+
/**
|
|
7925
|
+
* List mandates details
|
|
7926
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
7927
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
7928
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
7929
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
7930
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
7931
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
7932
|
+
* @param {number} [offset] default is 0
|
|
7933
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
7934
|
+
* @param {*} [options] Override http request option.
|
|
7935
|
+
* @throws {RequiredError}
|
|
7936
|
+
*/
|
|
7937
|
+
listDetokenizedMandates(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListMandatesResponse>>;
|
|
7811
7938
|
/**
|
|
7812
7939
|
* List mandates
|
|
7813
7940
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -7837,7 +7964,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
7837
7964
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
7838
7965
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
7839
7966
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
7840
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
7967
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
7841
7968
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
7842
7969
|
* @param {string} [currency] The currency the payment is made in
|
|
7843
7970
|
* @param {number} [offset] default is 0
|
|
@@ -7845,7 +7972,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
7845
7972
|
* @param {*} [options] Override http request option.
|
|
7846
7973
|
* @throws {RequiredError}
|
|
7847
7974
|
*/
|
|
7848
|
-
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponse>>;
|
|
7975
|
+
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponse>>;
|
|
7849
7976
|
/**
|
|
7850
7977
|
* Set autopay consent for payment user
|
|
7851
7978
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -7972,6 +8099,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
7972
8099
|
* @throws {RequiredError}
|
|
7973
8100
|
*/
|
|
7974
8101
|
getSenderPaymentUser(options?: any): AxiosPromise<GetPaymentUserResponse>;
|
|
8102
|
+
/**
|
|
8103
|
+
* List mandates details
|
|
8104
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
8105
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
8106
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
8107
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
8108
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
8109
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
8110
|
+
* @param {number} [offset] default is 0
|
|
8111
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
8112
|
+
* @param {*} [options] Override http request option.
|
|
8113
|
+
* @throws {RequiredError}
|
|
8114
|
+
*/
|
|
8115
|
+
listDetokenizedMandates(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, offset?: number, limit?: number, options?: any): AxiosPromise<ListMandatesResponse>;
|
|
7975
8116
|
/**
|
|
7976
8117
|
* List mandates
|
|
7977
8118
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -8001,7 +8142,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
8001
8142
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
8002
8143
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
8003
8144
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
8004
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
8145
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
8005
8146
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
8006
8147
|
* @param {string} [currency] The currency the payment is made in
|
|
8007
8148
|
* @param {number} [offset] default is 0
|
|
@@ -8009,7 +8150,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
8009
8150
|
* @param {*} [options] Override http request option.
|
|
8010
8151
|
* @throws {RequiredError}
|
|
8011
8152
|
*/
|
|
8012
|
-
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: any): AxiosPromise<ListPaymentsResponse>;
|
|
8153
|
+
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: any): AxiosPromise<ListPaymentsResponse>;
|
|
8013
8154
|
/**
|
|
8014
8155
|
* Set autopay consent for payment user
|
|
8015
8156
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -8154,6 +8295,21 @@ export interface DefaultApiInterface {
|
|
|
8154
8295
|
* @memberof DefaultApiInterface
|
|
8155
8296
|
*/
|
|
8156
8297
|
getSenderPaymentUser(options?: AxiosRequestConfig): AxiosPromise<GetPaymentUserResponse>;
|
|
8298
|
+
/**
|
|
8299
|
+
* List mandates details
|
|
8300
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
8301
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
8302
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
8303
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
8304
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
8305
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
8306
|
+
* @param {number} [offset] default is 0
|
|
8307
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
8308
|
+
* @param {*} [options] Override http request option.
|
|
8309
|
+
* @throws {RequiredError}
|
|
8310
|
+
* @memberof DefaultApiInterface
|
|
8311
|
+
*/
|
|
8312
|
+
listDetokenizedMandates(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): AxiosPromise<ListMandatesResponse>;
|
|
8157
8313
|
/**
|
|
8158
8314
|
* List mandates
|
|
8159
8315
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -8185,7 +8341,7 @@ export interface DefaultApiInterface {
|
|
|
8185
8341
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
8186
8342
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
8187
8343
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
8188
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
8344
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
8189
8345
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
8190
8346
|
* @param {string} [currency] The currency the payment is made in
|
|
8191
8347
|
* @param {number} [offset] default is 0
|
|
@@ -8194,7 +8350,7 @@ export interface DefaultApiInterface {
|
|
|
8194
8350
|
* @throws {RequiredError}
|
|
8195
8351
|
* @memberof DefaultApiInterface
|
|
8196
8352
|
*/
|
|
8197
|
-
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): AxiosPromise<ListPaymentsResponse>;
|
|
8353
|
+
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): AxiosPromise<ListPaymentsResponse>;
|
|
8198
8354
|
/**
|
|
8199
8355
|
* Set autopay consent for payment user
|
|
8200
8356
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -8341,6 +8497,21 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
8341
8497
|
* @memberof DefaultApi
|
|
8342
8498
|
*/
|
|
8343
8499
|
getSenderPaymentUser(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentUserResponse>>;
|
|
8500
|
+
/**
|
|
8501
|
+
* List mandates details
|
|
8502
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
8503
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
8504
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
8505
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
8506
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
8507
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
8508
|
+
* @param {number} [offset] default is 0
|
|
8509
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
8510
|
+
* @param {*} [options] Override http request option.
|
|
8511
|
+
* @throws {RequiredError}
|
|
8512
|
+
* @memberof DefaultApi
|
|
8513
|
+
*/
|
|
8514
|
+
listDetokenizedMandates(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListMandatesResponse>>;
|
|
8344
8515
|
/**
|
|
8345
8516
|
* List mandates
|
|
8346
8517
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -8372,7 +8543,7 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
8372
8543
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
8373
8544
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
8374
8545
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
8375
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
8546
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
8376
8547
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
8377
8548
|
* @param {string} [currency] The currency the payment is made in
|
|
8378
8549
|
* @param {number} [offset] default is 0
|
|
@@ -8381,7 +8552,7 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
8381
8552
|
* @throws {RequiredError}
|
|
8382
8553
|
* @memberof DefaultApi
|
|
8383
8554
|
*/
|
|
8384
|
-
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponse>>;
|
|
8555
|
+
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponse>>;
|
|
8385
8556
|
/**
|
|
8386
8557
|
* Set autopay consent for payment user
|
|
8387
8558
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
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.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = 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.FeePaidByEnum = exports.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CardFvLinkResponseStatusEnum = 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.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = 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.FeePaidByEnum = exports.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CardFvLinkResponseStatusEnum = 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
|
|
@@ -252,6 +252,12 @@ exports.PaymentLinkResponseStatusEnum = {
|
|
|
252
252
|
Paid: 'PAID',
|
|
253
253
|
Expired: 'EXPIRED',
|
|
254
254
|
};
|
|
255
|
+
exports.PaymentLinkResponseSessionStatusEnum = {
|
|
256
|
+
Open: 'OPEN',
|
|
257
|
+
Processing: 'PROCESSING',
|
|
258
|
+
Complete: 'COMPLETE',
|
|
259
|
+
Failed: 'FAILED',
|
|
260
|
+
};
|
|
255
261
|
exports.PaymentLinkTokenResponseTokenTypeEnum = {
|
|
256
262
|
Bearer: 'Bearer',
|
|
257
263
|
};
|
|
@@ -259,6 +265,7 @@ exports.PaymentResponseTypeEnum = {
|
|
|
259
265
|
Mandate: 'MANDATE',
|
|
260
266
|
Single: 'SINGLE',
|
|
261
267
|
Card: 'CARD',
|
|
268
|
+
Manual: 'MANUAL',
|
|
262
269
|
};
|
|
263
270
|
exports.PaymentResponseStatusEnum = {
|
|
264
271
|
AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
|
|
@@ -280,6 +287,12 @@ exports.PaymentSetupOptionsFuturePaymentsEnum = {
|
|
|
280
287
|
Autopay: 'AUTOPAY',
|
|
281
288
|
ClickToPay: 'CLICK_TO_PAY',
|
|
282
289
|
};
|
|
290
|
+
exports.PaymentSetupOptionsPaymentMethodTypesEnum = {
|
|
291
|
+
Mandate: 'MANDATE',
|
|
292
|
+
Single: 'SINGLE',
|
|
293
|
+
Card: 'CARD',
|
|
294
|
+
Manual: 'MANUAL',
|
|
295
|
+
};
|
|
283
296
|
exports.PaymentUserUserTypeEnum = {
|
|
284
297
|
Individual: 'INDIVIDUAL',
|
|
285
298
|
Business: 'BUSINESS',
|
|
@@ -2387,6 +2400,67 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2387
2400
|
options: localVarRequestOptions,
|
|
2388
2401
|
};
|
|
2389
2402
|
}),
|
|
2403
|
+
/**
|
|
2404
|
+
* List mandates details
|
|
2405
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
2406
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
2407
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
2408
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
2409
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
2410
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
2411
|
+
* @param {number} [offset] default is 0
|
|
2412
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
2413
|
+
* @param {*} [options] Override http request option.
|
|
2414
|
+
* @throws {RequiredError}
|
|
2415
|
+
*/
|
|
2416
|
+
listDetokenizedMandates: (dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2417
|
+
const localVarPath = `/mandates/details`;
|
|
2418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2419
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2420
|
+
let baseOptions;
|
|
2421
|
+
if (configuration) {
|
|
2422
|
+
baseOptions = configuration.baseOptions;
|
|
2423
|
+
}
|
|
2424
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2425
|
+
const localVarHeaderParameter = {};
|
|
2426
|
+
const localVarQueryParameter = {};
|
|
2427
|
+
// authentication Oauth2 required
|
|
2428
|
+
// oauth required
|
|
2429
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2430
|
+
if (dateFrom !== undefined) {
|
|
2431
|
+
localVarQueryParameter['date_from'] =
|
|
2432
|
+
dateFrom instanceof Date ? dateFrom.toISOString().substr(0, 10) : dateFrom;
|
|
2433
|
+
}
|
|
2434
|
+
if (dateTo !== undefined) {
|
|
2435
|
+
localVarQueryParameter['date_to'] =
|
|
2436
|
+
dateTo instanceof Date ? dateTo.toISOString().substr(0, 10) : dateTo;
|
|
2437
|
+
}
|
|
2438
|
+
if (statuses) {
|
|
2439
|
+
localVarQueryParameter['statuses'] = statuses.join(base_1.COLLECTION_FORMATS.csv);
|
|
2440
|
+
}
|
|
2441
|
+
if (senderType !== undefined) {
|
|
2442
|
+
localVarQueryParameter['sender_type'] = senderType;
|
|
2443
|
+
}
|
|
2444
|
+
if (userId !== undefined) {
|
|
2445
|
+
localVarQueryParameter['user_id'] = userId;
|
|
2446
|
+
}
|
|
2447
|
+
if (institutionId !== undefined) {
|
|
2448
|
+
localVarQueryParameter['institution_id'] = institutionId;
|
|
2449
|
+
}
|
|
2450
|
+
if (offset !== undefined) {
|
|
2451
|
+
localVarQueryParameter['offset'] = offset;
|
|
2452
|
+
}
|
|
2453
|
+
if (limit !== undefined) {
|
|
2454
|
+
localVarQueryParameter['limit'] = limit;
|
|
2455
|
+
}
|
|
2456
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2457
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2458
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2459
|
+
return {
|
|
2460
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2461
|
+
options: localVarRequestOptions,
|
|
2462
|
+
};
|
|
2463
|
+
}),
|
|
2390
2464
|
/**
|
|
2391
2465
|
* List mandates
|
|
2392
2466
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -2486,7 +2560,7 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2486
2560
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
2487
2561
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
2488
2562
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
2489
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
2563
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
2490
2564
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
2491
2565
|
* @param {string} [currency] The currency the payment is made in
|
|
2492
2566
|
* @param {number} [offset] default is 0
|
|
@@ -2790,6 +2864,25 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
2790
2864
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2791
2865
|
});
|
|
2792
2866
|
},
|
|
2867
|
+
/**
|
|
2868
|
+
* List mandates details
|
|
2869
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
2870
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
2871
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
2872
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
2873
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
2874
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
2875
|
+
* @param {number} [offset] default is 0
|
|
2876
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
2877
|
+
* @param {*} [options] Override http request option.
|
|
2878
|
+
* @throws {RequiredError}
|
|
2879
|
+
*/
|
|
2880
|
+
listDetokenizedMandates(dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options) {
|
|
2881
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2882
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDetokenizedMandates(dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options);
|
|
2883
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2884
|
+
});
|
|
2885
|
+
},
|
|
2793
2886
|
/**
|
|
2794
2887
|
* List mandates
|
|
2795
2888
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -2829,7 +2922,7 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
2829
2922
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
2830
2923
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
2831
2924
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
2832
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
2925
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
2833
2926
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
2834
2927
|
* @param {string} [currency] The currency the payment is made in
|
|
2835
2928
|
* @param {number} [offset] default is 0
|
|
@@ -3021,6 +3114,24 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3021
3114
|
getSenderPaymentUser(options) {
|
|
3022
3115
|
return localVarFp.getSenderPaymentUser(options).then((request) => request(axios, basePath));
|
|
3023
3116
|
},
|
|
3117
|
+
/**
|
|
3118
|
+
* List mandates details
|
|
3119
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
3120
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
3121
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
3122
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
3123
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
3124
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
3125
|
+
* @param {number} [offset] default is 0
|
|
3126
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
3127
|
+
* @param {*} [options] Override http request option.
|
|
3128
|
+
* @throws {RequiredError}
|
|
3129
|
+
*/
|
|
3130
|
+
listDetokenizedMandates(dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options) {
|
|
3131
|
+
return localVarFp
|
|
3132
|
+
.listDetokenizedMandates(dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options)
|
|
3133
|
+
.then((request) => request(axios, basePath));
|
|
3134
|
+
},
|
|
3024
3135
|
/**
|
|
3025
3136
|
* List mandates
|
|
3026
3137
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -3056,7 +3167,7 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3056
3167
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
3057
3168
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
3058
3169
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
3059
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
3170
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
3060
3171
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
3061
3172
|
* @param {string} [currency] The currency the payment is made in
|
|
3062
3173
|
* @param {number} [offset] default is 0
|
|
@@ -3287,6 +3398,25 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3287
3398
|
.getSenderPaymentUser(options)
|
|
3288
3399
|
.then((request) => request(this.axios, this.basePath));
|
|
3289
3400
|
}
|
|
3401
|
+
/**
|
|
3402
|
+
* List mandates details
|
|
3403
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
3404
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
3405
|
+
* @param {Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'SUCCEEDED' | 'FAILED' | 'REVOKED'>} [statuses] The mandate statuses to filter for, comma separated
|
|
3406
|
+
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
3407
|
+
* @param {string} [userId] The user_id the mandate was setup for
|
|
3408
|
+
* @param {string} [institutionId] The institution the mandate was executed against
|
|
3409
|
+
* @param {number} [offset] default is 0
|
|
3410
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
3411
|
+
* @param {*} [options] Override http request option.
|
|
3412
|
+
* @throws {RequiredError}
|
|
3413
|
+
* @memberof DefaultApi
|
|
3414
|
+
*/
|
|
3415
|
+
listDetokenizedMandates(dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options) {
|
|
3416
|
+
return exports.DefaultApiFp(this.configuration)
|
|
3417
|
+
.listDetokenizedMandates(dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options)
|
|
3418
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3419
|
+
}
|
|
3290
3420
|
/**
|
|
3291
3421
|
* List mandates
|
|
3292
3422
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -3326,7 +3456,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3326
3456
|
* @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
|
|
3327
3457
|
* @param {string} [userId] The user_id the mandate was setup for
|
|
3328
3458
|
* @param {string} [institutionId] The institution the mandate was executed against
|
|
3329
|
-
* @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
|
|
3459
|
+
* @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
|
|
3330
3460
|
* @param {string} [mandateId] The mandate the payment belongs to
|
|
3331
3461
|
* @param {string} [currency] The currency the payment is made in
|
|
3332
3462
|
* @param {number} [offset] default is 0
|
|
@@ -17,7 +17,6 @@ function getTransactions() {
|
|
|
17
17
|
is_pending: false,
|
|
18
18
|
posted_date: '2020-12-01',
|
|
19
19
|
transaction_id: '01FRSAGN9VNWZXD7FY6A180XC2',
|
|
20
|
-
transfer_details: null,
|
|
21
20
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
22
21
|
},
|
|
23
22
|
{
|
|
@@ -32,7 +31,6 @@ function getTransactions() {
|
|
|
32
31
|
is_pending: false,
|
|
33
32
|
posted_date: '2020-11-22',
|
|
34
33
|
transaction_id: '01FRSAGNAA2CPE5HFN9A91QMTJ',
|
|
35
|
-
transfer_details: null,
|
|
36
34
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
37
35
|
},
|
|
38
36
|
{
|
|
@@ -47,7 +45,6 @@ function getTransactions() {
|
|
|
47
45
|
is_pending: false,
|
|
48
46
|
posted_date: '2020-11-21',
|
|
49
47
|
transaction_id: '01FRSAGN9SHA1ZVBW406VNZGAR',
|
|
50
|
-
transfer_details: null,
|
|
51
48
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
52
49
|
},
|
|
53
50
|
{
|
|
@@ -62,7 +59,6 @@ function getTransactions() {
|
|
|
62
59
|
is_pending: false,
|
|
63
60
|
posted_date: '2020-11-17',
|
|
64
61
|
transaction_id: '01FRSAGN9Q0VC5671A12FX5R9B',
|
|
65
|
-
transfer_details: null,
|
|
66
62
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
67
63
|
},
|
|
68
64
|
{
|
|
@@ -77,7 +73,6 @@ function getTransactions() {
|
|
|
77
73
|
is_pending: false,
|
|
78
74
|
posted_date: '2020-11-16',
|
|
79
75
|
transaction_id: '01FRSAGNA86MWAAQS07F6DN8M5',
|
|
80
|
-
transfer_details: null,
|
|
81
76
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
82
77
|
},
|
|
83
78
|
{
|
|
@@ -92,7 +87,6 @@ function getTransactions() {
|
|
|
92
87
|
is_pending: false,
|
|
93
88
|
posted_date: '2020-11-13',
|
|
94
89
|
transaction_id: '01FRSAGN9NTCAJ0TRMK3CSGACK',
|
|
95
|
-
transfer_details: null,
|
|
96
90
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
97
91
|
},
|
|
98
92
|
{
|
|
@@ -107,7 +101,6 @@ function getTransactions() {
|
|
|
107
101
|
is_pending: false,
|
|
108
102
|
posted_date: '2020-11-11',
|
|
109
103
|
transaction_id: '01FRSAGN9KPMZ8KPTGV56QDQPM',
|
|
110
|
-
transfer_details: null,
|
|
111
104
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
112
105
|
},
|
|
113
106
|
{
|
|
@@ -122,7 +115,6 @@ function getTransactions() {
|
|
|
122
115
|
is_pending: false,
|
|
123
116
|
posted_date: '2020-11-11',
|
|
124
117
|
transaction_id: '01FRSAGN9G7D6CWB73BYK8EEH5',
|
|
125
|
-
transfer_details: null,
|
|
126
118
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
127
119
|
},
|
|
128
120
|
{
|
|
@@ -137,7 +129,6 @@ function getTransactions() {
|
|
|
137
129
|
is_pending: false,
|
|
138
130
|
posted_date: '2020-11-09',
|
|
139
131
|
transaction_id: '01FRSAGNA66XXHBX7S5Z8H1CWY',
|
|
140
|
-
transfer_details: null,
|
|
141
132
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
142
133
|
},
|
|
143
134
|
{
|
|
@@ -152,7 +143,6 @@ function getTransactions() {
|
|
|
152
143
|
is_pending: false,
|
|
153
144
|
posted_date: '2020-11-07',
|
|
154
145
|
transaction_id: '01FRSAGNAGRCA45QZEP330Y4N4',
|
|
155
|
-
transfer_details: null,
|
|
156
146
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
157
147
|
},
|
|
158
148
|
{
|
|
@@ -167,7 +157,6 @@ function getTransactions() {
|
|
|
167
157
|
is_pending: false,
|
|
168
158
|
posted_date: '2020-11-07',
|
|
169
159
|
transaction_id: '01FRSAGNAEFRNDCXBHB379SR68',
|
|
170
|
-
transfer_details: null,
|
|
171
160
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
172
161
|
},
|
|
173
162
|
{
|
|
@@ -182,7 +171,6 @@ function getTransactions() {
|
|
|
182
171
|
is_pending: false,
|
|
183
172
|
posted_date: '2020-11-07',
|
|
184
173
|
transaction_id: '01FRSAGNA4PND73E5NQZ7XNE6G',
|
|
185
|
-
transfer_details: null,
|
|
186
174
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
187
175
|
},
|
|
188
176
|
{
|
|
@@ -197,7 +185,6 @@ function getTransactions() {
|
|
|
197
185
|
is_pending: false,
|
|
198
186
|
posted_date: '2020-11-07',
|
|
199
187
|
transaction_id: '01FRSAGNA100YS9ZF10HX7RMD4',
|
|
200
|
-
transfer_details: null,
|
|
201
188
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
202
189
|
},
|
|
203
190
|
{
|
|
@@ -212,7 +199,6 @@ function getTransactions() {
|
|
|
212
199
|
is_pending: false,
|
|
213
200
|
posted_date: '2020-11-07',
|
|
214
201
|
transaction_id: '01FRSAGN9ZVNRWYWP139R9QFH4',
|
|
215
|
-
transfer_details: null,
|
|
216
202
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
217
203
|
},
|
|
218
204
|
{
|
|
@@ -227,7 +213,6 @@ function getTransactions() {
|
|
|
227
213
|
is_pending: false,
|
|
228
214
|
posted_date: '2020-11-02',
|
|
229
215
|
transaction_id: '01FRSAGNACT0ZFEG182SJH2EJM',
|
|
230
|
-
transfer_details: null,
|
|
231
216
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
232
217
|
},
|
|
233
218
|
{
|
|
@@ -242,7 +227,6 @@ function getTransactions() {
|
|
|
242
227
|
is_pending: false,
|
|
243
228
|
posted_date: '2020-11-01',
|
|
244
229
|
transaction_id: '01FRSAGN9XQ51HJH4X5ACTSKQS',
|
|
245
|
-
transfer_details: null,
|
|
246
230
|
updated_at: '2022-01-07T03:49:32.620Z',
|
|
247
231
|
},
|
|
248
232
|
{
|
|
@@ -257,7 +241,6 @@ function getTransactions() {
|
|
|
257
241
|
is_pending: false,
|
|
258
242
|
posted_date: '2020-09-10',
|
|
259
243
|
transaction_id: '01FRSAGVHKTJP9C21ZRES2S889',
|
|
260
|
-
transfer_details: null,
|
|
261
244
|
updated_at: '2022-01-07T03:50:05.921Z',
|
|
262
245
|
},
|
|
263
246
|
{
|
|
@@ -272,7 +255,6 @@ function getTransactions() {
|
|
|
272
255
|
is_pending: false,
|
|
273
256
|
posted_date: '2020-08-24',
|
|
274
257
|
transaction_id: '01FRSAGVHJCG2BXKKJ3EF184DK',
|
|
275
|
-
transfer_details: null,
|
|
276
258
|
updated_at: '2022-01-07T03:50:05.921Z',
|
|
277
259
|
},
|
|
278
260
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.232",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"axios": "^0.21.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/chai": "^4.3.
|
|
24
|
+
"@types/chai": "^4.3.14",
|
|
25
25
|
"@types/mocha": "^10.0.6",
|
|
26
26
|
"@types/node": "^12.11.5",
|
|
27
27
|
"axios-mock-adapter": "^1.21.2",
|
|
28
28
|
"chai": "^5.1.0",
|
|
29
|
-
"mocha": "^10.
|
|
29
|
+
"mocha": "^10.4.0",
|
|
30
30
|
"ts-node": "^10.9.2",
|
|
31
31
|
"typescript": "^3.6.4"
|
|
32
32
|
},
|