public class Item extends Entity
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
category
Puede ser [digital, físical]
|
protected java.lang.String |
name
Nombre del artículo
|
protected float |
price
Costo del articulo
|
protected java.lang.Integer |
qty
Número de un artículo en particular
|
protected java.lang.String |
sku
Unidad en stock correspondiente (SKU) al artículo
|
protected float |
tax
Impuesto del artículo
|
| Constructor and Description |
|---|
Item(org.json.JSONObject object) |
Item(java.lang.String sku,
java.lang.String name,
java.lang.String category,
java.lang.Integer qty,
float price,
float tax)
Crea instancia de
Item |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCategory()
Devuelve el parámetro category
|
java.lang.String |
getName()
Devuelve el parámetro name
|
float |
getPrice()
Devuelve el parámetro price
|
java.lang.Integer |
getQty()
Devuelve el parámetro qty
|
java.lang.String |
getSku()
Devuelve el parámetro sku
|
float |
getTax()
Devuelve el parámetro tax
|
org.json.JSONObject |
toJsonObject() |
checkMissingFields, filterJSONObject, getValidator, isValid, isValid, setValidatorprotected java.lang.String sku
protected java.lang.String name
protected java.lang.String category
protected java.lang.Integer qty
protected float price
protected float tax
public java.lang.String getSku()
skupublic java.lang.String getName()
namepublic java.lang.String getCategory()
categorypublic java.lang.Integer getQty()
qtypublic float getPrice()
pricepublic float getTax()
taxpublic org.json.JSONObject toJsonObject()
toJsonObject in class Entity