@enfuce/nextgen-sdk 0.0.2 → 0.0.4
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/authorisation-control/api.d.ts +0 -302
- package/dist/authorisation-control/api.js +10 -28
- package/dist/authorisation-control/base.d.ts +0 -24
- package/dist/authorisation-control/base.js +0 -19
- package/dist/authorisation-control/common.d.ts +4 -35
- package/dist/authorisation-control/common.js +16 -38
- package/dist/authorisation-control/configuration.d.ts +24 -17
- package/dist/authorisation-control/configuration.js +3 -3
- package/dist/card/api.d.ts +41 -740
- package/dist/card/api.js +38 -105
- package/dist/card/base.d.ts +0 -24
- package/dist/card/base.js +0 -19
- package/dist/card/common.d.ts +4 -35
- package/dist/card/common.js +16 -38
- package/dist/card/configuration.d.ts +24 -17
- package/dist/card/configuration.js +3 -3
- package/dist/cardholder/api.d.ts +959 -686
- package/dist/cardholder/api.js +783 -73
- package/dist/cardholder/base.d.ts +0 -24
- package/dist/cardholder/base.js +0 -19
- package/dist/cardholder/common.d.ts +4 -35
- package/dist/cardholder/common.js +16 -38
- package/dist/cardholder/configuration.d.ts +24 -17
- package/dist/cardholder/configuration.js +3 -3
- package/dist/cards/api.d.ts +0 -7
- package/dist/cards/api.js +2 -9
- package/dist/cards/base.d.ts +0 -24
- package/dist/cards/base.js +0 -19
- package/dist/cards/common.d.ts +4 -35
- package/dist/cards/common.js +16 -38
- package/dist/cards/configuration.d.ts +24 -17
- package/dist/cards/configuration.js +3 -3
- package/dist/clearing-file-copy/api.d.ts +0 -497
- package/dist/clearing-file-copy/api.js +12 -26
- package/dist/clearing-file-copy/base.d.ts +0 -24
- package/dist/clearing-file-copy/base.js +0 -19
- package/dist/clearing-file-copy/common.d.ts +4 -35
- package/dist/clearing-file-copy/common.js +16 -38
- package/dist/clearing-file-copy/configuration.d.ts +24 -17
- package/dist/clearing-file-copy/configuration.js +3 -3
- package/dist/esm/authorisation-control/api.d.ts +0 -302
- package/dist/esm/authorisation-control/api.js +10 -28
- package/dist/esm/authorisation-control/base.d.ts +0 -24
- package/dist/esm/authorisation-control/base.js +0 -19
- package/dist/esm/authorisation-control/common.d.ts +4 -35
- package/dist/esm/authorisation-control/common.js +14 -37
- package/dist/esm/authorisation-control/configuration.d.ts +24 -17
- package/dist/esm/authorisation-control/configuration.js +3 -3
- package/dist/esm/card/api.d.ts +41 -740
- package/dist/esm/card/api.js +38 -105
- package/dist/esm/card/base.d.ts +0 -24
- package/dist/esm/card/base.js +0 -19
- package/dist/esm/card/common.d.ts +4 -35
- package/dist/esm/card/common.js +14 -37
- package/dist/esm/card/configuration.d.ts +24 -17
- package/dist/esm/card/configuration.js +3 -3
- package/dist/esm/cardholder/api.d.ts +959 -686
- package/dist/esm/cardholder/api.js +782 -72
- package/dist/esm/cardholder/base.d.ts +0 -24
- package/dist/esm/cardholder/base.js +0 -19
- package/dist/esm/cardholder/common.d.ts +4 -35
- package/dist/esm/cardholder/common.js +14 -37
- package/dist/esm/cardholder/configuration.d.ts +24 -17
- package/dist/esm/cardholder/configuration.js +3 -3
- package/dist/esm/cards/api.d.ts +0 -7
- package/dist/esm/cards/api.js +2 -9
- package/dist/esm/cards/base.d.ts +0 -24
- package/dist/esm/cards/base.js +0 -19
- package/dist/esm/cards/common.d.ts +4 -35
- package/dist/esm/cards/common.js +14 -37
- package/dist/esm/cards/configuration.d.ts +24 -17
- package/dist/esm/cards/configuration.js +3 -3
- package/dist/esm/clearing-file-copy/api.d.ts +0 -497
- package/dist/esm/clearing-file-copy/api.js +12 -26
- package/dist/esm/clearing-file-copy/base.d.ts +0 -24
- package/dist/esm/clearing-file-copy/base.js +0 -19
- package/dist/esm/clearing-file-copy/common.d.ts +4 -35
- package/dist/esm/clearing-file-copy/common.js +14 -37
- package/dist/esm/clearing-file-copy/configuration.d.ts +24 -17
- package/dist/esm/clearing-file-copy/configuration.js +3 -3
- package/dist/esm/exchange-rate/api.d.ts +409 -0
- package/dist/esm/exchange-rate/api.js +403 -0
- package/dist/esm/exchange-rate/base.d.ts +42 -0
- package/dist/esm/exchange-rate/base.js +41 -0
- package/dist/esm/exchange-rate/common.d.ts +34 -0
- package/dist/esm/exchange-rate/common.js +126 -0
- package/dist/esm/exchange-rate/configuration.d.ts +98 -0
- package/dist/esm/exchange-rate/configuration.js +40 -0
- package/dist/esm/exchange-rate/index.d.ts +13 -0
- package/dist/esm/exchange-rate/index.js +15 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/issuer-events/api.d.ts +639 -601
- package/dist/esm/issuer-events/api.js +520 -54
- package/dist/esm/issuer-events/base.d.ts +0 -24
- package/dist/esm/issuer-events/base.js +0 -19
- package/dist/esm/issuer-events/common.d.ts +4 -35
- package/dist/esm/issuer-events/common.js +14 -37
- package/dist/esm/issuer-events/configuration.d.ts +24 -17
- package/dist/esm/issuer-events/configuration.js +3 -3
- package/dist/esm/pin/api.d.ts +0 -76
- package/dist/esm/pin/api.js +3 -15
- package/dist/esm/pin/base.d.ts +0 -24
- package/dist/esm/pin/base.js +0 -19
- package/dist/esm/pin/common.d.ts +4 -35
- package/dist/esm/pin/common.js +14 -37
- package/dist/esm/pin/configuration.d.ts +24 -17
- package/dist/esm/pin/configuration.js +3 -3
- package/dist/esm/threeds/api.d.ts +0 -18
- package/dist/esm/threeds/api.js +1 -8
- package/dist/esm/threeds/base.d.ts +0 -24
- package/dist/esm/threeds/base.js +0 -19
- package/dist/esm/threeds/common.d.ts +4 -35
- package/dist/esm/threeds/common.js +14 -37
- package/dist/esm/threeds/configuration.d.ts +24 -17
- package/dist/esm/threeds/configuration.js +3 -3
- package/dist/esm/threeds-oob/api.d.ts +0 -90
- package/dist/esm/threeds-oob/api.js +2 -9
- package/dist/esm/threeds-oob/base.d.ts +0 -24
- package/dist/esm/threeds-oob/base.js +0 -19
- package/dist/esm/threeds-oob/common.d.ts +4 -35
- package/dist/esm/threeds-oob/common.js +14 -37
- package/dist/esm/threeds-oob/configuration.d.ts +24 -17
- package/dist/esm/threeds-oob/configuration.js +3 -3
- package/dist/esm/transaction-event/api.d.ts +0 -452
- package/dist/esm/transaction-event/api.js +11 -27
- package/dist/esm/transaction-event/base.d.ts +0 -24
- package/dist/esm/transaction-event/base.js +0 -19
- package/dist/esm/transaction-event/common.d.ts +4 -35
- package/dist/esm/transaction-event/common.js +14 -37
- package/dist/esm/transaction-event/configuration.d.ts +24 -17
- package/dist/esm/transaction-event/configuration.js +3 -3
- package/dist/esm/wallet/api.d.ts +0 -342
- package/dist/esm/wallet/api.js +29 -83
- package/dist/esm/wallet/base.d.ts +0 -24
- package/dist/esm/wallet/base.js +0 -19
- package/dist/esm/wallet/common.d.ts +4 -35
- package/dist/esm/wallet/common.js +14 -37
- package/dist/esm/wallet/configuration.d.ts +24 -17
- package/dist/esm/wallet/configuration.js +3 -3
- package/dist/exchange-rate/api.d.ts +409 -0
- package/dist/exchange-rate/api.js +418 -0
- package/dist/exchange-rate/base.d.ts +42 -0
- package/dist/exchange-rate/base.js +46 -0
- package/dist/exchange-rate/common.d.ts +34 -0
- package/dist/exchange-rate/common.js +139 -0
- package/dist/exchange-rate/configuration.d.ts +98 -0
- package/dist/exchange-rate/configuration.js +44 -0
- package/dist/exchange-rate/index.d.ts +13 -0
- package/dist/exchange-rate/index.js +31 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/issuer-events/api.d.ts +639 -601
- package/dist/issuer-events/api.js +521 -55
- package/dist/issuer-events/base.d.ts +0 -24
- package/dist/issuer-events/base.js +0 -19
- package/dist/issuer-events/common.d.ts +4 -35
- package/dist/issuer-events/common.js +16 -38
- package/dist/issuer-events/configuration.d.ts +24 -17
- package/dist/issuer-events/configuration.js +3 -3
- package/dist/pin/api.d.ts +0 -76
- package/dist/pin/api.js +3 -15
- package/dist/pin/base.d.ts +0 -24
- package/dist/pin/base.js +0 -19
- package/dist/pin/common.d.ts +4 -35
- package/dist/pin/common.js +16 -38
- package/dist/pin/configuration.d.ts +24 -17
- package/dist/pin/configuration.js +3 -3
- package/dist/threeds/api.d.ts +0 -18
- package/dist/threeds/api.js +1 -8
- package/dist/threeds/base.d.ts +0 -24
- package/dist/threeds/base.js +0 -19
- package/dist/threeds/common.d.ts +4 -35
- package/dist/threeds/common.js +16 -38
- package/dist/threeds/configuration.d.ts +24 -17
- package/dist/threeds/configuration.js +3 -3
- package/dist/threeds-oob/api.d.ts +0 -90
- package/dist/threeds-oob/api.js +2 -9
- package/dist/threeds-oob/base.d.ts +0 -24
- package/dist/threeds-oob/base.js +0 -19
- package/dist/threeds-oob/common.d.ts +4 -35
- package/dist/threeds-oob/common.js +16 -38
- package/dist/threeds-oob/configuration.d.ts +24 -17
- package/dist/threeds-oob/configuration.js +3 -3
- package/dist/transaction-event/api.d.ts +0 -452
- package/dist/transaction-event/api.js +11 -27
- package/dist/transaction-event/base.d.ts +0 -24
- package/dist/transaction-event/base.js +0 -19
- package/dist/transaction-event/common.d.ts +4 -35
- package/dist/transaction-event/common.js +16 -38
- package/dist/transaction-event/configuration.d.ts +24 -17
- package/dist/transaction-event/configuration.js +3 -3
- package/dist/wallet/api.d.ts +0 -342
- package/dist/wallet/api.js +29 -83
- package/dist/wallet/base.d.ts +0 -24
- package/dist/wallet/base.js +0 -19
- package/dist/wallet/common.d.ts +4 -35
- package/dist/wallet/common.js +16 -38
- package/dist/wallet/configuration.d.ts +24 -17
- package/dist/wallet/configuration.js +3 -3
- package/package.json +2 -2
- package/src/authorisation-control/api.ts +11 -314
- package/src/authorisation-control/base.ts +0 -24
- package/src/authorisation-control/common.ts +15 -38
- package/src/authorisation-control/configuration.ts +26 -20
- package/src/card/api.ts +80 -786
- package/src/card/base.ts +0 -24
- package/src/card/common.ts +15 -38
- package/src/card/configuration.ts +26 -20
- package/src/cardholder/api.ts +987 -714
- package/src/cardholder/base.ts +0 -24
- package/src/cardholder/common.ts +15 -38
- package/src/cardholder/configuration.ts +26 -20
- package/src/cards/api.ts +3 -11
- package/src/cards/base.ts +0 -24
- package/src/cards/common.ts +15 -38
- package/src/cards/configuration.ts +26 -20
- package/src/clearing-file-copy/api.ts +13 -510
- package/src/clearing-file-copy/base.ts +0 -24
- package/src/clearing-file-copy/common.ts +15 -38
- package/src/clearing-file-copy/configuration.ts +26 -20
- package/src/exchange-rate/api.ts +615 -0
- package/src/exchange-rate/base.ts +62 -0
- package/src/exchange-rate/common.ts +127 -0
- package/src/exchange-rate/configuration.ts +121 -0
- package/src/exchange-rate/index.ts +18 -0
- package/src/index.ts +1 -0
- package/src/issuer-events/api.ts +661 -628
- package/src/issuer-events/base.ts +0 -24
- package/src/issuer-events/common.ts +15 -38
- package/src/issuer-events/configuration.ts +26 -20
- package/src/pin/api.ts +4 -83
- package/src/pin/base.ts +0 -24
- package/src/pin/common.ts +15 -38
- package/src/pin/configuration.ts +26 -20
- package/src/threeds/api.ts +2 -22
- package/src/threeds/base.ts +0 -24
- package/src/threeds/common.ts +15 -38
- package/src/threeds/configuration.ts +26 -20
- package/src/threeds-oob/api.ts +3 -95
- package/src/threeds-oob/base.ts +0 -24
- package/src/threeds-oob/common.ts +15 -38
- package/src/threeds-oob/configuration.ts +26 -20
- package/src/transaction-event/api.ts +12 -464
- package/src/transaction-event/base.ts +0 -24
- package/src/transaction-event/common.ts +15 -38
- package/src/transaction-event/configuration.ts +26 -20
- package/src/wallet/api.ts +30 -377
- package/src/wallet/base.ts +0 -24
- package/src/wallet/common.ts +15 -38
- package/src/wallet/configuration.ts +26 -20
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exchange Rates API
|
|
3
|
+
* Endpoint for querying FX rates of payment scheme (including benchmark to ECB FX rates). API enables the issuer to comply with regulation (EU) 2019/518) and provide the cardholder with a better user experience by providing real-time visibility to scheme FX rates that are used for card transactions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: info@enfuce.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import type { RequestArgs } from './base';
|
|
15
|
+
import { BaseAPI } from './base';
|
|
16
|
+
export interface ErrorResponse {
|
|
17
|
+
/**
|
|
18
|
+
* An error code indicating what kind of error. I.e. HTTP error code
|
|
19
|
+
*/
|
|
20
|
+
'code'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Error message in human-readable format
|
|
23
|
+
*/
|
|
24
|
+
'message'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Unique error identifier
|
|
27
|
+
*/
|
|
28
|
+
'id'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Enfuce code for a specific error type
|
|
31
|
+
*/
|
|
32
|
+
'errorCode'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Error type
|
|
35
|
+
*/
|
|
36
|
+
'errorType'?: ErrorResponseErrorTypeEnum;
|
|
37
|
+
/**
|
|
38
|
+
* Free-form text explaining the error reason
|
|
39
|
+
*/
|
|
40
|
+
'errorReason'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Datetime when error occurred
|
|
43
|
+
*/
|
|
44
|
+
'timestamp'?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const ErrorResponseErrorTypeEnum: {
|
|
47
|
+
readonly StaticValidationError: "STATIC_VALIDATION_ERROR";
|
|
48
|
+
readonly DynamicValidationError: "DYNAMIC_VALIDATION_ERROR";
|
|
49
|
+
readonly IntegrationError: "INTEGRATION_ERROR";
|
|
50
|
+
readonly SecurityError: "SECURITY_ERROR";
|
|
51
|
+
readonly UnexpectedError: "UNEXPECTED_ERROR";
|
|
52
|
+
};
|
|
53
|
+
export type ErrorResponseErrorTypeEnum = typeof ErrorResponseErrorTypeEnum[keyof typeof ErrorResponseErrorTypeEnum];
|
|
54
|
+
export interface GetEcbRateV1Response {
|
|
55
|
+
/**
|
|
56
|
+
* Returns the ECB exchange rate.
|
|
57
|
+
*/
|
|
58
|
+
'rate'?: number;
|
|
59
|
+
}
|
|
60
|
+
export interface GetFxRatesV2Request {
|
|
61
|
+
/**
|
|
62
|
+
* The transaction amount in the foreign currency that the end user requests to convert
|
|
63
|
+
*/
|
|
64
|
+
'fromAmount': number;
|
|
65
|
+
/**
|
|
66
|
+
* The foreign currency that the end user requests to convert. Currency is given with a ISO 4217 currency code and needs to be a European Central Bank (\"ECB\") supported currency.
|
|
67
|
+
*/
|
|
68
|
+
'fromCurrency': string;
|
|
69
|
+
/**
|
|
70
|
+
* The card\'s settlement currency. Currency is given with a ISO 4217 currency code and needs to be a ECB supported currency.
|
|
71
|
+
*/
|
|
72
|
+
'toCurrency': string;
|
|
73
|
+
/**
|
|
74
|
+
* The issuer\'s mark-up percentage that is applied to foreign currency purchases
|
|
75
|
+
*/
|
|
76
|
+
'issuerMarkupPercentage': number;
|
|
77
|
+
}
|
|
78
|
+
export interface GetFxRatesV2Response {
|
|
79
|
+
/**
|
|
80
|
+
* The transaction amount in the foreign currency that the end user requests to convert
|
|
81
|
+
*/
|
|
82
|
+
'fromAmount'?: number;
|
|
83
|
+
/**
|
|
84
|
+
* The foreign currency that the end user requests to convert. Currency is given with a ISO 4217 currency code and needs to be a European Central Bank (\"ECB\") supported currency.
|
|
85
|
+
*/
|
|
86
|
+
'fromCurrency'?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The card\'s settlement currency. Currency is given with a ISO 4217 currency code and needs to be a ECB supported currency.
|
|
89
|
+
*/
|
|
90
|
+
'toCurrency'?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The transaction amount in the card\'s settlement currency converted with the payment scheme\'s rate but not considering the issuer mark-up. Derived by converting the fromAmount using payment scheme rates between from and to currency pairs. Mark-up rate is not included in the calculations. Exchange rates used for conversion will be the latest rates available. The value is always rounded to two (2) decimal places.
|
|
93
|
+
*/
|
|
94
|
+
'toAmountWithSchemeRate'?: number;
|
|
95
|
+
/**
|
|
96
|
+
* The transaction amount in the card\'s settlement currency converted with payment scheme\'s rate considering the issuer mark-up. Derived by converting the fromAmount using ECB rates between from and to currency pairs. Additional rate is not included in the calculations. Exchange rates used for conversion will be the latest rates available. The value is always rounded to two (2) decimal places.
|
|
97
|
+
*/
|
|
98
|
+
'toAmountWithMarkup'?: number;
|
|
99
|
+
/**
|
|
100
|
+
* The transaction amount in the card\'s settlement currency converted with the ECB\'s rate but not considering the issuer mark-up. Derived by converting the fromAmount using ECB rates between from and to currency pairs. Mark-up rate is not included in the calculations. Exchange rates used for conversion will be the latest rates available. The value is always rounded to two (2) decimal places.
|
|
101
|
+
*/
|
|
102
|
+
'toAmountWithEcbRate'?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Payment scheme exchange rate for the fromCurrency and toCurrency currency pair. This rate will not include any issuer mark-up. The value is always rounded to four (4) decimal places. As of 12/2022, Visa and Mastercard update their exchange rates on business days at 1 AM (GMT) and at 6 PM (GMT) respectively. Please note that the times at which payment schemes update their rates is subject to change without advance notice. However, the exchange rate applied and provided by Enfuce is always the latest one at any given time.
|
|
105
|
+
*/
|
|
106
|
+
'fxRatePaymentScheme'?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Payment scheme exchange rate for the fromCurrency and toCurrency currency pair. This rate will not include any issuer mark-up. The value is always rounded to eight (8) decimal places. As of 12/2022, Visa and Mastercard update their exchange rates on business days at 1 AM (GMT) and at 6 PM (GMT) respectively. Please note that the times at which payment schemes update their rates is subject to change without advance notice. However, the exchange rate applied and provided by Enfuce is always the latest one at any given time.
|
|
109
|
+
*/
|
|
110
|
+
'fxRatePaymentSchemeRaw'?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Applicable exchange rate for the customer, i.e. payment scheme exchange rate between the fromCurrency and toCurrency currency pair including issuer mark-up. The value is always rounded to four (4) decimal places.
|
|
113
|
+
*/
|
|
114
|
+
'fxRateWithMarkup'?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Applicable exchange rate for the customer, i.e. payment scheme exchange rate between the fromCurrency and toCurrency currency pair including issuer mark-up. The value is always rounded to eight (8) decimal places.
|
|
117
|
+
*/
|
|
118
|
+
'fxRateWithMarkupRaw'?: number;
|
|
119
|
+
/**
|
|
120
|
+
* ECB exchange rate between the fromCurrency and toCurrency currency pair including issuer mark-up. The value is always rounded to four (4) decimal places. As of 12/2022, the ECB updates exchange rates once per business day around 2 PM (GMT). Please note that the times at which the ECB updates its rates is subject to change without advance notice. However, the exchange rate applied and provided by Enfuce is always the latest one at any given time.
|
|
121
|
+
*/
|
|
122
|
+
'fxRateEcb'?: number;
|
|
123
|
+
/**
|
|
124
|
+
* ECB exchange rate between the fromCurrency and toCurrency currency pair including issuer mark-up. The value is always rounded to decimal (8) decimal places. As of 12/2022, the ECB updates exchange rates once per business day around 2 PM (GMT). Please note that the times at which the ECB updates its rates is subject to change without advance notice. However, the exchange rate applied and provided by Enfuce is always the latest one at any given time.
|
|
125
|
+
*/
|
|
126
|
+
'fxRateEcbRaw'?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Comparison of the customer applicable rate (payment scheme rate plus issuer mark-up) versus the ECB rate expressed as a percentage. A positive value represents in percentages how much higher the customer applicable rate is compared to the ECB rate.
|
|
129
|
+
*/
|
|
130
|
+
'markupPercentageOverEcb'?: number;
|
|
131
|
+
}
|
|
132
|
+
export interface GetVisaFxRatesV1Request {
|
|
133
|
+
/**
|
|
134
|
+
* From Amount also known as transaction amount that will be converted from the \"fromCurrency\" and to the \"toCurrency\"
|
|
135
|
+
*/
|
|
136
|
+
'fromAmount': number;
|
|
137
|
+
/**
|
|
138
|
+
* Any ECB supported currency with valid ISO 4217 currency code
|
|
139
|
+
*/
|
|
140
|
+
'fromCurrency': string;
|
|
141
|
+
/**
|
|
142
|
+
* Any ECB supported currency with valid ISO 4217 currency code
|
|
143
|
+
*/
|
|
144
|
+
'toCurrency': string;
|
|
145
|
+
}
|
|
146
|
+
export interface GetVisaFxRatesV1Response {
|
|
147
|
+
/**
|
|
148
|
+
* From Amount also known as transaction amount that will be converted from the \"fromCurrency\" to the \"toCurrency\".
|
|
149
|
+
*/
|
|
150
|
+
'fromAmount'?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Any ECB supported currency with valid ISO 4217 currency code
|
|
153
|
+
*/
|
|
154
|
+
'fromCurrency'?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Any ECB supported currency with valid ISO 4217 currency code
|
|
157
|
+
*/
|
|
158
|
+
'toCurrency'?: string;
|
|
159
|
+
/**
|
|
160
|
+
* To Amount also referred to as Cardholder Billing amount without additionalRate. Derived by converting the fromAmount using Visa Treasury Rates between from and to currency pairs. Additional rate is not included in the calculations. Visa treasury rates used for conversion will be as of the last rates available.
|
|
161
|
+
*/
|
|
162
|
+
'toAmountWithVisaRate'?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Also referred to as Cardholder Billing amount with additional rate. Derived by converting the fromAmount using Visa Treasury Rates between fromCurrency and toCurrency currency pairs. additionalRate is included in the calculations. Visa treasury rates used for conversion will be as of the last rates available.
|
|
165
|
+
*/
|
|
166
|
+
'toAmountWithAdditionalFee'?: number;
|
|
167
|
+
/**
|
|
168
|
+
* Visa Treasury Exchange Rate for the fromCurrency and toCurrency currency pair. This rate will not include any additionalRate
|
|
169
|
+
*/
|
|
170
|
+
'fxRateVisa'?: number;
|
|
171
|
+
/**
|
|
172
|
+
* Applicable Exchange Rate between the fromCurrency and toCurrency currency pair including additionalRate.
|
|
173
|
+
*/
|
|
174
|
+
'fxRateWithAdditionalFee'?: number;
|
|
175
|
+
/**
|
|
176
|
+
* ISO-8601 date when the Visa Treasury rates were last updated for calculations.
|
|
177
|
+
*/
|
|
178
|
+
'visaRateLastUpdatedTimestamp'?: string;
|
|
179
|
+
'benchmarks'?: Array<GetVisaFxRatesV1ResponseBenchmarksInner>;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Will return all the benchmark properties that apply to the fromCurrency and toCurrency pair in the Visa system. The API is built to support several benchmarks but ECB is the only available benchmark for now.
|
|
183
|
+
*/
|
|
184
|
+
export interface GetVisaFxRatesV1ResponseBenchmarksInner {
|
|
185
|
+
/**
|
|
186
|
+
* The benchmark system used for getting the benchmark properties. For example will be ECB for ECB benchmark rate system. All benchmark rates and any markups are calculated based on the last available benchmark rates (from the standard rate system - in this case ECB) and Visa treasury rates
|
|
187
|
+
*/
|
|
188
|
+
'benchmarkSystem'?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Derived by converting the fromAmount using Benchmark Rates between fromCurrency and toCurrency currency pairs. additionalRate is not included in the calculations. Benchmark rates used for conversion will be as of the last rates available on the benchmark system for example ECB.
|
|
191
|
+
*/
|
|
192
|
+
'toAmountWithBenchmarkRate'?: number;
|
|
193
|
+
/**
|
|
194
|
+
* Markup calculated between the toAmountWithAdditionalFee and toAmountWithBenchmarkRate. Calculated as (toAmountWithAdditionalFee - toAmountWithBenchmarkRate)/toAmountWithBenchmarkRate.
|
|
195
|
+
*/
|
|
196
|
+
'markupWithAdditionalFee'?: number;
|
|
197
|
+
/**
|
|
198
|
+
* Exchange rate between the \"from\" and \"to\" currency pair using the benchmark rates
|
|
199
|
+
*/
|
|
200
|
+
'benchmarkFxRate'?: number;
|
|
201
|
+
/**
|
|
202
|
+
* ISO-8601 date when the benchmark rates were last updated for calculations.
|
|
203
|
+
*/
|
|
204
|
+
'benchmarkRateLastUpdatedTimestamp'?: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Indicates the applicable payment scheme
|
|
208
|
+
*/
|
|
209
|
+
export declare const PaymentScheme: {
|
|
210
|
+
readonly Visa: "VISA";
|
|
211
|
+
readonly Mc: "MC";
|
|
212
|
+
};
|
|
213
|
+
export type PaymentScheme = typeof PaymentScheme[keyof typeof PaymentScheme];
|
|
214
|
+
/**
|
|
215
|
+
* GetECBExchangeRateApi - axios parameter creator
|
|
216
|
+
*/
|
|
217
|
+
export declare const GetECBExchangeRateApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
218
|
+
/**
|
|
219
|
+
* Send a request to this endpoint to get ECB rate for a given “from” and “to” currency pair.
|
|
220
|
+
* @summary ECB Exchange Rates
|
|
221
|
+
* @param {string} fromCurrency
|
|
222
|
+
* @param {string} toCurrency
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
getEcbRateV1: (fromCurrency: string, toCurrency: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* GetECBExchangeRateApi - functional programming interface
|
|
230
|
+
*/
|
|
231
|
+
export declare const GetECBExchangeRateApiFp: (configuration?: Configuration) => {
|
|
232
|
+
/**
|
|
233
|
+
* Send a request to this endpoint to get ECB rate for a given “from” and “to” currency pair.
|
|
234
|
+
* @summary ECB Exchange Rates
|
|
235
|
+
* @param {string} fromCurrency
|
|
236
|
+
* @param {string} toCurrency
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
getEcbRateV1(fromCurrency: string, toCurrency: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEcbRateV1Response>>;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* GetECBExchangeRateApi - factory interface
|
|
244
|
+
*/
|
|
245
|
+
export declare const GetECBExchangeRateApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
246
|
+
/**
|
|
247
|
+
* Send a request to this endpoint to get ECB rate for a given “from” and “to” currency pair.
|
|
248
|
+
* @summary ECB Exchange Rates
|
|
249
|
+
* @param {string} fromCurrency
|
|
250
|
+
* @param {string} toCurrency
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
getEcbRateV1(fromCurrency: string, toCurrency: string, options?: RawAxiosRequestConfig): AxiosPromise<GetEcbRateV1Response>;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* GetECBExchangeRateApi - object-oriented interface
|
|
258
|
+
*/
|
|
259
|
+
export declare class GetECBExchangeRateApi extends BaseAPI {
|
|
260
|
+
/**
|
|
261
|
+
* Send a request to this endpoint to get ECB rate for a given “from” and “to” currency pair.
|
|
262
|
+
* @summary ECB Exchange Rates
|
|
263
|
+
* @param {string} fromCurrency
|
|
264
|
+
* @param {string} toCurrency
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
getEcbRateV1(fromCurrency: string, toCurrency: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEcbRateV1Response, any, {}>>;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* GetECBSupportedCurrenciesApi - axios parameter creator
|
|
272
|
+
*/
|
|
273
|
+
export declare const GetECBSupportedCurrenciesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
274
|
+
/**
|
|
275
|
+
* Send a request to this endpoint to retrieve the list of currencies that the ECB supports.
|
|
276
|
+
* @summary ECB Supported Currencies
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
getEcbSupportedCurrenciesV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* GetECBSupportedCurrenciesApi - functional programming interface
|
|
284
|
+
*/
|
|
285
|
+
export declare const GetECBSupportedCurrenciesApiFp: (configuration?: Configuration) => {
|
|
286
|
+
/**
|
|
287
|
+
* Send a request to this endpoint to retrieve the list of currencies that the ECB supports.
|
|
288
|
+
* @summary ECB Supported Currencies
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
getEcbSupportedCurrenciesV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* GetECBSupportedCurrenciesApi - factory interface
|
|
296
|
+
*/
|
|
297
|
+
export declare const GetECBSupportedCurrenciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
298
|
+
/**
|
|
299
|
+
* Send a request to this endpoint to retrieve the list of currencies that the ECB supports.
|
|
300
|
+
* @summary ECB Supported Currencies
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
getEcbSupportedCurrenciesV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* GetECBSupportedCurrenciesApi - object-oriented interface
|
|
308
|
+
*/
|
|
309
|
+
export declare class GetECBSupportedCurrenciesApi extends BaseAPI {
|
|
310
|
+
/**
|
|
311
|
+
* Send a request to this endpoint to retrieve the list of currencies that the ECB supports.
|
|
312
|
+
* @summary ECB Supported Currencies
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
getEcbSupportedCurrenciesV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any, {}>>;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* GetFXExchangeRatesApi - axios parameter creator
|
|
320
|
+
*/
|
|
321
|
+
export declare const GetFXExchangeRatesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
322
|
+
/**
|
|
323
|
+
* Send a request to this endpoint to retrieve the Visa/Mastercard treasury FX rates for a given “from” and “to” currency pair.
|
|
324
|
+
* @summary FX Exchange Rates for Visa and Mastercard
|
|
325
|
+
* @param {PaymentScheme} paymentScheme Payment scheme
|
|
326
|
+
* @param {GetFxRatesV2Request} getFxRatesV2Request
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
getSchemeFxRatesV2: (paymentScheme: PaymentScheme, getFxRatesV2Request: GetFxRatesV2Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
331
|
+
/**
|
|
332
|
+
* This operation is to get the VISA treasury FX rates for a given “from” and “to” currency pair.
|
|
333
|
+
* @summary VISA FX Exchange Rates
|
|
334
|
+
* @param {GetVisaFxRatesV1Request} getVisaFxRatesV1Request
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @deprecated
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
getVisaFxRatesV1: (getVisaFxRatesV1Request: GetVisaFxRatesV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* GetFXExchangeRatesApi - functional programming interface
|
|
343
|
+
*/
|
|
344
|
+
export declare const GetFXExchangeRatesApiFp: (configuration?: Configuration) => {
|
|
345
|
+
/**
|
|
346
|
+
* Send a request to this endpoint to retrieve the Visa/Mastercard treasury FX rates for a given “from” and “to” currency pair.
|
|
347
|
+
* @summary FX Exchange Rates for Visa and Mastercard
|
|
348
|
+
* @param {PaymentScheme} paymentScheme Payment scheme
|
|
349
|
+
* @param {GetFxRatesV2Request} getFxRatesV2Request
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
getSchemeFxRatesV2(paymentScheme: PaymentScheme, getFxRatesV2Request: GetFxRatesV2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFxRatesV2Response>>;
|
|
354
|
+
/**
|
|
355
|
+
* This operation is to get the VISA treasury FX rates for a given “from” and “to” currency pair.
|
|
356
|
+
* @summary VISA FX Exchange Rates
|
|
357
|
+
* @param {GetVisaFxRatesV1Request} getVisaFxRatesV1Request
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @deprecated
|
|
360
|
+
* @throws {RequiredError}
|
|
361
|
+
*/
|
|
362
|
+
getVisaFxRatesV1(getVisaFxRatesV1Request: GetVisaFxRatesV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetVisaFxRatesV1Response>>;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* GetFXExchangeRatesApi - factory interface
|
|
366
|
+
*/
|
|
367
|
+
export declare const GetFXExchangeRatesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
368
|
+
/**
|
|
369
|
+
* Send a request to this endpoint to retrieve the Visa/Mastercard treasury FX rates for a given “from” and “to” currency pair.
|
|
370
|
+
* @summary FX Exchange Rates for Visa and Mastercard
|
|
371
|
+
* @param {PaymentScheme} paymentScheme Payment scheme
|
|
372
|
+
* @param {GetFxRatesV2Request} getFxRatesV2Request
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
getSchemeFxRatesV2(paymentScheme: PaymentScheme, getFxRatesV2Request: GetFxRatesV2Request, options?: RawAxiosRequestConfig): AxiosPromise<GetFxRatesV2Response>;
|
|
377
|
+
/**
|
|
378
|
+
* This operation is to get the VISA treasury FX rates for a given “from” and “to” currency pair.
|
|
379
|
+
* @summary VISA FX Exchange Rates
|
|
380
|
+
* @param {GetVisaFxRatesV1Request} getVisaFxRatesV1Request
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @deprecated
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
getVisaFxRatesV1(getVisaFxRatesV1Request: GetVisaFxRatesV1Request, options?: RawAxiosRequestConfig): AxiosPromise<GetVisaFxRatesV1Response>;
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* GetFXExchangeRatesApi - object-oriented interface
|
|
389
|
+
*/
|
|
390
|
+
export declare class GetFXExchangeRatesApi extends BaseAPI {
|
|
391
|
+
/**
|
|
392
|
+
* Send a request to this endpoint to retrieve the Visa/Mastercard treasury FX rates for a given “from” and “to” currency pair.
|
|
393
|
+
* @summary FX Exchange Rates for Visa and Mastercard
|
|
394
|
+
* @param {PaymentScheme} paymentScheme Payment scheme
|
|
395
|
+
* @param {GetFxRatesV2Request} getFxRatesV2Request
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
*/
|
|
399
|
+
getSchemeFxRatesV2(paymentScheme: PaymentScheme, getFxRatesV2Request: GetFxRatesV2Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFxRatesV2Response, any, {}>>;
|
|
400
|
+
/**
|
|
401
|
+
* This operation is to get the VISA treasury FX rates for a given “from” and “to” currency pair.
|
|
402
|
+
* @summary VISA FX Exchange Rates
|
|
403
|
+
* @param {GetVisaFxRatesV1Request} getVisaFxRatesV1Request
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @deprecated
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
getVisaFxRatesV1(getVisaFxRatesV1Request: GetVisaFxRatesV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetVisaFxRatesV1Response, any, {}>>;
|
|
409
|
+
}
|