Package com.adyen.model.checkout
Class CheckoutCreateOrderRequest
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutCreateOrderRequest
-
public class CheckoutCreateOrderRequest extends Object
CheckoutCreateOrderRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutCreateOrderRequest.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_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_REFERENCE
-
Constructor Summary
Constructors Constructor Description CheckoutCreateOrderRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutCreateOrderRequestamount(Amount amount)booleanequals(Object o)CheckoutCreateOrderRequestexpiresAt(String expiresAt)static CheckoutCreateOrderRequestfromJson(String jsonString)Create an instance of CheckoutCreateOrderRequest given an JSON stringAmountgetAmount()Get amountStringgetExpiresAt()The date that order expires; e.g.StringgetMerchantAccount()The merchant account identifier, with which you want to process the order.StringgetReference()A custom reference identifying the order.inthashCode()CheckoutCreateOrderRequestmerchantAccount(String merchantAccount)CheckoutCreateOrderRequestreference(String reference)voidsetAmount(Amount amount)voidsetExpiresAt(String expiresAt)voidsetMerchantAccount(String merchantAccount)voidsetReference(String reference)StringtoJson()Convert an instance of CheckoutCreateOrderRequest 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_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CheckoutCreateOrderRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
expiresAt
public CheckoutCreateOrderRequest expiresAt(String expiresAt)
-
getExpiresAt
public String getExpiresAt()
The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(String expiresAt)
-
merchantAccount
public CheckoutCreateOrderRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the order.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
reference
public CheckoutCreateOrderRequest reference(String reference)
-
getReference
public String getReference()
A custom reference identifying the order.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
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 CheckoutCreateOrderRequest
-
fromJson
public static CheckoutCreateOrderRequest fromJson(String jsonString) throws IOException
Create an instance of CheckoutCreateOrderRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutCreateOrderRequest
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutCreateOrderRequest
-
toJson
public String toJson()
Convert an instance of CheckoutCreateOrderRequest to an JSON string- Returns:
- JSON string
-
-