Package com.adyen.model.checkout
Class CancelOrderRequest
- java.lang.Object
-
- com.adyen.model.checkout.CancelOrderRequest
-
public class CancelOrderRequest extends Object
CancelOrderRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_ORDER
-
Constructor Summary
Constructors Constructor Description CancelOrderRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this CancelOrderRequest object is equal to o.static CancelOrderRequestfromJson(String jsonString)Create an instance of CancelOrderRequest given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantAccount()The merchant account identifier that orderData belongs to.EncryptedOrderDatagetOrder()Get orderinthashCode()CancelOrderRequestincludeNullValues(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.CancelOrderRequestmerchantAccount(String merchantAccount)The merchant account identifier that orderData belongs to.CancelOrderRequestorder(EncryptedOrderData order)ordervoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccount(String merchantAccount)The merchant account identifier that orderData belongs to.voidsetOrder(EncryptedOrderData order)orderStringtoJson()Convert an instance of CancelOrderRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORDER
public static final String JSON_PROPERTY_ORDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public CancelOrderRequest merchantAccount(String merchantAccount)
The merchant account identifier that orderData belongs to.- Parameters:
merchantAccount- The merchant account identifier that orderData belongs to.- Returns:
- the current
CancelOrderRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier that orderData belongs to.- Returns:
- merchantAccount The merchant account identifier that orderData belongs to.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account identifier that orderData belongs to.- Parameters:
merchantAccount- The merchant account identifier that orderData belongs to.
-
order
public CancelOrderRequest order(EncryptedOrderData order)
order- Parameters:
order-- Returns:
- the current
CancelOrderRequestinstance, allowing for method chaining
-
getOrder
public EncryptedOrderData getOrder()
Get order- Returns:
- order
-
setOrder
public void setOrder(EncryptedOrderData order)
order- Parameters:
order-
-
includeNullValues
public CancelOrderRequest 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 CancelOrderRequest 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 CancelOrderRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CancelOrderRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CancelOrderRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CancelOrderRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CancelOrderRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-