@finverse/sdk-typescript 0.0.36 → 0.0.39
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 +534 -6
- package/dist/api.js +294 -1
- 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
|
*
|
|
@@ -789,6 +826,87 @@ export interface GetLoginIdentityHistoryResponse {
|
|
|
789
826
|
*/
|
|
790
827
|
status_history?: Array<LoginIdentityStatusDetails>;
|
|
791
828
|
}
|
|
829
|
+
/**
|
|
830
|
+
*
|
|
831
|
+
* @export
|
|
832
|
+
* @interface GetMandateSender
|
|
833
|
+
*/
|
|
834
|
+
export interface GetMandateSender {
|
|
835
|
+
/**
|
|
836
|
+
*
|
|
837
|
+
* @type {string}
|
|
838
|
+
* @memberof GetMandateSender
|
|
839
|
+
*/
|
|
840
|
+
name?: string;
|
|
841
|
+
/**
|
|
842
|
+
* Customer App\'s user ID, representing the end-user making the payment.
|
|
843
|
+
* @type {string}
|
|
844
|
+
* @memberof GetMandateSender
|
|
845
|
+
*/
|
|
846
|
+
user_id: string;
|
|
847
|
+
/**
|
|
848
|
+
* Customer App\'s reference ID, representing the sender\'s account or billing reference number.
|
|
849
|
+
* @type {string}
|
|
850
|
+
* @memberof GetMandateSender
|
|
851
|
+
*/
|
|
852
|
+
sender_reference_id?: string;
|
|
853
|
+
/**
|
|
854
|
+
*
|
|
855
|
+
* @type {PaymentAccount}
|
|
856
|
+
* @memberof GetMandateSender
|
|
857
|
+
*/
|
|
858
|
+
sender_account: PaymentAccount;
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* @export
|
|
863
|
+
* @interface GetMandatesResponse
|
|
864
|
+
*/
|
|
865
|
+
export interface GetMandatesResponse {
|
|
866
|
+
/**
|
|
867
|
+
* Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
868
|
+
* @type {string}
|
|
869
|
+
* @memberof GetMandatesResponse
|
|
870
|
+
*/
|
|
871
|
+
last_update: string;
|
|
872
|
+
/**
|
|
873
|
+
* Finverse Mandate ID (ULID)
|
|
874
|
+
* @type {string}
|
|
875
|
+
* @memberof GetMandatesResponse
|
|
876
|
+
*/
|
|
877
|
+
mandate_id: string;
|
|
878
|
+
/**
|
|
879
|
+
* Mandate status
|
|
880
|
+
* @type {string}
|
|
881
|
+
* @memberof GetMandatesResponse
|
|
882
|
+
*/
|
|
883
|
+
mandate_status: GetMandatesResponseMandateStatusEnum;
|
|
884
|
+
/**
|
|
885
|
+
*
|
|
886
|
+
* @type {MandateRecipient}
|
|
887
|
+
* @memberof GetMandatesResponse
|
|
888
|
+
*/
|
|
889
|
+
recipient: MandateRecipient;
|
|
890
|
+
/**
|
|
891
|
+
*
|
|
892
|
+
* @type {GetMandateSender}
|
|
893
|
+
* @memberof GetMandatesResponse
|
|
894
|
+
*/
|
|
895
|
+
sender: GetMandateSender;
|
|
896
|
+
/**
|
|
897
|
+
*
|
|
898
|
+
* @type {MandateDetails}
|
|
899
|
+
* @memberof GetMandatesResponse
|
|
900
|
+
*/
|
|
901
|
+
mandate_details: MandateDetails;
|
|
902
|
+
}
|
|
903
|
+
export declare const GetMandatesResponseMandateStatusEnum: {
|
|
904
|
+
readonly Created: "CREATED";
|
|
905
|
+
readonly Used: "USED";
|
|
906
|
+
readonly Submitted: "SUBMITTED";
|
|
907
|
+
readonly Error: "ERROR";
|
|
908
|
+
};
|
|
909
|
+
export declare type GetMandatesResponseMandateStatusEnum = typeof GetMandatesResponseMandateStatusEnum[keyof typeof GetMandatesResponseMandateStatusEnum];
|
|
792
910
|
/**
|
|
793
911
|
*
|
|
794
912
|
* @export
|
|
@@ -802,6 +920,58 @@ export interface GetPaymentInstructionsResponse {
|
|
|
802
920
|
*/
|
|
803
921
|
payment_instruction?: PaymentInstruction;
|
|
804
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];
|
|
805
975
|
/**
|
|
806
976
|
*
|
|
807
977
|
* @export
|
|
@@ -2013,6 +2183,62 @@ export interface LoginMethod {
|
|
|
2013
2183
|
*/
|
|
2014
2184
|
login_fields?: Array<LoginField>;
|
|
2015
2185
|
}
|
|
2186
|
+
/**
|
|
2187
|
+
*
|
|
2188
|
+
* @export
|
|
2189
|
+
* @interface MandateDetails
|
|
2190
|
+
*/
|
|
2191
|
+
export interface MandateDetails {
|
|
2192
|
+
/**
|
|
2193
|
+
* ISO currency code
|
|
2194
|
+
* @type {string}
|
|
2195
|
+
* @memberof MandateDetails
|
|
2196
|
+
*/
|
|
2197
|
+
currency: string;
|
|
2198
|
+
/**
|
|
2199
|
+
* YYYY-MM-DD, must be later than or the same as the date of creation. If unspecified, default to the date of creation.
|
|
2200
|
+
* @type {string}
|
|
2201
|
+
* @memberof MandateDetails
|
|
2202
|
+
*/
|
|
2203
|
+
start_date?: string;
|
|
2204
|
+
/**
|
|
2205
|
+
* YYYY-MM-DD, must be later than the date of creation.
|
|
2206
|
+
* @type {string}
|
|
2207
|
+
* @memberof MandateDetails
|
|
2208
|
+
*/
|
|
2209
|
+
end_date?: string;
|
|
2210
|
+
/**
|
|
2211
|
+
*
|
|
2212
|
+
* @type {PaymentSchedule}
|
|
2213
|
+
* @memberof MandateDetails
|
|
2214
|
+
*/
|
|
2215
|
+
payment_schedule?: PaymentSchedule;
|
|
2216
|
+
/**
|
|
2217
|
+
*
|
|
2218
|
+
* @type {TransactionLimits}
|
|
2219
|
+
* @memberof MandateDetails
|
|
2220
|
+
*/
|
|
2221
|
+
transaction_limits?: TransactionLimits;
|
|
2222
|
+
/**
|
|
2223
|
+
* End-user facing description of the mandate (used in notifications, and in payments if no description is provided)
|
|
2224
|
+
* @type {string}
|
|
2225
|
+
* @memberof MandateDetails
|
|
2226
|
+
*/
|
|
2227
|
+
description?: string;
|
|
2228
|
+
}
|
|
2229
|
+
/**
|
|
2230
|
+
*
|
|
2231
|
+
* @export
|
|
2232
|
+
* @interface MandateRecipient
|
|
2233
|
+
*/
|
|
2234
|
+
export interface MandateRecipient {
|
|
2235
|
+
/**
|
|
2236
|
+
* Merchant account ID assigned by Finverse
|
|
2237
|
+
* @type {string}
|
|
2238
|
+
* @memberof MandateRecipient
|
|
2239
|
+
*/
|
|
2240
|
+
recipient_account_id: string;
|
|
2241
|
+
}
|
|
2016
2242
|
/**
|
|
2017
2243
|
*
|
|
2018
2244
|
* @export
|
|
@@ -2113,6 +2339,31 @@ export interface PaymentDetails {
|
|
|
2113
2339
|
*/
|
|
2114
2340
|
other_info?: OtherInfo;
|
|
2115
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
|
+
}
|
|
2116
2367
|
/**
|
|
2117
2368
|
*
|
|
2118
2369
|
* @export
|
|
@@ -2238,6 +2489,96 @@ export declare const PaymentInstructionTypeEnum: {
|
|
|
2238
2489
|
readonly DebitAuthorization: "DEBIT_AUTHORIZATION";
|
|
2239
2490
|
};
|
|
2240
2491
|
export declare type PaymentInstructionTypeEnum = typeof PaymentInstructionTypeEnum[keyof typeof PaymentInstructionTypeEnum];
|
|
2492
|
+
/**
|
|
2493
|
+
*
|
|
2494
|
+
* @export
|
|
2495
|
+
* @interface PaymentSchedule
|
|
2496
|
+
*/
|
|
2497
|
+
export interface PaymentSchedule {
|
|
2498
|
+
/**
|
|
2499
|
+
* 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.
|
|
2500
|
+
* @type {number}
|
|
2501
|
+
* @memberof PaymentSchedule
|
|
2502
|
+
*/
|
|
2503
|
+
amount: number;
|
|
2504
|
+
/**
|
|
2505
|
+
* Frequency of the payment. Possible values (DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY)
|
|
2506
|
+
* @type {string}
|
|
2507
|
+
* @memberof PaymentSchedule
|
|
2508
|
+
*/
|
|
2509
|
+
frequency: PaymentScheduleFrequencyEnum;
|
|
2510
|
+
}
|
|
2511
|
+
export declare const PaymentScheduleFrequencyEnum: {
|
|
2512
|
+
readonly Daily: "DAILY";
|
|
2513
|
+
readonly Weekly: "WEEKLY";
|
|
2514
|
+
readonly Monthly: "MONTHLY";
|
|
2515
|
+
readonly Quarterly: "QUARTERLY";
|
|
2516
|
+
readonly Yearly: "YEARLY";
|
|
2517
|
+
};
|
|
2518
|
+
export declare type PaymentScheduleFrequencyEnum = typeof PaymentScheduleFrequencyEnum[keyof typeof PaymentScheduleFrequencyEnum];
|
|
2519
|
+
/**
|
|
2520
|
+
*
|
|
2521
|
+
* @export
|
|
2522
|
+
* @interface PostMandateSender
|
|
2523
|
+
*/
|
|
2524
|
+
export interface PostMandateSender {
|
|
2525
|
+
/**
|
|
2526
|
+
*
|
|
2527
|
+
* @type {string}
|
|
2528
|
+
* @memberof PostMandateSender
|
|
2529
|
+
*/
|
|
2530
|
+
name?: string;
|
|
2531
|
+
/**
|
|
2532
|
+
* Customer App\'s user ID, representing the end-user making the payment.
|
|
2533
|
+
* @type {string}
|
|
2534
|
+
* @memberof PostMandateSender
|
|
2535
|
+
*/
|
|
2536
|
+
user_id: string;
|
|
2537
|
+
/**
|
|
2538
|
+
* Customer App\'s reference ID, representing the sender\'s account or billing reference number.
|
|
2539
|
+
* @type {string}
|
|
2540
|
+
* @memberof PostMandateSender
|
|
2541
|
+
*/
|
|
2542
|
+
sender_reference_id?: string;
|
|
2543
|
+
}
|
|
2544
|
+
/**
|
|
2545
|
+
*
|
|
2546
|
+
* @export
|
|
2547
|
+
* @interface PostMandatesRequest
|
|
2548
|
+
*/
|
|
2549
|
+
export interface PostMandatesRequest {
|
|
2550
|
+
/**
|
|
2551
|
+
*
|
|
2552
|
+
* @type {MandateRecipient}
|
|
2553
|
+
* @memberof PostMandatesRequest
|
|
2554
|
+
*/
|
|
2555
|
+
recipient: MandateRecipient;
|
|
2556
|
+
/**
|
|
2557
|
+
*
|
|
2558
|
+
* @type {PostMandateSender}
|
|
2559
|
+
* @memberof PostMandatesRequest
|
|
2560
|
+
*/
|
|
2561
|
+
sender: PostMandateSender;
|
|
2562
|
+
/**
|
|
2563
|
+
*
|
|
2564
|
+
* @type {MandateDetails}
|
|
2565
|
+
* @memberof PostMandatesRequest
|
|
2566
|
+
*/
|
|
2567
|
+
mandate_details: MandateDetails;
|
|
2568
|
+
}
|
|
2569
|
+
/**
|
|
2570
|
+
*
|
|
2571
|
+
* @export
|
|
2572
|
+
* @interface PostMandatesResponse
|
|
2573
|
+
*/
|
|
2574
|
+
export interface PostMandatesResponse {
|
|
2575
|
+
/**
|
|
2576
|
+
* Finverse Mandate ID
|
|
2577
|
+
* @type {string}
|
|
2578
|
+
* @memberof PostMandatesResponse
|
|
2579
|
+
*/
|
|
2580
|
+
mandate_id?: string;
|
|
2581
|
+
}
|
|
2241
2582
|
/**
|
|
2242
2583
|
*
|
|
2243
2584
|
* @export
|
|
@@ -2640,11 +2981,57 @@ export interface Transaction {
|
|
|
2640
2981
|
*/
|
|
2641
2982
|
updated_at?: string;
|
|
2642
2983
|
}
|
|
2984
|
+
/**
|
|
2985
|
+
*
|
|
2986
|
+
* @export
|
|
2987
|
+
* @interface TransactionLimits
|
|
2988
|
+
*/
|
|
2989
|
+
export interface TransactionLimits {
|
|
2990
|
+
/**
|
|
2991
|
+
* Maximum amount of money that can be paid during the reference period (across any number of transactions). Expressed in currency’s smallest unit or “minor unit”, as defined in ISO 4217.
|
|
2992
|
+
* @type {number}
|
|
2993
|
+
* @memberof TransactionLimits
|
|
2994
|
+
*/
|
|
2995
|
+
max_period_amount?: number;
|
|
2996
|
+
/**
|
|
2997
|
+
* Maximum number of transactions (of any amount) that can be executed during the reference period.
|
|
2998
|
+
* @type {number}
|
|
2999
|
+
* @memberof TransactionLimits
|
|
3000
|
+
*/
|
|
3001
|
+
max_period_count?: number;
|
|
3002
|
+
/**
|
|
3003
|
+
* The maximum amount of money that can be transferred in a single transaction under this mandate. Expressed in currency’s smallest unit or “minor unit”, as defined in ISO 4217.
|
|
3004
|
+
* @type {number}
|
|
3005
|
+
* @memberof TransactionLimits
|
|
3006
|
+
*/
|
|
3007
|
+
max_transaction_amount?: number;
|
|
3008
|
+
/**
|
|
3009
|
+
* Reference calendar periods for the payment limits. Possible values (DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY)
|
|
3010
|
+
* @type {string}
|
|
3011
|
+
* @memberof TransactionLimits
|
|
3012
|
+
*/
|
|
3013
|
+
period: TransactionLimitsPeriodEnum;
|
|
3014
|
+
}
|
|
3015
|
+
export declare const TransactionLimitsPeriodEnum: {
|
|
3016
|
+
readonly Daily: "DAILY";
|
|
3017
|
+
readonly Weekly: "WEEKLY";
|
|
3018
|
+
readonly Monthly: "MONTHLY";
|
|
3019
|
+
readonly Quarterly: "QUARTERLY";
|
|
3020
|
+
readonly Yearly: "YEARLY";
|
|
3021
|
+
};
|
|
3022
|
+
export declare type TransactionLimitsPeriodEnum = typeof TransactionLimitsPeriodEnum[keyof typeof TransactionLimitsPeriodEnum];
|
|
2643
3023
|
/**
|
|
2644
3024
|
* CustomerApi - axios parameter creator
|
|
2645
3025
|
* @export
|
|
2646
3026
|
*/
|
|
2647
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>;
|
|
2648
3035
|
/**
|
|
2649
3036
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
2650
3037
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -2680,6 +3067,20 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2680
3067
|
* @throws {RequiredError}
|
|
2681
3068
|
*/
|
|
2682
3069
|
getLoginIdentityHistory: (loginIdentityId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3070
|
+
/**
|
|
3071
|
+
* Get Mandates details by mandate_id
|
|
3072
|
+
* @param {string} mandateId mandate id
|
|
3073
|
+
* @param {*} [options] Override http request option.
|
|
3074
|
+
* @throws {RequiredError}
|
|
3075
|
+
*/
|
|
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>;
|
|
2683
3084
|
/**
|
|
2684
3085
|
* Get payment instructions by payment_instruction_id
|
|
2685
3086
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -2697,6 +3098,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2697
3098
|
* @throws {RequiredError}
|
|
2698
3099
|
*/
|
|
2699
3100
|
listInstitutions: (country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3101
|
+
/**
|
|
3102
|
+
* CREATE Mandates
|
|
3103
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
3104
|
+
* @param {*} [options] Override http request option.
|
|
3105
|
+
* @throws {RequiredError}
|
|
3106
|
+
*/
|
|
3107
|
+
postMandates: (postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2700
3108
|
/**
|
|
2701
3109
|
* Refresh an access token
|
|
2702
3110
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -2710,6 +3118,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2710
3118
|
* @export
|
|
2711
3119
|
*/
|
|
2712
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>>;
|
|
2713
3128
|
/**
|
|
2714
3129
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
2715
3130
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -2745,6 +3160,20 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
2745
3160
|
* @throws {RequiredError}
|
|
2746
3161
|
*/
|
|
2747
3162
|
getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginIdentityHistoryResponse>>;
|
|
3163
|
+
/**
|
|
3164
|
+
* Get Mandates details by mandate_id
|
|
3165
|
+
* @param {string} mandateId mandate id
|
|
3166
|
+
* @param {*} [options] Override http request option.
|
|
3167
|
+
* @throws {RequiredError}
|
|
3168
|
+
*/
|
|
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>>;
|
|
2748
3177
|
/**
|
|
2749
3178
|
* Get payment instructions by payment_instruction_id
|
|
2750
3179
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -2762,6 +3191,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
2762
3191
|
* @throws {RequiredError}
|
|
2763
3192
|
*/
|
|
2764
3193
|
listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Institution>>>;
|
|
3194
|
+
/**
|
|
3195
|
+
* CREATE Mandates
|
|
3196
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
3197
|
+
* @param {*} [options] Override http request option.
|
|
3198
|
+
* @throws {RequiredError}
|
|
3199
|
+
*/
|
|
3200
|
+
postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostMandatesResponse>>;
|
|
2765
3201
|
/**
|
|
2766
3202
|
* Refresh an access token
|
|
2767
3203
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -2775,6 +3211,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
2775
3211
|
* @export
|
|
2776
3212
|
*/
|
|
2777
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>;
|
|
2778
3221
|
/**
|
|
2779
3222
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
2780
3223
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -2810,6 +3253,20 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
2810
3253
|
* @throws {RequiredError}
|
|
2811
3254
|
*/
|
|
2812
3255
|
getLoginIdentityHistory(loginIdentityId: string, options?: any): AxiosPromise<GetLoginIdentityHistoryResponse>;
|
|
3256
|
+
/**
|
|
3257
|
+
* Get Mandates details by mandate_id
|
|
3258
|
+
* @param {string} mandateId mandate id
|
|
3259
|
+
* @param {*} [options] Override http request option.
|
|
3260
|
+
* @throws {RequiredError}
|
|
3261
|
+
*/
|
|
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>;
|
|
2813
3270
|
/**
|
|
2814
3271
|
* Get payment instructions by payment_instruction_id
|
|
2815
3272
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -2827,6 +3284,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
2827
3284
|
* @throws {RequiredError}
|
|
2828
3285
|
*/
|
|
2829
3286
|
listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: any): AxiosPromise<Array<Institution>>;
|
|
3287
|
+
/**
|
|
3288
|
+
* CREATE Mandates
|
|
3289
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
3290
|
+
* @param {*} [options] Override http request option.
|
|
3291
|
+
* @throws {RequiredError}
|
|
3292
|
+
*/
|
|
3293
|
+
postMandates(postMandatesRequest: PostMandatesRequest, options?: any): AxiosPromise<PostMandatesResponse>;
|
|
2830
3294
|
/**
|
|
2831
3295
|
* Refresh an access token
|
|
2832
3296
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -2841,6 +3305,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
2841
3305
|
* @interface CustomerApi
|
|
2842
3306
|
*/
|
|
2843
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>;
|
|
2844
3316
|
/**
|
|
2845
3317
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
2846
3318
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -2881,6 +3353,22 @@ export interface CustomerApiInterface {
|
|
|
2881
3353
|
* @memberof CustomerApiInterface
|
|
2882
3354
|
*/
|
|
2883
3355
|
getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): AxiosPromise<GetLoginIdentityHistoryResponse>;
|
|
3356
|
+
/**
|
|
3357
|
+
* Get Mandates details by mandate_id
|
|
3358
|
+
* @param {string} mandateId mandate id
|
|
3359
|
+
* @param {*} [options] Override http request option.
|
|
3360
|
+
* @throws {RequiredError}
|
|
3361
|
+
* @memberof CustomerApiInterface
|
|
3362
|
+
*/
|
|
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>;
|
|
2884
3372
|
/**
|
|
2885
3373
|
* Get payment instructions by payment_instruction_id
|
|
2886
3374
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -2900,6 +3388,14 @@ export interface CustomerApiInterface {
|
|
|
2900
3388
|
* @memberof CustomerApiInterface
|
|
2901
3389
|
*/
|
|
2902
3390
|
listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): AxiosPromise<Array<Institution>>;
|
|
3391
|
+
/**
|
|
3392
|
+
* CREATE Mandates
|
|
3393
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
3394
|
+
* @param {*} [options] Override http request option.
|
|
3395
|
+
* @throws {RequiredError}
|
|
3396
|
+
* @memberof CustomerApiInterface
|
|
3397
|
+
*/
|
|
3398
|
+
postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): AxiosPromise<PostMandatesResponse>;
|
|
2903
3399
|
/**
|
|
2904
3400
|
* Refresh an access token
|
|
2905
3401
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -2916,6 +3412,14 @@ export interface CustomerApiInterface {
|
|
|
2916
3412
|
* @extends {BaseAPI}
|
|
2917
3413
|
*/
|
|
2918
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>>;
|
|
2919
3423
|
/**
|
|
2920
3424
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
2921
3425
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -2956,6 +3460,22 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
2956
3460
|
* @memberof CustomerApi
|
|
2957
3461
|
*/
|
|
2958
3462
|
getLoginIdentityHistory(loginIdentityId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginIdentityHistoryResponse>>;
|
|
3463
|
+
/**
|
|
3464
|
+
* Get Mandates details by mandate_id
|
|
3465
|
+
* @param {string} mandateId mandate id
|
|
3466
|
+
* @param {*} [options] Override http request option.
|
|
3467
|
+
* @throws {RequiredError}
|
|
3468
|
+
* @memberof CustomerApi
|
|
3469
|
+
*/
|
|
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>>;
|
|
2959
3479
|
/**
|
|
2960
3480
|
* Get payment instructions by payment_instruction_id
|
|
2961
3481
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -2975,6 +3495,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
2975
3495
|
* @memberof CustomerApi
|
|
2976
3496
|
*/
|
|
2977
3497
|
listInstitutions(country?: string, countries?: Array<string>, productsSupported?: string, institutionType?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Institution[]>>;
|
|
3498
|
+
/**
|
|
3499
|
+
* CREATE Mandates
|
|
3500
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
3501
|
+
* @param {*} [options] Override http request option.
|
|
3502
|
+
* @throws {RequiredError}
|
|
3503
|
+
* @memberof CustomerApi
|
|
3504
|
+
*/
|
|
3505
|
+
postMandates(postMandatesRequest: PostMandatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostMandatesResponse>>;
|
|
2978
3506
|
/**
|
|
2979
3507
|
* Refresh an access token
|
|
2980
3508
|
* @param {RefreshRequest} refreshRequest The refresh token
|
package/dist/api.js
CHANGED
|
@@ -22,16 +22,39 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.CustomerPaymentInstructionTypeEnum = void 0;
|
|
25
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.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
|
};
|
|
39
|
+
exports.GetMandatesResponseMandateStatusEnum = {
|
|
40
|
+
Created: 'CREATED',
|
|
41
|
+
Used: 'USED',
|
|
42
|
+
Submitted: 'SUBMITTED',
|
|
43
|
+
Error: 'ERROR',
|
|
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
|
+
};
|
|
35
58
|
exports.LinkTokenRequestUiModeEnum = {
|
|
36
59
|
Iframe: 'iframe',
|
|
37
60
|
Redirect: 'redirect',
|
|
@@ -46,12 +69,58 @@ exports.LinkTokenRequestAutomaticDataRefreshEnum = {
|
|
|
46
69
|
exports.PaymentInstructionTypeEnum = {
|
|
47
70
|
DebitAuthorization: 'DEBIT_AUTHORIZATION',
|
|
48
71
|
};
|
|
72
|
+
exports.PaymentScheduleFrequencyEnum = {
|
|
73
|
+
Daily: 'DAILY',
|
|
74
|
+
Weekly: 'WEEKLY',
|
|
75
|
+
Monthly: 'MONTHLY',
|
|
76
|
+
Quarterly: 'QUARTERLY',
|
|
77
|
+
Yearly: 'YEARLY',
|
|
78
|
+
};
|
|
79
|
+
exports.TransactionLimitsPeriodEnum = {
|
|
80
|
+
Daily: 'DAILY',
|
|
81
|
+
Weekly: 'WEEKLY',
|
|
82
|
+
Monthly: 'MONTHLY',
|
|
83
|
+
Quarterly: 'QUARTERLY',
|
|
84
|
+
Yearly: 'YEARLY',
|
|
85
|
+
};
|
|
49
86
|
/**
|
|
50
87
|
* CustomerApi - axios parameter creator
|
|
51
88
|
* @export
|
|
52
89
|
*/
|
|
53
90
|
exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
54
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
|
+
}),
|
|
55
124
|
/**
|
|
56
125
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
57
126
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -206,6 +275,66 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
206
275
|
options: localVarRequestOptions,
|
|
207
276
|
};
|
|
208
277
|
}),
|
|
278
|
+
/**
|
|
279
|
+
* Get Mandates details by mandate_id
|
|
280
|
+
* @param {string} mandateId mandate id
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
getMandates: (mandateId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
285
|
+
// verify required parameter 'mandateId' is not null or undefined
|
|
286
|
+
common_1.assertParamExists('getMandates', 'mandateId', mandateId);
|
|
287
|
+
const localVarPath = `/mandates/{mandateId}`.replace(`{${'mandateId'}}`, encodeURIComponent(String(mandateId)));
|
|
288
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
289
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
290
|
+
let baseOptions;
|
|
291
|
+
if (configuration) {
|
|
292
|
+
baseOptions = configuration.baseOptions;
|
|
293
|
+
}
|
|
294
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
295
|
+
const localVarHeaderParameter = {};
|
|
296
|
+
const localVarQueryParameter = {};
|
|
297
|
+
// authentication Oauth2 required
|
|
298
|
+
// oauth required
|
|
299
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
300
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
301
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
302
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
303
|
+
return {
|
|
304
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
305
|
+
options: localVarRequestOptions,
|
|
306
|
+
};
|
|
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
|
+
}),
|
|
209
338
|
/**
|
|
210
339
|
* Get payment instructions by payment_instruction_id
|
|
211
340
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -279,6 +408,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
279
408
|
options: localVarRequestOptions,
|
|
280
409
|
};
|
|
281
410
|
}),
|
|
411
|
+
/**
|
|
412
|
+
* CREATE Mandates
|
|
413
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
postMandates: (postMandatesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
418
|
+
// verify required parameter 'postMandatesRequest' is not null or undefined
|
|
419
|
+
common_1.assertParamExists('postMandates', 'postMandatesRequest', postMandatesRequest);
|
|
420
|
+
const localVarPath = `/mandates`;
|
|
421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
422
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
423
|
+
let baseOptions;
|
|
424
|
+
if (configuration) {
|
|
425
|
+
baseOptions = configuration.baseOptions;
|
|
426
|
+
}
|
|
427
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
428
|
+
const localVarHeaderParameter = {};
|
|
429
|
+
const localVarQueryParameter = {};
|
|
430
|
+
// authentication Oauth2 required
|
|
431
|
+
// oauth required
|
|
432
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
433
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
434
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
435
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
436
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
437
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(postMandatesRequest, localVarRequestOptions, configuration);
|
|
438
|
+
return {
|
|
439
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
440
|
+
options: localVarRequestOptions,
|
|
441
|
+
};
|
|
442
|
+
}),
|
|
282
443
|
/**
|
|
283
444
|
* Refresh an access token
|
|
284
445
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -320,6 +481,18 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
320
481
|
exports.CustomerApiFp = function (configuration) {
|
|
321
482
|
const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
|
|
322
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
|
+
},
|
|
323
496
|
/**
|
|
324
497
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
325
498
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -380,6 +553,30 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
380
553
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
381
554
|
});
|
|
382
555
|
},
|
|
556
|
+
/**
|
|
557
|
+
* Get Mandates details by mandate_id
|
|
558
|
+
* @param {string} mandateId mandate id
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
getMandates(mandateId, options) {
|
|
563
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
564
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandates(mandateId, options);
|
|
565
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
566
|
+
});
|
|
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
|
+
},
|
|
383
580
|
/**
|
|
384
581
|
* Get payment instructions by payment_instruction_id
|
|
385
582
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -407,6 +604,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
407
604
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
408
605
|
});
|
|
409
606
|
},
|
|
607
|
+
/**
|
|
608
|
+
* CREATE Mandates
|
|
609
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
*/
|
|
613
|
+
postMandates(postMandatesRequest, options) {
|
|
614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
615
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postMandates(postMandatesRequest, options);
|
|
616
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
617
|
+
});
|
|
618
|
+
},
|
|
410
619
|
/**
|
|
411
620
|
* Refresh an access token
|
|
412
621
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -428,6 +637,15 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
428
637
|
exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
429
638
|
const localVarFp = exports.CustomerApiFp(configuration);
|
|
430
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
|
+
},
|
|
431
649
|
/**
|
|
432
650
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
433
651
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -475,6 +693,24 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
475
693
|
getLoginIdentityHistory(loginIdentityId, options) {
|
|
476
694
|
return localVarFp.getLoginIdentityHistory(loginIdentityId, options).then((request) => request(axios, basePath));
|
|
477
695
|
},
|
|
696
|
+
/**
|
|
697
|
+
* Get Mandates details by mandate_id
|
|
698
|
+
* @param {string} mandateId mandate id
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
*/
|
|
702
|
+
getMandates(mandateId, options) {
|
|
703
|
+
return localVarFp.getMandates(mandateId, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
478
714
|
/**
|
|
479
715
|
* Get payment instructions by payment_instruction_id
|
|
480
716
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -500,6 +736,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
500
736
|
.listInstitutions(country, countries, productsSupported, institutionType, options)
|
|
501
737
|
.then((request) => request(axios, basePath));
|
|
502
738
|
},
|
|
739
|
+
/**
|
|
740
|
+
* CREATE Mandates
|
|
741
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
postMandates(postMandatesRequest, options) {
|
|
746
|
+
return localVarFp.postMandates(postMandatesRequest, options).then((request) => request(axios, basePath));
|
|
747
|
+
},
|
|
503
748
|
/**
|
|
504
749
|
* Refresh an access token
|
|
505
750
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -518,6 +763,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
518
763
|
* @extends {BaseAPI}
|
|
519
764
|
*/
|
|
520
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
|
+
}
|
|
521
778
|
/**
|
|
522
779
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
523
780
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -578,6 +835,30 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
578
835
|
.getLoginIdentityHistory(loginIdentityId, options)
|
|
579
836
|
.then((request) => request(this.axios, this.basePath));
|
|
580
837
|
}
|
|
838
|
+
/**
|
|
839
|
+
* Get Mandates details by mandate_id
|
|
840
|
+
* @param {string} mandateId mandate id
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
* @memberof CustomerApi
|
|
844
|
+
*/
|
|
845
|
+
getMandates(mandateId, options) {
|
|
846
|
+
return exports.CustomerApiFp(this.configuration)
|
|
847
|
+
.getMandates(mandateId, options)
|
|
848
|
+
.then((request) => request(this.axios, this.basePath));
|
|
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
|
+
}
|
|
581
862
|
/**
|
|
582
863
|
* Get payment instructions by payment_instruction_id
|
|
583
864
|
* @param {string} paymentInstructionId The id of a payment instruction
|
|
@@ -605,6 +886,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
605
886
|
.listInstitutions(country, countries, productsSupported, institutionType, options)
|
|
606
887
|
.then((request) => request(this.axios, this.basePath));
|
|
607
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* CREATE Mandates
|
|
891
|
+
* @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
|
|
892
|
+
* @param {*} [options] Override http request option.
|
|
893
|
+
* @throws {RequiredError}
|
|
894
|
+
* @memberof CustomerApi
|
|
895
|
+
*/
|
|
896
|
+
postMandates(postMandatesRequest, options) {
|
|
897
|
+
return exports.CustomerApiFp(this.configuration)
|
|
898
|
+
.postMandates(postMandatesRequest, options)
|
|
899
|
+
.then((request) => request(this.axios, this.basePath));
|
|
900
|
+
}
|
|
608
901
|
/**
|
|
609
902
|
* Refresh an access token
|
|
610
903
|
* @param {RefreshRequest} refreshRequest The refresh token
|