Package com.adyen.model.checkout
Class CheckoutOrderResponse
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutOrderResponse
-
public class CheckoutOrderResponse extends Object
CheckoutOrderResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutOrderResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_EXPIRES_ATstatic StringSERIALIZED_NAME_ORDER_DATAstatic StringSERIALIZED_NAME_PSP_REFERENCEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_REMAINING_AMOUNT
-
Constructor Summary
Constructors Constructor Description CheckoutOrderResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutOrderResponseamount(Amount amount)booleanequals(Object o)CheckoutOrderResponseexpiresAt(String expiresAt)static CheckoutOrderResponsefromJson(String jsonString)Create an instance of CheckoutOrderResponse given an JSON stringAmountgetAmount()Get amountStringgetExpiresAt()The expiry date for the order.StringgetOrderData()The encrypted order data.StringgetPspReference()The `pspReference` that belongs to the order.StringgetReference()The merchant reference for the order.AmountgetRemainingAmount()Get remainingAmountinthashCode()CheckoutOrderResponseorderData(String orderData)CheckoutOrderResponsepspReference(String pspReference)CheckoutOrderResponsereference(String reference)CheckoutOrderResponseremainingAmount(Amount remainingAmount)voidsetAmount(Amount amount)voidsetExpiresAt(String expiresAt)voidsetOrderData(String orderData)voidsetPspReference(String pspReference)voidsetReference(String reference)voidsetRemainingAmount(Amount remainingAmount)StringtoJson()Convert an instance of CheckoutOrderResponse 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_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_EXPIRES_AT
- See Also:
- Constant Field Values
-
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
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REMAINING_AMOUNT
public static final String SERIALIZED_NAME_REMAINING_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CheckoutOrderResponse amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
expiresAt
public CheckoutOrderResponse expiresAt(String expiresAt)
-
getExpiresAt
public String getExpiresAt()
The expiry date for the order.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(String expiresAt)
-
orderData
public CheckoutOrderResponse orderData(String orderData)
-
getOrderData
public String getOrderData()
The encrypted order data.- Returns:
- orderData
-
setOrderData
public void setOrderData(String orderData)
-
pspReference
public CheckoutOrderResponse pspReference(String pspReference)
-
getPspReference
public String getPspReference()
The `pspReference` that belongs to the order.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
reference
public CheckoutOrderResponse reference(String reference)
-
getReference
public String getReference()
The merchant reference for the order.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
remainingAmount
public CheckoutOrderResponse remainingAmount(Amount remainingAmount)
-
getRemainingAmount
public Amount getRemainingAmount()
Get remainingAmount- Returns:
- remainingAmount
-
setRemainingAmount
public void setRemainingAmount(Amount remainingAmount)
-
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 CheckoutOrderResponse
-
fromJson
public static CheckoutOrderResponse fromJson(String jsonString) throws IOException
Create an instance of CheckoutOrderResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutOrderResponse
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutOrderResponse
-
toJson
public String toJson()
Convert an instance of CheckoutOrderResponse to an JSON string- Returns:
- JSON string
-
-