@enfuce/nextgen-sdk 0.0.3 → 0.0.5

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.
Files changed (40) hide show
  1. package/dist/esm/exchange-rate/api.d.ts +409 -0
  2. package/dist/esm/exchange-rate/api.js +403 -0
  3. package/dist/esm/exchange-rate/base.d.ts +42 -0
  4. package/dist/esm/exchange-rate/base.js +41 -0
  5. package/dist/esm/exchange-rate/common.d.ts +34 -0
  6. package/dist/esm/exchange-rate/common.js +126 -0
  7. package/dist/esm/exchange-rate/configuration.d.ts +98 -0
  8. package/dist/esm/exchange-rate/configuration.js +40 -0
  9. package/dist/esm/exchange-rate/index.d.ts +13 -0
  10. package/dist/esm/exchange-rate/index.js +15 -0
  11. package/dist/esm/index.d.ts +1 -0
  12. package/dist/esm/index.js +1 -0
  13. package/dist/esm/oauth/axios.d.ts +10 -4
  14. package/dist/esm/oauth/axios.js +15 -4
  15. package/dist/esm/oauth/index.js +5 -2
  16. package/dist/exchange-rate/api.d.ts +409 -0
  17. package/dist/exchange-rate/api.js +418 -0
  18. package/dist/exchange-rate/base.d.ts +42 -0
  19. package/dist/exchange-rate/base.js +46 -0
  20. package/dist/exchange-rate/common.d.ts +34 -0
  21. package/dist/exchange-rate/common.js +139 -0
  22. package/dist/exchange-rate/configuration.d.ts +98 -0
  23. package/dist/exchange-rate/configuration.js +44 -0
  24. package/dist/exchange-rate/index.d.ts +13 -0
  25. package/dist/exchange-rate/index.js +31 -0
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.js +2 -1
  28. package/dist/oauth/axios.d.ts +10 -4
  29. package/dist/oauth/axios.js +15 -4
  30. package/dist/oauth/index.js +5 -2
  31. package/package.json +1 -1
  32. package/src/exchange-rate/api.ts +615 -0
  33. package/src/exchange-rate/base.ts +62 -0
  34. package/src/exchange-rate/common.ts +127 -0
  35. package/src/exchange-rate/configuration.ts +121 -0
  36. package/src/exchange-rate/index.ts +18 -0
  37. package/src/index.ts +1 -0
  38. package/src/oauth/axios.ts +16 -4
  39. package/src/oauth/index.ts +5 -2
  40. package/test/oauth.test.ts +19 -0
@@ -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
+ }