| Modifier and Type | Field and Description |
|---|---|
protected CryptoAmount |
convertedAmount |
CLAIM_NAME, description, expireDate, orderAmount, preImageHash| Constructor and Description |
|---|
ConvertedOrder()
Empty Constructor
|
ConvertedOrder(javax.json.JsonObject jsonObject)
JSON Parseable constructor
|
ConvertedOrder(Order order,
CryptoAmount convertedAmount)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
Method that should set the objects property to Json representation.
|
CryptoAmount |
getConvertedAmount() |
void |
parseJson(javax.json.JsonObject jsonObject)
Method to read all properties from a JsonObject into this value object.
|
void |
setConvertedAmount(CryptoAmount convertedAmount) |
getClaimName, getDescription, getExpireDate, getOrderAmount, getPreImageHash, setDescription, setExpireDate, setOrderAmount, setPreImageHashadd, 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, toStringprotected CryptoAmount convertedAmount
public ConvertedOrder()
public ConvertedOrder(Order order, CryptoAmount convertedAmount)
order - the original payment data.convertedAmount - the amount generated by the currency converter.public ConvertedOrder(javax.json.JsonObject jsonObject)
throws javax.json.JsonException
jsonObject - the json object to parsejavax.json.JsonExceptionpublic CryptoAmount getConvertedAmount()
public void setConvertedAmount(CryptoAmount convertedAmount)
convertedAmount - the amount generated by the currency converter.public void convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
throws javax.json.JsonException
convertToJson in class OrderjsonObjectBuilder - 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