public class InstantConversionApiImpl extends ApiBase implements InstantConversionApi
| Constructor and Description |
|---|
InstantConversionApiImpl(MangoPayApi root)
Creates new API instance.
|
| Modifier and Type | Method and Description |
|---|---|
InstantConversion |
createInstantConversion(InstantConversion conversion,
java.lang.String idempotencyKey)
This endpoint allows the platform to move funds between two
wallets of different currencies instantaneously.
|
ConversionRate |
getConversionRate(java.lang.String debitedCurrency,
java.lang.String creditedCurrency)
This endpoint allows the platform to get a real
time indicative market rate of a specific currency pair.
|
InstantConversion |
getInstantConversion(java.lang.String id)
This endpoint allows the platform to get
the details of a conversion which has been carried out.
|
createObject, createObject, createObject, getList, getList, getList, getList, getList, getList, getListNoClientId, getObject, getObjectNoClientId, getRequestType, getRequestUrl, getRoot, updateObject, updateObject, updateObject, updateObjectpublic InstantConversionApiImpl(MangoPayApi root)
root - Root/parent instance that holds the OAuthToken and Configuration instance.public ConversionRate getConversionRate(java.lang.String debitedCurrency, java.lang.String creditedCurrency) throws java.lang.Exception
InstantConversionApigetConversionRate in interface InstantConversionApidebitedCurrency - The sell currency – the currency of the wallet to be debitedcreditedCurrency - The buy currency – the currency of the wallet to be credited.java.lang.Exceptionpublic InstantConversion createInstantConversion(InstantConversion conversion, java.lang.String idempotencyKey) throws java.lang.Exception
InstantConversionApicreateInstantConversion in interface InstantConversionApijava.lang.Exceptionpublic InstantConversion getInstantConversion(java.lang.String id) throws java.lang.Exception
InstantConversionApigetInstantConversion in interface InstantConversionApiid - The unique identifier of the conversion.java.lang.Exception