public class Invoice extends JSONParsable
Constructor and Description |
---|
Invoice()
Empty Constructor
|
Invoice(javax.json.JsonObject jsonObject)
Json Parsable constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
Method that should set the objects property to Json representation.
|
long |
getAmountPaid()
See property comment
|
java.lang.String |
getCurrency()
See property comment
|
java.lang.Long |
getCurrentTime()
See property comment
|
java.lang.Boolean |
getExceptionStatus()
See property comment
|
java.lang.Long |
getExpirationTime()
See property comment
|
java.lang.String |
getId()
See property comment
|
java.lang.String |
getItemCode()
See property comment
|
java.lang.String |
getItemDesc()
See property comment
|
java.lang.String |
getNotificationEmail()
See property comment
|
java.lang.String |
getNotificationURL()
See property comment
|
java.lang.String |
getOrderId()
See property comment
|
java.lang.String |
getPosData()
See property comment
|
java.lang.Double |
getPrice()
See property comment
|
java.lang.String |
getRedirectURL()
See property comment
|
java.lang.String |
getStatus()
See property comment
|
java.lang.String |
getToken()
See property comment
|
java.lang.String |
getTransactionCurrency()
See property comment
|
java.lang.String |
getTransactionSpeed()
See property comment
|
java.lang.String |
getUrl()
See property comment
|
java.lang.Boolean |
isExtendedNotifications()
See property comment
|
java.lang.Boolean |
isFullNotifications()
See property comment
|
void |
parseJson(javax.json.JsonObject o)
Method to read all properties from a JsonObject into this value object.
|
void |
setAmountPaid(long amountPaid)
See property comment
|
void |
setCurrency(java.lang.String currency)
See property comment
|
void |
setCurrentTime(java.lang.Long currentTime)
See property comment
|
void |
setExceptionStatus(java.lang.Boolean exceptionStatus)
See property comment
|
void |
setExpirationTime(java.lang.Long expirationTime)
See property comment
|
void |
setExtendedNotifications(java.lang.Boolean extendedNotifications)
See property comment
|
void |
setFullNotifications(java.lang.Boolean fullNotifications)
See property comment
|
void |
setId(java.lang.String id)
See property comment
|
void |
setItemCode(java.lang.String itemCode)
See property comment
|
void |
setItemDesc(java.lang.String itemDesc)
See property comment
|
void |
setNotificationEmail(java.lang.String notificationEmail)
See property comment
|
void |
setNotificationURL(java.lang.String notificationURL)
See property comment
|
void |
setOrderId(java.lang.String orderId)
See property comment
|
void |
setPosData(java.lang.String posData)
See property comment
|
void |
setPrice(java.lang.Double price)
See property comment
|
void |
setRedirectURL(java.lang.String redirectURL)
See property comment
|
void |
setStatus(java.lang.String status)
See property comment
|
void |
setToken(java.lang.String token)
See property comment
|
void |
setTransactionCurrency(java.lang.String transactionCurrency)
See property comment
|
void |
setTransactionSpeed(java.lang.String transactionSpeed)
See property comment
|
void |
setUrl(java.lang.String url)
See property comment
|
add, addB58, addNotRequired, addNotRequiredB58, getBoolean, getBooleanIfSet, getByteArrayFromB58, getByteArrayFromB58IfSet, getByteArrayFromB64, getByteArrayFromB64IfSet, getByteArrayFromHex, getByteArrayFromHexIfSet, getDate, getDateIfSet, getDouble, getDoubleIfSet, getInt, getIntIfSet, getJsonArray, getJsonArrayIfSet, getJsonObject, getJsonObjectIfSet, getLong, getLongIfSet, getString, getStringIfSet, toJson, toJsonAsString, toString
public Invoice()
public Invoice(javax.json.JsonObject jsonObject) throws javax.json.JsonException
jsonObject
- the json data to parse.javax.json.JsonException
- if problem occurred parsing.public java.lang.String getId()
public void setId(java.lang.String id)
id
- the invoice id field.public java.lang.String getToken()
public void setToken(java.lang.String token)
token
- the invoice token field.public java.lang.Double getPrice()
public void setPrice(java.lang.Double price)
price
- the invoice price field.public java.lang.String getCurrency()
public void setCurrency(java.lang.String currency)
currency
- the invoice currency field.public java.lang.String getOrderId()
public void setOrderId(java.lang.String orderId)
orderId
- the invoice orderId field.public java.lang.String getItemDesc()
public void setItemDesc(java.lang.String itemDesc)
itemDesc
- the invoice itemDesc field.public java.lang.String getItemCode()
public void setItemCode(java.lang.String itemCode)
itemCode
- the invoice itemCode field.public java.lang.String getNotificationEmail()
public void setNotificationEmail(java.lang.String notificationEmail)
notificationEmail
- the invoice notificationEmail field.public java.lang.String getNotificationURL()
public void setNotificationURL(java.lang.String notificationURL)
notificationURL
- the invoice notificationURL field.public java.lang.String getRedirectURL()
public void setRedirectURL(java.lang.String redirectURL)
redirectURL
- the invoice redirectURL field.public java.lang.String getPosData()
public void setPosData(java.lang.String posData)
posData
- the invoice posData field.public java.lang.String getTransactionSpeed()
public void setTransactionSpeed(java.lang.String transactionSpeed)
transactionSpeed
- the invoice transactionSpeed field.public java.lang.Boolean isFullNotifications()
public void setFullNotifications(java.lang.Boolean fullNotifications)
fullNotifications
- the invoice fullNotifications field.public java.lang.Boolean isExtendedNotifications()
public void setExtendedNotifications(java.lang.Boolean extendedNotifications)
extendedNotifications
- the invoice extendedNotifications field.public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the invoice url field.public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- the invoice status field.public long getAmountPaid()
public void setAmountPaid(long amountPaid)
amountPaid
- the invoice amountPaid field.public java.lang.Long getExpirationTime()
public void setExpirationTime(java.lang.Long expirationTime)
expirationTime
- the invoice expirationTime field.public java.lang.Long getCurrentTime()
public void setCurrentTime(java.lang.Long currentTime)
currentTime
- the invoice currentTime field.public java.lang.Boolean getExceptionStatus()
public void setExceptionStatus(java.lang.Boolean exceptionStatus)
exceptionStatus
- the invoice exceptionStatus field.public java.lang.String getTransactionCurrency()
public void setTransactionCurrency(java.lang.String transactionCurrency)
transactionCurrency
- the invoice transactionCurrency field.public void convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder) throws javax.json.JsonException
JSONParsable
convertToJson
in class JSONParsable
jsonObjectBuilder
- the json object build to use to set key/values in jsonjavax.json.JsonException
- if problems occurred converting object to JSON.public void parseJson(javax.json.JsonObject o) throws javax.json.JsonException
JSONParsable
parseJson
in class JSONParsable
o
- the json object to read key and values from and set object properties.javax.json.JsonException
- if problems occurred converting object from JSON.