@finverse/sdk-typescript 0.0.40 → 0.0.41

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 +152 -152
  2. package/dist/api.js +79 -79
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -412,6 +412,69 @@ export interface CreateCustomerResponse {
412
412
  */
413
413
  webhook_uris?: Array<string>;
414
414
  }
415
+ /**
416
+ *
417
+ * @export
418
+ * @interface CreateMandateRequest
419
+ */
420
+ export interface CreateMandateRequest {
421
+ /**
422
+ *
423
+ * @type {MandateRecipient}
424
+ * @memberof CreateMandateRequest
425
+ */
426
+ recipient: MandateRecipient;
427
+ /**
428
+ *
429
+ * @type {CreateMandateSender}
430
+ * @memberof CreateMandateRequest
431
+ */
432
+ sender: CreateMandateSender;
433
+ /**
434
+ *
435
+ * @type {MandateDetails}
436
+ * @memberof CreateMandateRequest
437
+ */
438
+ mandate_details: MandateDetails;
439
+ }
440
+ /**
441
+ *
442
+ * @export
443
+ * @interface CreateMandateResponse
444
+ */
445
+ export interface CreateMandateResponse {
446
+ /**
447
+ * Finverse Mandate ID
448
+ * @type {string}
449
+ * @memberof CreateMandateResponse
450
+ */
451
+ mandate_id?: string;
452
+ }
453
+ /**
454
+ *
455
+ * @export
456
+ * @interface CreateMandateSender
457
+ */
458
+ export interface CreateMandateSender {
459
+ /**
460
+ *
461
+ * @type {string}
462
+ * @memberof CreateMandateSender
463
+ */
464
+ name?: string;
465
+ /**
466
+ * Customer App\'s user ID, representing the end-user making the payment.
467
+ * @type {string}
468
+ * @memberof CreateMandateSender
469
+ */
470
+ user_id: string;
471
+ /**
472
+ * Customer App\'s reference ID, representing the sender\'s account or billing reference number.
473
+ * @type {string}
474
+ * @memberof CreateMandateSender
475
+ */
476
+ sender_reference_id?: string;
477
+ }
415
478
  /**
416
479
  *
417
480
  * @export
@@ -829,84 +892,84 @@ export interface GetLoginIdentityHistoryResponse {
829
892
  /**
830
893
  *
831
894
  * @export
832
- * @interface GetMandateSender
895
+ * @interface GetMandateResponse
833
896
  */
834
- export interface GetMandateSender {
835
- /**
836
- *
837
- * @type {string}
838
- * @memberof GetMandateSender
839
- */
840
- name?: string;
841
- /**
842
- * Customer App\'s user ID, representing the end-user making the payment.
843
- * @type {string}
844
- * @memberof GetMandateSender
845
- */
846
- user_id: string;
847
- /**
848
- * Customer App\'s reference ID, representing the sender\'s account or billing reference number.
849
- * @type {string}
850
- * @memberof GetMandateSender
851
- */
852
- sender_reference_id?: string;
853
- /**
854
- *
855
- * @type {PaymentAccount}
856
- * @memberof GetMandateSender
857
- */
858
- sender_account: PaymentAccount;
859
- }
860
- /**
861
- *
862
- * @export
863
- * @interface GetMandatesResponse
864
- */
865
- export interface GetMandatesResponse {
897
+ export interface GetMandateResponse {
866
898
  /**
867
899
  * Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
868
900
  * @type {string}
869
- * @memberof GetMandatesResponse
901
+ * @memberof GetMandateResponse
870
902
  */
871
903
  last_update: string;
872
904
  /**
873
905
  * Finverse Mandate ID (ULID)
874
906
  * @type {string}
875
- * @memberof GetMandatesResponse
907
+ * @memberof GetMandateResponse
876
908
  */
877
909
  mandate_id: string;
878
910
  /**
879
911
  * Mandate status
880
912
  * @type {string}
881
- * @memberof GetMandatesResponse
913
+ * @memberof GetMandateResponse
882
914
  */
883
- mandate_status: GetMandatesResponseMandateStatusEnum;
915
+ mandate_status: GetMandateResponseMandateStatusEnum;
884
916
  /**
885
917
  *
886
918
  * @type {MandateRecipient}
887
- * @memberof GetMandatesResponse
919
+ * @memberof GetMandateResponse
888
920
  */
889
921
  recipient: MandateRecipient;
890
922
  /**
891
923
  *
892
924
  * @type {GetMandateSender}
893
- * @memberof GetMandatesResponse
925
+ * @memberof GetMandateResponse
894
926
  */
895
927
  sender: GetMandateSender;
896
928
  /**
897
929
  *
898
930
  * @type {MandateDetails}
899
- * @memberof GetMandatesResponse
931
+ * @memberof GetMandateResponse
900
932
  */
901
933
  mandate_details: MandateDetails;
902
934
  }
903
- export declare const GetMandatesResponseMandateStatusEnum: {
935
+ export declare const GetMandateResponseMandateStatusEnum: {
904
936
  readonly Created: "CREATED";
905
937
  readonly Used: "USED";
906
938
  readonly Submitted: "SUBMITTED";
907
939
  readonly Error: "ERROR";
908
940
  };
909
- export declare type GetMandatesResponseMandateStatusEnum = typeof GetMandatesResponseMandateStatusEnum[keyof typeof GetMandatesResponseMandateStatusEnum];
941
+ export declare type GetMandateResponseMandateStatusEnum = typeof GetMandateResponseMandateStatusEnum[keyof typeof GetMandateResponseMandateStatusEnum];
942
+ /**
943
+ *
944
+ * @export
945
+ * @interface GetMandateSender
946
+ */
947
+ export interface GetMandateSender {
948
+ /**
949
+ *
950
+ * @type {string}
951
+ * @memberof GetMandateSender
952
+ */
953
+ name?: string;
954
+ /**
955
+ * Customer App\'s user ID, representing the end-user making the payment.
956
+ * @type {string}
957
+ * @memberof GetMandateSender
958
+ */
959
+ user_id: string;
960
+ /**
961
+ * Customer App\'s reference ID, representing the sender\'s account or billing reference number.
962
+ * @type {string}
963
+ * @memberof GetMandateSender
964
+ */
965
+ sender_reference_id?: string;
966
+ /**
967
+ *
968
+ * @type {PaymentAccount}
969
+ * @memberof GetMandateSender
970
+ */
971
+ sender_account: PaymentAccount;
972
+ }
910
973
  /**
911
974
  *
912
975
  * @export
@@ -2516,69 +2579,6 @@ export declare const PaymentScheduleFrequencyEnum: {
2516
2579
  readonly Yearly: "YEARLY";
2517
2580
  };
2518
2581
  export declare type PaymentScheduleFrequencyEnum = typeof PaymentScheduleFrequencyEnum[keyof typeof PaymentScheduleFrequencyEnum];
2519
- /**
2520
- *
2521
- * @export
2522
- * @interface PostMandateSender
2523
- */
2524
- export interface PostMandateSender {
2525
- /**
2526
- *
2527
- * @type {string}
2528
- * @memberof PostMandateSender
2529
- */
2530
- name?: string;
2531
- /**
2532
- * Customer App\'s user ID, representing the end-user making the payment.
2533
- * @type {string}
2534
- * @memberof PostMandateSender
2535
- */
2536
- user_id: string;
2537
- /**
2538
- * Customer App\'s reference ID, representing the sender\'s account or billing reference number.
2539
- * @type {string}
2540
- * @memberof PostMandateSender
2541
- */
2542
- sender_reference_id?: string;
2543
- }
2544
- /**
2545
- *
2546
- * @export
2547
- * @interface PostMandatesRequest
2548
- */
2549
- export interface PostMandatesRequest {
2550
- /**
2551
- *
2552
- * @type {MandateRecipient}
2553
- * @memberof PostMandatesRequest
2554
- */
2555
- recipient: MandateRecipient;
2556
- /**
2557
- *
2558
- * @type {PostMandateSender}
2559
- * @memberof PostMandatesRequest
2560
- */
2561
- sender: PostMandateSender;
2562
- /**
2563
- *
2564
- * @type {MandateDetails}
2565
- * @memberof PostMandatesRequest
2566
- */
2567
- mandate_details: MandateDetails;
2568
- }
2569
- /**
2570
- *
2571
- * @export
2572
- * @interface PostMandatesResponse
2573
- */
2574
- export interface PostMandatesResponse {
2575
- /**
2576
- * Finverse Mandate ID
2577
- * @type {string}
2578
- * @memberof PostMandatesResponse
2579
- */
2580
- mandate_id?: string;
2581
- }
2582
2582
  /**
2583
2583
  *
2584
2584
  * @export
@@ -3025,6 +3025,13 @@ export declare type TransactionLimitsPeriodEnum = typeof TransactionLimitsPeriod
3025
3025
  * @export
3026
3026
  */
3027
3027
  export declare const CustomerApiAxiosParamCreator: (configuration?: Configuration) => {
3028
+ /**
3029
+ * CREATE Mandate
3030
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3031
+ * @param {*} [options] Override http request option.
3032
+ * @throws {RequiredError}
3033
+ */
3034
+ createMandate: (createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3028
3035
  /**
3029
3036
  * Create new Payment
3030
3037
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3068,12 +3075,12 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3068
3075
  */
3069
3076
  getLoginIdentityHistory: (loginIdentityId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3070
3077
  /**
3071
- * Get Mandates details by mandate_id
3078
+ * Get Mandate details by mandate_id
3072
3079
  * @param {string} mandateId mandate id
3073
3080
  * @param {*} [options] Override http request option.
3074
3081
  * @throws {RequiredError}
3075
3082
  */
3076
- getMandates: (mandateId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3083
+ getMandate: (mandateId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3077
3084
  /**
3078
3085
  * Get Payment details by payment_id
3079
3086
  * @param {string} paymentId payment id
@@ -3098,13 +3105,6 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3098
3105
  * @throws {RequiredError}
3099
3106
  */
3100
3107
  listInstitutions: (country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3101
- /**
3102
- * CREATE Mandates
3103
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3104
- * @param {*} [options] Override http request option.
3105
- * @throws {RequiredError}
3106
- */
3107
- postMandates: (postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3108
3108
  /**
3109
3109
  * Refresh an access token
3110
3110
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -3118,6 +3118,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3118
3118
  * @export
3119
3119
  */
3120
3120
  export declare const CustomerApiFp: (configuration?: Configuration) => {
3121
+ /**
3122
+ * CREATE Mandate
3123
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3124
+ * @param {*} [options] Override http request option.
3125
+ * @throws {RequiredError}
3126
+ */
3127
+ createMandate(createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMandateResponse>>;
3121
3128
  /**
3122
3129
  * Create new Payment
3123
3130
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3161,12 +3168,12 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3161
3168
  */
3162
3169
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginIdentityHistoryResponse>>;
3163
3170
  /**
3164
- * Get Mandates details by mandate_id
3171
+ * Get Mandate details by mandate_id
3165
3172
  * @param {string} mandateId mandate id
3166
3173
  * @param {*} [options] Override http request option.
3167
3174
  * @throws {RequiredError}
3168
3175
  */
3169
- getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandatesResponse>>;
3176
+ getMandate(mandateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandateResponse>>;
3170
3177
  /**
3171
3178
  * Get Payment details by payment_id
3172
3179
  * @param {string} paymentId payment id
@@ -3191,13 +3198,6 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3191
3198
  * @throws {RequiredError}
3192
3199
  */
3193
3200
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Institution>>>;
3194
- /**
3195
- * CREATE Mandates
3196
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3197
- * @param {*} [options] Override http request option.
3198
- * @throws {RequiredError}
3199
- */
3200
- postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostMandatesResponse>>;
3201
3201
  /**
3202
3202
  * Refresh an access token
3203
3203
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -3211,6 +3211,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3211
3211
  * @export
3212
3212
  */
3213
3213
  export declare const CustomerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3214
+ /**
3215
+ * CREATE Mandate
3216
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3217
+ * @param {*} [options] Override http request option.
3218
+ * @throws {RequiredError}
3219
+ */
3220
+ createMandate(createMandateRequest: CreateMandateRequest, options?: any): AxiosPromise<CreateMandateResponse>;
3214
3221
  /**
3215
3222
  * Create new Payment
3216
3223
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3254,12 +3261,12 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3254
3261
  */
3255
3262
  getLoginIdentityHistory(loginIdentityId: string, options?: any): AxiosPromise<GetLoginIdentityHistoryResponse>;
3256
3263
  /**
3257
- * Get Mandates details by mandate_id
3264
+ * Get Mandate details by mandate_id
3258
3265
  * @param {string} mandateId mandate id
3259
3266
  * @param {*} [options] Override http request option.
3260
3267
  * @throws {RequiredError}
3261
3268
  */
3262
- getMandates(mandateId: string, options?: any): AxiosPromise<GetMandatesResponse>;
3269
+ getMandate(mandateId: string, options?: any): AxiosPromise<GetMandateResponse>;
3263
3270
  /**
3264
3271
  * Get Payment details by payment_id
3265
3272
  * @param {string} paymentId payment id
@@ -3284,13 +3291,6 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3284
3291
  * @throws {RequiredError}
3285
3292
  */
3286
3293
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: any): AxiosPromise<Array<Institution>>;
3287
- /**
3288
- * CREATE Mandates
3289
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3290
- * @param {*} [options] Override http request option.
3291
- * @throws {RequiredError}
3292
- */
3293
- postMandates(postMandatesRequest: PostMandatesRequest, options?: any): AxiosPromise<PostMandatesResponse>;
3294
3294
  /**
3295
3295
  * Refresh an access token
3296
3296
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -3305,6 +3305,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3305
3305
  * @interface CustomerApi
3306
3306
  */
3307
3307
  export interface CustomerApiInterface {
3308
+ /**
3309
+ * CREATE Mandate
3310
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3311
+ * @param {*} [options] Override http request option.
3312
+ * @throws {RequiredError}
3313
+ * @memberof CustomerApiInterface
3314
+ */
3315
+ createMandate(createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
3308
3316
  /**
3309
3317
  * Create new Payment
3310
3318
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3354,13 +3362,13 @@ export interface CustomerApiInterface {
3354
3362
  */
3355
3363
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): AxiosPromise<GetLoginIdentityHistoryResponse>;
3356
3364
  /**
3357
- * Get Mandates details by mandate_id
3365
+ * Get Mandate details by mandate_id
3358
3366
  * @param {string} mandateId mandate id
3359
3367
  * @param {*} [options] Override http request option.
3360
3368
  * @throws {RequiredError}
3361
3369
  * @memberof CustomerApiInterface
3362
3370
  */
3363
- getMandates(mandateId: string, options?: AxiosRequestConfig): AxiosPromise<GetMandatesResponse>;
3371
+ getMandate(mandateId: string, options?: AxiosRequestConfig): AxiosPromise<GetMandateResponse>;
3364
3372
  /**
3365
3373
  * Get Payment details by payment_id
3366
3374
  * @param {string} paymentId payment id
@@ -3388,14 +3396,6 @@ export interface CustomerApiInterface {
3388
3396
  * @memberof CustomerApiInterface
3389
3397
  */
3390
3398
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): AxiosPromise<Array<Institution>>;
3391
- /**
3392
- * CREATE Mandates
3393
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3394
- * @param {*} [options] Override http request option.
3395
- * @throws {RequiredError}
3396
- * @memberof CustomerApiInterface
3397
- */
3398
- postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): AxiosPromise<PostMandatesResponse>;
3399
3399
  /**
3400
3400
  * Refresh an access token
3401
3401
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -3412,6 +3412,14 @@ export interface CustomerApiInterface {
3412
3412
  * @extends {BaseAPI}
3413
3413
  */
3414
3414
  export declare class CustomerApi extends BaseAPI implements CustomerApiInterface {
3415
+ /**
3416
+ * CREATE Mandate
3417
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3418
+ * @param {*} [options] Override http request option.
3419
+ * @throws {RequiredError}
3420
+ * @memberof CustomerApi
3421
+ */
3422
+ createMandate(createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
3415
3423
  /**
3416
3424
  * Create new Payment
3417
3425
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3461,13 +3469,13 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3461
3469
  */
3462
3470
  getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginIdentityHistoryResponse>>;
3463
3471
  /**
3464
- * Get Mandates details by mandate_id
3472
+ * Get Mandate details by mandate_id
3465
3473
  * @param {string} mandateId mandate id
3466
3474
  * @param {*} [options] Override http request option.
3467
3475
  * @throws {RequiredError}
3468
3476
  * @memberof CustomerApi
3469
3477
  */
3470
- getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandatesResponse>>;
3478
+ getMandate(mandateId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandateResponse>>;
3471
3479
  /**
3472
3480
  * Get Payment details by payment_id
3473
3481
  * @param {string} paymentId payment id
@@ -3495,14 +3503,6 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3495
3503
  * @memberof CustomerApi
3496
3504
  */
3497
3505
  listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Institution[]>>;
3498
- /**
3499
- * CREATE Mandates
3500
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
3501
- * @param {*} [options] Override http request option.
3502
- * @throws {RequiredError}
3503
- * @memberof CustomerApi
3504
- */
3505
- postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostMandatesResponse>>;
3506
3506
  /**
3507
3507
  * Refresh an access token
3508
3508
  * @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.TransactionLimitsPeriodEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandatesResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = 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.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandateResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -36,7 +36,7 @@ exports.CreatePaymentRequestTypeEnum = {
36
36
  exports.CustomerPaymentInstructionTypeEnum = {
37
37
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
38
38
  };
39
- exports.GetMandatesResponseMandateStatusEnum = {
39
+ exports.GetMandateResponseMandateStatusEnum = {
40
40
  Created: 'CREATED',
41
41
  Used: 'USED',
42
42
  Submitted: 'SUBMITTED',
@@ -89,6 +89,38 @@ exports.TransactionLimitsPeriodEnum = {
89
89
  */
90
90
  exports.CustomerApiAxiosParamCreator = function (configuration) {
91
91
  return {
92
+ /**
93
+ * CREATE Mandate
94
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ createMandate: (createMandateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
99
+ // verify required parameter 'createMandateRequest' is not null or undefined
100
+ common_1.assertParamExists('createMandate', 'createMandateRequest', createMandateRequest);
101
+ const localVarPath = `/mandates`;
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ }
108
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
109
+ const localVarHeaderParameter = {};
110
+ const localVarQueryParameter = {};
111
+ // authentication Oauth2 required
112
+ // oauth required
113
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
115
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
118
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMandateRequest, localVarRequestOptions, configuration);
119
+ return {
120
+ url: common_1.toPathString(localVarUrlObj),
121
+ options: localVarRequestOptions,
122
+ };
123
+ }),
92
124
  /**
93
125
  * Create new Payment
94
126
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -276,14 +308,14 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
276
308
  };
277
309
  }),
278
310
  /**
279
- * Get Mandates details by mandate_id
311
+ * Get Mandate details by mandate_id
280
312
  * @param {string} mandateId mandate id
281
313
  * @param {*} [options] Override http request option.
282
314
  * @throws {RequiredError}
283
315
  */
284
- getMandates: (mandateId, options = {}) => __awaiter(this, void 0, void 0, function* () {
316
+ getMandate: (mandateId, options = {}) => __awaiter(this, void 0, void 0, function* () {
285
317
  // verify required parameter 'mandateId' is not null or undefined
286
- common_1.assertParamExists('getMandates', 'mandateId', mandateId);
318
+ common_1.assertParamExists('getMandate', 'mandateId', mandateId);
287
319
  const localVarPath = `/mandates/{mandateId}`.replace(`{${'mandateId'}}`, encodeURIComponent(String(mandateId)));
288
320
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
289
321
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -408,38 +440,6 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
408
440
  options: localVarRequestOptions,
409
441
  };
410
442
  }),
411
- /**
412
- * CREATE Mandates
413
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
414
- * @param {*} [options] Override http request option.
415
- * @throws {RequiredError}
416
- */
417
- postMandates: (postMandatesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
418
- // verify required parameter 'postMandatesRequest' is not null or undefined
419
- common_1.assertParamExists('postMandates', 'postMandatesRequest', postMandatesRequest);
420
- const localVarPath = `/mandates`;
421
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
422
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
423
- let baseOptions;
424
- if (configuration) {
425
- baseOptions = configuration.baseOptions;
426
- }
427
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
428
- const localVarHeaderParameter = {};
429
- const localVarQueryParameter = {};
430
- // authentication Oauth2 required
431
- // oauth required
432
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
433
- localVarHeaderParameter['Content-Type'] = 'application/json';
434
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
435
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
436
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
437
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(postMandatesRequest, localVarRequestOptions, configuration);
438
- return {
439
- url: common_1.toPathString(localVarUrlObj),
440
- options: localVarRequestOptions,
441
- };
442
- }),
443
443
  /**
444
444
  * Refresh an access token
445
445
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -481,6 +481,18 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
481
481
  exports.CustomerApiFp = function (configuration) {
482
482
  const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
483
483
  return {
484
+ /**
485
+ * CREATE Mandate
486
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ createMandate(createMandateRequest, options) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandate(createMandateRequest, options);
493
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
494
+ });
495
+ },
484
496
  /**
485
497
  * Create new Payment
486
498
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -554,14 +566,14 @@ exports.CustomerApiFp = function (configuration) {
554
566
  });
555
567
  },
556
568
  /**
557
- * Get Mandates details by mandate_id
569
+ * Get Mandate details by mandate_id
558
570
  * @param {string} mandateId mandate id
559
571
  * @param {*} [options] Override http request option.
560
572
  * @throws {RequiredError}
561
573
  */
562
- getMandates(mandateId, options) {
574
+ getMandate(mandateId, options) {
563
575
  return __awaiter(this, void 0, void 0, function* () {
564
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandates(mandateId, options);
576
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandate(mandateId, options);
565
577
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
566
578
  });
567
579
  },
@@ -604,18 +616,6 @@ exports.CustomerApiFp = function (configuration) {
604
616
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
605
617
  });
606
618
  },
607
- /**
608
- * CREATE Mandates
609
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
610
- * @param {*} [options] Override http request option.
611
- * @throws {RequiredError}
612
- */
613
- postMandates(postMandatesRequest, options) {
614
- return __awaiter(this, void 0, void 0, function* () {
615
- const localVarAxiosArgs = yield localVarAxiosParamCreator.postMandates(postMandatesRequest, options);
616
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
617
- });
618
- },
619
619
  /**
620
620
  * Refresh an access token
621
621
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -637,6 +637,15 @@ exports.CustomerApiFp = function (configuration) {
637
637
  exports.CustomerApiFactory = function (configuration, basePath, axios) {
638
638
  const localVarFp = exports.CustomerApiFp(configuration);
639
639
  return {
640
+ /**
641
+ * CREATE Mandate
642
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ */
646
+ createMandate(createMandateRequest, options) {
647
+ return localVarFp.createMandate(createMandateRequest, options).then((request) => request(axios, basePath));
648
+ },
640
649
  /**
641
650
  * Create new Payment
642
651
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -694,13 +703,13 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
694
703
  return localVarFp.getLoginIdentityHistory(loginIdentityId, options).then((request) => request(axios, basePath));
695
704
  },
696
705
  /**
697
- * Get Mandates details by mandate_id
706
+ * Get Mandate details by mandate_id
698
707
  * @param {string} mandateId mandate id
699
708
  * @param {*} [options] Override http request option.
700
709
  * @throws {RequiredError}
701
710
  */
702
- getMandates(mandateId, options) {
703
- return localVarFp.getMandates(mandateId, options).then((request) => request(axios, basePath));
711
+ getMandate(mandateId, options) {
712
+ return localVarFp.getMandate(mandateId, options).then((request) => request(axios, basePath));
704
713
  },
705
714
  /**
706
715
  * Get Payment details by payment_id
@@ -736,15 +745,6 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
736
745
  .listInstitutions(country, countries, productsSupported, institutionType, options)
737
746
  .then((request) => request(axios, basePath));
738
747
  },
739
- /**
740
- * CREATE Mandates
741
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
742
- * @param {*} [options] Override http request option.
743
- * @throws {RequiredError}
744
- */
745
- postMandates(postMandatesRequest, options) {
746
- return localVarFp.postMandates(postMandatesRequest, options).then((request) => request(axios, basePath));
747
- },
748
748
  /**
749
749
  * Refresh an access token
750
750
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -763,6 +763,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
763
763
  * @extends {BaseAPI}
764
764
  */
765
765
  class CustomerApi extends base_1.BaseAPI {
766
+ /**
767
+ * CREATE Mandate
768
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ * @memberof CustomerApi
772
+ */
773
+ createMandate(createMandateRequest, options) {
774
+ return exports.CustomerApiFp(this.configuration)
775
+ .createMandate(createMandateRequest, options)
776
+ .then((request) => request(this.axios, this.basePath));
777
+ }
766
778
  /**
767
779
  * Create new Payment
768
780
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -836,15 +848,15 @@ class CustomerApi extends base_1.BaseAPI {
836
848
  .then((request) => request(this.axios, this.basePath));
837
849
  }
838
850
  /**
839
- * Get Mandates details by mandate_id
851
+ * Get Mandate details by mandate_id
840
852
  * @param {string} mandateId mandate id
841
853
  * @param {*} [options] Override http request option.
842
854
  * @throws {RequiredError}
843
855
  * @memberof CustomerApi
844
856
  */
845
- getMandates(mandateId, options) {
857
+ getMandate(mandateId, options) {
846
858
  return exports.CustomerApiFp(this.configuration)
847
- .getMandates(mandateId, options)
859
+ .getMandate(mandateId, options)
848
860
  .then((request) => request(this.axios, this.basePath));
849
861
  }
850
862
  /**
@@ -886,18 +898,6 @@ class CustomerApi extends base_1.BaseAPI {
886
898
  .listInstitutions(country, countries, productsSupported, institutionType, options)
887
899
  .then((request) => request(this.axios, this.basePath));
888
900
  }
889
- /**
890
- * CREATE Mandates
891
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
892
- * @param {*} [options] Override http request option.
893
- * @throws {RequiredError}
894
- * @memberof CustomerApi
895
- */
896
- postMandates(postMandatesRequest, options) {
897
- return exports.CustomerApiFp(this.configuration)
898
- .postMandates(postMandatesRequest, options)
899
- .then((request) => request(this.axios, this.basePath));
900
- }
901
901
  /**
902
902
  * Refresh an access token
903
903
  * @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.40",
3
+ "version": "0.0.41",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [