@finverse/sdk-typescript 0.0.50 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +145 -23
- package/dist/api.js +88 -9
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -754,19 +754,6 @@ export interface CustomizationDetails {
|
|
|
754
754
|
*/
|
|
755
755
|
display_name?: string;
|
|
756
756
|
}
|
|
757
|
-
/**
|
|
758
|
-
*
|
|
759
|
-
* @export
|
|
760
|
-
* @interface DeleteInstitutionResponse
|
|
761
|
-
*/
|
|
762
|
-
export interface DeleteInstitutionResponse {
|
|
763
|
-
/**
|
|
764
|
-
*
|
|
765
|
-
* @type {boolean}
|
|
766
|
-
* @memberof DeleteInstitutionResponse
|
|
767
|
-
*/
|
|
768
|
-
success?: boolean;
|
|
769
|
-
}
|
|
770
757
|
/**
|
|
771
758
|
*
|
|
772
759
|
* @export
|
|
@@ -1484,6 +1471,12 @@ export interface IdentityDateOfBirth {
|
|
|
1484
1471
|
* @memberof IdentityDateOfBirth
|
|
1485
1472
|
*/
|
|
1486
1473
|
date_of_birth?: string;
|
|
1474
|
+
/**
|
|
1475
|
+
*
|
|
1476
|
+
* @type {string}
|
|
1477
|
+
* @memberof IdentityDateOfBirth
|
|
1478
|
+
*/
|
|
1479
|
+
masked_date_of_birth?: string;
|
|
1487
1480
|
/**
|
|
1488
1481
|
*
|
|
1489
1482
|
* @type {string}
|
|
@@ -1852,6 +1845,12 @@ export interface Institution {
|
|
|
1852
1845
|
* @memberof Institution
|
|
1853
1846
|
*/
|
|
1854
1847
|
updated_at?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
*
|
|
1850
|
+
* @type {Array<string>}
|
|
1851
|
+
* @memberof Institution
|
|
1852
|
+
*/
|
|
1853
|
+
payment_rails?: Array<string>;
|
|
1855
1854
|
}
|
|
1856
1855
|
/**
|
|
1857
1856
|
*
|
|
@@ -3193,6 +3192,87 @@ export interface StatementLink {
|
|
|
3193
3192
|
*/
|
|
3194
3193
|
statement_id?: string;
|
|
3195
3194
|
}
|
|
3195
|
+
/**
|
|
3196
|
+
*
|
|
3197
|
+
* @export
|
|
3198
|
+
* @interface SubmitAuthChecklistRequest
|
|
3199
|
+
*/
|
|
3200
|
+
export interface SubmitAuthChecklistRequest {
|
|
3201
|
+
/**
|
|
3202
|
+
* The key_id that was used to encrypt the envelope key
|
|
3203
|
+
* @type {string}
|
|
3204
|
+
* @memberof SubmitAuthChecklistRequest
|
|
3205
|
+
*/
|
|
3206
|
+
key_id: string;
|
|
3207
|
+
/**
|
|
3208
|
+
* Finverse Institution ID
|
|
3209
|
+
* @type {string}
|
|
3210
|
+
* @memberof SubmitAuthChecklistRequest
|
|
3211
|
+
*/
|
|
3212
|
+
institution_id: string;
|
|
3213
|
+
/**
|
|
3214
|
+
* The encrypted envelope key
|
|
3215
|
+
* @type {string}
|
|
3216
|
+
* @memberof SubmitAuthChecklistRequest
|
|
3217
|
+
*/
|
|
3218
|
+
envelope_encryption_key: string;
|
|
3219
|
+
/**
|
|
3220
|
+
* The initialization vector used for enncrypting the payload
|
|
3221
|
+
* @type {string}
|
|
3222
|
+
* @memberof SubmitAuthChecklistRequest
|
|
3223
|
+
*/
|
|
3224
|
+
initialization_vector: string;
|
|
3225
|
+
/**
|
|
3226
|
+
* The authentication code is used to authenticate the origin of the message
|
|
3227
|
+
* @type {string}
|
|
3228
|
+
* @memberof SubmitAuthChecklistRequest
|
|
3229
|
+
*/
|
|
3230
|
+
message_authentication_code: string;
|
|
3231
|
+
/**
|
|
3232
|
+
* The encrypted payload that contains auth checklist items
|
|
3233
|
+
* @type {string}
|
|
3234
|
+
* @memberof SubmitAuthChecklistRequest
|
|
3235
|
+
*/
|
|
3236
|
+
ciphertext: string;
|
|
3237
|
+
}
|
|
3238
|
+
/**
|
|
3239
|
+
*
|
|
3240
|
+
* @export
|
|
3241
|
+
* @interface SubmitAuthChecklistResponse
|
|
3242
|
+
*/
|
|
3243
|
+
export interface SubmitAuthChecklistResponse {
|
|
3244
|
+
/**
|
|
3245
|
+
* Finverse Mandate ID
|
|
3246
|
+
* @type {string}
|
|
3247
|
+
* @memberof SubmitAuthChecklistResponse
|
|
3248
|
+
*/
|
|
3249
|
+
mandate_id: string;
|
|
3250
|
+
/**
|
|
3251
|
+
* Checklist of the authorization factors needed to complete Mandate authorization
|
|
3252
|
+
* @type {Array<AuthChecklistFactor>}
|
|
3253
|
+
* @memberof SubmitAuthChecklistResponse
|
|
3254
|
+
*/
|
|
3255
|
+
auth_checklist: Array<AuthChecklistFactor>;
|
|
3256
|
+
/**
|
|
3257
|
+
* Mandate status
|
|
3258
|
+
* @type {string}
|
|
3259
|
+
* @memberof SubmitAuthChecklistResponse
|
|
3260
|
+
*/
|
|
3261
|
+
mandate_status: SubmitAuthChecklistResponseMandateStatusEnum;
|
|
3262
|
+
/**
|
|
3263
|
+
* Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
3264
|
+
* @type {string}
|
|
3265
|
+
* @memberof SubmitAuthChecklistResponse
|
|
3266
|
+
*/
|
|
3267
|
+
last_update: string;
|
|
3268
|
+
}
|
|
3269
|
+
export declare const SubmitAuthChecklistResponseMandateStatusEnum: {
|
|
3270
|
+
readonly Created: "CREATED";
|
|
3271
|
+
readonly Processing: "PROCESSING";
|
|
3272
|
+
readonly Submitted: "SUBMITTED";
|
|
3273
|
+
readonly Error: "ERROR";
|
|
3274
|
+
};
|
|
3275
|
+
export declare type SubmitAuthChecklistResponseMandateStatusEnum = typeof SubmitAuthChecklistResponseMandateStatusEnum[keyof typeof SubmitAuthChecklistResponseMandateStatusEnum];
|
|
3196
3276
|
/**
|
|
3197
3277
|
*
|
|
3198
3278
|
* @export
|
|
@@ -3399,7 +3479,7 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
3399
3479
|
/**
|
|
3400
3480
|
* CREATE Mandate
|
|
3401
3481
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
3402
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3482
|
+
* @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.
|
|
3403
3483
|
* @param {*} [options] Override http request option.
|
|
3404
3484
|
* @throws {RequiredError}
|
|
3405
3485
|
*/
|
|
@@ -3407,7 +3487,7 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
3407
3487
|
/**
|
|
3408
3488
|
* Create new Payment
|
|
3409
3489
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3410
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3490
|
+
* @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.
|
|
3411
3491
|
* @param {*} [options] Override http request option.
|
|
3412
3492
|
* @throws {RequiredError}
|
|
3413
3493
|
*/
|
|
@@ -3501,6 +3581,14 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
3501
3581
|
* @throws {RequiredError}
|
|
3502
3582
|
*/
|
|
3503
3583
|
refreshToken: (refreshRequest: RefreshRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3584
|
+
/**
|
|
3585
|
+
* Submit authorization checklist items
|
|
3586
|
+
* @param {string} mandateId mandate id
|
|
3587
|
+
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
3588
|
+
* @param {*} [options] Override http request option.
|
|
3589
|
+
* @throws {RequiredError}
|
|
3590
|
+
*/
|
|
3591
|
+
submitAuthChecklist: (mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3504
3592
|
};
|
|
3505
3593
|
/**
|
|
3506
3594
|
* CustomerApi - functional programming interface
|
|
@@ -3510,7 +3598,7 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
3510
3598
|
/**
|
|
3511
3599
|
* CREATE Mandate
|
|
3512
3600
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
3513
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3601
|
+
* @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.
|
|
3514
3602
|
* @param {*} [options] Override http request option.
|
|
3515
3603
|
* @throws {RequiredError}
|
|
3516
3604
|
*/
|
|
@@ -3518,7 +3606,7 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
3518
3606
|
/**
|
|
3519
3607
|
* Create new Payment
|
|
3520
3608
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3521
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3609
|
+
* @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.
|
|
3522
3610
|
* @param {*} [options] Override http request option.
|
|
3523
3611
|
* @throws {RequiredError}
|
|
3524
3612
|
*/
|
|
@@ -3612,6 +3700,14 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
3612
3700
|
* @throws {RequiredError}
|
|
3613
3701
|
*/
|
|
3614
3702
|
refreshToken(refreshRequest: RefreshRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessTokenResponse>>;
|
|
3703
|
+
/**
|
|
3704
|
+
* Submit authorization checklist items
|
|
3705
|
+
* @param {string} mandateId mandate id
|
|
3706
|
+
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
3707
|
+
* @param {*} [options] Override http request option.
|
|
3708
|
+
* @throws {RequiredError}
|
|
3709
|
+
*/
|
|
3710
|
+
submitAuthChecklist(mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAuthChecklistResponse>>;
|
|
3615
3711
|
};
|
|
3616
3712
|
/**
|
|
3617
3713
|
* CustomerApi - factory interface
|
|
@@ -3621,7 +3717,7 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
3621
3717
|
/**
|
|
3622
3718
|
* CREATE Mandate
|
|
3623
3719
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
3624
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3720
|
+
* @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.
|
|
3625
3721
|
* @param {*} [options] Override http request option.
|
|
3626
3722
|
* @throws {RequiredError}
|
|
3627
3723
|
*/
|
|
@@ -3629,7 +3725,7 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
3629
3725
|
/**
|
|
3630
3726
|
* Create new Payment
|
|
3631
3727
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3632
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3728
|
+
* @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.
|
|
3633
3729
|
* @param {*} [options] Override http request option.
|
|
3634
3730
|
* @throws {RequiredError}
|
|
3635
3731
|
*/
|
|
@@ -3723,6 +3819,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
3723
3819
|
* @throws {RequiredError}
|
|
3724
3820
|
*/
|
|
3725
3821
|
refreshToken(refreshRequest: RefreshRequest, options?: any): AxiosPromise<AccessTokenResponse>;
|
|
3822
|
+
/**
|
|
3823
|
+
* Submit authorization checklist items
|
|
3824
|
+
* @param {string} mandateId mandate id
|
|
3825
|
+
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
3826
|
+
* @param {*} [options] Override http request option.
|
|
3827
|
+
* @throws {RequiredError}
|
|
3828
|
+
*/
|
|
3829
|
+
submitAuthChecklist(mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: any): AxiosPromise<SubmitAuthChecklistResponse>;
|
|
3726
3830
|
};
|
|
3727
3831
|
/**
|
|
3728
3832
|
* CustomerApi - interface
|
|
@@ -3733,7 +3837,7 @@ export interface CustomerApiInterface {
|
|
|
3733
3837
|
/**
|
|
3734
3838
|
* CREATE Mandate
|
|
3735
3839
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
3736
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3840
|
+
* @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.
|
|
3737
3841
|
* @param {*} [options] Override http request option.
|
|
3738
3842
|
* @throws {RequiredError}
|
|
3739
3843
|
* @memberof CustomerApiInterface
|
|
@@ -3742,7 +3846,7 @@ export interface CustomerApiInterface {
|
|
|
3742
3846
|
/**
|
|
3743
3847
|
* Create new Payment
|
|
3744
3848
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3745
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3849
|
+
* @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.
|
|
3746
3850
|
* @param {*} [options] Override http request option.
|
|
3747
3851
|
* @throws {RequiredError}
|
|
3748
3852
|
* @memberof CustomerApiInterface
|
|
@@ -3849,6 +3953,15 @@ export interface CustomerApiInterface {
|
|
|
3849
3953
|
* @memberof CustomerApiInterface
|
|
3850
3954
|
*/
|
|
3851
3955
|
refreshToken(refreshRequest: RefreshRequest, options?: AxiosRequestConfig): AxiosPromise<AccessTokenResponse>;
|
|
3956
|
+
/**
|
|
3957
|
+
* Submit authorization checklist items
|
|
3958
|
+
* @param {string} mandateId mandate id
|
|
3959
|
+
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
3960
|
+
* @param {*} [options] Override http request option.
|
|
3961
|
+
* @throws {RequiredError}
|
|
3962
|
+
* @memberof CustomerApiInterface
|
|
3963
|
+
*/
|
|
3964
|
+
submitAuthChecklist(mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitAuthChecklistResponse>;
|
|
3852
3965
|
}
|
|
3853
3966
|
/**
|
|
3854
3967
|
* CustomerApi - object-oriented interface
|
|
@@ -3860,7 +3973,7 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
3860
3973
|
/**
|
|
3861
3974
|
* CREATE Mandate
|
|
3862
3975
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
3863
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3976
|
+
* @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.
|
|
3864
3977
|
* @param {*} [options] Override http request option.
|
|
3865
3978
|
* @throws {RequiredError}
|
|
3866
3979
|
* @memberof CustomerApi
|
|
@@ -3869,7 +3982,7 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
3869
3982
|
/**
|
|
3870
3983
|
* Create new Payment
|
|
3871
3984
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3872
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
3985
|
+
* @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.
|
|
3873
3986
|
* @param {*} [options] Override http request option.
|
|
3874
3987
|
* @throws {RequiredError}
|
|
3875
3988
|
* @memberof CustomerApi
|
|
@@ -3976,6 +4089,15 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
3976
4089
|
* @memberof CustomerApi
|
|
3977
4090
|
*/
|
|
3978
4091
|
refreshToken(refreshRequest: RefreshRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccessTokenResponse>>;
|
|
4092
|
+
/**
|
|
4093
|
+
* Submit authorization checklist items
|
|
4094
|
+
* @param {string} mandateId mandate id
|
|
4095
|
+
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
4096
|
+
* @param {*} [options] Override http request option.
|
|
4097
|
+
* @throws {RequiredError}
|
|
4098
|
+
* @memberof CustomerApi
|
|
4099
|
+
*/
|
|
4100
|
+
submitAuthChecklist(mandateId: string, submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitAuthChecklistResponse>>;
|
|
3979
4101
|
}
|
|
3980
4102
|
/**
|
|
3981
4103
|
* 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.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;
|
|
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
|
|
@@ -122,6 +122,12 @@ exports.PaymentScheduleFrequencyEnum = {
|
|
|
122
122
|
Quarterly: 'QUARTERLY',
|
|
123
123
|
Yearly: 'YEARLY',
|
|
124
124
|
};
|
|
125
|
+
exports.SubmitAuthChecklistResponseMandateStatusEnum = {
|
|
126
|
+
Created: 'CREATED',
|
|
127
|
+
Processing: 'PROCESSING',
|
|
128
|
+
Submitted: 'SUBMITTED',
|
|
129
|
+
Error: 'ERROR',
|
|
130
|
+
};
|
|
125
131
|
exports.TransactionLimitsPeriodEnum = {
|
|
126
132
|
Daily: 'DAILY',
|
|
127
133
|
Weekly: 'WEEKLY',
|
|
@@ -138,7 +144,7 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
138
144
|
/**
|
|
139
145
|
* CREATE Mandate
|
|
140
146
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
141
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
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.
|
|
142
148
|
* @param {*} [options] Override http request option.
|
|
143
149
|
* @throws {RequiredError}
|
|
144
150
|
*/
|
|
@@ -174,7 +180,7 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
174
180
|
/**
|
|
175
181
|
* Create new Payment
|
|
176
182
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
177
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
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.
|
|
178
184
|
* @param {*} [options] Override http request option.
|
|
179
185
|
* @throws {RequiredError}
|
|
180
186
|
*/
|
|
@@ -598,6 +604,41 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
598
604
|
options: localVarRequestOptions,
|
|
599
605
|
};
|
|
600
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
|
+
}),
|
|
601
642
|
};
|
|
602
643
|
};
|
|
603
644
|
/**
|
|
@@ -610,7 +651,7 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
610
651
|
/**
|
|
611
652
|
* CREATE Mandate
|
|
612
653
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
613
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
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.
|
|
614
655
|
* @param {*} [options] Override http request option.
|
|
615
656
|
* @throws {RequiredError}
|
|
616
657
|
*/
|
|
@@ -623,7 +664,7 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
623
664
|
/**
|
|
624
665
|
* Create new Payment
|
|
625
666
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
626
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
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.
|
|
627
668
|
* @param {*} [options] Override http request option.
|
|
628
669
|
* @throws {RequiredError}
|
|
629
670
|
*/
|
|
@@ -782,6 +823,19 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
782
823
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
783
824
|
});
|
|
784
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
|
+
},
|
|
785
839
|
};
|
|
786
840
|
};
|
|
787
841
|
/**
|
|
@@ -794,7 +848,7 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
794
848
|
/**
|
|
795
849
|
* CREATE Mandate
|
|
796
850
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
797
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
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.
|
|
798
852
|
* @param {*} [options] Override http request option.
|
|
799
853
|
* @throws {RequiredError}
|
|
800
854
|
*/
|
|
@@ -806,7 +860,7 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
806
860
|
/**
|
|
807
861
|
* Create new Payment
|
|
808
862
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
809
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
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.
|
|
810
864
|
* @param {*} [options] Override http request option.
|
|
811
865
|
* @throws {RequiredError}
|
|
812
866
|
*/
|
|
@@ -938,6 +992,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
938
992
|
refreshToken(refreshRequest, options) {
|
|
939
993
|
return localVarFp.refreshToken(refreshRequest, options).then((request) => request(axios, basePath));
|
|
940
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
|
+
},
|
|
941
1007
|
};
|
|
942
1008
|
};
|
|
943
1009
|
/**
|
|
@@ -950,7 +1016,7 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
950
1016
|
/**
|
|
951
1017
|
* CREATE Mandate
|
|
952
1018
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
953
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
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.
|
|
954
1020
|
* @param {*} [options] Override http request option.
|
|
955
1021
|
* @throws {RequiredError}
|
|
956
1022
|
* @memberof CustomerApi
|
|
@@ -963,7 +1029,7 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
963
1029
|
/**
|
|
964
1030
|
* Create new Payment
|
|
965
1031
|
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
966
|
-
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment.
|
|
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.
|
|
967
1033
|
* @param {*} [options] Override http request option.
|
|
968
1034
|
* @throws {RequiredError}
|
|
969
1035
|
* @memberof CustomerApi
|
|
@@ -1122,6 +1188,19 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1122
1188
|
.refreshToken(refreshRequest, options)
|
|
1123
1189
|
.then((request) => request(this.axios, this.basePath));
|
|
1124
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
|
+
}
|
|
1125
1204
|
}
|
|
1126
1205
|
exports.CustomerApi = CustomerApi;
|
|
1127
1206
|
/**
|