Package com.adyen.model.tapi
Class StoredValueResult
- java.lang.Object
-
- com.adyen.model.tapi.StoredValueResult
-
public class StoredValueResult extends Object
For each stored value card loaded or reloaded, in the StoredValue response message. Result of loading/reloading a stored value card.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_EAN_UPCstatic StringJSON_PROPERTY_HOST_TRANSACTION_I_Dstatic StringJSON_PROPERTY_ITEM_AMOUNTstatic StringJSON_PROPERTY_PRODUCT_CODEstatic StringJSON_PROPERTY_STORED_VALUE_ACCOUNT_STATUSstatic StringJSON_PROPERTY_STORED_VALUE_TRANSACTION_TYPE
-
Constructor Summary
Constructors Constructor Description StoredValueResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredValueResultcurrency(String currency)Currency of a monetary amount.StoredValueResulteanUpc(Integer eanUpc)Standard product code of item purchased with the transaction.booleanequals(Object o)Return true if this StoredValueResult object is equal to o.static StoredValueResultfromJson(String jsonString)Create an instance of StoredValueResult given an JSON stringStringgetCurrency()Currency of a monetary amount.IntegergetEanUpc()Standard product code of item purchased with the transaction.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.TransactionIDTypegetHostTransactionID()Get hostTransactionIDBigDecimalgetItemAmount()Total amount of the item line. minimum: 0.0 maximum: 99999999.999999IntegergetProductCode()Product code of item purchased with the transaction.StoredValueAccountStatusgetStoredValueAccountStatus()Get storedValueAccountStatusStoredValueTransactionTypegetStoredValueTransactionType()Get storedValueTransactionTypeinthashCode()StoredValueResulthostTransactionID(TransactionIDType hostTransactionID)hostTransactionIDStoredValueResultincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.StoredValueResultitemAmount(BigDecimal itemAmount)Total amount of the item line.StoredValueResultproductCode(Integer productCode)Product code of item purchased with the transaction.voidsetCurrency(String currency)Currency of a monetary amount.voidsetEanUpc(Integer eanUpc)Standard product code of item purchased with the transaction.voidsetHostTransactionID(TransactionIDType hostTransactionID)hostTransactionIDvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetItemAmount(BigDecimal itemAmount)Total amount of the item line.voidsetProductCode(Integer productCode)Product code of item purchased with the transaction.voidsetStoredValueAccountStatus(StoredValueAccountStatus storedValueAccountStatus)storedValueAccountStatusvoidsetStoredValueTransactionType(StoredValueTransactionType storedValueTransactionType)storedValueTransactionTypeStoredValueResultstoredValueAccountStatus(StoredValueAccountStatus storedValueAccountStatus)storedValueAccountStatusStoredValueResultstoredValueTransactionType(StoredValueTransactionType storedValueTransactionType)storedValueTransactionTypeStringtoJson()Convert an instance of StoredValueResult to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_STORED_VALUE_TRANSACTION_TYPE
public static final String JSON_PROPERTY_STORED_VALUE_TRANSACTION_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRODUCT_CODE
public static final String JSON_PROPERTY_PRODUCT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EAN_UPC
public static final String JSON_PROPERTY_EAN_UPC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ITEM_AMOUNT
public static final String JSON_PROPERTY_ITEM_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_VALUE_ACCOUNT_STATUS
public static final String JSON_PROPERTY_STORED_VALUE_ACCOUNT_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOST_TRANSACTION_I_D
public static final String JSON_PROPERTY_HOST_TRANSACTION_I_D
- See Also:
- Constant Field Values
-
-
Method Detail
-
storedValueTransactionType
public StoredValueResult storedValueTransactionType(StoredValueTransactionType storedValueTransactionType)
storedValueTransactionType- Parameters:
storedValueTransactionType-- Returns:
- the current
StoredValueResultinstance, allowing for method chaining
-
getStoredValueTransactionType
public StoredValueTransactionType getStoredValueTransactionType()
Get storedValueTransactionType- Returns:
- storedValueTransactionType
-
setStoredValueTransactionType
public void setStoredValueTransactionType(StoredValueTransactionType storedValueTransactionType)
storedValueTransactionType- Parameters:
storedValueTransactionType-
-
productCode
public StoredValueResult productCode(Integer productCode)
Product code of item purchased with the transaction. Copy.- Parameters:
productCode- Product code of item purchased with the transaction. Copy.- Returns:
- the current
StoredValueResultinstance, allowing for method chaining
-
getProductCode
public Integer getProductCode()
Product code of item purchased with the transaction. Copy. minimum: 1 maximum: 20- Returns:
- productCode Product code of item purchased with the transaction. Copy.
-
setProductCode
public void setProductCode(Integer productCode)
Product code of item purchased with the transaction. Copy.- Parameters:
productCode- Product code of item purchased with the transaction. Copy.
-
eanUpc
public StoredValueResult eanUpc(Integer eanUpc)
Standard product code of item purchased with the transaction. Copy.- Parameters:
eanUpc- Standard product code of item purchased with the transaction. Copy.- Returns:
- the current
StoredValueResultinstance, allowing for method chaining
-
getEanUpc
public Integer getEanUpc()
Standard product code of item purchased with the transaction. Copy.- Returns:
- eanUpc Standard product code of item purchased with the transaction. Copy.
-
setEanUpc
public void setEanUpc(Integer eanUpc)
Standard product code of item purchased with the transaction. Copy.- Parameters:
eanUpc- Standard product code of item purchased with the transaction. Copy.
-
itemAmount
public StoredValueResult itemAmount(BigDecimal itemAmount)
Total amount of the item line.- Parameters:
itemAmount- Total amount of the item line.- Returns:
- the current
StoredValueResultinstance, allowing for method chaining
-
getItemAmount
public BigDecimal getItemAmount()
Total amount of the item line. minimum: 0.0 maximum: 99999999.999999- Returns:
- itemAmount Total amount of the item line.
-
setItemAmount
public void setItemAmount(BigDecimal itemAmount)
Total amount of the item line.- Parameters:
itemAmount- Total amount of the item line.
-
currency
public StoredValueResult currency(String currency)
Currency of a monetary amount. Copy.- Parameters:
currency- Currency of a monetary amount. Copy.- Returns:
- the current
StoredValueResultinstance, allowing for method chaining
-
getCurrency
public String getCurrency()
Currency of a monetary amount. Copy.- Returns:
- currency Currency of a monetary amount. Copy.
-
setCurrency
public void setCurrency(String currency)
Currency of a monetary amount. Copy.- Parameters:
currency- Currency of a monetary amount. Copy.
-
storedValueAccountStatus
public StoredValueResult storedValueAccountStatus(StoredValueAccountStatus storedValueAccountStatus)
storedValueAccountStatus- Parameters:
storedValueAccountStatus-- Returns:
- the current
StoredValueResultinstance, allowing for method chaining
-
getStoredValueAccountStatus
public StoredValueAccountStatus getStoredValueAccountStatus()
Get storedValueAccountStatus- Returns:
- storedValueAccountStatus
-
setStoredValueAccountStatus
public void setStoredValueAccountStatus(StoredValueAccountStatus storedValueAccountStatus)
storedValueAccountStatus- Parameters:
storedValueAccountStatus-
-
hostTransactionID
public StoredValueResult hostTransactionID(TransactionIDType hostTransactionID)
hostTransactionID- Parameters:
hostTransactionID-- Returns:
- the current
StoredValueResultinstance, allowing for method chaining
-
getHostTransactionID
public TransactionIDType getHostTransactionID()
Get hostTransactionID- Returns:
- hostTransactionID
-
setHostTransactionID
public void setHostTransactionID(TransactionIDType hostTransactionID)
hostTransactionID- Parameters:
hostTransactionID-
-
includeNullValues
public StoredValueResult includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this StoredValueResult object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static StoredValueResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoredValueResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredValueResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoredValueResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoredValueResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-