@finverse/sdk-typescript 0.0.167 → 0.0.169
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 +140 -154
- package/dist/api.js +80 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -620,54 +620,6 @@ export interface BalanceHistory {
|
|
|
620
620
|
* @interface CardAccount
|
|
621
621
|
*/
|
|
622
622
|
export interface CardAccount {
|
|
623
|
-
/**
|
|
624
|
-
*
|
|
625
|
-
* @type {CurrencyAmount}
|
|
626
|
-
* @memberof CardAccount
|
|
627
|
-
*/
|
|
628
|
-
current_balance?: CurrencyAmount;
|
|
629
|
-
/**
|
|
630
|
-
*
|
|
631
|
-
* @type {CurrencyAmount}
|
|
632
|
-
* @memberof CardAccount
|
|
633
|
-
*/
|
|
634
|
-
payment_due_amount?: CurrencyAmount;
|
|
635
|
-
/**
|
|
636
|
-
*
|
|
637
|
-
* @type {CurrencyAmount}
|
|
638
|
-
* @memberof CardAccount
|
|
639
|
-
*/
|
|
640
|
-
statement_due_amount?: CurrencyAmount;
|
|
641
|
-
/**
|
|
642
|
-
*
|
|
643
|
-
* @type {CurrencyAmount}
|
|
644
|
-
* @memberof CardAccount
|
|
645
|
-
*/
|
|
646
|
-
total_credit_limit?: CurrencyAmount;
|
|
647
|
-
/**
|
|
648
|
-
*
|
|
649
|
-
* @type {CurrencyAmount}
|
|
650
|
-
* @memberof CardAccount
|
|
651
|
-
*/
|
|
652
|
-
available_credit_limit?: CurrencyAmount;
|
|
653
|
-
/**
|
|
654
|
-
*
|
|
655
|
-
* @type {CurrencyAmount}
|
|
656
|
-
* @memberof CardAccount
|
|
657
|
-
*/
|
|
658
|
-
minimum_payment_due?: CurrencyAmount;
|
|
659
|
-
/**
|
|
660
|
-
*
|
|
661
|
-
* @type {RewardsPointsBalance}
|
|
662
|
-
* @memberof CardAccount
|
|
663
|
-
*/
|
|
664
|
-
rewards_points_balance?: RewardsPointsBalance;
|
|
665
|
-
/**
|
|
666
|
-
*
|
|
667
|
-
* @type {string}
|
|
668
|
-
* @memberof CardAccount
|
|
669
|
-
*/
|
|
670
|
-
updated_at?: string;
|
|
671
623
|
/**
|
|
672
624
|
* Account this card is associated with
|
|
673
625
|
* @type {string}
|
|
@@ -722,67 +674,54 @@ export interface CardAccount {
|
|
|
722
674
|
* @memberof CardAccount
|
|
723
675
|
*/
|
|
724
676
|
last_payment_amount?: CurrencyAmount;
|
|
725
|
-
}
|
|
726
|
-
/**
|
|
727
|
-
*
|
|
728
|
-
* @export
|
|
729
|
-
* @interface CardAccountAllOf
|
|
730
|
-
*/
|
|
731
|
-
export interface CardAccountAllOf {
|
|
732
|
-
/**
|
|
733
|
-
* Account this card is associated with
|
|
734
|
-
* @type {string}
|
|
735
|
-
* @memberof CardAccountAllOf
|
|
736
|
-
*/
|
|
737
|
-
account_id?: string;
|
|
738
677
|
/**
|
|
739
678
|
*
|
|
740
|
-
* @type {
|
|
741
|
-
* @memberof
|
|
679
|
+
* @type {CurrencyAmount}
|
|
680
|
+
* @memberof CardAccount
|
|
742
681
|
*/
|
|
743
|
-
|
|
682
|
+
current_balance?: CurrencyAmount;
|
|
744
683
|
/**
|
|
745
|
-
*
|
|
746
|
-
* @type {
|
|
747
|
-
* @memberof
|
|
684
|
+
*
|
|
685
|
+
* @type {CurrencyAmount}
|
|
686
|
+
* @memberof CardAccount
|
|
748
687
|
*/
|
|
749
|
-
|
|
688
|
+
payment_due_amount?: CurrencyAmount;
|
|
750
689
|
/**
|
|
751
690
|
*
|
|
752
|
-
* @type {
|
|
753
|
-
* @memberof
|
|
691
|
+
* @type {CurrencyAmount}
|
|
692
|
+
* @memberof CardAccount
|
|
754
693
|
*/
|
|
755
|
-
|
|
694
|
+
statement_due_amount?: CurrencyAmount;
|
|
756
695
|
/**
|
|
757
|
-
*
|
|
758
|
-
* @type {
|
|
759
|
-
* @memberof
|
|
696
|
+
*
|
|
697
|
+
* @type {CurrencyAmount}
|
|
698
|
+
* @memberof CardAccount
|
|
760
699
|
*/
|
|
761
|
-
|
|
700
|
+
total_credit_limit?: CurrencyAmount;
|
|
762
701
|
/**
|
|
763
|
-
*
|
|
764
|
-
* @type {
|
|
765
|
-
* @memberof
|
|
702
|
+
*
|
|
703
|
+
* @type {CurrencyAmount}
|
|
704
|
+
* @memberof CardAccount
|
|
766
705
|
*/
|
|
767
|
-
|
|
706
|
+
available_credit_limit?: CurrencyAmount;
|
|
768
707
|
/**
|
|
769
|
-
*
|
|
770
|
-
* @type {
|
|
771
|
-
* @memberof
|
|
708
|
+
*
|
|
709
|
+
* @type {CurrencyAmount}
|
|
710
|
+
* @memberof CardAccount
|
|
772
711
|
*/
|
|
773
|
-
|
|
712
|
+
minimum_payment_due?: CurrencyAmount;
|
|
774
713
|
/**
|
|
775
|
-
*
|
|
776
|
-
* @type {
|
|
777
|
-
* @memberof
|
|
714
|
+
*
|
|
715
|
+
* @type {GenericAmount}
|
|
716
|
+
* @memberof CardAccount
|
|
778
717
|
*/
|
|
779
|
-
|
|
718
|
+
rewards_points_balance?: GenericAmount;
|
|
780
719
|
/**
|
|
781
720
|
*
|
|
782
|
-
* @type {
|
|
783
|
-
* @memberof
|
|
721
|
+
* @type {string}
|
|
722
|
+
* @memberof CardAccount
|
|
784
723
|
*/
|
|
785
|
-
|
|
724
|
+
updated_at?: string;
|
|
786
725
|
}
|
|
787
726
|
/**
|
|
788
727
|
*
|
|
@@ -798,91 +737,91 @@ export interface CardDetails {
|
|
|
798
737
|
card_accounts?: Array<CardAccount>;
|
|
799
738
|
/**
|
|
800
739
|
*
|
|
801
|
-
* @type {
|
|
740
|
+
* @type {CardTotal}
|
|
802
741
|
* @memberof CardDetails
|
|
803
742
|
*/
|
|
804
|
-
card_total?:
|
|
743
|
+
card_total?: CardTotal;
|
|
805
744
|
}
|
|
806
745
|
/**
|
|
807
746
|
*
|
|
808
747
|
* @export
|
|
809
|
-
* @interface
|
|
748
|
+
* @interface CardTotal
|
|
810
749
|
*/
|
|
811
|
-
export interface
|
|
812
|
-
/**
|
|
813
|
-
*
|
|
814
|
-
* @type {Array<string>}
|
|
815
|
-
* @memberof CategoryPredictions
|
|
816
|
-
*/
|
|
817
|
-
categories?: Array<string>;
|
|
818
|
-
/**
|
|
819
|
-
*
|
|
820
|
-
* @type {string}
|
|
821
|
-
* @memberof CategoryPredictions
|
|
822
|
-
*/
|
|
823
|
-
source?: string;
|
|
824
|
-
/**
|
|
825
|
-
*
|
|
826
|
-
* @type {string}
|
|
827
|
-
* @memberof CategoryPredictions
|
|
828
|
-
*/
|
|
829
|
-
source_id?: string;
|
|
830
|
-
}
|
|
831
|
-
/**
|
|
832
|
-
*
|
|
833
|
-
* @export
|
|
834
|
-
* @interface CommonCardDetails
|
|
835
|
-
*/
|
|
836
|
-
export interface CommonCardDetails {
|
|
750
|
+
export interface CardTotal {
|
|
837
751
|
/**
|
|
838
752
|
*
|
|
839
753
|
* @type {CurrencyAmount}
|
|
840
|
-
* @memberof
|
|
754
|
+
* @memberof CardTotal
|
|
841
755
|
*/
|
|
842
756
|
current_balance?: CurrencyAmount;
|
|
843
757
|
/**
|
|
844
758
|
*
|
|
845
759
|
* @type {CurrencyAmount}
|
|
846
|
-
* @memberof
|
|
760
|
+
* @memberof CardTotal
|
|
847
761
|
*/
|
|
848
762
|
payment_due_amount?: CurrencyAmount;
|
|
849
763
|
/**
|
|
850
764
|
*
|
|
851
765
|
* @type {CurrencyAmount}
|
|
852
|
-
* @memberof
|
|
766
|
+
* @memberof CardTotal
|
|
853
767
|
*/
|
|
854
768
|
statement_due_amount?: CurrencyAmount;
|
|
855
769
|
/**
|
|
856
770
|
*
|
|
857
771
|
* @type {CurrencyAmount}
|
|
858
|
-
* @memberof
|
|
772
|
+
* @memberof CardTotal
|
|
859
773
|
*/
|
|
860
774
|
total_credit_limit?: CurrencyAmount;
|
|
861
775
|
/**
|
|
862
776
|
*
|
|
863
777
|
* @type {CurrencyAmount}
|
|
864
|
-
* @memberof
|
|
778
|
+
* @memberof CardTotal
|
|
865
779
|
*/
|
|
866
780
|
available_credit_limit?: CurrencyAmount;
|
|
867
781
|
/**
|
|
868
782
|
*
|
|
869
783
|
* @type {CurrencyAmount}
|
|
870
|
-
* @memberof
|
|
784
|
+
* @memberof CardTotal
|
|
871
785
|
*/
|
|
872
786
|
minimum_payment_due?: CurrencyAmount;
|
|
873
787
|
/**
|
|
874
788
|
*
|
|
875
|
-
* @type {
|
|
876
|
-
* @memberof
|
|
789
|
+
* @type {GenericAmount}
|
|
790
|
+
* @memberof CardTotal
|
|
877
791
|
*/
|
|
878
|
-
rewards_points_balance?:
|
|
792
|
+
rewards_points_balance?: GenericAmount;
|
|
879
793
|
/**
|
|
880
794
|
*
|
|
881
795
|
* @type {string}
|
|
882
|
-
* @memberof
|
|
796
|
+
* @memberof CardTotal
|
|
883
797
|
*/
|
|
884
798
|
updated_at?: string;
|
|
885
799
|
}
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @export
|
|
803
|
+
* @interface CategoryPredictions
|
|
804
|
+
*/
|
|
805
|
+
export interface CategoryPredictions {
|
|
806
|
+
/**
|
|
807
|
+
*
|
|
808
|
+
* @type {Array<string>}
|
|
809
|
+
* @memberof CategoryPredictions
|
|
810
|
+
*/
|
|
811
|
+
categories?: Array<string>;
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @type {string}
|
|
815
|
+
* @memberof CategoryPredictions
|
|
816
|
+
*/
|
|
817
|
+
source?: string;
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @type {string}
|
|
821
|
+
* @memberof CategoryPredictions
|
|
822
|
+
*/
|
|
823
|
+
source_id?: string;
|
|
824
|
+
}
|
|
886
825
|
/**
|
|
887
826
|
*
|
|
888
827
|
* @export
|
|
@@ -1800,6 +1739,31 @@ export declare const FvErrorModelV2TypeEnum: {
|
|
|
1800
1739
|
readonly ApiError: "API_ERROR";
|
|
1801
1740
|
};
|
|
1802
1741
|
export declare type FvErrorModelV2TypeEnum = (typeof FvErrorModelV2TypeEnum)[keyof typeof FvErrorModelV2TypeEnum];
|
|
1742
|
+
/**
|
|
1743
|
+
*
|
|
1744
|
+
* @export
|
|
1745
|
+
* @interface GenericAmount
|
|
1746
|
+
*/
|
|
1747
|
+
export interface GenericAmount {
|
|
1748
|
+
/**
|
|
1749
|
+
*
|
|
1750
|
+
* @type {string}
|
|
1751
|
+
* @memberof GenericAmount
|
|
1752
|
+
*/
|
|
1753
|
+
unit?: string;
|
|
1754
|
+
/**
|
|
1755
|
+
*
|
|
1756
|
+
* @type {number}
|
|
1757
|
+
* @memberof GenericAmount
|
|
1758
|
+
*/
|
|
1759
|
+
value: number;
|
|
1760
|
+
/**
|
|
1761
|
+
*
|
|
1762
|
+
* @type {string}
|
|
1763
|
+
* @memberof GenericAmount
|
|
1764
|
+
*/
|
|
1765
|
+
raw?: string;
|
|
1766
|
+
}
|
|
1803
1767
|
/**
|
|
1804
1768
|
*
|
|
1805
1769
|
* @export
|
|
@@ -5456,31 +5420,6 @@ export interface RelinkRequest {
|
|
|
5456
5420
|
*/
|
|
5457
5421
|
consent?: boolean | null;
|
|
5458
5422
|
}
|
|
5459
|
-
/**
|
|
5460
|
-
*
|
|
5461
|
-
* @export
|
|
5462
|
-
* @interface RewardsPointsBalance
|
|
5463
|
-
*/
|
|
5464
|
-
export interface RewardsPointsBalance {
|
|
5465
|
-
/**
|
|
5466
|
-
*
|
|
5467
|
-
* @type {string}
|
|
5468
|
-
* @memberof RewardsPointsBalance
|
|
5469
|
-
*/
|
|
5470
|
-
unit?: string;
|
|
5471
|
-
/**
|
|
5472
|
-
*
|
|
5473
|
-
* @type {number}
|
|
5474
|
-
* @memberof RewardsPointsBalance
|
|
5475
|
-
*/
|
|
5476
|
-
balance: number;
|
|
5477
|
-
/**
|
|
5478
|
-
*
|
|
5479
|
-
* @type {string}
|
|
5480
|
-
* @memberof RewardsPointsBalance
|
|
5481
|
-
*/
|
|
5482
|
-
raw?: string;
|
|
5483
|
-
}
|
|
5484
5423
|
/**
|
|
5485
5424
|
*
|
|
5486
5425
|
* @export
|
|
@@ -7063,6 +7002,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
7063
7002
|
* @throws {RequiredError}
|
|
7064
7003
|
*/
|
|
7065
7004
|
createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7005
|
+
/**
|
|
7006
|
+
* Create mandate for an existing sender account
|
|
7007
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
7008
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7009
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7010
|
+
* @param {*} [options] Override http request option.
|
|
7011
|
+
* @throws {RequiredError}
|
|
7012
|
+
*/
|
|
7013
|
+
createMandateForExistingSender: (senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7066
7014
|
/**
|
|
7067
7015
|
* Create payment link
|
|
7068
7016
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -7172,6 +7120,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
7172
7120
|
* @throws {RequiredError}
|
|
7173
7121
|
*/
|
|
7174
7122
|
createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
|
|
7123
|
+
/**
|
|
7124
|
+
* Create mandate for an existing sender account
|
|
7125
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
7126
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7127
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7128
|
+
* @param {*} [options] Override http request option.
|
|
7129
|
+
* @throws {RequiredError}
|
|
7130
|
+
*/
|
|
7131
|
+
createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMandateResponse>>;
|
|
7175
7132
|
/**
|
|
7176
7133
|
* Create payment link
|
|
7177
7134
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -7281,6 +7238,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
7281
7238
|
* @throws {RequiredError}
|
|
7282
7239
|
*/
|
|
7283
7240
|
createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
|
|
7241
|
+
/**
|
|
7242
|
+
* Create mandate for an existing sender account
|
|
7243
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
7244
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7245
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7246
|
+
* @param {*} [options] Override http request option.
|
|
7247
|
+
* @throws {RequiredError}
|
|
7248
|
+
*/
|
|
7249
|
+
createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: any): AxiosPromise<CreateMandateResponse>;
|
|
7284
7250
|
/**
|
|
7285
7251
|
* Create payment link
|
|
7286
7252
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -7395,6 +7361,16 @@ export interface DefaultApiInterface {
|
|
|
7395
7361
|
* @memberof DefaultApiInterface
|
|
7396
7362
|
*/
|
|
7397
7363
|
createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
|
|
7364
|
+
/**
|
|
7365
|
+
* Create mandate for an existing sender account
|
|
7366
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
7367
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7368
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7369
|
+
* @param {*} [options] Override http request option.
|
|
7370
|
+
* @throws {RequiredError}
|
|
7371
|
+
* @memberof DefaultApiInterface
|
|
7372
|
+
*/
|
|
7373
|
+
createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
|
|
7398
7374
|
/**
|
|
7399
7375
|
* Create payment link
|
|
7400
7376
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -7519,6 +7495,16 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
7519
7495
|
* @memberof DefaultApi
|
|
7520
7496
|
*/
|
|
7521
7497
|
createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
|
|
7498
|
+
/**
|
|
7499
|
+
* Create mandate for an existing sender account
|
|
7500
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
7501
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7502
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7503
|
+
* @param {*} [options] Override http request option.
|
|
7504
|
+
* @throws {RequiredError}
|
|
7505
|
+
* @memberof DefaultApi
|
|
7506
|
+
*/
|
|
7507
|
+
createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
|
|
7522
7508
|
/**
|
|
7523
7509
|
* Create payment link
|
|
7524
7510
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
package/dist/api.js
CHANGED
|
@@ -2113,6 +2113,45 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2113
2113
|
options: localVarRequestOptions,
|
|
2114
2114
|
};
|
|
2115
2115
|
}),
|
|
2116
|
+
/**
|
|
2117
|
+
* Create mandate for an existing sender account
|
|
2118
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
2119
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
2120
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2121
|
+
* @param {*} [options] Override http request option.
|
|
2122
|
+
* @throws {RequiredError}
|
|
2123
|
+
*/
|
|
2124
|
+
createMandateForExistingSender: (senderAccountId, createMandateRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2125
|
+
// verify required parameter 'senderAccountId' is not null or undefined
|
|
2126
|
+
common_1.assertParamExists('createMandateForExistingSender', 'senderAccountId', senderAccountId);
|
|
2127
|
+
// verify required parameter 'createMandateRequest' is not null or undefined
|
|
2128
|
+
common_1.assertParamExists('createMandateForExistingSender', 'createMandateRequest', createMandateRequest);
|
|
2129
|
+
const localVarPath = `/mandates/sender_account/{senderAccountId}`.replace(`{${'senderAccountId'}}`, encodeURIComponent(String(senderAccountId)));
|
|
2130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2131
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2132
|
+
let baseOptions;
|
|
2133
|
+
if (configuration) {
|
|
2134
|
+
baseOptions = configuration.baseOptions;
|
|
2135
|
+
}
|
|
2136
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2137
|
+
const localVarHeaderParameter = {};
|
|
2138
|
+
const localVarQueryParameter = {};
|
|
2139
|
+
// authentication Oauth2 required
|
|
2140
|
+
// oauth required
|
|
2141
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2142
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null) {
|
|
2143
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
2144
|
+
}
|
|
2145
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2146
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2147
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2148
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2149
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMandateRequest, localVarRequestOptions, configuration);
|
|
2150
|
+
return {
|
|
2151
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2152
|
+
options: localVarRequestOptions,
|
|
2153
|
+
};
|
|
2154
|
+
}),
|
|
2116
2155
|
/**
|
|
2117
2156
|
* Create payment link
|
|
2118
2157
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -2509,6 +2548,20 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
2509
2548
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2510
2549
|
});
|
|
2511
2550
|
},
|
|
2551
|
+
/**
|
|
2552
|
+
* Create mandate for an existing sender account
|
|
2553
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
2554
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
2555
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2556
|
+
* @param {*} [options] Override http request option.
|
|
2557
|
+
* @throws {RequiredError}
|
|
2558
|
+
*/
|
|
2559
|
+
createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
|
|
2560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2561
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options);
|
|
2562
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2563
|
+
});
|
|
2564
|
+
},
|
|
2512
2565
|
/**
|
|
2513
2566
|
* Create payment link
|
|
2514
2567
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -2676,6 +2729,19 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2676
2729
|
createFpsToken(options) {
|
|
2677
2730
|
return localVarFp.createFpsToken(options).then((request) => request(axios, basePath));
|
|
2678
2731
|
},
|
|
2732
|
+
/**
|
|
2733
|
+
* Create mandate for an existing sender account
|
|
2734
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
2735
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
2736
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2737
|
+
* @param {*} [options] Override http request option.
|
|
2738
|
+
* @throws {RequiredError}
|
|
2739
|
+
*/
|
|
2740
|
+
createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
|
|
2741
|
+
return localVarFp
|
|
2742
|
+
.createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options)
|
|
2743
|
+
.then((request) => request(axios, basePath));
|
|
2744
|
+
},
|
|
2679
2745
|
/**
|
|
2680
2746
|
* Create payment link
|
|
2681
2747
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -2836,6 +2902,20 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2836
2902
|
.createFpsToken(options)
|
|
2837
2903
|
.then((request) => request(this.axios, this.basePath));
|
|
2838
2904
|
}
|
|
2905
|
+
/**
|
|
2906
|
+
* Create mandate for an existing sender account
|
|
2907
|
+
* @param {string} senderAccountId The Finverse ID of the sender account
|
|
2908
|
+
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
2909
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2910
|
+
* @param {*} [options] Override http request option.
|
|
2911
|
+
* @throws {RequiredError}
|
|
2912
|
+
* @memberof DefaultApi
|
|
2913
|
+
*/
|
|
2914
|
+
createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
|
|
2915
|
+
return exports.DefaultApiFp(this.configuration)
|
|
2916
|
+
.createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options)
|
|
2917
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2918
|
+
}
|
|
2839
2919
|
/**
|
|
2840
2920
|
* Create payment link
|
|
2841
2921
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|