Package com.adyen.model.checkout
Class CheckoutVoucherAction
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutVoucherAction
-
public class CheckoutVoucherAction extends Object
CheckoutVoucherAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutVoucherAction.CustomTypeAdapterFactorystatic classCheckoutVoucherAction.TypeEnum**voucher**
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CheckoutVoucherAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutVoucherActionalternativeReference(String alternativeReference)CheckoutVoucherActioncollectionInstitutionNumber(String collectionInstitutionNumber)CheckoutVoucherActiondownloadUrl(String downloadUrl)CheckoutVoucherActionentity(String entity)booleanequals(Object o)CheckoutVoucherActionexpiresAt(String expiresAt)static CheckoutVoucherActionfromJson(String jsonString)Create an instance of CheckoutVoucherAction given an JSON stringStringgetAlternativeReference()The voucher alternative reference code.StringgetCollectionInstitutionNumber()A collection institution number (store number) for Econtext Pay-Easy ATM.StringgetDownloadUrl()The URL to download the voucher.StringgetEntity()An entity number of Multibanco.StringgetExpiresAt()The date time of the voucher expiry.AmountgetInitialAmount()Get initialAmountStringgetInstructionsUrl()The URL to the detailed instructions to make payment using the voucher.StringgetIssuer()The issuer of the voucher.StringgetMaskedTelephoneNumber()The shopper telephone number (partially masked).StringgetMerchantName()The merchant name.StringgetMerchantReference()The merchant reference.StringgetPaymentData()A value that must be submitted to the `/payments/details` endpoint to verify this payment.StringgetPaymentMethodType()Specifies the payment method.StringgetReference()The voucher reference code.StringgetShopperEmail()The shopper email.StringgetShopperName()The shopper name.AmountgetSurcharge()Get surchargeAmountgetTotalAmount()Get totalAmountCheckoutVoucherAction.TypeEnumgetType()**voucher**StringgetUrl()Specifies the URL to redirect to.inthashCode()CheckoutVoucherActioninitialAmount(Amount initialAmount)CheckoutVoucherActioninstructionsUrl(String instructionsUrl)CheckoutVoucherActionissuer(String issuer)CheckoutVoucherActionmaskedTelephoneNumber(String maskedTelephoneNumber)CheckoutVoucherActionmerchantName(String merchantName)CheckoutVoucherActionmerchantReference(String merchantReference)CheckoutVoucherActionpaymentData(String paymentData)CheckoutVoucherActionpaymentMethodType(String paymentMethodType)CheckoutVoucherActionreference(String reference)voidsetAlternativeReference(String alternativeReference)voidsetCollectionInstitutionNumber(String collectionInstitutionNumber)voidsetDownloadUrl(String downloadUrl)voidsetEntity(String entity)voidsetExpiresAt(String expiresAt)voidsetInitialAmount(Amount initialAmount)voidsetInstructionsUrl(String instructionsUrl)voidsetIssuer(String issuer)voidsetMaskedTelephoneNumber(String maskedTelephoneNumber)voidsetMerchantName(String merchantName)voidsetMerchantReference(String merchantReference)voidsetPaymentData(String paymentData)voidsetPaymentMethodType(String paymentMethodType)voidsetReference(String reference)voidsetShopperEmail(String shopperEmail)voidsetShopperName(String shopperName)voidsetSurcharge(Amount surcharge)voidsetTotalAmount(Amount totalAmount)voidsetType(CheckoutVoucherAction.TypeEnum type)voidsetUrl(String url)CheckoutVoucherActionshopperEmail(String shopperEmail)CheckoutVoucherActionshopperName(String shopperName)CheckoutVoucherActionsurcharge(Amount surcharge)StringtoJson()Convert an instance of CheckoutVoucherAction to an JSON stringStringtoString()CheckoutVoucherActiontotalAmount(Amount totalAmount)CheckoutVoucherActiontype(CheckoutVoucherAction.TypeEnum type)CheckoutVoucherActionurl(String url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ALTERNATIVE_REFERENCE
public static final String SERIALIZED_NAME_ALTERNATIVE_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COLLECTION_INSTITUTION_NUMBER
public static final String SERIALIZED_NAME_COLLECTION_INSTITUTION_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOWNLOAD_URL
public static final String SERIALIZED_NAME_DOWNLOAD_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENTITY
public static final String SERIALIZED_NAME_ENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_EXPIRES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INITIAL_AMOUNT
public static final String SERIALIZED_NAME_INITIAL_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTRUCTIONS_URL
public static final String SERIALIZED_NAME_INSTRUCTIONS_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUER
public static final String SERIALIZED_NAME_ISSUER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MASKED_TELEPHONE_NUMBER
public static final String SERIALIZED_NAME_MASKED_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_NAME
public static final String SERIALIZED_NAME_MERCHANT_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_REFERENCE
public static final String SERIALIZED_NAME_MERCHANT_REFERENCE
- 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_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_EMAIL
public static final String SERIALIZED_NAME_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_NAME
public static final String SERIALIZED_NAME_SHOPPER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SURCHARGE
public static final String SERIALIZED_NAME_SURCHARGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTAL_AMOUNT
public static final String SERIALIZED_NAME_TOTAL_AMOUNT
- 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
-
alternativeReference
public CheckoutVoucherAction alternativeReference(String alternativeReference)
-
getAlternativeReference
public String getAlternativeReference()
The voucher alternative reference code.- Returns:
- alternativeReference
-
setAlternativeReference
public void setAlternativeReference(String alternativeReference)
-
collectionInstitutionNumber
public CheckoutVoucherAction collectionInstitutionNumber(String collectionInstitutionNumber)
-
getCollectionInstitutionNumber
public String getCollectionInstitutionNumber()
A collection institution number (store number) for Econtext Pay-Easy ATM.- Returns:
- collectionInstitutionNumber
-
setCollectionInstitutionNumber
public void setCollectionInstitutionNumber(String collectionInstitutionNumber)
-
downloadUrl
public CheckoutVoucherAction downloadUrl(String downloadUrl)
-
getDownloadUrl
public String getDownloadUrl()
The URL to download the voucher.- Returns:
- downloadUrl
-
setDownloadUrl
public void setDownloadUrl(String downloadUrl)
-
entity
public CheckoutVoucherAction entity(String entity)
-
getEntity
public String getEntity()
An entity number of Multibanco.- Returns:
- entity
-
setEntity
public void setEntity(String entity)
-
expiresAt
public CheckoutVoucherAction expiresAt(String expiresAt)
-
getExpiresAt
public String getExpiresAt()
The date time of the voucher expiry.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(String expiresAt)
-
initialAmount
public CheckoutVoucherAction initialAmount(Amount initialAmount)
-
getInitialAmount
public Amount getInitialAmount()
Get initialAmount- Returns:
- initialAmount
-
setInitialAmount
public void setInitialAmount(Amount initialAmount)
-
instructionsUrl
public CheckoutVoucherAction instructionsUrl(String instructionsUrl)
-
getInstructionsUrl
public String getInstructionsUrl()
The URL to the detailed instructions to make payment using the voucher.- Returns:
- instructionsUrl
-
setInstructionsUrl
public void setInstructionsUrl(String instructionsUrl)
-
issuer
public CheckoutVoucherAction issuer(String issuer)
-
getIssuer
public String getIssuer()
The issuer of the voucher.- Returns:
- issuer
-
setIssuer
public void setIssuer(String issuer)
-
maskedTelephoneNumber
public CheckoutVoucherAction maskedTelephoneNumber(String maskedTelephoneNumber)
-
getMaskedTelephoneNumber
public String getMaskedTelephoneNumber()
The shopper telephone number (partially masked).- Returns:
- maskedTelephoneNumber
-
setMaskedTelephoneNumber
public void setMaskedTelephoneNumber(String maskedTelephoneNumber)
-
merchantName
public CheckoutVoucherAction merchantName(String merchantName)
-
getMerchantName
public String getMerchantName()
The merchant name.- Returns:
- merchantName
-
setMerchantName
public void setMerchantName(String merchantName)
-
merchantReference
public CheckoutVoucherAction merchantReference(String merchantReference)
-
getMerchantReference
public String getMerchantReference()
The merchant reference.- Returns:
- merchantReference
-
setMerchantReference
public void setMerchantReference(String merchantReference)
-
paymentData
public CheckoutVoucherAction 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 CheckoutVoucherAction paymentMethodType(String paymentMethodType)
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
-
reference
public CheckoutVoucherAction reference(String reference)
-
getReference
public String getReference()
The voucher reference code.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
shopperEmail
public CheckoutVoucherAction shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper email.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
shopperName
public CheckoutVoucherAction shopperName(String shopperName)
-
getShopperName
public String getShopperName()
The shopper name.- Returns:
- shopperName
-
setShopperName
public void setShopperName(String shopperName)
-
surcharge
public CheckoutVoucherAction surcharge(Amount surcharge)
-
getSurcharge
public Amount getSurcharge()
Get surcharge- Returns:
- surcharge
-
setSurcharge
public void setSurcharge(Amount surcharge)
-
totalAmount
public CheckoutVoucherAction totalAmount(Amount totalAmount)
-
getTotalAmount
public Amount getTotalAmount()
Get totalAmount- Returns:
- totalAmount
-
setTotalAmount
public void setTotalAmount(Amount totalAmount)
-
type
public CheckoutVoucherAction type(CheckoutVoucherAction.TypeEnum type)
-
getType
public CheckoutVoucherAction.TypeEnum getType()
**voucher**- Returns:
- type
-
setType
public void setType(CheckoutVoucherAction.TypeEnum type)
-
url
public CheckoutVoucherAction 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 CheckoutVoucherAction
-
fromJson
public static CheckoutVoucherAction fromJson(String jsonString) throws IOException
Create an instance of CheckoutVoucherAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutVoucherAction
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutVoucherAction
-
toJson
public String toJson()
Convert an instance of CheckoutVoucherAction to an JSON string- Returns:
- JSON string
-
-