public class AmountConversion extends Entity
| Modifier and Type | Field and Description |
|---|---|
protected float |
factor
Factor de conversión
|
protected AmountBase |
from
Monto solicitado
|
protected AmountBase |
to
Monto procesado por la entidad
|
| Constructor and Description |
|---|
AmountConversion() |
AmountConversion(AmountBase from,
AmountBase to,
float factor)
Crea instancia de
AmountConversion |
AmountConversion(org.json.JSONObject object) |
| Modifier and Type | Method and Description |
|---|---|
float |
getFactor()
Devuelve el parámetro factor
|
AmountBase |
getFrom()
Devuelve el parámetro from
|
AmountBase |
getTo()
Devuelve el parámetro to
|
AmountConversion |
setAmountBase(AmountBase base) |
AmountConversion |
setAmountBase(org.json.JSONObject object) |
org.json.JSONObject |
toJsonObject() |
checkMissingFields, filterJSONObject, getValidator, isValid, isValid, setValidatorprotected AmountBase from
protected AmountBase to
protected float factor
public AmountConversion(org.json.JSONObject object)
public AmountConversion()
public AmountConversion(AmountBase from, AmountBase to, float factor)
AmountConversionpublic AmountConversion setAmountBase(org.json.JSONObject object)
public AmountConversion setAmountBase(AmountBase base)
public AmountBase getFrom()
frompublic AmountBase getTo()
topublic float getFactor()
factorpublic org.json.JSONObject toJsonObject()
toJsonObject in class Entity