@finverse/sdk-typescript 0.0.123 → 0.0.125
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 +167 -0
- package/dist/api.js +129 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -740,6 +740,12 @@ export interface CreateMandateResponse {
|
|
|
740
740
|
* @memberof CreateMandateResponse
|
|
741
741
|
*/
|
|
742
742
|
mandate_details: MandateDetails;
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @type {Array<Fee>}
|
|
746
|
+
* @memberof CreateMandateResponse
|
|
747
|
+
*/
|
|
748
|
+
fees?: Array<Fee>;
|
|
743
749
|
/**
|
|
744
750
|
* Additional attributes of the mandate in key:value format (e.g. mandate_internal_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
|
|
745
751
|
* @type {{ [key: string]: string; }}
|
|
@@ -1208,6 +1214,42 @@ export interface ErrorResponse {
|
|
|
1208
1214
|
*/
|
|
1209
1215
|
request_id?: string;
|
|
1210
1216
|
}
|
|
1217
|
+
/**
|
|
1218
|
+
*
|
|
1219
|
+
* @export
|
|
1220
|
+
* @interface Fee
|
|
1221
|
+
*/
|
|
1222
|
+
export interface Fee {
|
|
1223
|
+
/**
|
|
1224
|
+
* The amount of fee for a single transaction. Expressed in currency\'s smallest unit or “minor unit”, as defined in ISO 4217.
|
|
1225
|
+
* @type {number}
|
|
1226
|
+
* @memberof Fee
|
|
1227
|
+
*/
|
|
1228
|
+
amount: number;
|
|
1229
|
+
/**
|
|
1230
|
+
*
|
|
1231
|
+
* @type {string}
|
|
1232
|
+
* @memberof Fee
|
|
1233
|
+
*/
|
|
1234
|
+
currency?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
*
|
|
1237
|
+
* @type {string}
|
|
1238
|
+
* @memberof Fee
|
|
1239
|
+
*/
|
|
1240
|
+
paid_by?: FeePaidByEnum;
|
|
1241
|
+
/**
|
|
1242
|
+
* The payment account Id
|
|
1243
|
+
* @type {string}
|
|
1244
|
+
* @memberof Fee
|
|
1245
|
+
*/
|
|
1246
|
+
paid_by_account_id?: string;
|
|
1247
|
+
}
|
|
1248
|
+
export declare const FeePaidByEnum: {
|
|
1249
|
+
readonly Recipient: "RECIPIENT";
|
|
1250
|
+
readonly Sender: "SENDER";
|
|
1251
|
+
};
|
|
1252
|
+
export declare type FeePaidByEnum = (typeof FeePaidByEnum)[keyof typeof FeePaidByEnum];
|
|
1211
1253
|
/**
|
|
1212
1254
|
*
|
|
1213
1255
|
* @export
|
|
@@ -1671,6 +1713,12 @@ export interface GetMandateResponse {
|
|
|
1671
1713
|
* @memberof GetMandateResponse
|
|
1672
1714
|
*/
|
|
1673
1715
|
mandate_details: MandateDetails;
|
|
1716
|
+
/**
|
|
1717
|
+
*
|
|
1718
|
+
* @type {Array<Fee>}
|
|
1719
|
+
* @memberof GetMandateResponse
|
|
1720
|
+
*/
|
|
1721
|
+
fees?: Array<Fee>;
|
|
1674
1722
|
/**
|
|
1675
1723
|
*
|
|
1676
1724
|
* @type {FvErrorModelV2}
|
|
@@ -1751,6 +1799,31 @@ export interface GetPaymentInstructionsResponse {
|
|
|
1751
1799
|
*/
|
|
1752
1800
|
payment_instruction?: PaymentInstruction;
|
|
1753
1801
|
}
|
|
1802
|
+
/**
|
|
1803
|
+
*
|
|
1804
|
+
* @export
|
|
1805
|
+
* @interface GetPaymentUserResponse
|
|
1806
|
+
*/
|
|
1807
|
+
export interface GetPaymentUserResponse {
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @type {string}
|
|
1811
|
+
* @memberof GetPaymentUserResponse
|
|
1812
|
+
*/
|
|
1813
|
+
payment_user_id: string;
|
|
1814
|
+
/**
|
|
1815
|
+
*
|
|
1816
|
+
* @type {string}
|
|
1817
|
+
* @memberof GetPaymentUserResponse
|
|
1818
|
+
*/
|
|
1819
|
+
customer_app_id: string;
|
|
1820
|
+
/**
|
|
1821
|
+
*
|
|
1822
|
+
* @type {boolean}
|
|
1823
|
+
* @memberof GetPaymentUserResponse
|
|
1824
|
+
*/
|
|
1825
|
+
autopay_consent: boolean;
|
|
1826
|
+
}
|
|
1754
1827
|
/**
|
|
1755
1828
|
*
|
|
1756
1829
|
* @export
|
|
@@ -3375,6 +3448,12 @@ export interface MandateDetails {
|
|
|
3375
3448
|
* @memberof MandateDetails
|
|
3376
3449
|
*/
|
|
3377
3450
|
description?: string;
|
|
3451
|
+
/**
|
|
3452
|
+
* A bank specific reference, what the end user may see
|
|
3453
|
+
* @type {string}
|
|
3454
|
+
* @memberof MandateDetails
|
|
3455
|
+
*/
|
|
3456
|
+
mandate_bank_reference?: string;
|
|
3378
3457
|
}
|
|
3379
3458
|
/**
|
|
3380
3459
|
*
|
|
@@ -3887,6 +3966,12 @@ export interface PaymentResponse {
|
|
|
3887
3966
|
* @memberof PaymentResponse
|
|
3888
3967
|
*/
|
|
3889
3968
|
sender?: GetMandateSender;
|
|
3969
|
+
/**
|
|
3970
|
+
*
|
|
3971
|
+
* @type {Array<Fee>}
|
|
3972
|
+
* @memberof PaymentResponse
|
|
3973
|
+
*/
|
|
3974
|
+
fees?: Array<Fee>;
|
|
3890
3975
|
/**
|
|
3891
3976
|
* Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
3892
3977
|
* @type {string}
|
|
@@ -4393,6 +4478,19 @@ export declare const SenderDetailDetailsTypeEnum: {
|
|
|
4393
4478
|
readonly HkCertificateOfIncorporation: "HK_CERTIFICATE_OF_INCORPORATION";
|
|
4394
4479
|
};
|
|
4395
4480
|
export declare type SenderDetailDetailsTypeEnum = (typeof SenderDetailDetailsTypeEnum)[keyof typeof SenderDetailDetailsTypeEnum];
|
|
4481
|
+
/**
|
|
4482
|
+
*
|
|
4483
|
+
* @export
|
|
4484
|
+
* @interface SetAutopayConsentRequest
|
|
4485
|
+
*/
|
|
4486
|
+
export interface SetAutopayConsentRequest {
|
|
4487
|
+
/**
|
|
4488
|
+
*
|
|
4489
|
+
* @type {boolean}
|
|
4490
|
+
* @memberof SetAutopayConsentRequest
|
|
4491
|
+
*/
|
|
4492
|
+
autopay_consent: boolean;
|
|
4493
|
+
}
|
|
4396
4494
|
/**
|
|
4397
4495
|
*
|
|
4398
4496
|
* @export
|
|
@@ -5701,6 +5799,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5701
5799
|
* @throws {RequiredError}
|
|
5702
5800
|
*/
|
|
5703
5801
|
createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5802
|
+
/**
|
|
5803
|
+
* Get sender payment user for mandate
|
|
5804
|
+
* @param {*} [options] Override http request option.
|
|
5805
|
+
* @throws {RequiredError}
|
|
5806
|
+
*/
|
|
5807
|
+
getSenderPaymentUser: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5704
5808
|
/**
|
|
5705
5809
|
* List mandates
|
|
5706
5810
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -5732,6 +5836,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5732
5836
|
* @throws {RequiredError}
|
|
5733
5837
|
*/
|
|
5734
5838
|
listPayments: (dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5839
|
+
/**
|
|
5840
|
+
* Set autopay consent for payment user
|
|
5841
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
5842
|
+
* @param {*} [options] Override http request option.
|
|
5843
|
+
* @throws {RequiredError}
|
|
5844
|
+
*/
|
|
5845
|
+
setAutopayConsent: (setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5735
5846
|
};
|
|
5736
5847
|
/**
|
|
5737
5848
|
* DefaultApi - functional programming interface
|
|
@@ -5751,6 +5862,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
5751
5862
|
* @throws {RequiredError}
|
|
5752
5863
|
*/
|
|
5753
5864
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
|
|
5865
|
+
/**
|
|
5866
|
+
* Get sender payment user for mandate
|
|
5867
|
+
* @param {*} [options] Override http request option.
|
|
5868
|
+
* @throws {RequiredError}
|
|
5869
|
+
*/
|
|
5870
|
+
getSenderPaymentUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentUserResponse>>;
|
|
5754
5871
|
/**
|
|
5755
5872
|
* List mandates
|
|
5756
5873
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -5782,6 +5899,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
5782
5899
|
* @throws {RequiredError}
|
|
5783
5900
|
*/
|
|
5784
5901
|
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponse>>;
|
|
5902
|
+
/**
|
|
5903
|
+
* Set autopay consent for payment user
|
|
5904
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
5905
|
+
* @param {*} [options] Override http request option.
|
|
5906
|
+
* @throws {RequiredError}
|
|
5907
|
+
*/
|
|
5908
|
+
setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5785
5909
|
};
|
|
5786
5910
|
/**
|
|
5787
5911
|
* DefaultApi - factory interface
|
|
@@ -5801,6 +5925,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
5801
5925
|
* @throws {RequiredError}
|
|
5802
5926
|
*/
|
|
5803
5927
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
|
|
5928
|
+
/**
|
|
5929
|
+
* Get sender payment user for mandate
|
|
5930
|
+
* @param {*} [options] Override http request option.
|
|
5931
|
+
* @throws {RequiredError}
|
|
5932
|
+
*/
|
|
5933
|
+
getSenderPaymentUser(options?: any): AxiosPromise<GetPaymentUserResponse>;
|
|
5804
5934
|
/**
|
|
5805
5935
|
* List mandates
|
|
5806
5936
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -5832,6 +5962,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
5832
5962
|
* @throws {RequiredError}
|
|
5833
5963
|
*/
|
|
5834
5964
|
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: any): AxiosPromise<ListPaymentsResponse>;
|
|
5965
|
+
/**
|
|
5966
|
+
* Set autopay consent for payment user
|
|
5967
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
5968
|
+
* @param {*} [options] Override http request option.
|
|
5969
|
+
* @throws {RequiredError}
|
|
5970
|
+
*/
|
|
5971
|
+
setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: any): AxiosPromise<void>;
|
|
5835
5972
|
};
|
|
5836
5973
|
/**
|
|
5837
5974
|
* DefaultApi - interface
|
|
@@ -5854,6 +5991,13 @@ export interface DefaultApiInterface {
|
|
|
5854
5991
|
* @memberof DefaultApiInterface
|
|
5855
5992
|
*/
|
|
5856
5993
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
|
|
5994
|
+
/**
|
|
5995
|
+
* Get sender payment user for mandate
|
|
5996
|
+
* @param {*} [options] Override http request option.
|
|
5997
|
+
* @throws {RequiredError}
|
|
5998
|
+
* @memberof DefaultApiInterface
|
|
5999
|
+
*/
|
|
6000
|
+
getSenderPaymentUser(options?: AxiosRequestConfig): AxiosPromise<GetPaymentUserResponse>;
|
|
5857
6001
|
/**
|
|
5858
6002
|
* List mandates
|
|
5859
6003
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -5887,6 +6031,14 @@ export interface DefaultApiInterface {
|
|
|
5887
6031
|
* @memberof DefaultApiInterface
|
|
5888
6032
|
*/
|
|
5889
6033
|
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): AxiosPromise<ListPaymentsResponse>;
|
|
6034
|
+
/**
|
|
6035
|
+
* Set autopay consent for payment user
|
|
6036
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
6037
|
+
* @param {*} [options] Override http request option.
|
|
6038
|
+
* @throws {RequiredError}
|
|
6039
|
+
* @memberof DefaultApiInterface
|
|
6040
|
+
*/
|
|
6041
|
+
setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
5890
6042
|
}
|
|
5891
6043
|
/**
|
|
5892
6044
|
* DefaultApi - object-oriented interface
|
|
@@ -5910,6 +6062,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
5910
6062
|
* @memberof DefaultApi
|
|
5911
6063
|
*/
|
|
5912
6064
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
|
|
6065
|
+
/**
|
|
6066
|
+
* Get sender payment user for mandate
|
|
6067
|
+
* @param {*} [options] Override http request option.
|
|
6068
|
+
* @throws {RequiredError}
|
|
6069
|
+
* @memberof DefaultApi
|
|
6070
|
+
*/
|
|
6071
|
+
getSenderPaymentUser(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentUserResponse>>;
|
|
5913
6072
|
/**
|
|
5914
6073
|
* List mandates
|
|
5915
6074
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -5943,6 +6102,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
5943
6102
|
* @memberof DefaultApi
|
|
5944
6103
|
*/
|
|
5945
6104
|
listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponse>>;
|
|
6105
|
+
/**
|
|
6106
|
+
* Set autopay consent for payment user
|
|
6107
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
6108
|
+
* @param {*} [options] Override http request option.
|
|
6109
|
+
* @throws {RequiredError}
|
|
6110
|
+
* @memberof DefaultApi
|
|
6111
|
+
*/
|
|
6112
|
+
setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
5946
6113
|
}
|
|
5947
6114
|
/**
|
|
5948
6115
|
* LinkApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = 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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -102,6 +102,10 @@ exports.CreateRecipientAccountAccountTypeEnum = {
|
|
|
102
102
|
exports.CustomerPaymentInstructionTypeEnum = {
|
|
103
103
|
DebitAuthorization: 'DEBIT_AUTHORIZATION',
|
|
104
104
|
};
|
|
105
|
+
exports.FeePaidByEnum = {
|
|
106
|
+
Recipient: 'RECIPIENT',
|
|
107
|
+
Sender: 'SENDER',
|
|
108
|
+
};
|
|
105
109
|
exports.FvErrorModelTypeEnum = {
|
|
106
110
|
LinkError: 'LINK_ERROR',
|
|
107
111
|
ApiError: 'API_ERROR',
|
|
@@ -1629,6 +1633,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1629
1633
|
options: localVarRequestOptions,
|
|
1630
1634
|
};
|
|
1631
1635
|
}),
|
|
1636
|
+
/**
|
|
1637
|
+
* Get sender payment user for mandate
|
|
1638
|
+
* @param {*} [options] Override http request option.
|
|
1639
|
+
* @throws {RequiredError}
|
|
1640
|
+
*/
|
|
1641
|
+
getSenderPaymentUser: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1642
|
+
const localVarPath = `/mandates/payment_user/sender`;
|
|
1643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1644
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1645
|
+
let baseOptions;
|
|
1646
|
+
if (configuration) {
|
|
1647
|
+
baseOptions = configuration.baseOptions;
|
|
1648
|
+
}
|
|
1649
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1650
|
+
const localVarHeaderParameter = {};
|
|
1651
|
+
const localVarQueryParameter = {};
|
|
1652
|
+
// authentication Oauth2 required
|
|
1653
|
+
// oauth required
|
|
1654
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1655
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1656
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1657
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1658
|
+
return {
|
|
1659
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1660
|
+
options: localVarRequestOptions,
|
|
1661
|
+
};
|
|
1662
|
+
}),
|
|
1632
1663
|
/**
|
|
1633
1664
|
* List mandates
|
|
1634
1665
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -1763,6 +1794,38 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1763
1794
|
options: localVarRequestOptions,
|
|
1764
1795
|
};
|
|
1765
1796
|
}),
|
|
1797
|
+
/**
|
|
1798
|
+
* Set autopay consent for payment user
|
|
1799
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
1800
|
+
* @param {*} [options] Override http request option.
|
|
1801
|
+
* @throws {RequiredError}
|
|
1802
|
+
*/
|
|
1803
|
+
setAutopayConsent: (setAutopayConsentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1804
|
+
// verify required parameter 'setAutopayConsentRequest' is not null or undefined
|
|
1805
|
+
common_1.assertParamExists('setAutopayConsent', 'setAutopayConsentRequest', setAutopayConsentRequest);
|
|
1806
|
+
const localVarPath = `/mandates/payment_user/autopay`;
|
|
1807
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1808
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1809
|
+
let baseOptions;
|
|
1810
|
+
if (configuration) {
|
|
1811
|
+
baseOptions = configuration.baseOptions;
|
|
1812
|
+
}
|
|
1813
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1814
|
+
const localVarHeaderParameter = {};
|
|
1815
|
+
const localVarQueryParameter = {};
|
|
1816
|
+
// authentication Oauth2 required
|
|
1817
|
+
// oauth required
|
|
1818
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1819
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1820
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1821
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1822
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1823
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(setAutopayConsentRequest, localVarRequestOptions, configuration);
|
|
1824
|
+
return {
|
|
1825
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1826
|
+
options: localVarRequestOptions,
|
|
1827
|
+
};
|
|
1828
|
+
}),
|
|
1766
1829
|
};
|
|
1767
1830
|
};
|
|
1768
1831
|
/**
|
|
@@ -1795,6 +1858,17 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
1795
1858
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1796
1859
|
});
|
|
1797
1860
|
},
|
|
1861
|
+
/**
|
|
1862
|
+
* Get sender payment user for mandate
|
|
1863
|
+
* @param {*} [options] Override http request option.
|
|
1864
|
+
* @throws {RequiredError}
|
|
1865
|
+
*/
|
|
1866
|
+
getSenderPaymentUser(options) {
|
|
1867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1868
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSenderPaymentUser(options);
|
|
1869
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1870
|
+
});
|
|
1871
|
+
},
|
|
1798
1872
|
/**
|
|
1799
1873
|
* List mandates
|
|
1800
1874
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -1836,6 +1910,18 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
1836
1910
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1837
1911
|
});
|
|
1838
1912
|
},
|
|
1913
|
+
/**
|
|
1914
|
+
* Set autopay consent for payment user
|
|
1915
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
1916
|
+
* @param {*} [options] Override http request option.
|
|
1917
|
+
* @throws {RequiredError}
|
|
1918
|
+
*/
|
|
1919
|
+
setAutopayConsent(setAutopayConsentRequest, options) {
|
|
1920
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1921
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutopayConsent(setAutopayConsentRequest, options);
|
|
1922
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1923
|
+
});
|
|
1924
|
+
},
|
|
1839
1925
|
};
|
|
1840
1926
|
};
|
|
1841
1927
|
/**
|
|
@@ -1864,6 +1950,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1864
1950
|
.createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
|
|
1865
1951
|
.then((request) => request(axios, basePath));
|
|
1866
1952
|
},
|
|
1953
|
+
/**
|
|
1954
|
+
* Get sender payment user for mandate
|
|
1955
|
+
* @param {*} [options] Override http request option.
|
|
1956
|
+
* @throws {RequiredError}
|
|
1957
|
+
*/
|
|
1958
|
+
getSenderPaymentUser(options) {
|
|
1959
|
+
return localVarFp.getSenderPaymentUser(options).then((request) => request(axios, basePath));
|
|
1960
|
+
},
|
|
1867
1961
|
/**
|
|
1868
1962
|
* List mandates
|
|
1869
1963
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -1903,6 +1997,17 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1903
1997
|
.listPayments(dateFrom, dateTo, statuses, senderType, userId, institutionId, paymentType, mandateId, currency, offset, limit, options)
|
|
1904
1998
|
.then((request) => request(axios, basePath));
|
|
1905
1999
|
},
|
|
2000
|
+
/**
|
|
2001
|
+
* Set autopay consent for payment user
|
|
2002
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
2003
|
+
* @param {*} [options] Override http request option.
|
|
2004
|
+
* @throws {RequiredError}
|
|
2005
|
+
*/
|
|
2006
|
+
setAutopayConsent(setAutopayConsentRequest, options) {
|
|
2007
|
+
return localVarFp
|
|
2008
|
+
.setAutopayConsent(setAutopayConsentRequest, options)
|
|
2009
|
+
.then((request) => request(axios, basePath));
|
|
2010
|
+
},
|
|
1906
2011
|
};
|
|
1907
2012
|
};
|
|
1908
2013
|
/**
|
|
@@ -1935,6 +2040,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1935
2040
|
.createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
|
|
1936
2041
|
.then((request) => request(this.axios, this.basePath));
|
|
1937
2042
|
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Get sender payment user for mandate
|
|
2045
|
+
* @param {*} [options] Override http request option.
|
|
2046
|
+
* @throws {RequiredError}
|
|
2047
|
+
* @memberof DefaultApi
|
|
2048
|
+
*/
|
|
2049
|
+
getSenderPaymentUser(options) {
|
|
2050
|
+
return exports.DefaultApiFp(this.configuration)
|
|
2051
|
+
.getSenderPaymentUser(options)
|
|
2052
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2053
|
+
}
|
|
1938
2054
|
/**
|
|
1939
2055
|
* List mandates
|
|
1940
2056
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -1976,6 +2092,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1976
2092
|
.listPayments(dateFrom, dateTo, statuses, senderType, userId, institutionId, paymentType, mandateId, currency, offset, limit, options)
|
|
1977
2093
|
.then((request) => request(this.axios, this.basePath));
|
|
1978
2094
|
}
|
|
2095
|
+
/**
|
|
2096
|
+
* Set autopay consent for payment user
|
|
2097
|
+
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
2098
|
+
* @param {*} [options] Override http request option.
|
|
2099
|
+
* @throws {RequiredError}
|
|
2100
|
+
* @memberof DefaultApi
|
|
2101
|
+
*/
|
|
2102
|
+
setAutopayConsent(setAutopayConsentRequest, options) {
|
|
2103
|
+
return exports.DefaultApiFp(this.configuration)
|
|
2104
|
+
.setAutopayConsent(setAutopayConsentRequest, options)
|
|
2105
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2106
|
+
}
|
|
1979
2107
|
}
|
|
1980
2108
|
exports.DefaultApi = DefaultApi;
|
|
1981
2109
|
/**
|