@finverse/sdk-typescript 0.0.35 → 0.0.38

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +372 -6
  2. package/dist/api.js +207 -2
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -551,12 +551,6 @@ export interface CustomizationDetails {
551
551
  * @memberof CustomizationDetails
552
552
  */
553
553
  display_name?: string;
554
- /**
555
- *
556
- * @type {string}
557
- * @memberof CustomizationDetails
558
- */
559
- customer_app_name: string;
560
554
  }
561
555
  /**
562
556
  *
@@ -789,6 +783,87 @@ export interface GetLoginIdentityHistoryResponse {
789
783
  */
790
784
  status_history?: Array<LoginIdentityStatusDetails>;
791
785
  }
786
+ /**
787
+ *
788
+ * @export
789
+ * @interface GetMandateSender
790
+ */
791
+ export interface GetMandateSender {
792
+ /**
793
+ *
794
+ * @type {string}
795
+ * @memberof GetMandateSender
796
+ */
797
+ name?: string;
798
+ /**
799
+ * Customer App\'s user ID, representing the end-user making the payment.
800
+ * @type {string}
801
+ * @memberof GetMandateSender
802
+ */
803
+ user_id: string;
804
+ /**
805
+ * Customer App\'s reference ID, representing the sender\'s account or billing reference number.
806
+ * @type {string}
807
+ * @memberof GetMandateSender
808
+ */
809
+ sender_reference_id?: string;
810
+ /**
811
+ *
812
+ * @type {PaymentAccount}
813
+ * @memberof GetMandateSender
814
+ */
815
+ sender_account: PaymentAccount;
816
+ }
817
+ /**
818
+ *
819
+ * @export
820
+ * @interface GetMandatesResponse
821
+ */
822
+ export interface GetMandatesResponse {
823
+ /**
824
+ * Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
825
+ * @type {string}
826
+ * @memberof GetMandatesResponse
827
+ */
828
+ last_update: string;
829
+ /**
830
+ * Finverse Mandate ID (ULID)
831
+ * @type {string}
832
+ * @memberof GetMandatesResponse
833
+ */
834
+ mandate_id: string;
835
+ /**
836
+ * Mandate status
837
+ * @type {string}
838
+ * @memberof GetMandatesResponse
839
+ */
840
+ mandate_status: GetMandatesResponseMandateStatusEnum;
841
+ /**
842
+ *
843
+ * @type {MandateRecipient}
844
+ * @memberof GetMandatesResponse
845
+ */
846
+ recipient: MandateRecipient;
847
+ /**
848
+ *
849
+ * @type {GetMandateSender}
850
+ * @memberof GetMandatesResponse
851
+ */
852
+ sender: GetMandateSender;
853
+ /**
854
+ *
855
+ * @type {MandateDetails}
856
+ * @memberof GetMandatesResponse
857
+ */
858
+ mandate_details: MandateDetails;
859
+ }
860
+ export declare const GetMandatesResponseMandateStatusEnum: {
861
+ readonly Created: "CREATED";
862
+ readonly Used: "USED";
863
+ readonly Submitted: "SUBMITTED";
864
+ readonly Error: "ERROR";
865
+ };
866
+ export declare type GetMandatesResponseMandateStatusEnum = typeof GetMandatesResponseMandateStatusEnum[keyof typeof GetMandatesResponseMandateStatusEnum];
792
867
  /**
793
868
  *
794
869
  * @export
@@ -2013,6 +2088,62 @@ export interface LoginMethod {
2013
2088
  */
2014
2089
  login_fields?: Array<LoginField>;
2015
2090
  }
2091
+ /**
2092
+ *
2093
+ * @export
2094
+ * @interface MandateDetails
2095
+ */
2096
+ export interface MandateDetails {
2097
+ /**
2098
+ * ISO currency code
2099
+ * @type {string}
2100
+ * @memberof MandateDetails
2101
+ */
2102
+ currency: string;
2103
+ /**
2104
+ * YYYY-MM-DD, must be later than or the same as the date of creation. If unspecified, default to the date of creation.
2105
+ * @type {string}
2106
+ * @memberof MandateDetails
2107
+ */
2108
+ start_date?: string;
2109
+ /**
2110
+ * YYYY-MM-DD, must be later than the date of creation.
2111
+ * @type {string}
2112
+ * @memberof MandateDetails
2113
+ */
2114
+ end_date?: string;
2115
+ /**
2116
+ *
2117
+ * @type {PaymentSchedule}
2118
+ * @memberof MandateDetails
2119
+ */
2120
+ payment_schedule?: PaymentSchedule;
2121
+ /**
2122
+ *
2123
+ * @type {TransactionLimits}
2124
+ * @memberof MandateDetails
2125
+ */
2126
+ transaction_limits?: TransactionLimits;
2127
+ /**
2128
+ * End-user facing description of the mandate (used in notifications, and in payments if no description is provided)
2129
+ * @type {string}
2130
+ * @memberof MandateDetails
2131
+ */
2132
+ description?: string;
2133
+ }
2134
+ /**
2135
+ *
2136
+ * @export
2137
+ * @interface MandateRecipient
2138
+ */
2139
+ export interface MandateRecipient {
2140
+ /**
2141
+ * Merchant account ID assigned by Finverse
2142
+ * @type {string}
2143
+ * @memberof MandateRecipient
2144
+ */
2145
+ recipient_account_id: string;
2146
+ }
2016
2147
  /**
2017
2148
  *
2018
2149
  * @export
@@ -2238,6 +2369,96 @@ export declare const PaymentInstructionTypeEnum: {
2238
2369
  readonly DebitAuthorization: "DEBIT_AUTHORIZATION";
2239
2370
  };
2240
2371
  export declare type PaymentInstructionTypeEnum = typeof PaymentInstructionTypeEnum[keyof typeof PaymentInstructionTypeEnum];
2372
+ /**
2373
+ *
2374
+ * @export
2375
+ * @interface PaymentSchedule
2376
+ */
2377
+ export interface PaymentSchedule {
2378
+ /**
2379
+ * Amount to be paid, in currency’s smallest unit or “minor unit”, as defined in ISO 4217. For example, HKD 100.01 is represented as amount = 10001 (minor unit = cents). For currencies without minor units (e.g. VND, JPY), the amount is represented as is, without modification. For example, VND 15101 is represented as amount = 15101.
2380
+ * @type {number}
2381
+ * @memberof PaymentSchedule
2382
+ */
2383
+ amount: number;
2384
+ /**
2385
+ * Frequency of the payment. Possible values (DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY)
2386
+ * @type {string}
2387
+ * @memberof PaymentSchedule
2388
+ */
2389
+ frequency: PaymentScheduleFrequencyEnum;
2390
+ }
2391
+ export declare const PaymentScheduleFrequencyEnum: {
2392
+ readonly Daily: "DAILY";
2393
+ readonly Weekly: "WEEKLY";
2394
+ readonly Monthly: "MONTHLY";
2395
+ readonly Quarterly: "QUARTERLY";
2396
+ readonly Yearly: "YEARLY";
2397
+ };
2398
+ export declare type PaymentScheduleFrequencyEnum = typeof PaymentScheduleFrequencyEnum[keyof typeof PaymentScheduleFrequencyEnum];
2399
+ /**
2400
+ *
2401
+ * @export
2402
+ * @interface PostMandateSender
2403
+ */
2404
+ export interface PostMandateSender {
2405
+ /**
2406
+ *
2407
+ * @type {string}
2408
+ * @memberof PostMandateSender
2409
+ */
2410
+ name?: string;
2411
+ /**
2412
+ * Customer App\'s user ID, representing the end-user making the payment.
2413
+ * @type {string}
2414
+ * @memberof PostMandateSender
2415
+ */
2416
+ user_id: string;
2417
+ /**
2418
+ * Customer App\'s reference ID, representing the sender\'s account or billing reference number.
2419
+ * @type {string}
2420
+ * @memberof PostMandateSender
2421
+ */
2422
+ sender_reference_id?: string;
2423
+ }
2424
+ /**
2425
+ *
2426
+ * @export
2427
+ * @interface PostMandatesRequest
2428
+ */
2429
+ export interface PostMandatesRequest {
2430
+ /**
2431
+ *
2432
+ * @type {MandateRecipient}
2433
+ * @memberof PostMandatesRequest
2434
+ */
2435
+ recipient: MandateRecipient;
2436
+ /**
2437
+ *
2438
+ * @type {PostMandateSender}
2439
+ * @memberof PostMandatesRequest
2440
+ */
2441
+ sender: PostMandateSender;
2442
+ /**
2443
+ *
2444
+ * @type {MandateDetails}
2445
+ * @memberof PostMandatesRequest
2446
+ */
2447
+ mandate_details: MandateDetails;
2448
+ }
2449
+ /**
2450
+ *
2451
+ * @export
2452
+ * @interface PostMandatesResponse
2453
+ */
2454
+ export interface PostMandatesResponse {
2455
+ /**
2456
+ * Finverse Mandate ID
2457
+ * @type {string}
2458
+ * @memberof PostMandatesResponse
2459
+ */
2460
+ mandate_id?: string;
2461
+ }
2241
2462
  /**
2242
2463
  *
2243
2464
  * @export
@@ -2640,6 +2861,45 @@ export interface Transaction {
2640
2861
  */
2641
2862
  updated_at?: string;
2642
2863
  }
2864
+ /**
2865
+ *
2866
+ * @export
2867
+ * @interface TransactionLimits
2868
+ */
2869
+ export interface TransactionLimits {
2870
+ /**
2871
+ * Maximum amount of money that can be paid during the reference period (across any number of transactions). Expressed in currency’s smallest unit or “minor unit”, as defined in ISO 4217.
2872
+ * @type {number}
2873
+ * @memberof TransactionLimits
2874
+ */
2875
+ max_period_amount?: number;
2876
+ /**
2877
+ * Maximum number of transactions (of any amount) that can be executed during the reference period.
2878
+ * @type {number}
2879
+ * @memberof TransactionLimits
2880
+ */
2881
+ max_period_count?: number;
2882
+ /**
2883
+ * The maximum amount of money that can be transferred in a single transaction under this mandate. Expressed in currency’s smallest unit or “minor unit”, as defined in ISO 4217.
2884
+ * @type {number}
2885
+ * @memberof TransactionLimits
2886
+ */
2887
+ max_transaction_amount?: number;
2888
+ /**
2889
+ * Reference calendar periods for the payment limits. Possible values (DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY)
2890
+ * @type {string}
2891
+ * @memberof TransactionLimits
2892
+ */
2893
+ period: TransactionLimitsPeriodEnum;
2894
+ }
2895
+ export declare const TransactionLimitsPeriodEnum: {
2896
+ readonly Daily: "DAILY";
2897
+ readonly Weekly: "WEEKLY";
2898
+ readonly Monthly: "MONTHLY";
2899
+ readonly Quarterly: "QUARTERLY";
2900
+ readonly Yearly: "YEARLY";
2901
+ };
2902
+ export declare type TransactionLimitsPeriodEnum = typeof TransactionLimitsPeriodEnum[keyof typeof TransactionLimitsPeriodEnum];
2643
2903
  /**
2644
2904
  * CustomerApi - axios parameter creator
2645
2905
  * @export
@@ -2680,6 +2940,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
2680
2940
  * @throws {RequiredError}
2681
2941
  */
2682
2942
  getLoginIdentityHistory: (loginIdentityId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2943
+ /**
2944
+ * Get Mandates details by mandate_id
2945
+ * @param {string} mandateId mandate id
2946
+ * @param {*} [options] Override http request option.
2947
+ * @throws {RequiredError}
2948
+ */
2949
+ getMandates: (mandateId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2683
2950
  /**
2684
2951
  * Get payment instructions by payment_instruction_id
2685
2952
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2697,6 +2964,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
2697
2964
  * @throws {RequiredError}
2698
2965
  */
2699
2966
  listInstitutions: (country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2967
+ /**
2968
+ * CREATE Mandates
2969
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
2970
+ * @param {*} [options] Override http request option.
2971
+ * @throws {RequiredError}
2972
+ */
2973
+ postMandates: (postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2700
2974
  /**
2701
2975
  * Refresh an access token
2702
2976
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -2745,6 +3019,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
2745
3019
  * @throws {RequiredError}
2746
3020
  */
2747
3021
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginIdentityHistoryResponse>>;
3022
+ /**
3023
+ * Get Mandates details by mandate_id
3024
+ * @param {string} mandateId mandate id
3025
+ * @param {*} [options] Override http request option.
3026
+ * @throws {RequiredError}
3027
+ */
3028
+ getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandatesResponse>>;
2748
3029
  /**
2749
3030
  * Get payment instructions by payment_instruction_id
2750
3031
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2762,6 +3043,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
2762
3043
  * @throws {RequiredError}
2763
3044
  */
2764
3045
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Institution>>>;
3046
+ /**
3047
+ * CREATE Mandates
3048
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3049
+ * @param {*} [options] Override http request option.
3050
+ * @throws {RequiredError}
3051
+ */
3052
+ postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostMandatesResponse>>;
2765
3053
  /**
2766
3054
  * Refresh an access token
2767
3055
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -2810,6 +3098,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
2810
3098
  * @throws {RequiredError}
2811
3099
  */
2812
3100
  getLoginIdentityHistory(loginIdentityId: string, options?: any): AxiosPromise<GetLoginIdentityHistoryResponse>;
3101
+ /**
3102
+ * Get Mandates details by mandate_id
3103
+ * @param {string} mandateId mandate id
3104
+ * @param {*} [options] Override http request option.
3105
+ * @throws {RequiredError}
3106
+ */
3107
+ getMandates(mandateId: string, options?: any): AxiosPromise<GetMandatesResponse>;
2813
3108
  /**
2814
3109
  * Get payment instructions by payment_instruction_id
2815
3110
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2827,6 +3122,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
2827
3122
  * @throws {RequiredError}
2828
3123
  */
2829
3124
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: any): AxiosPromise<Array<Institution>>;
3125
+ /**
3126
+ * CREATE Mandates
3127
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3128
+ * @param {*} [options] Override http request option.
3129
+ * @throws {RequiredError}
3130
+ */
3131
+ postMandates(postMandatesRequest: PostMandatesRequest, options?: any): AxiosPromise<PostMandatesResponse>;
2830
3132
  /**
2831
3133
  * Refresh an access token
2832
3134
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -2881,6 +3183,14 @@ export interface CustomerApiInterface {
2881
3183
  * @memberof CustomerApiInterface
2882
3184
  */
2883
3185
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): AxiosPromise<GetLoginIdentityHistoryResponse>;
3186
+ /**
3187
+ * Get Mandates details by mandate_id
3188
+ * @param {string} mandateId mandate id
3189
+ * @param {*} [options] Override http request option.
3190
+ * @throws {RequiredError}
3191
+ * @memberof CustomerApiInterface
3192
+ */
3193
+ getMandates(mandateId: string, options?: AxiosRequestConfig): AxiosPromise<GetMandatesResponse>;
2884
3194
  /**
2885
3195
  * Get payment instructions by payment_instruction_id
2886
3196
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2900,6 +3210,14 @@ export interface CustomerApiInterface {
2900
3210
  * @memberof CustomerApiInterface
2901
3211
  */
2902
3212
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): AxiosPromise<Array<Institution>>;
3213
+ /**
3214
+ * CREATE Mandates
3215
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3216
+ * @param {*} [options] Override http request option.
3217
+ * @throws {RequiredError}
3218
+ * @memberof CustomerApiInterface
3219
+ */
3220
+ postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): AxiosPromise<PostMandatesResponse>;
2903
3221
  /**
2904
3222
  * Refresh an access token
2905
3223
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -2956,6 +3274,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
2956
3274
  * @memberof CustomerApi
2957
3275
  */
2958
3276
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginIdentityHistoryResponse>>;
3277
+ /**
3278
+ * Get Mandates details by mandate_id
3279
+ * @param {string} mandateId mandate id
3280
+ * @param {*} [options] Override http request option.
3281
+ * @throws {RequiredError}
3282
+ * @memberof CustomerApi
3283
+ */
3284
+ getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandatesResponse>>;
2959
3285
  /**
2960
3286
  * Get payment instructions by payment_instruction_id
2961
3287
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2975,6 +3301,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
2975
3301
  * @memberof CustomerApi
2976
3302
  */
2977
3303
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Institution[]>>;
3304
+ /**
3305
+ * CREATE Mandates
3306
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3307
+ * @param {*} [options] Override http request option.
3308
+ * @throws {RequiredError}
3309
+ * @memberof CustomerApi
3310
+ */
3311
+ postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostMandatesResponse>>;
2978
3312
  /**
2979
3313
  * Refresh an access token
2980
3314
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -3266,6 +3600,12 @@ export declare const LoginIdentityApiAxiosParamCreator: (configuration?: Configu
3266
3600
  * @throws {RequiredError}
3267
3601
  */
3268
3602
  getBalanceHistory: (accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3603
+ /**
3604
+ * Download composite statement
3605
+ * @param {*} [options] Override http request option.
3606
+ * @throws {RequiredError}
3607
+ */
3608
+ getCompositeStatement: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3269
3609
  /**
3270
3610
  * Get composite statement link for download
3271
3611
  * @param {*} [options] Override http request option.
@@ -3379,6 +3719,12 @@ export declare const LoginIdentityApiFp: (configuration?: Configuration) => {
3379
3719
  * @throws {RequiredError}
3380
3720
  */
3381
3721
  getBalanceHistory(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBalanceHistoryResponse>>;
3722
+ /**
3723
+ * Download composite statement
3724
+ * @param {*} [options] Override http request option.
3725
+ * @throws {RequiredError}
3726
+ */
3727
+ getCompositeStatement(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3382
3728
  /**
3383
3729
  * Get composite statement link for download
3384
3730
  * @param {*} [options] Override http request option.
@@ -3492,6 +3838,12 @@ export declare const LoginIdentityApiFactory: (configuration?: Configuration, ba
3492
3838
  * @throws {RequiredError}
3493
3839
  */
3494
3840
  getBalanceHistory(accountId: string, options?: any): AxiosPromise<GetBalanceHistoryResponse>;
3841
+ /**
3842
+ * Download composite statement
3843
+ * @param {*} [options] Override http request option.
3844
+ * @throws {RequiredError}
3845
+ */
3846
+ getCompositeStatement(options?: any): AxiosPromise<void>;
3495
3847
  /**
3496
3848
  * Get composite statement link for download
3497
3849
  * @param {*} [options] Override http request option.
@@ -3611,6 +3963,13 @@ export interface LoginIdentityApiInterface {
3611
3963
  * @memberof LoginIdentityApiInterface
3612
3964
  */
3613
3965
  getBalanceHistory(accountId: string, options?: AxiosRequestConfig): AxiosPromise<GetBalanceHistoryResponse>;
3966
+ /**
3967
+ * Download composite statement
3968
+ * @param {*} [options] Override http request option.
3969
+ * @throws {RequiredError}
3970
+ * @memberof LoginIdentityApiInterface
3971
+ */
3972
+ getCompositeStatement(options?: AxiosRequestConfig): AxiosPromise<void>;
3614
3973
  /**
3615
3974
  * Get composite statement link for download
3616
3975
  * @param {*} [options] Override http request option.
@@ -3742,6 +4101,13 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
3742
4101
  * @memberof LoginIdentityApi
3743
4102
  */
3744
4103
  getBalanceHistory(accountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBalanceHistoryResponse>>;
4104
+ /**
4105
+ * Download composite statement
4106
+ * @param {*} [options] Override http request option.
4107
+ * @throws {RequiredError}
4108
+ * @memberof LoginIdentityApi
4109
+ */
4110
+ getCompositeStatement(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
3745
4111
  /**
3746
4112
  * Get composite statement link for download
3747
4113
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.CustomerPaymentInstructionTypeEnum = 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.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetMandatesResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -32,6 +32,12 @@ const base_1 = require("./base");
32
32
  exports.CustomerPaymentInstructionTypeEnum = {
33
33
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
34
34
  };
35
+ exports.GetMandatesResponseMandateStatusEnum = {
36
+ Created: 'CREATED',
37
+ Used: 'USED',
38
+ Submitted: 'SUBMITTED',
39
+ Error: 'ERROR',
40
+ };
35
41
  exports.LinkTokenRequestUiModeEnum = {
36
42
  Iframe: 'iframe',
37
43
  Redirect: 'redirect',
@@ -46,6 +52,20 @@ exports.LinkTokenRequestAutomaticDataRefreshEnum = {
46
52
  exports.PaymentInstructionTypeEnum = {
47
53
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
48
54
  };
55
+ exports.PaymentScheduleFrequencyEnum = {
56
+ Daily: 'DAILY',
57
+ Weekly: 'WEEKLY',
58
+ Monthly: 'MONTHLY',
59
+ Quarterly: 'QUARTERLY',
60
+ Yearly: 'YEARLY',
61
+ };
62
+ exports.TransactionLimitsPeriodEnum = {
63
+ Daily: 'DAILY',
64
+ Weekly: 'WEEKLY',
65
+ Monthly: 'MONTHLY',
66
+ Quarterly: 'QUARTERLY',
67
+ Yearly: 'YEARLY',
68
+ };
49
69
  /**
50
70
  * CustomerApi - axios parameter creator
51
71
  * @export
@@ -206,6 +226,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
206
226
  options: localVarRequestOptions,
207
227
  };
208
228
  }),
229
+ /**
230
+ * Get Mandates details by mandate_id
231
+ * @param {string} mandateId mandate id
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ getMandates: (mandateId, options = {}) => __awaiter(this, void 0, void 0, function* () {
236
+ // verify required parameter 'mandateId' is not null or undefined
237
+ common_1.assertParamExists('getMandates', 'mandateId', mandateId);
238
+ const localVarPath = `/mandates/{mandateId}`.replace(`{${'mandateId'}}`, encodeURIComponent(String(mandateId)));
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
246
+ const localVarHeaderParameter = {};
247
+ const localVarQueryParameter = {};
248
+ // authentication Oauth2 required
249
+ // oauth required
250
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
251
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
254
+ return {
255
+ url: common_1.toPathString(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ };
258
+ }),
209
259
  /**
210
260
  * Get payment instructions by payment_instruction_id
211
261
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -279,6 +329,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
279
329
  options: localVarRequestOptions,
280
330
  };
281
331
  }),
332
+ /**
333
+ * CREATE Mandates
334
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ postMandates: (postMandatesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
339
+ // verify required parameter 'postMandatesRequest' is not null or undefined
340
+ common_1.assertParamExists('postMandates', 'postMandatesRequest', postMandatesRequest);
341
+ const localVarPath = `/mandates`;
342
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
343
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
344
+ let baseOptions;
345
+ if (configuration) {
346
+ baseOptions = configuration.baseOptions;
347
+ }
348
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
349
+ const localVarHeaderParameter = {};
350
+ const localVarQueryParameter = {};
351
+ // authentication Oauth2 required
352
+ // oauth required
353
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
354
+ localVarHeaderParameter['Content-Type'] = 'application/json';
355
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
356
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
357
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
358
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(postMandatesRequest, localVarRequestOptions, configuration);
359
+ return {
360
+ url: common_1.toPathString(localVarUrlObj),
361
+ options: localVarRequestOptions,
362
+ };
363
+ }),
282
364
  /**
283
365
  * Refresh an access token
284
366
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -380,6 +462,18 @@ exports.CustomerApiFp = function (configuration) {
380
462
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
381
463
  });
382
464
  },
465
+ /**
466
+ * Get Mandates details by mandate_id
467
+ * @param {string} mandateId mandate id
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ */
471
+ getMandates(mandateId, options) {
472
+ return __awaiter(this, void 0, void 0, function* () {
473
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandates(mandateId, options);
474
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
475
+ });
476
+ },
383
477
  /**
384
478
  * Get payment instructions by payment_instruction_id
385
479
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -407,6 +501,18 @@ exports.CustomerApiFp = function (configuration) {
407
501
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
408
502
  });
409
503
  },
504
+ /**
505
+ * CREATE Mandates
506
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ postMandates(postMandatesRequest, options) {
511
+ return __awaiter(this, void 0, void 0, function* () {
512
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postMandates(postMandatesRequest, options);
513
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
514
+ });
515
+ },
410
516
  /**
411
517
  * Refresh an access token
412
518
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -475,6 +581,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
475
581
  getLoginIdentityHistory(loginIdentityId, options) {
476
582
  return localVarFp.getLoginIdentityHistory(loginIdentityId, options).then((request) => request(axios, basePath));
477
583
  },
584
+ /**
585
+ * Get Mandates details by mandate_id
586
+ * @param {string} mandateId mandate id
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ */
590
+ getMandates(mandateId, options) {
591
+ return localVarFp.getMandates(mandateId, options).then((request) => request(axios, basePath));
592
+ },
478
593
  /**
479
594
  * Get payment instructions by payment_instruction_id
480
595
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -500,6 +615,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
500
615
  .listInstitutions(country, countries, productsSupported, institutionType, options)
501
616
  .then((request) => request(axios, basePath));
502
617
  },
618
+ /**
619
+ * CREATE Mandates
620
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ postMandates(postMandatesRequest, options) {
625
+ return localVarFp.postMandates(postMandatesRequest, options).then((request) => request(axios, basePath));
626
+ },
503
627
  /**
504
628
  * Refresh an access token
505
629
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -578,6 +702,18 @@ class CustomerApi extends base_1.BaseAPI {
578
702
  .getLoginIdentityHistory(loginIdentityId, options)
579
703
  .then((request) => request(this.axios, this.basePath));
580
704
  }
705
+ /**
706
+ * Get Mandates details by mandate_id
707
+ * @param {string} mandateId mandate id
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ * @memberof CustomerApi
711
+ */
712
+ getMandates(mandateId, options) {
713
+ return exports.CustomerApiFp(this.configuration)
714
+ .getMandates(mandateId, options)
715
+ .then((request) => request(this.axios, this.basePath));
716
+ }
581
717
  /**
582
718
  * Get payment instructions by payment_instruction_id
583
719
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -605,6 +741,18 @@ class CustomerApi extends base_1.BaseAPI {
605
741
  .listInstitutions(country, countries, productsSupported, institutionType, options)
606
742
  .then((request) => request(this.axios, this.basePath));
607
743
  }
744
+ /**
745
+ * CREATE Mandates
746
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ * @memberof CustomerApi
750
+ */
751
+ postMandates(postMandatesRequest, options) {
752
+ return exports.CustomerApiFp(this.configuration)
753
+ .postMandates(postMandatesRequest, options)
754
+ .then((request) => request(this.axios, this.basePath));
755
+ }
608
756
  /**
609
757
  * Refresh an access token
610
758
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -1181,13 +1329,40 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
1181
1329
  options: localVarRequestOptions,
1182
1330
  };
1183
1331
  }),
1332
+ /**
1333
+ * Download composite statement
1334
+ * @param {*} [options] Override http request option.
1335
+ * @throws {RequiredError}
1336
+ */
1337
+ getCompositeStatement: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1338
+ const localVarPath = `/composite_statement`;
1339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1340
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1341
+ let baseOptions;
1342
+ if (configuration) {
1343
+ baseOptions = configuration.baseOptions;
1344
+ }
1345
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1346
+ const localVarHeaderParameter = {};
1347
+ const localVarQueryParameter = {};
1348
+ // authentication Oauth2 required
1349
+ // oauth required
1350
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1351
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1353
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1354
+ return {
1355
+ url: common_1.toPathString(localVarUrlObj),
1356
+ options: localVarRequestOptions,
1357
+ };
1358
+ }),
1184
1359
  /**
1185
1360
  * Get composite statement link for download
1186
1361
  * @param {*} [options] Override http request option.
1187
1362
  * @throws {RequiredError}
1188
1363
  */
1189
1364
  getCompositeStatementLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1190
- const localVarPath = `/composite_statement`;
1365
+ const localVarPath = `/composite_statement_link`;
1191
1366
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1192
1367
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1193
1368
  let baseOptions;
@@ -1571,6 +1746,17 @@ exports.LoginIdentityApiFp = function (configuration) {
1571
1746
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1572
1747
  });
1573
1748
  },
1749
+ /**
1750
+ * Download composite statement
1751
+ * @param {*} [options] Override http request option.
1752
+ * @throws {RequiredError}
1753
+ */
1754
+ getCompositeStatement(options) {
1755
+ return __awaiter(this, void 0, void 0, function* () {
1756
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompositeStatement(options);
1757
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1758
+ });
1759
+ },
1574
1760
  /**
1575
1761
  * Get composite statement link for download
1576
1762
  * @param {*} [options] Override http request option.
@@ -1752,6 +1938,14 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
1752
1938
  getBalanceHistory(accountId, options) {
1753
1939
  return localVarFp.getBalanceHistory(accountId, options).then((request) => request(axios, basePath));
1754
1940
  },
1941
+ /**
1942
+ * Download composite statement
1943
+ * @param {*} [options] Override http request option.
1944
+ * @throws {RequiredError}
1945
+ */
1946
+ getCompositeStatement(options) {
1947
+ return localVarFp.getCompositeStatement(options).then((request) => request(axios, basePath));
1948
+ },
1755
1949
  /**
1756
1950
  * Get composite statement link for download
1757
1951
  * @param {*} [options] Override http request option.
@@ -1919,6 +2113,17 @@ class LoginIdentityApi extends base_1.BaseAPI {
1919
2113
  .getBalanceHistory(accountId, options)
1920
2114
  .then((request) => request(this.axios, this.basePath));
1921
2115
  }
2116
+ /**
2117
+ * Download composite statement
2118
+ * @param {*} [options] Override http request option.
2119
+ * @throws {RequiredError}
2120
+ * @memberof LoginIdentityApi
2121
+ */
2122
+ getCompositeStatement(options) {
2123
+ return exports.LoginIdentityApiFp(this.configuration)
2124
+ .getCompositeStatement(options)
2125
+ .then((request) => request(this.axios, this.basePath));
2126
+ }
1922
2127
  /**
1923
2128
  * Get composite statement link for download
1924
2129
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.35",
3
+ "version": "0.0.38",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [