Package com.adyen.model.checkout
Class CheckoutQrCodeAction
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutQrCodeAction
-
public class CheckoutQrCodeAction extends Object
CheckoutQrCodeAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutQrCodeAction.CustomTypeAdapterFactorystatic classCheckoutQrCodeAction.TypeEnum**qrCode**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_EXPIRES_ATstatic StringSERIALIZED_NAME_PAYMENT_DATAstatic StringSERIALIZED_NAME_PAYMENT_METHOD_TYPEstatic StringSERIALIZED_NAME_QR_CODE_DATAstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description CheckoutQrCodeAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CheckoutQrCodeActionexpiresAt(String expiresAt)static CheckoutQrCodeActionfromJson(String jsonString)Create an instance of CheckoutQrCodeAction given an JSON stringStringgetExpiresAt()Expiry time of the QR code.StringgetPaymentData()A value that must be submitted to the `/payments/details` endpoint to verify this payment.StringgetPaymentMethodType()Specifies the payment method.StringgetQrCodeData()The contents of the QR code as a UTF8 string.CheckoutQrCodeAction.TypeEnumgetType()**qrCode**StringgetUrl()Specifies the URL to redirect to.inthashCode()CheckoutQrCodeActionpaymentData(String paymentData)CheckoutQrCodeActionpaymentMethodType(String paymentMethodType)CheckoutQrCodeActionqrCodeData(String qrCodeData)voidsetExpiresAt(String expiresAt)voidsetPaymentData(String paymentData)voidsetPaymentMethodType(String paymentMethodType)voidsetQrCodeData(String qrCodeData)voidsetType(CheckoutQrCodeAction.TypeEnum type)voidsetUrl(String url)StringtoJson()Convert an instance of CheckoutQrCodeAction to an JSON stringStringtoString()CheckoutQrCodeActiontype(CheckoutQrCodeAction.TypeEnum type)CheckoutQrCodeActionurl(String url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_EXPIRES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_DATA
public static final String SERIALIZED_NAME_PAYMENT_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_METHOD_TYPE
public static final String SERIALIZED_NAME_PAYMENT_METHOD_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_QR_CODE_DATA
public static final String SERIALIZED_NAME_QR_CODE_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
expiresAt
public CheckoutQrCodeAction expiresAt(String expiresAt)
-
getExpiresAt
public String getExpiresAt()
Expiry time of the QR code.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(String expiresAt)
-
paymentData
public CheckoutQrCodeAction paymentData(String paymentData)
-
getPaymentData
public String getPaymentData()
A value that must be submitted to the `/payments/details` endpoint to verify this payment.- Returns:
- paymentData
-
setPaymentData
public void setPaymentData(String paymentData)
-
paymentMethodType
public CheckoutQrCodeAction paymentMethodType(String paymentMethodType)
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
-
qrCodeData
public CheckoutQrCodeAction qrCodeData(String qrCodeData)
-
getQrCodeData
public String getQrCodeData()
The contents of the QR code as a UTF8 string.- Returns:
- qrCodeData
-
setQrCodeData
public void setQrCodeData(String qrCodeData)
-
type
public CheckoutQrCodeAction type(CheckoutQrCodeAction.TypeEnum type)
-
getType
public CheckoutQrCodeAction.TypeEnum getType()
**qrCode**- Returns:
- type
-
setType
public void setType(CheckoutQrCodeAction.TypeEnum type)
-
url
public CheckoutQrCodeAction url(String url)
-
getUrl
public String getUrl()
Specifies the URL to redirect to.- Returns:
- url
-
setUrl
public void setUrl(String url)
-
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 CheckoutQrCodeAction
-
fromJson
public static CheckoutQrCodeAction fromJson(String jsonString) throws IOException
Create an instance of CheckoutQrCodeAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutQrCodeAction
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutQrCodeAction
-
toJson
public String toJson()
Convert an instance of CheckoutQrCodeAction to an JSON string- Returns:
- JSON string
-
-