public class Amount extends AmountBase
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<AmountDetail> |
details
Descripción del importe total
|
protected double |
subtotal |
protected double |
taxAmount |
protected java.util.List<TaxDetail> |
taxes
Descripción de los impuestos
|
protected double |
vatDevolutionBase |
currency, total| Constructor and Description |
|---|
Amount(org.json.JSONObject object) |
Amount(java.util.List<TaxDetail> taxes,
java.util.List<AmountDetail> details,
java.lang.String currency,
float total) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
detailsToJsonArray() |
java.util.List<AmountDetail> |
getDetails()
Devuelve el parámetro details
|
double |
getDevolutionBase() |
double |
getSubtotal() |
double |
getTaxAmount() |
java.util.List<TaxDetail> |
getTaxes()
Devuelve el parámetro taxes
|
void |
setSubtotal(float subtotal) |
void |
setVatDevolutionBase(float vatDevolutionBase) |
org.json.JSONArray |
taxesToJsonArray() |
org.json.JSONObject |
toJsonObject() |
getCurrency, getTotalcheckMissingFields, filterJSONObject, getValidator, isValid, isValid, setValidatorprotected java.util.List<TaxDetail> taxes
protected java.util.List<AmountDetail> details
protected double taxAmount
protected double vatDevolutionBase
protected double subtotal
public Amount(org.json.JSONObject object)
public Amount(java.util.List<TaxDetail> taxes, java.util.List<AmountDetail> details, java.lang.String currency, float total)
public java.util.List<AmountDetail> getDetails()
detailspublic double getTaxAmount()
public double getDevolutionBase()
public double getSubtotal()
public void setVatDevolutionBase(float vatDevolutionBase)
public void setSubtotal(float subtotal)
public org.json.JSONArray taxesToJsonArray()
public org.json.JSONArray detailsToJsonArray()
public org.json.JSONObject toJsonObject()
toJsonObject in class AmountBase