public class SettlementResponse extends Response
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
SettlementResponse()
Empty Constructor
|
SettlementResponse(javax.json.JsonObject jsonObject)
JSON Parseable constructor
|
SettlementResponse(SettlementResult settlementResult)
Constructor for settled invoices, of settlement is null is
only settled field set to false.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
Method that should set the objects property to Json representation.
|
java.lang.Boolean |
getPayPerRequest() |
java.lang.String |
getPreImageHash() |
java.util.Date |
getSettlementValidFrom() |
java.util.Date |
getSettlementValidUntil() |
java.lang.String |
getToken() |
java.lang.String |
getType() |
boolean |
isSettled() |
void |
parseJson(javax.json.JsonObject jsonObject)
Method to read all properties from a JsonObject into this value object.
|
void |
setPayPerRequest(java.lang.Boolean payPerRequest) |
void |
setPreImageHash(java.lang.String preImageHash) |
void |
setSettled(boolean settled) |
void |
setSettlementValidFrom(java.util.Date settlementValidFrom) |
void |
setSettlementValidUntil(java.util.Date settlementValidUntil) |
void |
setToken(java.lang.String token) |
void |
setType(java.lang.String type) |
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, toStringpublic static final java.lang.String TYPE
public SettlementResponse()
public SettlementResponse(SettlementResult settlementResult)
settlementResult - A settlement result object, null if not settled.public SettlementResponse(javax.json.JsonObject jsonObject)
throws javax.json.JsonException
jsonObject - the json object to parsejavax.json.JsonExceptionpublic java.lang.String getPreImageHash()
public void setPreImageHash(java.lang.String preImageHash)
preImageHash - related pre image hash base58 encodedpublic java.lang.String getToken()
public void setToken(java.lang.String token)
token - generated settlement JWT Tokenpublic java.util.Date getSettlementValidUntil()
public void setSettlementValidUntil(java.util.Date settlementValidUntil)
settlementValidUntil - how long the JWT Token is validpublic java.util.Date getSettlementValidFrom()
public void setSettlementValidFrom(java.util.Date settlementValidFrom)
settlementValidFrom - the valid from date of the JWT Token, null if no valid from date exists.public java.lang.Boolean getPayPerRequest()
public void setPayPerRequest(java.lang.Boolean payPerRequest)
payPerRequest - if related payment is for one request only.public boolean isSettled()
public void setSettled(boolean settled)
settled - true if payment is settled and settlement is generated.public java.lang.String getType()
public void setType(java.lang.String type)
type - the type of response returned in JSON responses only.public void convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
throws javax.json.JsonException
convertToJson in class ResponsejsonObjectBuilder - 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