Package com.adyen.model.checkout
Class CheckoutOrder
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutOrder
-
public class CheckoutOrder extends Object
CheckoutOrder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutOrder.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ORDER_DATAstatic StringSERIALIZED_NAME_PSP_REFERENCE
-
Constructor Summary
Constructors Constructor Description CheckoutOrder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CheckoutOrderfromJson(String jsonString)Create an instance of CheckoutOrder given an JSON stringStringgetOrderData()The encrypted order data.StringgetPspReference()The `pspReference` that belongs to the order.inthashCode()CheckoutOrderorderData(String orderData)CheckoutOrderpspReference(String pspReference)voidsetOrderData(String orderData)voidsetPspReference(String pspReference)StringtoJson()Convert an instance of CheckoutOrder to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ORDER_DATA
public static final String SERIALIZED_NAME_ORDER_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PSP_REFERENCE
public static final String SERIALIZED_NAME_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
orderData
public CheckoutOrder orderData(String orderData)
-
getOrderData
public String getOrderData()
The encrypted order data.- Returns:
- orderData
-
setOrderData
public void setOrderData(String orderData)
-
pspReference
public CheckoutOrder pspReference(String pspReference)
-
getPspReference
public String getPspReference()
The `pspReference` that belongs to the order.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CheckoutOrder
-
fromJson
public static CheckoutOrder fromJson(String jsonString) throws IOException
Create an instance of CheckoutOrder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutOrder
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutOrder
-
toJson
public String toJson()
Convert an instance of CheckoutOrder to an JSON string- Returns:
- JSON string
-
-