@finverse/sdk-typescript 0.0.49 → 0.0.52

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 +161 -23
  2. package/dist/api.js +96 -9
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -559,7 +559,18 @@ export interface CreateMandateSender {
559
559
  * @memberof CreateMandateSender
560
560
  */
561
561
  sender_reference_id?: string;
562
+ /**
563
+ * Type of account held by the Sender at the Institution. Required if institution.user_type is undefined. Possible values are PERSONAL, BUSINESS
564
+ * @type {string}
565
+ * @memberof CreateMandateSender
566
+ */
567
+ sender_type?: CreateMandateSenderSenderTypeEnum;
562
568
  }
569
+ export declare const CreateMandateSenderSenderTypeEnum: {
570
+ readonly Personal: "PERSONAL";
571
+ readonly Business: "BUSINESS";
572
+ };
573
+ export declare type CreateMandateSenderSenderTypeEnum = typeof CreateMandateSenderSenderTypeEnum[keyof typeof CreateMandateSenderSenderTypeEnum];
563
574
  /**
564
575
  *
565
576
  * @export
@@ -743,19 +754,6 @@ export interface CustomizationDetails {
743
754
  */
744
755
  display_name?: string;
745
756
  }
746
- /**
747
- *
748
- * @export
749
- * @interface DeleteInstitutionResponse
750
- */
751
- export interface DeleteInstitutionResponse {
752
- /**
753
- *
754
- * @type {boolean}
755
- * @memberof DeleteInstitutionResponse
756
- */
757
- success?: boolean;
758
- }
759
757
  /**
760
758
  *
761
759
  * @export
@@ -1188,7 +1186,18 @@ export interface GetMandateSender {
1188
1186
  * @memberof GetMandateSender
1189
1187
  */
1190
1188
  sender_account: PaymentAccount;
1189
+ /**
1190
+ * Type of account held by the Sender at the Institution. Required if institution.user_type is undefined. Possible values are PERSONAL, BUSINESS
1191
+ * @type {string}
1192
+ * @memberof GetMandateSender
1193
+ */
1194
+ sender_type?: GetMandateSenderSenderTypeEnum;
1191
1195
  }
1196
+ export declare const GetMandateSenderSenderTypeEnum: {
1197
+ readonly Personal: "PERSONAL";
1198
+ readonly Business: "BUSINESS";
1199
+ };
1200
+ export declare type GetMandateSenderSenderTypeEnum = typeof GetMandateSenderSenderTypeEnum[keyof typeof GetMandateSenderSenderTypeEnum];
1192
1201
  /**
1193
1202
  *
1194
1203
  * @export
@@ -1830,6 +1839,12 @@ export interface Institution {
1830
1839
  * @memberof Institution
1831
1840
  */
1832
1841
  updated_at?: string;
1842
+ /**
1843
+ *
1844
+ * @type {Array<string>}
1845
+ * @memberof Institution
1846
+ */
1847
+ payment_rails?: Array<string>;
1833
1848
  }
1834
1849
  /**
1835
1850
  *
@@ -3171,6 +3186,87 @@ export interface StatementLink {
3171
3186
  */
3172
3187
  statement_id?: string;
3173
3188
  }
3189
+ /**
3190
+ *
3191
+ * @export
3192
+ * @interface SubmitAuthChecklistRequest
3193
+ */
3194
+ export interface SubmitAuthChecklistRequest {
3195
+ /**
3196
+ * The key_id that was used to encrypt the envelope key
3197
+ * @type {string}
3198
+ * @memberof SubmitAuthChecklistRequest
3199
+ */
3200
+ key_id: string;
3201
+ /**
3202
+ * Finverse Institution ID
3203
+ * @type {string}
3204
+ * @memberof SubmitAuthChecklistRequest
3205
+ */
3206
+ institution_id: string;
3207
+ /**
3208
+ * The encrypted envelope key
3209
+ * @type {string}
3210
+ * @memberof SubmitAuthChecklistRequest
3211
+ */
3212
+ envelope_encryption_key: string;
3213
+ /**
3214
+ * The initialization vector used for enncrypting the payload
3215
+ * @type {string}
3216
+ * @memberof SubmitAuthChecklistRequest
3217
+ */
3218
+ initialization_vector: string;
3219
+ /**
3220
+ * The authentication code is used to authenticate the origin of the message
3221
+ * @type {string}
3222
+ * @memberof SubmitAuthChecklistRequest
3223
+ */
3224
+ message_authentication_code: string;
3225
+ /**
3226
+ * The encrypted payload that contains auth checklist items
3227
+ * @type {string}
3228
+ * @memberof SubmitAuthChecklistRequest
3229
+ */
3230
+ ciphertext: string;
3231
+ }
3232
+ /**
3233
+ *
3234
+ * @export
3235
+ * @interface SubmitAuthChecklistResponse
3236
+ */
3237
+ export interface SubmitAuthChecklistResponse {
3238
+ /**
3239
+ * Finverse Mandate ID
3240
+ * @type {string}
3241
+ * @memberof SubmitAuthChecklistResponse
3242
+ */
3243
+ mandate_id: string;
3244
+ /**
3245
+ * Checklist of the authorization factors needed to complete Mandate authorization
3246
+ * @type {Array<AuthChecklistFactor>}
3247
+ * @memberof SubmitAuthChecklistResponse
3248
+ */
3249
+ auth_checklist: Array<AuthChecklistFactor>;
3250
+ /**
3251
+ * Mandate status
3252
+ * @type {string}
3253
+ * @memberof SubmitAuthChecklistResponse
3254
+ */
3255
+ mandate_status: SubmitAuthChecklistResponseMandateStatusEnum;
3256
+ /**
3257
+ * Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
3258
+ * @type {string}
3259
+ * @memberof SubmitAuthChecklistResponse
3260
+ */
3261
+ last_update: string;
3262
+ }
3263
+ export declare const SubmitAuthChecklistResponseMandateStatusEnum: {
3264
+ readonly Created: "CREATED";
3265
+ readonly Processing: "PROCESSING";
3266
+ readonly Submitted: "SUBMITTED";
3267
+ readonly Error: "ERROR";
3268
+ };
3269
+ export declare type SubmitAuthChecklistResponseMandateStatusEnum = typeof SubmitAuthChecklistResponseMandateStatusEnum[keyof typeof SubmitAuthChecklistResponseMandateStatusEnum];
3174
3270
  /**
3175
3271
  *
3176
3272
  * @export
@@ -3377,7 +3473,7 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3377
3473
  /**
3378
3474
  * CREATE Mandate
3379
3475
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3380
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3476
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3381
3477
  * @param {*} [options] Override http request option.
3382
3478
  * @throws {RequiredError}
3383
3479
  */
@@ -3385,7 +3481,7 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3385
3481
  /**
3386
3482
  * Create new Payment
3387
3483
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3388
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3484
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3389
3485
  * @param {*} [options] Override http request option.
3390
3486
  * @throws {RequiredError}
3391
3487
  */
@@ -3479,6 +3575,14 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3479
3575
  * @throws {RequiredError}
3480
3576
  */
3481
3577
  refreshToken: (refreshRequest: RefreshRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3578
+ /**
3579
+ * Submit authorization checklist items
3580
+ * @param {string} mandateId mandate id
3581
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
3582
+ * @param {*} [options] Override http request option.
3583
+ * @throws {RequiredError}
3584
+ */
3585
+ submitAuthChecklist: (mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3482
3586
  };
3483
3587
  /**
3484
3588
  * CustomerApi - functional programming interface
@@ -3488,7 +3592,7 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3488
3592
  /**
3489
3593
  * CREATE Mandate
3490
3594
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3491
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3595
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3492
3596
  * @param {*} [options] Override http request option.
3493
3597
  * @throws {RequiredError}
3494
3598
  */
@@ -3496,7 +3600,7 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3496
3600
  /**
3497
3601
  * Create new Payment
3498
3602
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3499
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3603
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3500
3604
  * @param {*} [options] Override http request option.
3501
3605
  * @throws {RequiredError}
3502
3606
  */
@@ -3590,6 +3694,14 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3590
3694
  * @throws {RequiredError}
3591
3695
  */
3592
3696
  refreshToken(refreshRequest: RefreshRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessTokenResponse>>;
3697
+ /**
3698
+ * Submit authorization checklist items
3699
+ * @param {string} mandateId mandate id
3700
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
3701
+ * @param {*} [options] Override http request option.
3702
+ * @throws {RequiredError}
3703
+ */
3704
+ submitAuthChecklist(mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAuthChecklistResponse>>;
3593
3705
  };
3594
3706
  /**
3595
3707
  * CustomerApi - factory interface
@@ -3599,7 +3711,7 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3599
3711
  /**
3600
3712
  * CREATE Mandate
3601
3713
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3602
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3714
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3603
3715
  * @param {*} [options] Override http request option.
3604
3716
  * @throws {RequiredError}
3605
3717
  */
@@ -3607,7 +3719,7 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3607
3719
  /**
3608
3720
  * Create new Payment
3609
3721
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3610
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3722
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3611
3723
  * @param {*} [options] Override http request option.
3612
3724
  * @throws {RequiredError}
3613
3725
  */
@@ -3701,6 +3813,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3701
3813
  * @throws {RequiredError}
3702
3814
  */
3703
3815
  refreshToken(refreshRequest: RefreshRequest, options?: any): AxiosPromise<AccessTokenResponse>;
3816
+ /**
3817
+ * Submit authorization checklist items
3818
+ * @param {string} mandateId mandate id
3819
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
3820
+ * @param {*} [options] Override http request option.
3821
+ * @throws {RequiredError}
3822
+ */
3823
+ submitAuthChecklist(mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: any): AxiosPromise<SubmitAuthChecklistResponse>;
3704
3824
  };
3705
3825
  /**
3706
3826
  * CustomerApi - interface
@@ -3711,7 +3831,7 @@ export interface CustomerApiInterface {
3711
3831
  /**
3712
3832
  * CREATE Mandate
3713
3833
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3714
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3834
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3715
3835
  * @param {*} [options] Override http request option.
3716
3836
  * @throws {RequiredError}
3717
3837
  * @memberof CustomerApiInterface
@@ -3720,7 +3840,7 @@ export interface CustomerApiInterface {
3720
3840
  /**
3721
3841
  * Create new Payment
3722
3842
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3723
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3843
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3724
3844
  * @param {*} [options] Override http request option.
3725
3845
  * @throws {RequiredError}
3726
3846
  * @memberof CustomerApiInterface
@@ -3827,6 +3947,15 @@ export interface CustomerApiInterface {
3827
3947
  * @memberof CustomerApiInterface
3828
3948
  */
3829
3949
  refreshToken(refreshRequest: RefreshRequest, options?: AxiosRequestConfig): AxiosPromise<AccessTokenResponse>;
3950
+ /**
3951
+ * Submit authorization checklist items
3952
+ * @param {string} mandateId mandate id
3953
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
3954
+ * @param {*} [options] Override http request option.
3955
+ * @throws {RequiredError}
3956
+ * @memberof CustomerApiInterface
3957
+ */
3958
+ submitAuthChecklist(mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitAuthChecklistResponse>;
3830
3959
  }
3831
3960
  /**
3832
3961
  * CustomerApi - object-oriented interface
@@ -3838,7 +3967,7 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3838
3967
  /**
3839
3968
  * CREATE Mandate
3840
3969
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3841
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3970
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3842
3971
  * @param {*} [options] Override http request option.
3843
3972
  * @throws {RequiredError}
3844
3973
  * @memberof CustomerApi
@@ -3847,7 +3976,7 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3847
3976
  /**
3848
3977
  * Create new Payment
3849
3978
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3850
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3979
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3851
3980
  * @param {*} [options] Override http request option.
3852
3981
  * @throws {RequiredError}
3853
3982
  * @memberof CustomerApi
@@ -3954,6 +4083,15 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3954
4083
  * @memberof CustomerApi
3955
4084
  */
3956
4085
  refreshToken(refreshRequest: RefreshRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccessTokenResponse>>;
4086
+ /**
4087
+ * Submit authorization checklist items
4088
+ * @param {string} mandateId mandate id
4089
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
4090
+ * @param {*} [options] Override http request option.
4091
+ * @throws {RequiredError}
4092
+ * @memberof CustomerApi
4093
+ */
4094
+ submitAuthChecklist(mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitAuthChecklistResponse>>;
3957
4095
  }
3958
4096
  /**
3959
4097
  * LinkApi - axios parameter creator
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.MandateAuthLinkCustomizationsUiModeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandateResponseMandateStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = 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.SubmitAuthChecklistResponseMandateStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandateSenderSenderTypeEnum = exports.GetMandateResponseMandateStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreateMandateSenderSenderTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -48,6 +48,10 @@ exports.AuthChecklistOptionsSubmittedByEnum = {
48
48
  CustomerApp: 'CUSTOMER_APP',
49
49
  FinverseLink: 'FINVERSE_LINK',
50
50
  };
51
+ exports.CreateMandateSenderSenderTypeEnum = {
52
+ Personal: 'PERSONAL',
53
+ Business: 'BUSINESS',
54
+ };
51
55
  exports.CreatePaymentRequestTypeEnum = {
52
56
  Mandate: 'MANDATE',
53
57
  Single: 'SINGLE',
@@ -74,6 +78,10 @@ exports.GetMandateResponseMandateStatusEnum = {
74
78
  Submitted: 'SUBMITTED',
75
79
  Error: 'ERROR',
76
80
  };
81
+ exports.GetMandateSenderSenderTypeEnum = {
82
+ Personal: 'PERSONAL',
83
+ Business: 'BUSINESS',
84
+ };
77
85
  exports.GetPaymentResponseTypeEnum = {
78
86
  Mandate: 'MANDATE',
79
87
  Single: 'SINGLE',
@@ -114,6 +122,12 @@ exports.PaymentScheduleFrequencyEnum = {
114
122
  Quarterly: 'QUARTERLY',
115
123
  Yearly: 'YEARLY',
116
124
  };
125
+ exports.SubmitAuthChecklistResponseMandateStatusEnum = {
126
+ Created: 'CREATED',
127
+ Processing: 'PROCESSING',
128
+ Submitted: 'SUBMITTED',
129
+ Error: 'ERROR',
130
+ };
117
131
  exports.TransactionLimitsPeriodEnum = {
118
132
  Daily: 'DAILY',
119
133
  Weekly: 'WEEKLY',
@@ -130,7 +144,7 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
130
144
  /**
131
145
  * CREATE Mandate
132
146
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
133
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
147
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
134
148
  * @param {*} [options] Override http request option.
135
149
  * @throws {RequiredError}
136
150
  */
@@ -166,7 +180,7 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
166
180
  /**
167
181
  * Create new Payment
168
182
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
169
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
183
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
170
184
  * @param {*} [options] Override http request option.
171
185
  * @throws {RequiredError}
172
186
  */
@@ -590,6 +604,41 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
590
604
  options: localVarRequestOptions,
591
605
  };
592
606
  }),
607
+ /**
608
+ * Submit authorization checklist items
609
+ * @param {string} mandateId mandate id
610
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
614
+ submitAuthChecklist: (mandateId, submitAuthChecklistRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
615
+ // verify required parameter 'mandateId' is not null or undefined
616
+ common_1.assertParamExists('submitAuthChecklist', 'mandateId', mandateId);
617
+ // verify required parameter 'submitAuthChecklistRequest' is not null or undefined
618
+ common_1.assertParamExists('submitAuthChecklist', 'submitAuthChecklistRequest', submitAuthChecklistRequest);
619
+ const localVarPath = `/mandates/{mandateId}/auth`.replace(`{${'mandateId'}}`, encodeURIComponent(String(mandateId)));
620
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
621
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
622
+ let baseOptions;
623
+ if (configuration) {
624
+ baseOptions = configuration.baseOptions;
625
+ }
626
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
627
+ const localVarHeaderParameter = {};
628
+ const localVarQueryParameter = {};
629
+ // authentication Oauth2 required
630
+ // oauth required
631
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
632
+ localVarHeaderParameter['Content-Type'] = 'application/json';
633
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
634
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
635
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
636
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(submitAuthChecklistRequest, localVarRequestOptions, configuration);
637
+ return {
638
+ url: common_1.toPathString(localVarUrlObj),
639
+ options: localVarRequestOptions,
640
+ };
641
+ }),
593
642
  };
594
643
  };
595
644
  /**
@@ -602,7 +651,7 @@ exports.CustomerApiFp = function (configuration) {
602
651
  /**
603
652
  * CREATE Mandate
604
653
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
605
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
654
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
606
655
  * @param {*} [options] Override http request option.
607
656
  * @throws {RequiredError}
608
657
  */
@@ -615,7 +664,7 @@ exports.CustomerApiFp = function (configuration) {
615
664
  /**
616
665
  * Create new Payment
617
666
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
618
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
667
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
619
668
  * @param {*} [options] Override http request option.
620
669
  * @throws {RequiredError}
621
670
  */
@@ -774,6 +823,19 @@ exports.CustomerApiFp = function (configuration) {
774
823
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
775
824
  });
776
825
  },
826
+ /**
827
+ * Submit authorization checklist items
828
+ * @param {string} mandateId mandate id
829
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ submitAuthChecklist(mandateId, submitAuthChecklistRequest, options) {
834
+ return __awaiter(this, void 0, void 0, function* () {
835
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitAuthChecklist(mandateId, submitAuthChecklistRequest, options);
836
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
837
+ });
838
+ },
777
839
  };
778
840
  };
779
841
  /**
@@ -786,7 +848,7 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
786
848
  /**
787
849
  * CREATE Mandate
788
850
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
789
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
851
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
790
852
  * @param {*} [options] Override http request option.
791
853
  * @throws {RequiredError}
792
854
  */
@@ -798,7 +860,7 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
798
860
  /**
799
861
  * Create new Payment
800
862
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
801
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
863
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
802
864
  * @param {*} [options] Override http request option.
803
865
  * @throws {RequiredError}
804
866
  */
@@ -930,6 +992,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
930
992
  refreshToken(refreshRequest, options) {
931
993
  return localVarFp.refreshToken(refreshRequest, options).then((request) => request(axios, basePath));
932
994
  },
995
+ /**
996
+ * Submit authorization checklist items
997
+ * @param {string} mandateId mandate id
998
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
999
+ * @param {*} [options] Override http request option.
1000
+ * @throws {RequiredError}
1001
+ */
1002
+ submitAuthChecklist(mandateId, submitAuthChecklistRequest, options) {
1003
+ return localVarFp
1004
+ .submitAuthChecklist(mandateId, submitAuthChecklistRequest, options)
1005
+ .then((request) => request(axios, basePath));
1006
+ },
933
1007
  };
934
1008
  };
935
1009
  /**
@@ -942,7 +1016,7 @@ class CustomerApi extends base_1.BaseAPI {
942
1016
  /**
943
1017
  * CREATE Mandate
944
1018
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
945
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
1019
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
946
1020
  * @param {*} [options] Override http request option.
947
1021
  * @throws {RequiredError}
948
1022
  * @memberof CustomerApi
@@ -955,7 +1029,7 @@ class CustomerApi extends base_1.BaseAPI {
955
1029
  /**
956
1030
  * Create new Payment
957
1031
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
958
- * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
1032
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
959
1033
  * @param {*} [options] Override http request option.
960
1034
  * @throws {RequiredError}
961
1035
  * @memberof CustomerApi
@@ -1114,6 +1188,19 @@ class CustomerApi extends base_1.BaseAPI {
1114
1188
  .refreshToken(refreshRequest, options)
1115
1189
  .then((request) => request(this.axios, this.basePath));
1116
1190
  }
1191
+ /**
1192
+ * Submit authorization checklist items
1193
+ * @param {string} mandateId mandate id
1194
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ * @memberof CustomerApi
1198
+ */
1199
+ submitAuthChecklist(mandateId, submitAuthChecklistRequest, options) {
1200
+ return exports.CustomerApiFp(this.configuration)
1201
+ .submitAuthChecklist(mandateId, submitAuthChecklistRequest, options)
1202
+ .then((request) => request(this.axios, this.basePath));
1203
+ }
1117
1204
  }
1118
1205
  exports.CustomerApi = CustomerApi;
1119
1206
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.49",
3
+ "version": "0.0.52",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [