public class SettlementResult extends Result
Constructor and Description |
---|
SettlementResult()
Empty Constructor
|
SettlementResult(javax.json.JsonObject jsonObject)
JSON Parseable constructor
|
SettlementResult(Settlement settlement,
java.lang.String token)
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
Method that should set the objects property to Json representation.
|
Settlement |
getSettlement() |
void |
parseJson(javax.json.JsonObject jsonObject)
Method to read all properties from a JsonObject into this value object.
|
void |
setSettlement(Settlement settlement) |
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 SettlementResult()
public SettlementResult(Settlement settlement, java.lang.String token)
settlement
- the related settlement to the payment.token
- the JWT token related to the result.public SettlementResult(javax.json.JsonObject jsonObject) throws javax.json.JsonException
jsonObject
- the json object to parsejavax.json.JsonException
public Settlement getSettlement()
public void setSettlement(Settlement settlement)
settlement
- the related settlement to the payment.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