DynamicCurrencyConversion

public final class DynamicCurrencyConversion

If the currency was dynamically converted, returned to provide the information about the conversion.

Fields

mAmount

final Decimal mAmount

mCommission

final Decimal mCommission

mConversionRate

final Decimal mConversionRate

mCustomerApproved

final Boolean mCustomerApproved

mCustomerCurrency

final String mCustomerCurrency

mDeclaration

final String mDeclaration

mMarkup

final Decimal mMarkup

Constructors

DynamicCurrencyConversion

public DynamicCurrencyConversion(Boolean customerApproved, Decimal amount, Decimal markup, Decimal conversionRate, Decimal commission, String customerCurrency, String declaration)

Methods

getAmount

public Decimal getAmount()

The amount in the converted currency

getCommission

public Decimal getCommission()

The commission charged for converting the amount.

getConversionRate

public Decimal getConversionRate()

The conversion rate used to perform the conversion.

getCustomerApproved

public Boolean getCustomerApproved()

True if the customer approved the conversion

getCustomerCurrency

public String getCustomerCurrency()

The currency selected by the customer.

getDeclaration

public String getDeclaration()

The declaration to be shown on the receipt.

getMarkup

public Decimal getMarkup()

The amount marked-up on the transaction for the conversion.

toString

public String toString()