Package com.adyen.model.checkout
Class CheckoutOrderResponse
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutOrderResponse
-
public class CheckoutOrderResponse extends Object
CheckoutOrderResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_EXPIRES_ATstatic StringJSON_PROPERTY_ORDER_DATAstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_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)amountbooleanequals(Object o)Return true if this CheckoutOrderResponse object is equal to o.CheckoutOrderResponseexpiresAt(String expiresAt)The expiry date for the order.static CheckoutOrderResponsefromJson(String jsonString)Create an instance of CheckoutOrderResponse given an JSON stringAmountgetAmount()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()remainingAmountinthashCode()CheckoutOrderResponseorderData(String orderData)The encrypted order data.CheckoutOrderResponsepspReference(String pspReference)The `pspReference` that belongs to the order.CheckoutOrderResponsereference(String reference)The merchant reference for the order.CheckoutOrderResponseremainingAmount(Amount remainingAmount)remainingAmountvoidsetAmount(Amount amount)amountvoidsetExpiresAt(String expiresAt)The expiry date for the order.voidsetOrderData(String orderData)The encrypted order data.voidsetPspReference(String pspReference)The `pspReference` that belongs to the order.voidsetReference(String reference)The merchant reference for the order.voidsetRemainingAmount(Amount remainingAmount)remainingAmountStringtoJson()Convert an instance of CheckoutOrderResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRES_AT
public static final String JSON_PROPERTY_EXPIRES_AT
- See Also:
- Constant Field Values
-
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
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REMAINING_AMOUNT
public static final String JSON_PROPERTY_REMAINING_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CheckoutOrderResponse amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
CheckoutOrderResponseinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
expiresAt
public CheckoutOrderResponse expiresAt(String expiresAt)
The expiry date for the order.- Parameters:
expiresAt-- Returns:
- the current
CheckoutOrderResponseinstance, allowing for method chaining
-
getExpiresAt
public String getExpiresAt()
The expiry date for the order.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(String expiresAt)
The expiry date for the order.- Parameters:
expiresAt-
-
orderData
public CheckoutOrderResponse orderData(String orderData)
The encrypted order data.- Parameters:
orderData-- Returns:
- the current
CheckoutOrderResponseinstance, allowing for method chaining
-
getOrderData
public String getOrderData()
The encrypted order data.- Returns:
- orderData
-
setOrderData
public void setOrderData(String orderData)
The encrypted order data.- Parameters:
orderData-
-
pspReference
public CheckoutOrderResponse pspReference(String pspReference)
The `pspReference` that belongs to the order.- Parameters:
pspReference-- Returns:
- the current
CheckoutOrderResponseinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
The `pspReference` that belongs to the order.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
The `pspReference` that belongs to the order.- Parameters:
pspReference-
-
reference
public CheckoutOrderResponse reference(String reference)
The merchant reference for the order.- Parameters:
reference-- Returns:
- the current
CheckoutOrderResponseinstance, allowing for method chaining
-
getReference
public String getReference()
The merchant reference for the order.- Returns:
- reference
-
setReference
public void setReference(String reference)
The merchant reference for the order.- Parameters:
reference-
-
remainingAmount
public CheckoutOrderResponse remainingAmount(Amount remainingAmount)
remainingAmount- Parameters:
remainingAmount-- Returns:
- the current
CheckoutOrderResponseinstance, allowing for method chaining
-
getRemainingAmount
public Amount getRemainingAmount()
remainingAmount- Returns:
- remainingAmount
-
setRemainingAmount
public void setRemainingAmount(Amount remainingAmount)
remainingAmount- Parameters:
remainingAmount-
-
equals
public boolean equals(Object o)
Return true if this CheckoutOrderResponse object is equal to o.
-
fromJson
public static CheckoutOrderResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutOrderResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutOrderResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutOrderResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutOrderResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-