public class Payment extends EntityWithNameValuePair
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowPartial |
protected Amount |
amount |
protected java.lang.String |
description |
protected Instrument |
instrument |
protected java.util.List<Item> |
items |
protected com.placetopay.java_placetopay.Entities.Recurring |
recurring |
protected java.lang.String |
reference |
protected Person |
shipping |
fields| Constructor and Description |
|---|
Payment(org.json.JSONObject object) |
Payment(java.lang.String reference,
java.lang.String description,
Amount amount,
boolean allowPartial,
Person shipping,
java.util.List<Item> items,
com.placetopay.java_placetopay.Entities.Recurring recurring,
Instrument instrument)
Crea una nueva instancia de
Payment |
| Modifier and Type | Method and Description |
|---|---|
Amount |
getAmount() |
java.lang.String |
getDescription() |
Instrument |
getInstrument() |
java.util.List<Item> |
getItems() |
com.placetopay.java_placetopay.Entities.Recurring |
getRecurring() |
java.lang.String |
getReference() |
Person |
getShipping() |
boolean |
isAllowPartial() |
org.json.JSONArray |
itemToJsonArray() |
org.json.JSONObject |
toJsonObject() |
addField, addField, addFields, fieldsToArrayObject, fieldsToKeyValueArrayObject, getFieldscheckMissingFields, filterJSONObject, getValidator, isValid, isValid, setValidatorprotected java.lang.String reference
protected java.lang.String description
protected Amount amount
protected boolean allowPartial
protected Person shipping
protected java.util.List<Item> items
protected com.placetopay.java_placetopay.Entities.Recurring recurring
protected Instrument instrument
public Payment(org.json.JSONObject object)
public Payment(java.lang.String reference,
java.lang.String description,
Amount amount,
boolean allowPartial,
Person shipping,
java.util.List<Item> items,
com.placetopay.java_placetopay.Entities.Recurring recurring,
Instrument instrument)
Paymentreference - Única referencia para la solicitud de pago.description - Descripción de la cuenta.amount - Monto a ser cobradoallowPartial - Define si el monto a ser cobrado puede ser parcial.shipping - Información de la persona quien recibe el producto o servicio en la transacción.items - Productos relacionados con esta solicitud de pago.recurring - Información recurrente cuando Place to Pay procesa un pago recurrente.instrument - Contiene los detalles de un medio de pago suscrito.public java.lang.String getReference()
public java.lang.String getDescription()
public Amount getAmount()
public boolean isAllowPartial()
public Person getShipping()
public java.util.List<Item> getItems()
public com.placetopay.java_placetopay.Entities.Recurring getRecurring()
public Instrument getInstrument()
public org.json.JSONArray itemToJsonArray()
public org.json.JSONObject toJsonObject()
toJsonObject in class Entity