public class InvoiceResult extends Result
Constructor and Description |
---|
InvoiceResult()
Empty Constructor
|
InvoiceResult(Invoice invoice,
java.lang.String token)
Default Constructor
|
InvoiceResult(javax.json.JsonObject jsonObject)
JSON Parseable constructor
|
Modifier and Type | Method and Description |
---|---|
void |
convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
Method that should set the objects property to Json representation.
|
Invoice |
getInvoice() |
void |
parseJson(javax.json.JsonObject jsonObject)
Method to read all properties from a JsonObject into this value object.
|
void |
setInvoice(Invoice invoice) |
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 InvoiceResult()
public InvoiceResult(Invoice invoice, java.lang.String token)
invoice
- the related invoice to the payment, null if no invoice have been generated yet
during the payment flow.token
- the JWT token related to the result.public InvoiceResult(javax.json.JsonObject jsonObject) throws javax.json.JsonException
jsonObject
- the json object to parsejavax.json.JsonException
public Invoice getInvoice()
public void setInvoice(Invoice invoice)
invoice
- the related invoice to the payment, null if no invoice have been generated yet
during the payment flow.public void convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder) throws javax.json.JsonException
convertToJson
in class Result
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 jsonObject) throws javax.json.JsonException