Package com.adyen.model.checkout
Class EncryptedOrderData
- java.lang.Object
-
- com.adyen.model.checkout.EncryptedOrderData
-
public class EncryptedOrderData extends Object
EncryptedOrderData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ORDER_DATAstatic StringJSON_PROPERTY_PSP_REFERENCE
-
Constructor Summary
Constructors Constructor Description EncryptedOrderData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this EncryptedOrderData object is equal to o.static EncryptedOrderDatafromJson(String jsonString)Create an instance of EncryptedOrderData given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetOrderData()The encrypted order data.StringgetPspReference()The `pspReference` that belongs to the order.inthashCode()EncryptedOrderDataincludeNullValues(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.EncryptedOrderDataorderData(String orderData)The encrypted order data.EncryptedOrderDatapspReference(String pspReference)The `pspReference` that belongs to the order.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetOrderData(String orderData)The encrypted order data.voidsetPspReference(String pspReference)The `pspReference` that belongs to the order.StringtoJson()Convert an instance of EncryptedOrderData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ORDER_DATA
public static final String JSON_PROPERTY_ORDER_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
orderData
public EncryptedOrderData orderData(String orderData)
The encrypted order data.- Parameters:
orderData- The encrypted order data.- Returns:
- the current
EncryptedOrderDatainstance, allowing for method chaining
-
getOrderData
public String getOrderData()
The encrypted order data.- Returns:
- orderData The encrypted order data.
-
setOrderData
public void setOrderData(String orderData)
The encrypted order data.- Parameters:
orderData- The encrypted order data.
-
pspReference
public EncryptedOrderData pspReference(String pspReference)
The `pspReference` that belongs to the order.- Parameters:
pspReference- The `pspReference` that belongs to the order.- Returns:
- the current
EncryptedOrderDatainstance, allowing for method chaining
-
getPspReference
public String getPspReference()
The `pspReference` that belongs to the order.- Returns:
- pspReference The `pspReference` that belongs to the order.
-
setPspReference
public void setPspReference(String pspReference)
The `pspReference` that belongs to the order.- Parameters:
pspReference- The `pspReference` that belongs to the order.
-
includeNullValues
public EncryptedOrderData 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 EncryptedOrderData 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 EncryptedOrderData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of EncryptedOrderData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EncryptedOrderData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to EncryptedOrderData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of EncryptedOrderData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-