@finverse/sdk-typescript 0.0.36 → 0.0.37

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 +340 -0
  2. package/dist/api.js +149 -1
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -789,6 +789,87 @@ export interface GetLoginIdentityHistoryResponse {
789
789
  */
790
790
  status_history?: Array<LoginIdentityStatusDetails>;
791
791
  }
792
+ /**
793
+ *
794
+ * @export
795
+ * @interface GetMandateSender
796
+ */
797
+ export interface GetMandateSender {
798
+ /**
799
+ *
800
+ * @type {string}
801
+ * @memberof GetMandateSender
802
+ */
803
+ name?: string;
804
+ /**
805
+ * Customer App\'s user ID, representing the end-user making the payment.
806
+ * @type {string}
807
+ * @memberof GetMandateSender
808
+ */
809
+ user_id: string;
810
+ /**
811
+ * Customer App\'s reference ID, representing the sender\'s account or billing reference number.
812
+ * @type {string}
813
+ * @memberof GetMandateSender
814
+ */
815
+ sender_reference_id?: string;
816
+ /**
817
+ *
818
+ * @type {PaymentAccount}
819
+ * @memberof GetMandateSender
820
+ */
821
+ sender_account: PaymentAccount;
822
+ }
823
+ /**
824
+ *
825
+ * @export
826
+ * @interface GetMandatesResponse
827
+ */
828
+ export interface GetMandatesResponse {
829
+ /**
830
+ * Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
831
+ * @type {string}
832
+ * @memberof GetMandatesResponse
833
+ */
834
+ last_update: string;
835
+ /**
836
+ * Finverse Mandate ID (ULID)
837
+ * @type {string}
838
+ * @memberof GetMandatesResponse
839
+ */
840
+ mandate_id: string;
841
+ /**
842
+ * Mandate status
843
+ * @type {string}
844
+ * @memberof GetMandatesResponse
845
+ */
846
+ mandate_status: GetMandatesResponseMandateStatusEnum;
847
+ /**
848
+ *
849
+ * @type {MandateRecipient}
850
+ * @memberof GetMandatesResponse
851
+ */
852
+ recipient: MandateRecipient;
853
+ /**
854
+ *
855
+ * @type {GetMandateSender}
856
+ * @memberof GetMandatesResponse
857
+ */
858
+ sender: GetMandateSender;
859
+ /**
860
+ *
861
+ * @type {MandateDetails}
862
+ * @memberof GetMandatesResponse
863
+ */
864
+ mandate_details: MandateDetails;
865
+ }
866
+ export declare const GetMandatesResponseMandateStatusEnum: {
867
+ readonly Created: "CREATED";
868
+ readonly Used: "USED";
869
+ readonly Submitted: "SUBMITTED";
870
+ readonly Error: "ERROR";
871
+ };
872
+ export declare type GetMandatesResponseMandateStatusEnum = typeof GetMandatesResponseMandateStatusEnum[keyof typeof GetMandatesResponseMandateStatusEnum];
792
873
  /**
793
874
  *
794
875
  * @export
@@ -2013,6 +2094,62 @@ export interface LoginMethod {
2013
2094
  */
2014
2095
  login_fields?: Array<LoginField>;
2015
2096
  }
2097
+ /**
2098
+ *
2099
+ * @export
2100
+ * @interface MandateDetails
2101
+ */
2102
+ export interface MandateDetails {
2103
+ /**
2104
+ * ISO currency code
2105
+ * @type {string}
2106
+ * @memberof MandateDetails
2107
+ */
2108
+ currency: string;
2109
+ /**
2110
+ * YYYY-MM-DD, must be later than or the same as the date of creation. If unspecified, default to the date of creation.
2111
+ * @type {string}
2112
+ * @memberof MandateDetails
2113
+ */
2114
+ start_date?: string;
2115
+ /**
2116
+ * YYYY-MM-DD, must be later than the date of creation.
2117
+ * @type {string}
2118
+ * @memberof MandateDetails
2119
+ */
2120
+ end_date?: string;
2121
+ /**
2122
+ *
2123
+ * @type {PaymentSchedule}
2124
+ * @memberof MandateDetails
2125
+ */
2126
+ payment_schedule?: PaymentSchedule;
2127
+ /**
2128
+ *
2129
+ * @type {TransactionLimits}
2130
+ * @memberof MandateDetails
2131
+ */
2132
+ transaction_limits?: TransactionLimits;
2133
+ /**
2134
+ * End-user facing description of the mandate (used in notifications, and in payments if no description is provided)
2135
+ * @type {string}
2136
+ * @memberof MandateDetails
2137
+ */
2138
+ description?: string;
2139
+ }
2140
+ /**
2141
+ *
2142
+ * @export
2143
+ * @interface MandateRecipient
2144
+ */
2145
+ export interface MandateRecipient {
2146
+ /**
2147
+ * Merchant account ID assigned by Finverse
2148
+ * @type {string}
2149
+ * @memberof MandateRecipient
2150
+ */
2151
+ recipient_account_id: string;
2152
+ }
2016
2153
  /**
2017
2154
  *
2018
2155
  * @export
@@ -2238,6 +2375,96 @@ export declare const PaymentInstructionTypeEnum: {
2238
2375
  readonly DebitAuthorization: "DEBIT_AUTHORIZATION";
2239
2376
  };
2240
2377
  export declare type PaymentInstructionTypeEnum = typeof PaymentInstructionTypeEnum[keyof typeof PaymentInstructionTypeEnum];
2378
+ /**
2379
+ *
2380
+ * @export
2381
+ * @interface PaymentSchedule
2382
+ */
2383
+ export interface PaymentSchedule {
2384
+ /**
2385
+ * 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.
2386
+ * @type {number}
2387
+ * @memberof PaymentSchedule
2388
+ */
2389
+ amount: number;
2390
+ /**
2391
+ * Frequency of the payment. Possible values (DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY)
2392
+ * @type {string}
2393
+ * @memberof PaymentSchedule
2394
+ */
2395
+ frequency: PaymentScheduleFrequencyEnum;
2396
+ }
2397
+ export declare const PaymentScheduleFrequencyEnum: {
2398
+ readonly Daily: "DAILY";
2399
+ readonly Weekly: "WEEKLY";
2400
+ readonly Monthly: "MONTHLY";
2401
+ readonly Quarterly: "QUARTERLY";
2402
+ readonly Yearly: "YEARLY";
2403
+ };
2404
+ export declare type PaymentScheduleFrequencyEnum = typeof PaymentScheduleFrequencyEnum[keyof typeof PaymentScheduleFrequencyEnum];
2405
+ /**
2406
+ *
2407
+ * @export
2408
+ * @interface PostMandateSender
2409
+ */
2410
+ export interface PostMandateSender {
2411
+ /**
2412
+ *
2413
+ * @type {string}
2414
+ * @memberof PostMandateSender
2415
+ */
2416
+ name?: string;
2417
+ /**
2418
+ * Customer App\'s user ID, representing the end-user making the payment.
2419
+ * @type {string}
2420
+ * @memberof PostMandateSender
2421
+ */
2422
+ user_id: string;
2423
+ /**
2424
+ * Customer App\'s reference ID, representing the sender\'s account or billing reference number.
2425
+ * @type {string}
2426
+ * @memberof PostMandateSender
2427
+ */
2428
+ sender_reference_id?: string;
2429
+ }
2430
+ /**
2431
+ *
2432
+ * @export
2433
+ * @interface PostMandatesRequest
2434
+ */
2435
+ export interface PostMandatesRequest {
2436
+ /**
2437
+ *
2438
+ * @type {MandateRecipient}
2439
+ * @memberof PostMandatesRequest
2440
+ */
2441
+ recipient: MandateRecipient;
2442
+ /**
2443
+ *
2444
+ * @type {PostMandateSender}
2445
+ * @memberof PostMandatesRequest
2446
+ */
2447
+ sender: PostMandateSender;
2448
+ /**
2449
+ *
2450
+ * @type {MandateDetails}
2451
+ * @memberof PostMandatesRequest
2452
+ */
2453
+ mandate_details: MandateDetails;
2454
+ }
2455
+ /**
2456
+ *
2457
+ * @export
2458
+ * @interface PostMandatesResponse
2459
+ */
2460
+ export interface PostMandatesResponse {
2461
+ /**
2462
+ * Finverse Mandate ID
2463
+ * @type {string}
2464
+ * @memberof PostMandatesResponse
2465
+ */
2466
+ mandate_id?: string;
2467
+ }
2241
2468
  /**
2242
2469
  *
2243
2470
  * @export
@@ -2640,6 +2867,45 @@ export interface Transaction {
2640
2867
  */
2641
2868
  updated_at?: string;
2642
2869
  }
2870
+ /**
2871
+ *
2872
+ * @export
2873
+ * @interface TransactionLimits
2874
+ */
2875
+ export interface TransactionLimits {
2876
+ /**
2877
+ * 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.
2878
+ * @type {number}
2879
+ * @memberof TransactionLimits
2880
+ */
2881
+ max_period_amount?: number;
2882
+ /**
2883
+ * Maximum number of transactions (of any amount) that can be executed during the reference period.
2884
+ * @type {number}
2885
+ * @memberof TransactionLimits
2886
+ */
2887
+ max_period_count?: number;
2888
+ /**
2889
+ * 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.
2890
+ * @type {number}
2891
+ * @memberof TransactionLimits
2892
+ */
2893
+ max_transaction_amount?: number;
2894
+ /**
2895
+ * Reference calendar periods for the payment limits. Possible values (DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY)
2896
+ * @type {string}
2897
+ * @memberof TransactionLimits
2898
+ */
2899
+ period: TransactionLimitsPeriodEnum;
2900
+ }
2901
+ export declare const TransactionLimitsPeriodEnum: {
2902
+ readonly Daily: "DAILY";
2903
+ readonly Weekly: "WEEKLY";
2904
+ readonly Monthly: "MONTHLY";
2905
+ readonly Quarterly: "QUARTERLY";
2906
+ readonly Yearly: "YEARLY";
2907
+ };
2908
+ export declare type TransactionLimitsPeriodEnum = typeof TransactionLimitsPeriodEnum[keyof typeof TransactionLimitsPeriodEnum];
2643
2909
  /**
2644
2910
  * CustomerApi - axios parameter creator
2645
2911
  * @export
@@ -2680,6 +2946,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
2680
2946
  * @throws {RequiredError}
2681
2947
  */
2682
2948
  getLoginIdentityHistory: (loginIdentityId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2949
+ /**
2950
+ * Get Mandates details by mandate_id
2951
+ * @param {string} mandateId mandate id
2952
+ * @param {*} [options] Override http request option.
2953
+ * @throws {RequiredError}
2954
+ */
2955
+ getMandates: (mandateId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2683
2956
  /**
2684
2957
  * Get payment instructions by payment_instruction_id
2685
2958
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2697,6 +2970,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
2697
2970
  * @throws {RequiredError}
2698
2971
  */
2699
2972
  listInstitutions: (country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2973
+ /**
2974
+ * CREATE Mandates
2975
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
2976
+ * @param {*} [options] Override http request option.
2977
+ * @throws {RequiredError}
2978
+ */
2979
+ postMandates: (postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2700
2980
  /**
2701
2981
  * Refresh an access token
2702
2982
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -2745,6 +3025,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
2745
3025
  * @throws {RequiredError}
2746
3026
  */
2747
3027
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginIdentityHistoryResponse>>;
3028
+ /**
3029
+ * Get Mandates details by mandate_id
3030
+ * @param {string} mandateId mandate id
3031
+ * @param {*} [options] Override http request option.
3032
+ * @throws {RequiredError}
3033
+ */
3034
+ getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandatesResponse>>;
2748
3035
  /**
2749
3036
  * Get payment instructions by payment_instruction_id
2750
3037
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2762,6 +3049,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
2762
3049
  * @throws {RequiredError}
2763
3050
  */
2764
3051
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Institution>>>;
3052
+ /**
3053
+ * CREATE Mandates
3054
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3055
+ * @param {*} [options] Override http request option.
3056
+ * @throws {RequiredError}
3057
+ */
3058
+ postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostMandatesResponse>>;
2765
3059
  /**
2766
3060
  * Refresh an access token
2767
3061
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -2810,6 +3104,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
2810
3104
  * @throws {RequiredError}
2811
3105
  */
2812
3106
  getLoginIdentityHistory(loginIdentityId: string, options?: any): AxiosPromise<GetLoginIdentityHistoryResponse>;
3107
+ /**
3108
+ * Get Mandates details by mandate_id
3109
+ * @param {string} mandateId mandate id
3110
+ * @param {*} [options] Override http request option.
3111
+ * @throws {RequiredError}
3112
+ */
3113
+ getMandates(mandateId: string, options?: any): AxiosPromise<GetMandatesResponse>;
2813
3114
  /**
2814
3115
  * Get payment instructions by payment_instruction_id
2815
3116
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2827,6 +3128,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
2827
3128
  * @throws {RequiredError}
2828
3129
  */
2829
3130
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: any): AxiosPromise<Array<Institution>>;
3131
+ /**
3132
+ * CREATE Mandates
3133
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3134
+ * @param {*} [options] Override http request option.
3135
+ * @throws {RequiredError}
3136
+ */
3137
+ postMandates(postMandatesRequest: PostMandatesRequest, options?: any): AxiosPromise<PostMandatesResponse>;
2830
3138
  /**
2831
3139
  * Refresh an access token
2832
3140
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -2881,6 +3189,14 @@ export interface CustomerApiInterface {
2881
3189
  * @memberof CustomerApiInterface
2882
3190
  */
2883
3191
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): AxiosPromise<GetLoginIdentityHistoryResponse>;
3192
+ /**
3193
+ * Get Mandates details by mandate_id
3194
+ * @param {string} mandateId mandate id
3195
+ * @param {*} [options] Override http request option.
3196
+ * @throws {RequiredError}
3197
+ * @memberof CustomerApiInterface
3198
+ */
3199
+ getMandates(mandateId: string, options?: AxiosRequestConfig): AxiosPromise<GetMandatesResponse>;
2884
3200
  /**
2885
3201
  * Get payment instructions by payment_instruction_id
2886
3202
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2900,6 +3216,14 @@ export interface CustomerApiInterface {
2900
3216
  * @memberof CustomerApiInterface
2901
3217
  */
2902
3218
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): AxiosPromise<Array<Institution>>;
3219
+ /**
3220
+ * CREATE Mandates
3221
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3222
+ * @param {*} [options] Override http request option.
3223
+ * @throws {RequiredError}
3224
+ * @memberof CustomerApiInterface
3225
+ */
3226
+ postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): AxiosPromise<PostMandatesResponse>;
2903
3227
  /**
2904
3228
  * Refresh an access token
2905
3229
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -2956,6 +3280,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
2956
3280
  * @memberof CustomerApi
2957
3281
  */
2958
3282
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginIdentityHistoryResponse>>;
3283
+ /**
3284
+ * Get Mandates details by mandate_id
3285
+ * @param {string} mandateId mandate id
3286
+ * @param {*} [options] Override http request option.
3287
+ * @throws {RequiredError}
3288
+ * @memberof CustomerApi
3289
+ */
3290
+ getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandatesResponse>>;
2959
3291
  /**
2960
3292
  * Get payment instructions by payment_instruction_id
2961
3293
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -2975,6 +3307,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
2975
3307
  * @memberof CustomerApi
2976
3308
  */
2977
3309
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Institution[]>>;
3310
+ /**
3311
+ * CREATE Mandates
3312
+ * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3313
+ * @param {*} [options] Override http request option.
3314
+ * @throws {RequiredError}
3315
+ * @memberof CustomerApi
3316
+ */
3317
+ postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostMandatesResponse>>;
2978
3318
  /**
2979
3319
  * Refresh an access token
2980
3320
  * @param {RefreshRequest} refreshRequest The refresh token
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [