@finverse/sdk-typescript 0.0.37 → 0.0.40
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 +219 -53
- package/dist/api.js +177 -75
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -425,6 +425,49 @@ export interface CreatePaymentInstructionResponse {
|
|
|
425
425
|
*/
|
|
426
426
|
payment_instruction_id?: string;
|
|
427
427
|
}
|
|
428
|
+
/**
|
|
429
|
+
*
|
|
430
|
+
* @export
|
|
431
|
+
* @interface CreatePaymentRequest
|
|
432
|
+
*/
|
|
433
|
+
export interface CreatePaymentRequest {
|
|
434
|
+
/**
|
|
435
|
+
* Amount to be paid, in currency’s smallest unit or “minor unit”, as defined in ISO 4217. For example, HKD 100.01 is represented as amount = 10001 (minor unit = cents). For currencies without minor units (e.g. VND, JPY), the amount is represented as is, without modification. For example, VND 15101 is represented as amount = 15101.
|
|
436
|
+
* @type {number}
|
|
437
|
+
* @memberof CreatePaymentRequest
|
|
438
|
+
*/
|
|
439
|
+
amount: number;
|
|
440
|
+
/**
|
|
441
|
+
* Indicates whether this is a mandate-based payment or one-off direct payment to an account. Possible values - MANDATE, SINGLE
|
|
442
|
+
* @type {string}
|
|
443
|
+
* @memberof CreatePaymentRequest
|
|
444
|
+
*/
|
|
445
|
+
type: CreatePaymentRequestTypeEnum;
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @type {PaymentDetails2}
|
|
449
|
+
* @memberof CreatePaymentRequest
|
|
450
|
+
*/
|
|
451
|
+
payment_details: PaymentDetails2;
|
|
452
|
+
}
|
|
453
|
+
export declare const CreatePaymentRequestTypeEnum: {
|
|
454
|
+
readonly Mandate: "MANDATE";
|
|
455
|
+
readonly Single: "SINGLE";
|
|
456
|
+
};
|
|
457
|
+
export declare type CreatePaymentRequestTypeEnum = typeof CreatePaymentRequestTypeEnum[keyof typeof CreatePaymentRequestTypeEnum];
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @export
|
|
461
|
+
* @interface CreatePaymentResponse
|
|
462
|
+
*/
|
|
463
|
+
export interface CreatePaymentResponse {
|
|
464
|
+
/**
|
|
465
|
+
* Finverse Payment ID
|
|
466
|
+
* @type {string}
|
|
467
|
+
* @memberof CreatePaymentResponse
|
|
468
|
+
*/
|
|
469
|
+
payment_id?: string;
|
|
470
|
+
}
|
|
428
471
|
/**
|
|
429
472
|
*
|
|
430
473
|
* @export
|
|
@@ -551,12 +594,6 @@ export interface CustomizationDetails {
|
|
|
551
594
|
* @memberof CustomizationDetails
|
|
552
595
|
*/
|
|
553
596
|
display_name?: string;
|
|
554
|
-
/**
|
|
555
|
-
*
|
|
556
|
-
* @type {string}
|
|
557
|
-
* @memberof CustomizationDetails
|
|
558
|
-
*/
|
|
559
|
-
customer_app_name: string;
|
|
560
597
|
}
|
|
561
598
|
/**
|
|
562
599
|
*
|
|
@@ -883,6 +920,58 @@ export interface GetPaymentInstructionsResponse {
|
|
|
883
920
|
*/
|
|
884
921
|
payment_instruction?: PaymentInstruction;
|
|
885
922
|
}
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @export
|
|
926
|
+
* @interface GetPaymentResponse
|
|
927
|
+
*/
|
|
928
|
+
export interface GetPaymentResponse {
|
|
929
|
+
/**
|
|
930
|
+
* Finverse Payment ID
|
|
931
|
+
* @type {string}
|
|
932
|
+
* @memberof GetPaymentResponse
|
|
933
|
+
*/
|
|
934
|
+
payment_id?: string;
|
|
935
|
+
/**
|
|
936
|
+
* Amount to be paid, in currency’s smallest unit or “minor unit”, as defined in ISO 4217. For example, HKD 100.01 is represented as amount = 10001 (minor unit = cents). For currencies without minor units (e.g. VND, JPY), the amount is represented as is, without modification. For example, VND 15101 is represented as amount = 15101.
|
|
937
|
+
* @type {number}
|
|
938
|
+
* @memberof GetPaymentResponse
|
|
939
|
+
*/
|
|
940
|
+
amount?: number;
|
|
941
|
+
/**
|
|
942
|
+
* Indicates whether this is a mandate-based payment or one-off direct payment to an account. Possible values - MANDATE, SINGLE
|
|
943
|
+
* @type {string}
|
|
944
|
+
* @memberof GetPaymentResponse
|
|
945
|
+
*/
|
|
946
|
+
type?: GetPaymentResponseTypeEnum;
|
|
947
|
+
/**
|
|
948
|
+
* Possible values - CREATED, AUTHORIZED, SUBMITTED, EXECUTED, FAILED, REJECTED, CANCELLED.
|
|
949
|
+
* @type {string}
|
|
950
|
+
* @memberof GetPaymentResponse
|
|
951
|
+
*/
|
|
952
|
+
status?: GetPaymentResponseStatusEnum;
|
|
953
|
+
/**
|
|
954
|
+
*
|
|
955
|
+
* @type {PaymentDetails2}
|
|
956
|
+
* @memberof GetPaymentResponse
|
|
957
|
+
*/
|
|
958
|
+
payment_details?: PaymentDetails2;
|
|
959
|
+
}
|
|
960
|
+
export declare const GetPaymentResponseTypeEnum: {
|
|
961
|
+
readonly Mandate: "MANDATE";
|
|
962
|
+
readonly Single: "SINGLE";
|
|
963
|
+
};
|
|
964
|
+
export declare type GetPaymentResponseTypeEnum = typeof GetPaymentResponseTypeEnum[keyof typeof GetPaymentResponseTypeEnum];
|
|
965
|
+
export declare const GetPaymentResponseStatusEnum: {
|
|
966
|
+
readonly Created: "CREATED";
|
|
967
|
+
readonly Authorized: "AUTHORIZED";
|
|
968
|
+
readonly Submitted: "SUBMITTED";
|
|
969
|
+
readonly Executed: "EXECUTED";
|
|
970
|
+
readonly Failed: "FAILED";
|
|
971
|
+
readonly Rejected: "REJECTED";
|
|
972
|
+
readonly Cancelled: "CANCELLED";
|
|
973
|
+
};
|
|
974
|
+
export declare type GetPaymentResponseStatusEnum = typeof GetPaymentResponseStatusEnum[keyof typeof GetPaymentResponseStatusEnum];
|
|
886
975
|
/**
|
|
887
976
|
*
|
|
888
977
|
* @export
|
|
@@ -2250,6 +2339,31 @@ export interface PaymentDetails {
|
|
|
2250
2339
|
*/
|
|
2251
2340
|
other_info?: OtherInfo;
|
|
2252
2341
|
}
|
|
2342
|
+
/**
|
|
2343
|
+
*
|
|
2344
|
+
* @export
|
|
2345
|
+
* @interface PaymentDetails2
|
|
2346
|
+
*/
|
|
2347
|
+
export interface PaymentDetails2 {
|
|
2348
|
+
/**
|
|
2349
|
+
* The transaction description provided to banks, which banks will show to their customers.
|
|
2350
|
+
* @type {string}
|
|
2351
|
+
* @memberof PaymentDetails2
|
|
2352
|
+
*/
|
|
2353
|
+
description?: string;
|
|
2354
|
+
/**
|
|
2355
|
+
* ID of the mandate this pament is referring to.
|
|
2356
|
+
* @type {string}
|
|
2357
|
+
* @memberof PaymentDetails2
|
|
2358
|
+
*/
|
|
2359
|
+
mandate_id: string;
|
|
2360
|
+
/**
|
|
2361
|
+
* Customer\'s ID for this transaction
|
|
2362
|
+
* @type {string}
|
|
2363
|
+
* @memberof PaymentDetails2
|
|
2364
|
+
*/
|
|
2365
|
+
transaction_reference_id?: string;
|
|
2366
|
+
}
|
|
2253
2367
|
/**
|
|
2254
2368
|
*
|
|
2255
2369
|
* @export
|
|
@@ -2911,6 +3025,13 @@ export declare type TransactionLimitsPeriodEnum = typeof TransactionLimitsPeriod
|
|
|
2911
3025
|
* @export
|
|
2912
3026
|
*/
|
|
2913
3027
|
export declare const CustomerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3028
|
+
/**
|
|
3029
|
+
* Create new Payment
|
|
3030
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3031
|
+
* @param {*} [options] Override http request option.
|
|
3032
|
+
* @throws {RequiredError}
|
|
3033
|
+
*/
|
|
3034
|
+
createPayment: (createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2914
3035
|
/**
|
|
2915
3036
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
2916
3037
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -2953,6 +3074,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2953
3074
|
* @throws {RequiredError}
|
|
2954
3075
|
*/
|
|
2955
3076
|
getMandates: (mandateId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3077
|
+
/**
|
|
3078
|
+
* Get Payment details by payment_id
|
|
3079
|
+
* @param {string} paymentId payment id
|
|
3080
|
+
* @param {*} [options] Override http request option.
|
|
3081
|
+
* @throws {RequiredError}
|
|
3082
|
+
*/
|
|
3083
|
+
getPayment: (paymentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2956
3084
|
/**
|
|
2957
3085
|
* Get payment instructions by payment_instruction_id
|
|
2958
3086
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -2990,6 +3118,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2990
3118
|
* @export
|
|
2991
3119
|
*/
|
|
2992
3120
|
export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
3121
|
+
/**
|
|
3122
|
+
* Create new Payment
|
|
3123
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3124
|
+
* @param {*} [options] Override http request option.
|
|
3125
|
+
* @throws {RequiredError}
|
|
3126
|
+
*/
|
|
3127
|
+
createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponse>>;
|
|
2993
3128
|
/**
|
|
2994
3129
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
2995
3130
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -3032,6 +3167,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
3032
3167
|
* @throws {RequiredError}
|
|
3033
3168
|
*/
|
|
3034
3169
|
getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandatesResponse>>;
|
|
3170
|
+
/**
|
|
3171
|
+
* Get Payment details by payment_id
|
|
3172
|
+
* @param {string} paymentId payment id
|
|
3173
|
+
* @param {*} [options] Override http request option.
|
|
3174
|
+
* @throws {RequiredError}
|
|
3175
|
+
*/
|
|
3176
|
+
getPayment(paymentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponse>>;
|
|
3035
3177
|
/**
|
|
3036
3178
|
* Get payment instructions by payment_instruction_id
|
|
3037
3179
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -3069,6 +3211,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
3069
3211
|
* @export
|
|
3070
3212
|
*/
|
|
3071
3213
|
export declare const CustomerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3214
|
+
/**
|
|
3215
|
+
* Create new Payment
|
|
3216
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3217
|
+
* @param {*} [options] Override http request option.
|
|
3218
|
+
* @throws {RequiredError}
|
|
3219
|
+
*/
|
|
3220
|
+
createPayment(createPaymentRequest: CreatePaymentRequest, options?: any): AxiosPromise<CreatePaymentResponse>;
|
|
3072
3221
|
/**
|
|
3073
3222
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
3074
3223
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -3111,6 +3260,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
3111
3260
|
* @throws {RequiredError}
|
|
3112
3261
|
*/
|
|
3113
3262
|
getMandates(mandateId: string, options?: any): AxiosPromise<GetMandatesResponse>;
|
|
3263
|
+
/**
|
|
3264
|
+
* Get Payment details by payment_id
|
|
3265
|
+
* @param {string} paymentId payment id
|
|
3266
|
+
* @param {*} [options] Override http request option.
|
|
3267
|
+
* @throws {RequiredError}
|
|
3268
|
+
*/
|
|
3269
|
+
getPayment(paymentId: string, options?: any): AxiosPromise<GetPaymentResponse>;
|
|
3114
3270
|
/**
|
|
3115
3271
|
* Get payment instructions by payment_instruction_id
|
|
3116
3272
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -3149,6 +3305,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
3149
3305
|
* @interface CustomerApi
|
|
3150
3306
|
*/
|
|
3151
3307
|
export interface CustomerApiInterface {
|
|
3308
|
+
/**
|
|
3309
|
+
* Create new Payment
|
|
3310
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3311
|
+
* @param {*} [options] Override http request option.
|
|
3312
|
+
* @throws {RequiredError}
|
|
3313
|
+
* @memberof CustomerApiInterface
|
|
3314
|
+
*/
|
|
3315
|
+
createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentResponse>;
|
|
3152
3316
|
/**
|
|
3153
3317
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
3154
3318
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -3197,6 +3361,14 @@ export interface CustomerApiInterface {
|
|
|
3197
3361
|
* @memberof CustomerApiInterface
|
|
3198
3362
|
*/
|
|
3199
3363
|
getMandates(mandateId: string, options?: AxiosRequestConfig): AxiosPromise<GetMandatesResponse>;
|
|
3364
|
+
/**
|
|
3365
|
+
* Get Payment details by payment_id
|
|
3366
|
+
* @param {string} paymentId payment id
|
|
3367
|
+
* @param {*} [options] Override http request option.
|
|
3368
|
+
* @throws {RequiredError}
|
|
3369
|
+
* @memberof CustomerApiInterface
|
|
3370
|
+
*/
|
|
3371
|
+
getPayment(paymentId: string, options?: AxiosRequestConfig): AxiosPromise<GetPaymentResponse>;
|
|
3200
3372
|
/**
|
|
3201
3373
|
* Get payment instructions by payment_instruction_id
|
|
3202
3374
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -3240,6 +3412,14 @@ export interface CustomerApiInterface {
|
|
|
3240
3412
|
* @extends {BaseAPI}
|
|
3241
3413
|
*/
|
|
3242
3414
|
export declare class CustomerApi extends BaseAPI implements CustomerApiInterface {
|
|
3415
|
+
/**
|
|
3416
|
+
* Create new Payment
|
|
3417
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
3418
|
+
* @param {*} [options] Override http request option.
|
|
3419
|
+
* @throws {RequiredError}
|
|
3420
|
+
* @memberof CustomerApi
|
|
3421
|
+
*/
|
|
3422
|
+
createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponse>>;
|
|
3243
3423
|
/**
|
|
3244
3424
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
3245
3425
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -3288,6 +3468,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
3288
3468
|
* @memberof CustomerApi
|
|
3289
3469
|
*/
|
|
3290
3470
|
getMandates(mandateId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandatesResponse>>;
|
|
3471
|
+
/**
|
|
3472
|
+
* Get Payment details by payment_id
|
|
3473
|
+
* @param {string} paymentId payment id
|
|
3474
|
+
* @param {*} [options] Override http request option.
|
|
3475
|
+
* @throws {RequiredError}
|
|
3476
|
+
* @memberof CustomerApi
|
|
3477
|
+
*/
|
|
3478
|
+
getPayment(paymentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponse>>;
|
|
3291
3479
|
/**
|
|
3292
3480
|
* Get payment instructions by payment_instruction_id
|
|
3293
3481
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -3608,16 +3796,11 @@ export declare const LoginIdentityApiAxiosParamCreator: (configuration?: Configu
|
|
|
3608
3796
|
getBalanceHistory: (accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3609
3797
|
/**
|
|
3610
3798
|
* Download composite statement
|
|
3799
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
3611
3800
|
* @param {*} [options] Override http request option.
|
|
3612
3801
|
* @throws {RequiredError}
|
|
3613
3802
|
*/
|
|
3614
|
-
getCompositeStatement: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3615
|
-
/**
|
|
3616
|
-
* Get composite statement link for download
|
|
3617
|
-
* @param {*} [options] Override http request option.
|
|
3618
|
-
* @throws {RequiredError}
|
|
3619
|
-
*/
|
|
3620
|
-
getCompositeStatementLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3803
|
+
getCompositeStatement: (redirect?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3621
3804
|
/**
|
|
3622
3805
|
* \\[BETA] Get a list of identity data for a given login identity
|
|
3623
3806
|
* @param {*} [options] Override http request option.
|
|
@@ -3639,12 +3822,13 @@ export declare const LoginIdentityApiAxiosParamCreator: (configuration?: Configu
|
|
|
3639
3822
|
/**
|
|
3640
3823
|
* Download statement
|
|
3641
3824
|
* @param {string} statementId The statement id
|
|
3825
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
3642
3826
|
* @param {*} [options] Override http request option.
|
|
3643
3827
|
* @throws {RequiredError}
|
|
3644
3828
|
*/
|
|
3645
|
-
getStatement: (statementId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3829
|
+
getStatement: (statementId: string, redirect?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3646
3830
|
/**
|
|
3647
|
-
* Get statement link for download
|
|
3831
|
+
* (Deprecated) Get statement link for download
|
|
3648
3832
|
* @param {string} statementId The statement id
|
|
3649
3833
|
* @param {*} [options] Override http request option.
|
|
3650
3834
|
* @throws {RequiredError}
|
|
@@ -3727,16 +3911,11 @@ export declare const LoginIdentityApiFp: (configuration?: Configuration) => {
|
|
|
3727
3911
|
getBalanceHistory(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBalanceHistoryResponse>>;
|
|
3728
3912
|
/**
|
|
3729
3913
|
* Download composite statement
|
|
3914
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
3730
3915
|
* @param {*} [options] Override http request option.
|
|
3731
3916
|
* @throws {RequiredError}
|
|
3732
3917
|
*/
|
|
3733
|
-
getCompositeStatement(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3734
|
-
/**
|
|
3735
|
-
* Get composite statement link for download
|
|
3736
|
-
* @param {*} [options] Override http request option.
|
|
3737
|
-
* @throws {RequiredError}
|
|
3738
|
-
*/
|
|
3739
|
-
getCompositeStatementLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompositeStatementLink>>;
|
|
3918
|
+
getCompositeStatement(redirect?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompositeStatementLink>>;
|
|
3740
3919
|
/**
|
|
3741
3920
|
* \\[BETA] Get a list of identity data for a given login identity
|
|
3742
3921
|
* @param {*} [options] Override http request option.
|
|
@@ -3758,12 +3937,13 @@ export declare const LoginIdentityApiFp: (configuration?: Configuration) => {
|
|
|
3758
3937
|
/**
|
|
3759
3938
|
* Download statement
|
|
3760
3939
|
* @param {string} statementId The statement id
|
|
3940
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
3761
3941
|
* @param {*} [options] Override http request option.
|
|
3762
3942
|
* @throws {RequiredError}
|
|
3763
3943
|
*/
|
|
3764
|
-
getStatement(statementId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3944
|
+
getStatement(statementId: string, redirect?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatementLinkResponse>>;
|
|
3765
3945
|
/**
|
|
3766
|
-
* Get statement link for download
|
|
3946
|
+
* (Deprecated) Get statement link for download
|
|
3767
3947
|
* @param {string} statementId The statement id
|
|
3768
3948
|
* @param {*} [options] Override http request option.
|
|
3769
3949
|
* @throws {RequiredError}
|
|
@@ -3846,16 +4026,11 @@ export declare const LoginIdentityApiFactory: (configuration?: Configuration, ba
|
|
|
3846
4026
|
getBalanceHistory(accountId: string, options?: any): AxiosPromise<GetBalanceHistoryResponse>;
|
|
3847
4027
|
/**
|
|
3848
4028
|
* Download composite statement
|
|
4029
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
3849
4030
|
* @param {*} [options] Override http request option.
|
|
3850
4031
|
* @throws {RequiredError}
|
|
3851
4032
|
*/
|
|
3852
|
-
getCompositeStatement(options?: any): AxiosPromise<
|
|
3853
|
-
/**
|
|
3854
|
-
* Get composite statement link for download
|
|
3855
|
-
* @param {*} [options] Override http request option.
|
|
3856
|
-
* @throws {RequiredError}
|
|
3857
|
-
*/
|
|
3858
|
-
getCompositeStatementLink(options?: any): AxiosPromise<CompositeStatementLink>;
|
|
4033
|
+
getCompositeStatement(redirect?: boolean, options?: any): AxiosPromise<CompositeStatementLink>;
|
|
3859
4034
|
/**
|
|
3860
4035
|
* \\[BETA] Get a list of identity data for a given login identity
|
|
3861
4036
|
* @param {*} [options] Override http request option.
|
|
@@ -3877,12 +4052,13 @@ export declare const LoginIdentityApiFactory: (configuration?: Configuration, ba
|
|
|
3877
4052
|
/**
|
|
3878
4053
|
* Download statement
|
|
3879
4054
|
* @param {string} statementId The statement id
|
|
4055
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
3880
4056
|
* @param {*} [options] Override http request option.
|
|
3881
4057
|
* @throws {RequiredError}
|
|
3882
4058
|
*/
|
|
3883
|
-
getStatement(statementId: string, options?: any): AxiosPromise<
|
|
4059
|
+
getStatement(statementId: string, redirect?: boolean, options?: any): AxiosPromise<GetStatementLinkResponse>;
|
|
3884
4060
|
/**
|
|
3885
|
-
* Get statement link for download
|
|
4061
|
+
* (Deprecated) Get statement link for download
|
|
3886
4062
|
* @param {string} statementId The statement id
|
|
3887
4063
|
* @param {*} [options] Override http request option.
|
|
3888
4064
|
* @throws {RequiredError}
|
|
@@ -3971,18 +4147,12 @@ export interface LoginIdentityApiInterface {
|
|
|
3971
4147
|
getBalanceHistory(accountId: string, options?: AxiosRequestConfig): AxiosPromise<GetBalanceHistoryResponse>;
|
|
3972
4148
|
/**
|
|
3973
4149
|
* Download composite statement
|
|
4150
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
3974
4151
|
* @param {*} [options] Override http request option.
|
|
3975
4152
|
* @throws {RequiredError}
|
|
3976
4153
|
* @memberof LoginIdentityApiInterface
|
|
3977
4154
|
*/
|
|
3978
|
-
getCompositeStatement(options?: AxiosRequestConfig): AxiosPromise<
|
|
3979
|
-
/**
|
|
3980
|
-
* Get composite statement link for download
|
|
3981
|
-
* @param {*} [options] Override http request option.
|
|
3982
|
-
* @throws {RequiredError}
|
|
3983
|
-
* @memberof LoginIdentityApiInterface
|
|
3984
|
-
*/
|
|
3985
|
-
getCompositeStatementLink(options?: AxiosRequestConfig): AxiosPromise<CompositeStatementLink>;
|
|
4155
|
+
getCompositeStatement(redirect?: boolean, options?: AxiosRequestConfig): AxiosPromise<CompositeStatementLink>;
|
|
3986
4156
|
/**
|
|
3987
4157
|
* \\[BETA] Get a list of identity data for a given login identity
|
|
3988
4158
|
* @param {*} [options] Override http request option.
|
|
@@ -4007,13 +4177,14 @@ export interface LoginIdentityApiInterface {
|
|
|
4007
4177
|
/**
|
|
4008
4178
|
* Download statement
|
|
4009
4179
|
* @param {string} statementId The statement id
|
|
4180
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
4010
4181
|
* @param {*} [options] Override http request option.
|
|
4011
4182
|
* @throws {RequiredError}
|
|
4012
4183
|
* @memberof LoginIdentityApiInterface
|
|
4013
4184
|
*/
|
|
4014
|
-
getStatement(statementId: string, options?: AxiosRequestConfig): AxiosPromise<
|
|
4185
|
+
getStatement(statementId: string, redirect?: boolean, options?: AxiosRequestConfig): AxiosPromise<GetStatementLinkResponse>;
|
|
4015
4186
|
/**
|
|
4016
|
-
* Get statement link for download
|
|
4187
|
+
* (Deprecated) Get statement link for download
|
|
4017
4188
|
* @param {string} statementId The statement id
|
|
4018
4189
|
* @param {*} [options] Override http request option.
|
|
4019
4190
|
* @throws {RequiredError}
|
|
@@ -4109,18 +4280,12 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
|
|
|
4109
4280
|
getBalanceHistory(accountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBalanceHistoryResponse>>;
|
|
4110
4281
|
/**
|
|
4111
4282
|
* Download composite statement
|
|
4283
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
4112
4284
|
* @param {*} [options] Override http request option.
|
|
4113
4285
|
* @throws {RequiredError}
|
|
4114
4286
|
* @memberof LoginIdentityApi
|
|
4115
4287
|
*/
|
|
4116
|
-
getCompositeStatement(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4117
|
-
/**
|
|
4118
|
-
* Get composite statement link for download
|
|
4119
|
-
* @param {*} [options] Override http request option.
|
|
4120
|
-
* @throws {RequiredError}
|
|
4121
|
-
* @memberof LoginIdentityApi
|
|
4122
|
-
*/
|
|
4123
|
-
getCompositeStatementLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompositeStatementLink>>;
|
|
4288
|
+
getCompositeStatement(redirect?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompositeStatementLink>>;
|
|
4124
4289
|
/**
|
|
4125
4290
|
* \\[BETA] Get a list of identity data for a given login identity
|
|
4126
4291
|
* @param {*} [options] Override http request option.
|
|
@@ -4145,13 +4310,14 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
|
|
|
4145
4310
|
/**
|
|
4146
4311
|
* Download statement
|
|
4147
4312
|
* @param {string} statementId The statement id
|
|
4313
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
4148
4314
|
* @param {*} [options] Override http request option.
|
|
4149
4315
|
* @throws {RequiredError}
|
|
4150
4316
|
* @memberof LoginIdentityApi
|
|
4151
4317
|
*/
|
|
4152
|
-
getStatement(statementId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4318
|
+
getStatement(statementId: string, redirect?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetStatementLinkResponse>>;
|
|
4153
4319
|
/**
|
|
4154
|
-
* Get statement link for download
|
|
4320
|
+
* (Deprecated) Get statement link for download
|
|
4155
4321
|
* @param {string} statementId The statement id
|
|
4156
4322
|
* @param {*} [options] Override http request option.
|
|
4157
4323
|
* @throws {RequiredError}
|
package/dist/api.js
CHANGED
|
@@ -22,13 +22,17 @@ 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.GetMandatesResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = void 0;
|
|
25
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandatesResponseMandateStatusEnum = 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
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.CreatePaymentRequestTypeEnum = {
|
|
33
|
+
Mandate: 'MANDATE',
|
|
34
|
+
Single: 'SINGLE',
|
|
35
|
+
};
|
|
32
36
|
exports.CustomerPaymentInstructionTypeEnum = {
|
|
33
37
|
DebitAuthorization: 'DEBIT_AUTHORIZATION',
|
|
34
38
|
};
|
|
@@ -38,6 +42,19 @@ exports.GetMandatesResponseMandateStatusEnum = {
|
|
|
38
42
|
Submitted: 'SUBMITTED',
|
|
39
43
|
Error: 'ERROR',
|
|
40
44
|
};
|
|
45
|
+
exports.GetPaymentResponseTypeEnum = {
|
|
46
|
+
Mandate: 'MANDATE',
|
|
47
|
+
Single: 'SINGLE',
|
|
48
|
+
};
|
|
49
|
+
exports.GetPaymentResponseStatusEnum = {
|
|
50
|
+
Created: 'CREATED',
|
|
51
|
+
Authorized: 'AUTHORIZED',
|
|
52
|
+
Submitted: 'SUBMITTED',
|
|
53
|
+
Executed: 'EXECUTED',
|
|
54
|
+
Failed: 'FAILED',
|
|
55
|
+
Rejected: 'REJECTED',
|
|
56
|
+
Cancelled: 'CANCELLED',
|
|
57
|
+
};
|
|
41
58
|
exports.LinkTokenRequestUiModeEnum = {
|
|
42
59
|
Iframe: 'iframe',
|
|
43
60
|
Redirect: 'redirect',
|
|
@@ -72,6 +89,38 @@ exports.TransactionLimitsPeriodEnum = {
|
|
|
72
89
|
*/
|
|
73
90
|
exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
74
91
|
return {
|
|
92
|
+
/**
|
|
93
|
+
* Create new Payment
|
|
94
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
createPayment: (createPaymentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
// verify required parameter 'createPaymentRequest' is not null or undefined
|
|
100
|
+
common_1.assertParamExists('createPayment', 'createPaymentRequest', createPaymentRequest);
|
|
101
|
+
const localVarPath = `/payments`;
|
|
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(createPaymentRequest, localVarRequestOptions, configuration);
|
|
119
|
+
return {
|
|
120
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
121
|
+
options: localVarRequestOptions,
|
|
122
|
+
};
|
|
123
|
+
}),
|
|
75
124
|
/**
|
|
76
125
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
77
126
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -256,6 +305,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
256
305
|
options: localVarRequestOptions,
|
|
257
306
|
};
|
|
258
307
|
}),
|
|
308
|
+
/**
|
|
309
|
+
* Get Payment details by payment_id
|
|
310
|
+
* @param {string} paymentId payment id
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
getPayment: (paymentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
315
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
316
|
+
common_1.assertParamExists('getPayment', 'paymentId', paymentId);
|
|
317
|
+
const localVarPath = `/payments/{paymentId}`.replace(`{${'paymentId'}}`, encodeURIComponent(String(paymentId)));
|
|
318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
319
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
320
|
+
let baseOptions;
|
|
321
|
+
if (configuration) {
|
|
322
|
+
baseOptions = configuration.baseOptions;
|
|
323
|
+
}
|
|
324
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
325
|
+
const localVarHeaderParameter = {};
|
|
326
|
+
const localVarQueryParameter = {};
|
|
327
|
+
// authentication Oauth2 required
|
|
328
|
+
// oauth required
|
|
329
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
330
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
333
|
+
return {
|
|
334
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
335
|
+
options: localVarRequestOptions,
|
|
336
|
+
};
|
|
337
|
+
}),
|
|
259
338
|
/**
|
|
260
339
|
* Get payment instructions by payment_instruction_id
|
|
261
340
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -402,6 +481,18 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
402
481
|
exports.CustomerApiFp = function (configuration) {
|
|
403
482
|
const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
|
|
404
483
|
return {
|
|
484
|
+
/**
|
|
485
|
+
* Create new Payment
|
|
486
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
createPayment(createPaymentRequest, options) {
|
|
491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayment(createPaymentRequest, options);
|
|
493
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
494
|
+
});
|
|
495
|
+
},
|
|
405
496
|
/**
|
|
406
497
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
407
498
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -474,6 +565,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
474
565
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
475
566
|
});
|
|
476
567
|
},
|
|
568
|
+
/**
|
|
569
|
+
* Get Payment details by payment_id
|
|
570
|
+
* @param {string} paymentId payment id
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
getPayment(paymentId, options) {
|
|
575
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
576
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayment(paymentId, options);
|
|
577
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
578
|
+
});
|
|
579
|
+
},
|
|
477
580
|
/**
|
|
478
581
|
* Get payment instructions by payment_instruction_id
|
|
479
582
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -534,6 +637,15 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
534
637
|
exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
535
638
|
const localVarFp = exports.CustomerApiFp(configuration);
|
|
536
639
|
return {
|
|
640
|
+
/**
|
|
641
|
+
* Create new Payment
|
|
642
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
createPayment(createPaymentRequest, options) {
|
|
647
|
+
return localVarFp.createPayment(createPaymentRequest, options).then((request) => request(axios, basePath));
|
|
648
|
+
},
|
|
537
649
|
/**
|
|
538
650
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
539
651
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -590,6 +702,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
590
702
|
getMandates(mandateId, options) {
|
|
591
703
|
return localVarFp.getMandates(mandateId, options).then((request) => request(axios, basePath));
|
|
592
704
|
},
|
|
705
|
+
/**
|
|
706
|
+
* Get Payment details by payment_id
|
|
707
|
+
* @param {string} paymentId payment id
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
getPayment(paymentId, options) {
|
|
712
|
+
return localVarFp.getPayment(paymentId, options).then((request) => request(axios, basePath));
|
|
713
|
+
},
|
|
593
714
|
/**
|
|
594
715
|
* Get payment instructions by payment_instruction_id
|
|
595
716
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -642,6 +763,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
642
763
|
* @extends {BaseAPI}
|
|
643
764
|
*/
|
|
644
765
|
class CustomerApi extends base_1.BaseAPI {
|
|
766
|
+
/**
|
|
767
|
+
* Create new Payment
|
|
768
|
+
* @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
* @memberof CustomerApi
|
|
772
|
+
*/
|
|
773
|
+
createPayment(createPaymentRequest, options) {
|
|
774
|
+
return exports.CustomerApiFp(this.configuration)
|
|
775
|
+
.createPayment(createPaymentRequest, options)
|
|
776
|
+
.then((request) => request(this.axios, this.basePath));
|
|
777
|
+
}
|
|
645
778
|
/**
|
|
646
779
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
647
780
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -714,6 +847,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
714
847
|
.getMandates(mandateId, options)
|
|
715
848
|
.then((request) => request(this.axios, this.basePath));
|
|
716
849
|
}
|
|
850
|
+
/**
|
|
851
|
+
* Get Payment details by payment_id
|
|
852
|
+
* @param {string} paymentId payment id
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
* @memberof CustomerApi
|
|
856
|
+
*/
|
|
857
|
+
getPayment(paymentId, options) {
|
|
858
|
+
return exports.CustomerApiFp(this.configuration)
|
|
859
|
+
.getPayment(paymentId, options)
|
|
860
|
+
.then((request) => request(this.axios, this.basePath));
|
|
861
|
+
}
|
|
717
862
|
/**
|
|
718
863
|
* Get payment instructions by payment_instruction_id
|
|
719
864
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -1331,10 +1476,11 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
|
|
|
1331
1476
|
}),
|
|
1332
1477
|
/**
|
|
1333
1478
|
* Download composite statement
|
|
1479
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
1334
1480
|
* @param {*} [options] Override http request option.
|
|
1335
1481
|
* @throws {RequiredError}
|
|
1336
1482
|
*/
|
|
1337
|
-
getCompositeStatement: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1483
|
+
getCompositeStatement: (redirect, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1338
1484
|
const localVarPath = `/composite_statement`;
|
|
1339
1485
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1340
1486
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1348,33 +1494,9 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
|
|
|
1348
1494
|
// authentication Oauth2 required
|
|
1349
1495
|
// oauth required
|
|
1350
1496
|
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1354
|
-
return {
|
|
1355
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
1356
|
-
options: localVarRequestOptions,
|
|
1357
|
-
};
|
|
1358
|
-
}),
|
|
1359
|
-
/**
|
|
1360
|
-
* Get composite statement link for download
|
|
1361
|
-
* @param {*} [options] Override http request option.
|
|
1362
|
-
* @throws {RequiredError}
|
|
1363
|
-
*/
|
|
1364
|
-
getCompositeStatementLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1365
|
-
const localVarPath = `/composite_statement_link`;
|
|
1366
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1367
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1368
|
-
let baseOptions;
|
|
1369
|
-
if (configuration) {
|
|
1370
|
-
baseOptions = configuration.baseOptions;
|
|
1497
|
+
if (redirect !== undefined) {
|
|
1498
|
+
localVarQueryParameter['redirect'] = redirect;
|
|
1371
1499
|
}
|
|
1372
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1373
|
-
const localVarHeaderParameter = {};
|
|
1374
|
-
const localVarQueryParameter = {};
|
|
1375
|
-
// authentication Oauth2 required
|
|
1376
|
-
// oauth required
|
|
1377
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1378
1500
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1379
1501
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1380
1502
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1467,10 +1589,11 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
|
|
|
1467
1589
|
/**
|
|
1468
1590
|
* Download statement
|
|
1469
1591
|
* @param {string} statementId The statement id
|
|
1592
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
1470
1593
|
* @param {*} [options] Override http request option.
|
|
1471
1594
|
* @throws {RequiredError}
|
|
1472
1595
|
*/
|
|
1473
|
-
getStatement: (statementId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1596
|
+
getStatement: (statementId, redirect, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1474
1597
|
// verify required parameter 'statementId' is not null or undefined
|
|
1475
1598
|
common_1.assertParamExists('getStatement', 'statementId', statementId);
|
|
1476
1599
|
const localVarPath = `/statements/{statementId}`.replace(`{${'statementId'}}`, encodeURIComponent(String(statementId)));
|
|
@@ -1486,6 +1609,9 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
|
|
|
1486
1609
|
// authentication Oauth2 required
|
|
1487
1610
|
// oauth required
|
|
1488
1611
|
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1612
|
+
if (redirect !== undefined) {
|
|
1613
|
+
localVarQueryParameter['redirect'] = redirect;
|
|
1614
|
+
}
|
|
1489
1615
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1490
1616
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1491
1617
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1495,7 +1621,7 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
|
|
|
1495
1621
|
};
|
|
1496
1622
|
}),
|
|
1497
1623
|
/**
|
|
1498
|
-
* Get statement link for download
|
|
1624
|
+
* (Deprecated) Get statement link for download
|
|
1499
1625
|
* @param {string} statementId The statement id
|
|
1500
1626
|
* @param {*} [options] Override http request option.
|
|
1501
1627
|
* @throws {RequiredError}
|
|
@@ -1748,23 +1874,13 @@ exports.LoginIdentityApiFp = function (configuration) {
|
|
|
1748
1874
|
},
|
|
1749
1875
|
/**
|
|
1750
1876
|
* Download composite statement
|
|
1877
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
1751
1878
|
* @param {*} [options] Override http request option.
|
|
1752
1879
|
* @throws {RequiredError}
|
|
1753
1880
|
*/
|
|
1754
|
-
getCompositeStatement(options) {
|
|
1881
|
+
getCompositeStatement(redirect, options) {
|
|
1755
1882
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1756
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompositeStatement(options);
|
|
1757
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1758
|
-
});
|
|
1759
|
-
},
|
|
1760
|
-
/**
|
|
1761
|
-
* Get composite statement link for download
|
|
1762
|
-
* @param {*} [options] Override http request option.
|
|
1763
|
-
* @throws {RequiredError}
|
|
1764
|
-
*/
|
|
1765
|
-
getCompositeStatementLink(options) {
|
|
1766
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1767
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompositeStatementLink(options);
|
|
1883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompositeStatement(redirect, options);
|
|
1768
1884
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1769
1885
|
});
|
|
1770
1886
|
},
|
|
@@ -1804,17 +1920,18 @@ exports.LoginIdentityApiFp = function (configuration) {
|
|
|
1804
1920
|
/**
|
|
1805
1921
|
* Download statement
|
|
1806
1922
|
* @param {string} statementId The statement id
|
|
1923
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
1807
1924
|
* @param {*} [options] Override http request option.
|
|
1808
1925
|
* @throws {RequiredError}
|
|
1809
1926
|
*/
|
|
1810
|
-
getStatement(statementId, options) {
|
|
1927
|
+
getStatement(statementId, redirect, options) {
|
|
1811
1928
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1812
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatement(statementId, options);
|
|
1929
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatement(statementId, redirect, options);
|
|
1813
1930
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1814
1931
|
});
|
|
1815
1932
|
},
|
|
1816
1933
|
/**
|
|
1817
|
-
* Get statement link for download
|
|
1934
|
+
* (Deprecated) Get statement link for download
|
|
1818
1935
|
* @param {string} statementId The statement id
|
|
1819
1936
|
* @param {*} [options] Override http request option.
|
|
1820
1937
|
* @throws {RequiredError}
|
|
@@ -1940,19 +2057,12 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
|
|
|
1940
2057
|
},
|
|
1941
2058
|
/**
|
|
1942
2059
|
* Download composite statement
|
|
2060
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
1943
2061
|
* @param {*} [options] Override http request option.
|
|
1944
2062
|
* @throws {RequiredError}
|
|
1945
2063
|
*/
|
|
1946
|
-
getCompositeStatement(options) {
|
|
1947
|
-
return localVarFp.getCompositeStatement(options).then((request) => request(axios, basePath));
|
|
1948
|
-
},
|
|
1949
|
-
/**
|
|
1950
|
-
* Get composite statement link for download
|
|
1951
|
-
* @param {*} [options] Override http request option.
|
|
1952
|
-
* @throws {RequiredError}
|
|
1953
|
-
*/
|
|
1954
|
-
getCompositeStatementLink(options) {
|
|
1955
|
-
return localVarFp.getCompositeStatementLink(options).then((request) => request(axios, basePath));
|
|
2064
|
+
getCompositeStatement(redirect, options) {
|
|
2065
|
+
return localVarFp.getCompositeStatement(redirect, options).then((request) => request(axios, basePath));
|
|
1956
2066
|
},
|
|
1957
2067
|
/**
|
|
1958
2068
|
* \\[BETA] Get a list of identity data for a given login identity
|
|
@@ -1981,14 +2091,15 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
|
|
|
1981
2091
|
/**
|
|
1982
2092
|
* Download statement
|
|
1983
2093
|
* @param {string} statementId The statement id
|
|
2094
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
1984
2095
|
* @param {*} [options] Override http request option.
|
|
1985
2096
|
* @throws {RequiredError}
|
|
1986
2097
|
*/
|
|
1987
|
-
getStatement(statementId, options) {
|
|
1988
|
-
return localVarFp.getStatement(statementId, options).then((request) => request(axios, basePath));
|
|
2098
|
+
getStatement(statementId, redirect, options) {
|
|
2099
|
+
return localVarFp.getStatement(statementId, redirect, options).then((request) => request(axios, basePath));
|
|
1989
2100
|
},
|
|
1990
2101
|
/**
|
|
1991
|
-
* Get statement link for download
|
|
2102
|
+
* (Deprecated) Get statement link for download
|
|
1992
2103
|
* @param {string} statementId The statement id
|
|
1993
2104
|
* @param {*} [options] Override http request option.
|
|
1994
2105
|
* @throws {RequiredError}
|
|
@@ -2115,24 +2226,14 @@ class LoginIdentityApi extends base_1.BaseAPI {
|
|
|
2115
2226
|
}
|
|
2116
2227
|
/**
|
|
2117
2228
|
* Download composite statement
|
|
2229
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
2118
2230
|
* @param {*} [options] Override http request option.
|
|
2119
2231
|
* @throws {RequiredError}
|
|
2120
2232
|
* @memberof LoginIdentityApi
|
|
2121
2233
|
*/
|
|
2122
|
-
getCompositeStatement(options) {
|
|
2123
|
-
return exports.LoginIdentityApiFp(this.configuration)
|
|
2124
|
-
.getCompositeStatement(options)
|
|
2125
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2126
|
-
}
|
|
2127
|
-
/**
|
|
2128
|
-
* Get composite statement link for download
|
|
2129
|
-
* @param {*} [options] Override http request option.
|
|
2130
|
-
* @throws {RequiredError}
|
|
2131
|
-
* @memberof LoginIdentityApi
|
|
2132
|
-
*/
|
|
2133
|
-
getCompositeStatementLink(options) {
|
|
2234
|
+
getCompositeStatement(redirect, options) {
|
|
2134
2235
|
return exports.LoginIdentityApiFp(this.configuration)
|
|
2135
|
-
.
|
|
2236
|
+
.getCompositeStatement(redirect, options)
|
|
2136
2237
|
.then((request) => request(this.axios, this.basePath));
|
|
2137
2238
|
}
|
|
2138
2239
|
/**
|
|
@@ -2171,17 +2272,18 @@ class LoginIdentityApi extends base_1.BaseAPI {
|
|
|
2171
2272
|
/**
|
|
2172
2273
|
* Download statement
|
|
2173
2274
|
* @param {string} statementId The statement id
|
|
2275
|
+
* @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
|
|
2174
2276
|
* @param {*} [options] Override http request option.
|
|
2175
2277
|
* @throws {RequiredError}
|
|
2176
2278
|
* @memberof LoginIdentityApi
|
|
2177
2279
|
*/
|
|
2178
|
-
getStatement(statementId, options) {
|
|
2280
|
+
getStatement(statementId, redirect, options) {
|
|
2179
2281
|
return exports.LoginIdentityApiFp(this.configuration)
|
|
2180
|
-
.getStatement(statementId, options)
|
|
2282
|
+
.getStatement(statementId, redirect, options)
|
|
2181
2283
|
.then((request) => request(this.axios, this.basePath));
|
|
2182
2284
|
}
|
|
2183
2285
|
/**
|
|
2184
|
-
* Get statement link for download
|
|
2286
|
+
* (Deprecated) Get statement link for download
|
|
2185
2287
|
* @param {string} statementId The statement id
|
|
2186
2288
|
* @param {*} [options] Override http request option.
|
|
2187
2289
|
* @throws {RequiredError}
|