@finverse/sdk-typescript 0.0.229 → 0.0.231

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
@@ -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}
@@ -3687,6 +3695,25 @@ export interface ListPaymentAccountsResponse {
3687
3695
  */
3688
3696
  payment_accounts?: Array<PaymentAccountDetails>;
3689
3697
  }
3698
+ /**
3699
+ *
3700
+ * @export
3701
+ * @interface ListPaymentMethodsResponse
3702
+ */
3703
+ export interface ListPaymentMethodsResponse {
3704
+ /**
3705
+ *
3706
+ * @type {Array<PaymentMethodResponse>}
3707
+ * @memberof ListPaymentMethodsResponse
3708
+ */
3709
+ payment_methods?: Array<PaymentMethodResponse>;
3710
+ /**
3711
+ *
3712
+ * @type {PaymentUser}
3713
+ * @memberof ListPaymentMethodsResponse
3714
+ */
3715
+ sender?: PaymentUser;
3716
+ }
3690
3717
  /**
3691
3718
  *
3692
3719
  * @export
@@ -4379,11 +4406,17 @@ export interface MandateSenderAccount {
4379
4406
  */
4380
4407
  account_id?: string;
4381
4408
  /**
4382
- * Accountholder name of the sender\'s account
4409
+ * Tokenized accountholder name of the sender\'s account
4383
4410
  * @type {string}
4384
4411
  * @memberof MandateSenderAccount
4385
4412
  */
4386
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;
4387
4420
  /**
4388
4421
  *
4389
4422
  * @type {RecipientAccountNumber}
@@ -4988,6 +5021,14 @@ export interface PaymentLinkResponse {
4988
5021
  metadata?: {
4989
5022
  [key: string]: string;
4990
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
+ };
4991
5032
  /**
4992
5033
  * The URL for payment link
4993
5034
  * @type {string}
@@ -5000,6 +5041,12 @@ export interface PaymentLinkResponse {
5000
5041
  * @memberof PaymentLinkResponse
5001
5042
  */
5002
5043
  status?: PaymentLinkResponseStatusEnum;
5044
+ /**
5045
+ * The session status of payment link
5046
+ * @type {string}
5047
+ * @memberof PaymentLinkResponse
5048
+ */
5049
+ session_status?: PaymentLinkResponseSessionStatusEnum;
5003
5050
  /**
5004
5051
  * Timestamp of when the payment link was or will expired in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
5005
5052
  * @type {string}
@@ -5053,6 +5100,13 @@ export declare const PaymentLinkResponseStatusEnum: {
5053
5100
  readonly Expired: "EXPIRED";
5054
5101
  };
5055
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];
5056
5110
  /**
5057
5111
  *
5058
5112
  * @export
@@ -5322,11 +5376,18 @@ export interface PaymentResponse {
5322
5376
  * @memberof PaymentResponse
5323
5377
  */
5324
5378
  error?: FvErrorModelV2;
5379
+ /**
5380
+ *
5381
+ * @type {PaymentSnapshotPaymentMethod}
5382
+ * @memberof PaymentResponse
5383
+ */
5384
+ payment_method?: PaymentSnapshotPaymentMethod;
5325
5385
  }
5326
5386
  export declare const PaymentResponseTypeEnum: {
5327
5387
  readonly Mandate: "MANDATE";
5328
5388
  readonly Single: "SINGLE";
5329
5389
  readonly Card: "CARD";
5390
+ readonly Manual: "MANUAL";
5330
5391
  };
5331
5392
  export declare type PaymentResponseTypeEnum = (typeof PaymentResponseTypeEnum)[keyof typeof PaymentResponseTypeEnum];
5332
5393
  export declare const PaymentResponseStatusEnum: {
@@ -5384,12 +5445,51 @@ export interface PaymentSetupOptions {
5384
5445
  * @memberof PaymentSetupOptions
5385
5446
  */
5386
5447
  mandate_details?: MandateDetailsForPaymentLink;
5448
+ /**
5449
+ *
5450
+ * @type {Array<string>}
5451
+ * @memberof PaymentSetupOptions
5452
+ */
5453
+ payment_method_types?: Array<PaymentSetupOptionsPaymentMethodTypesEnum>;
5387
5454
  }
5388
5455
  export declare const PaymentSetupOptionsFuturePaymentsEnum: {
5389
5456
  readonly Autopay: "AUTOPAY";
5390
5457
  readonly ClickToPay: "CLICK_TO_PAY";
5391
5458
  };
5392
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
+ }
5393
5493
  /**
5394
5494
  *
5395
5495
  * @export
@@ -5881,6 +5981,12 @@ export interface RecipientAccountNumber {
5881
5981
  * @memberof RecipientAccountNumber
5882
5982
  */
5883
5983
  number: string;
5984
+ /**
5985
+ * Account number value
5986
+ * @type {string}
5987
+ * @memberof RecipientAccountNumber
5988
+ */
5989
+ number_plaintext?: string | null;
5884
5990
  }
5885
5991
  export declare const RecipientAccountNumberTypeEnum: {
5886
5992
  readonly Local: "LOCAL";
@@ -6423,11 +6529,11 @@ export interface Transaction {
6423
6529
  */
6424
6530
  amount?: CurrencyAmount;
6425
6531
  /**
6426
- * (Deprecated)
6532
+ * Transaction Details
6427
6533
  * @type {object}
6428
6534
  * @memberof Transaction
6429
6535
  */
6430
- transfer_details?: object;
6536
+ transaction_details?: object;
6431
6537
  /**
6432
6538
  *
6433
6539
  * @type {string}
@@ -6446,6 +6552,18 @@ export interface Transaction {
6446
6552
  * @memberof Transaction
6447
6553
  */
6448
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
+ bank_reference?: string;
6449
6567
  /**
6450
6568
  *
6451
6569
  * @type {Array<CategoryPredictions>}
@@ -7625,6 +7743,20 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7625
7743
  * @throws {RequiredError}
7626
7744
  */
7627
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>;
7628
7760
  /**
7629
7761
  * List mandates
7630
7762
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -7639,6 +7771,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7639
7771
  * @throws {RequiredError}
7640
7772
  */
7641
7773
  listMandates: (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>;
7774
+ /**
7775
+ * List Payment Methods for a User
7776
+ * @param {string} paymentUserId Payment User Id
7777
+ * @param {*} [options] Override http request option.
7778
+ * @throws {RequiredError}
7779
+ */
7780
+ listPaymentMethods: (paymentUserId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7642
7781
  /**
7643
7782
  * List Payments
7644
7783
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -7647,7 +7786,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7647
7786
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
7648
7787
  * @param {string} [userId] The user_id the mandate was setup for
7649
7788
  * @param {string} [institutionId] The institution the mandate was executed against
7650
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
7789
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
7651
7790
  * @param {string} [mandateId] The mandate the payment belongs to
7652
7791
  * @param {string} [currency] The currency the payment is made in
7653
7792
  * @param {number} [offset] default is 0
@@ -7655,7 +7794,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7655
7794
  * @param {*} [options] Override http request option.
7656
7795
  * @throws {RequiredError}
7657
7796
  */
7658
- 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>;
7659
7798
  /**
7660
7799
  * Set autopay consent for payment user
7661
7800
  * @param {SetAutopayConsentRequest} setAutopayConsentRequest
@@ -7782,6 +7921,20 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7782
7921
  * @throws {RequiredError}
7783
7922
  */
7784
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>>;
7785
7938
  /**
7786
7939
  * List mandates
7787
7940
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -7796,6 +7949,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7796
7949
  * @throws {RequiredError}
7797
7950
  */
7798
7951
  listMandates(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>>;
7952
+ /**
7953
+ * List Payment Methods for a User
7954
+ * @param {string} paymentUserId Payment User Id
7955
+ * @param {*} [options] Override http request option.
7956
+ * @throws {RequiredError}
7957
+ */
7958
+ listPaymentMethods(paymentUserId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponse>>;
7799
7959
  /**
7800
7960
  * List Payments
7801
7961
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -7804,7 +7964,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7804
7964
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
7805
7965
  * @param {string} [userId] The user_id the mandate was setup for
7806
7966
  * @param {string} [institutionId] The institution the mandate was executed against
7807
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
7967
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
7808
7968
  * @param {string} [mandateId] The mandate the payment belongs to
7809
7969
  * @param {string} [currency] The currency the payment is made in
7810
7970
  * @param {number} [offset] default is 0
@@ -7812,7 +7972,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7812
7972
  * @param {*} [options] Override http request option.
7813
7973
  * @throws {RequiredError}
7814
7974
  */
7815
- 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>>;
7816
7976
  /**
7817
7977
  * Set autopay consent for payment user
7818
7978
  * @param {SetAutopayConsentRequest} setAutopayConsentRequest
@@ -7939,6 +8099,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7939
8099
  * @throws {RequiredError}
7940
8100
  */
7941
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>;
7942
8116
  /**
7943
8117
  * List mandates
7944
8118
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -7953,6 +8127,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7953
8127
  * @throws {RequiredError}
7954
8128
  */
7955
8129
  listMandates(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>;
8130
+ /**
8131
+ * List Payment Methods for a User
8132
+ * @param {string} paymentUserId Payment User Id
8133
+ * @param {*} [options] Override http request option.
8134
+ * @throws {RequiredError}
8135
+ */
8136
+ listPaymentMethods(paymentUserId: string, options?: any): AxiosPromise<ListPaymentMethodsResponse>;
7956
8137
  /**
7957
8138
  * List Payments
7958
8139
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -7961,7 +8142,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7961
8142
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
7962
8143
  * @param {string} [userId] The user_id the mandate was setup for
7963
8144
  * @param {string} [institutionId] The institution the mandate was executed against
7964
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
8145
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
7965
8146
  * @param {string} [mandateId] The mandate the payment belongs to
7966
8147
  * @param {string} [currency] The currency the payment is made in
7967
8148
  * @param {number} [offset] default is 0
@@ -7969,7 +8150,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7969
8150
  * @param {*} [options] Override http request option.
7970
8151
  * @throws {RequiredError}
7971
8152
  */
7972
- 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>;
7973
8154
  /**
7974
8155
  * Set autopay consent for payment user
7975
8156
  * @param {SetAutopayConsentRequest} setAutopayConsentRequest
@@ -8114,6 +8295,21 @@ export interface DefaultApiInterface {
8114
8295
  * @memberof DefaultApiInterface
8115
8296
  */
8116
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>;
8117
8313
  /**
8118
8314
  * List mandates
8119
8315
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -8129,6 +8325,14 @@ export interface DefaultApiInterface {
8129
8325
  * @memberof DefaultApiInterface
8130
8326
  */
8131
8327
  listMandates(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>;
8328
+ /**
8329
+ * List Payment Methods for a User
8330
+ * @param {string} paymentUserId Payment User Id
8331
+ * @param {*} [options] Override http request option.
8332
+ * @throws {RequiredError}
8333
+ * @memberof DefaultApiInterface
8334
+ */
8335
+ listPaymentMethods(paymentUserId: string, options?: AxiosRequestConfig): AxiosPromise<ListPaymentMethodsResponse>;
8132
8336
  /**
8133
8337
  * List Payments
8134
8338
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -8137,7 +8341,7 @@ export interface DefaultApiInterface {
8137
8341
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
8138
8342
  * @param {string} [userId] The user_id the mandate was setup for
8139
8343
  * @param {string} [institutionId] The institution the mandate was executed against
8140
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
8344
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
8141
8345
  * @param {string} [mandateId] The mandate the payment belongs to
8142
8346
  * @param {string} [currency] The currency the payment is made in
8143
8347
  * @param {number} [offset] default is 0
@@ -8146,7 +8350,7 @@ export interface DefaultApiInterface {
8146
8350
  * @throws {RequiredError}
8147
8351
  * @memberof DefaultApiInterface
8148
8352
  */
8149
- 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>;
8150
8354
  /**
8151
8355
  * Set autopay consent for payment user
8152
8356
  * @param {SetAutopayConsentRequest} setAutopayConsentRequest
@@ -8293,6 +8497,21 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
8293
8497
  * @memberof DefaultApi
8294
8498
  */
8295
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>>;
8296
8515
  /**
8297
8516
  * List mandates
8298
8517
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -8308,6 +8527,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
8308
8527
  * @memberof DefaultApi
8309
8528
  */
8310
8529
  listMandates(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>>;
8530
+ /**
8531
+ * List Payment Methods for a User
8532
+ * @param {string} paymentUserId Payment User Id
8533
+ * @param {*} [options] Override http request option.
8534
+ * @throws {RequiredError}
8535
+ * @memberof DefaultApi
8536
+ */
8537
+ listPaymentMethods(paymentUserId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponse>>;
8311
8538
  /**
8312
8539
  * List Payments
8313
8540
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -8316,7 +8543,7 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
8316
8543
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
8317
8544
  * @param {string} [userId] The user_id the mandate was setup for
8318
8545
  * @param {string} [institutionId] The institution the mandate was executed against
8319
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
8546
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
8320
8547
  * @param {string} [mandateId] The mandate the payment belongs to
8321
8548
  * @param {string} [currency] The currency the payment is made in
8322
8549
  * @param {number} [offset] default is 0
@@ -8325,7 +8552,7 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
8325
8552
  * @throws {RequiredError}
8326
8553
  * @memberof DefaultApi
8327
8554
  */
8328
- 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>>;
8329
8556
  /**
8330
8557
  * Set autopay consent for payment user
8331
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)
@@ -2448,6 +2522,36 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2448
2522
  options: localVarRequestOptions,
2449
2523
  };
2450
2524
  }),
2525
+ /**
2526
+ * List Payment Methods for a User
2527
+ * @param {string} paymentUserId Payment User Id
2528
+ * @param {*} [options] Override http request option.
2529
+ * @throws {RequiredError}
2530
+ */
2531
+ listPaymentMethods: (paymentUserId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2532
+ // verify required parameter 'paymentUserId' is not null or undefined
2533
+ common_1.assertParamExists('listPaymentMethods', 'paymentUserId', paymentUserId);
2534
+ const localVarPath = `/payment_users/{paymentUserId}/payment_methods`.replace(`{${'paymentUserId'}}`, encodeURIComponent(String(paymentUserId)));
2535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2536
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2537
+ let baseOptions;
2538
+ if (configuration) {
2539
+ baseOptions = configuration.baseOptions;
2540
+ }
2541
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2542
+ const localVarHeaderParameter = {};
2543
+ const localVarQueryParameter = {};
2544
+ // authentication Oauth2 required
2545
+ // oauth required
2546
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2547
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2548
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2549
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2550
+ return {
2551
+ url: common_1.toPathString(localVarUrlObj),
2552
+ options: localVarRequestOptions,
2553
+ };
2554
+ }),
2451
2555
  /**
2452
2556
  * List Payments
2453
2557
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -2456,7 +2560,7 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2456
2560
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
2457
2561
  * @param {string} [userId] The user_id the mandate was setup for
2458
2562
  * @param {string} [institutionId] The institution the mandate was executed against
2459
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
2563
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
2460
2564
  * @param {string} [mandateId] The mandate the payment belongs to
2461
2565
  * @param {string} [currency] The currency the payment is made in
2462
2566
  * @param {number} [offset] default is 0
@@ -2760,6 +2864,25 @@ exports.DefaultApiFp = function (configuration) {
2760
2864
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2761
2865
  });
2762
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
+ },
2763
2886
  /**
2764
2887
  * List mandates
2765
2888
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -2779,6 +2902,18 @@ exports.DefaultApiFp = function (configuration) {
2779
2902
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2780
2903
  });
2781
2904
  },
2905
+ /**
2906
+ * List Payment Methods for a User
2907
+ * @param {string} paymentUserId Payment User Id
2908
+ * @param {*} [options] Override http request option.
2909
+ * @throws {RequiredError}
2910
+ */
2911
+ listPaymentMethods(paymentUserId, options) {
2912
+ return __awaiter(this, void 0, void 0, function* () {
2913
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPaymentMethods(paymentUserId, options);
2914
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2915
+ });
2916
+ },
2782
2917
  /**
2783
2918
  * List Payments
2784
2919
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -2787,7 +2922,7 @@ exports.DefaultApiFp = function (configuration) {
2787
2922
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
2788
2923
  * @param {string} [userId] The user_id the mandate was setup for
2789
2924
  * @param {string} [institutionId] The institution the mandate was executed against
2790
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
2925
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
2791
2926
  * @param {string} [mandateId] The mandate the payment belongs to
2792
2927
  * @param {string} [currency] The currency the payment is made in
2793
2928
  * @param {number} [offset] default is 0
@@ -2979,6 +3114,24 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2979
3114
  getSenderPaymentUser(options) {
2980
3115
  return localVarFp.getSenderPaymentUser(options).then((request) => request(axios, basePath));
2981
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
+ },
2982
3135
  /**
2983
3136
  * List mandates
2984
3137
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -2997,6 +3150,15 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2997
3150
  .listMandates(dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options)
2998
3151
  .then((request) => request(axios, basePath));
2999
3152
  },
3153
+ /**
3154
+ * List Payment Methods for a User
3155
+ * @param {string} paymentUserId Payment User Id
3156
+ * @param {*} [options] Override http request option.
3157
+ * @throws {RequiredError}
3158
+ */
3159
+ listPaymentMethods(paymentUserId, options) {
3160
+ return localVarFp.listPaymentMethods(paymentUserId, options).then((request) => request(axios, basePath));
3161
+ },
3000
3162
  /**
3001
3163
  * List Payments
3002
3164
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -3005,7 +3167,7 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
3005
3167
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
3006
3168
  * @param {string} [userId] The user_id the mandate was setup for
3007
3169
  * @param {string} [institutionId] The institution the mandate was executed against
3008
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
3170
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
3009
3171
  * @param {string} [mandateId] The mandate the payment belongs to
3010
3172
  * @param {string} [currency] The currency the payment is made in
3011
3173
  * @param {number} [offset] default is 0
@@ -3236,6 +3398,25 @@ class DefaultApi extends base_1.BaseAPI {
3236
3398
  .getSenderPaymentUser(options)
3237
3399
  .then((request) => request(this.axios, this.basePath));
3238
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
+ }
3239
3420
  /**
3240
3421
  * List mandates
3241
3422
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -3255,6 +3436,18 @@ class DefaultApi extends base_1.BaseAPI {
3255
3436
  .listMandates(dateFrom, dateTo, statuses, senderType, userId, institutionId, offset, limit, options)
3256
3437
  .then((request) => request(this.axios, this.basePath));
3257
3438
  }
3439
+ /**
3440
+ * List Payment Methods for a User
3441
+ * @param {string} paymentUserId Payment User Id
3442
+ * @param {*} [options] Override http request option.
3443
+ * @throws {RequiredError}
3444
+ * @memberof DefaultApi
3445
+ */
3446
+ listPaymentMethods(paymentUserId, options) {
3447
+ return exports.DefaultApiFp(this.configuration)
3448
+ .listPaymentMethods(paymentUserId, options)
3449
+ .then((request) => request(this.axios, this.basePath));
3450
+ }
3258
3451
  /**
3259
3452
  * List Payments
3260
3453
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -3263,7 +3456,7 @@ class DefaultApi extends base_1.BaseAPI {
3263
3456
  * @param {'INDIVIDUAL' | 'BUSINESS'} [senderType] The sender type of the mandate
3264
3457
  * @param {string} [userId] The user_id the mandate was setup for
3265
3458
  * @param {string} [institutionId] The institution the mandate was executed against
3266
- * @param {'MANDATE' | 'SINGLE' | 'CARD'} [paymentType] The type of payment
3459
+ * @param {'MANDATE' | 'SINGLE' | 'CARD' | 'MANUAL'} [paymentType] The type of payment
3267
3460
  * @param {string} [mandateId] The mandate the payment belongs to
3268
3461
  * @param {string} [currency] The currency the payment is made in
3269
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.229",
3
+ "version": "0.0.231",
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.12",
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.3.0",
29
+ "mocha": "^10.4.0",
30
30
  "ts-node": "^10.9.2",
31
31
  "typescript": "^3.6.4"
32
32
  },