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.TypeEnum**voucher**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALTERNATIVE_REFERENCEstatic StringJSON_PROPERTY_COLLECTION_INSTITUTION_NUMBERstatic StringJSON_PROPERTY_DOWNLOAD_URLstatic StringJSON_PROPERTY_ENTITYstatic StringJSON_PROPERTY_EXPIRES_ATstatic StringJSON_PROPERTY_INITIAL_AMOUNTstatic StringJSON_PROPERTY_INSTRUCTIONS_URLstatic StringJSON_PROPERTY_ISSUERstatic StringJSON_PROPERTY_MASKED_TELEPHONE_NUMBERstatic StringJSON_PROPERTY_MERCHANT_NAMEstatic StringJSON_PROPERTY_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_PASS_CREATION_TOKENstatic StringJSON_PROPERTY_PAYMENT_DATAstatic StringJSON_PROPERTY_PAYMENT_METHOD_TYPEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_SHOPPER_NAMEstatic StringJSON_PROPERTY_SURCHARGEstatic StringJSON_PROPERTY_TOTAL_AMOUNTstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_URL
-
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)Return true if this CheckoutVoucherAction object is equal to 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.StringgetPassCreationToken()A base64 encoded signature of all propertiesStringgetPaymentData()Encoded payment data.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)CheckoutVoucherActionpassCreationToken(String passCreationToken)CheckoutVoucherActionpaymentData(String paymentData)CheckoutVoucherActionpaymentMethodType(String paymentMethodType)CheckoutVoucherActionreference(String reference)voidsetAlternativeReference(String alternativeReference)The voucher alternative reference code.voidsetCollectionInstitutionNumber(String collectionInstitutionNumber)A collection institution number (store number) for Econtext Pay-Easy ATM.voidsetDownloadUrl(String downloadUrl)The URL to download the voucher.voidsetEntity(String entity)An entity number of Multibanco.voidsetExpiresAt(String expiresAt)The date time of the voucher expiry.voidsetInitialAmount(Amount initialAmount)initialAmountvoidsetInstructionsUrl(String instructionsUrl)The URL to the detailed instructions to make payment using the voucher.voidsetIssuer(String issuer)The issuer of the voucher.voidsetMaskedTelephoneNumber(String maskedTelephoneNumber)The shopper telephone number (partially masked).voidsetMerchantName(String merchantName)The merchant name.voidsetMerchantReference(String merchantReference)The merchant reference.voidsetPassCreationToken(String passCreationToken)A base64 encoded signature of all propertiesvoidsetPaymentData(String paymentData)Encoded payment data.voidsetPaymentMethodType(String paymentMethodType)Specifies the payment method.voidsetReference(String reference)The voucher reference code.voidsetShopperEmail(String shopperEmail)The shopper email.voidsetShopperName(String shopperName)The shopper name.voidsetSurcharge(Amount surcharge)surchargevoidsetTotalAmount(Amount totalAmount)totalAmountvoidsetType(CheckoutVoucherAction.TypeEnum type)**voucher**voidsetUrl(String url)Specifies the URL to redirect to.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)
-
-
-
Field Detail
-
JSON_PROPERTY_ALTERNATIVE_REFERENCE
public static final String JSON_PROPERTY_ALTERNATIVE_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER
public static final String JSON_PROPERTY_COLLECTION_INSTITUTION_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOWNLOAD_URL
public static final String JSON_PROPERTY_DOWNLOAD_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENTITY
public static final String JSON_PROPERTY_ENTITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRES_AT
public static final String JSON_PROPERTY_EXPIRES_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INITIAL_AMOUNT
public static final String JSON_PROPERTY_INITIAL_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTRUCTIONS_URL
public static final String JSON_PROPERTY_INSTRUCTIONS_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUER
public static final String JSON_PROPERTY_ISSUER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MASKED_TELEPHONE_NUMBER
public static final String JSON_PROPERTY_MASKED_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_NAME
public static final String JSON_PROPERTY_MERCHANT_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASS_CREATION_TOKEN
public static final String JSON_PROPERTY_PASS_CREATION_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_DATA
public static final String JSON_PROPERTY_PAYMENT_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_METHOD_TYPE
public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_EMAIL
public static final String JSON_PROPERTY_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_NAME
public static final String JSON_PROPERTY_SHOPPER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SURCHARGE
public static final String JSON_PROPERTY_SURCHARGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL_AMOUNT
public static final String JSON_PROPERTY_TOTAL_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_URL
public static final String JSON_PROPERTY_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)
The voucher alternative reference code.- Parameters:
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)
A collection institution number (store number) for Econtext Pay-Easy ATM.- Parameters:
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)
The URL to download the voucher.- Parameters:
downloadUrl-
-
entity
public CheckoutVoucherAction entity(String entity)
-
getEntity
public String getEntity()
An entity number of Multibanco.- Returns:
- entity
-
setEntity
public void setEntity(String entity)
An entity number of Multibanco.- Parameters:
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)
The date time of the voucher expiry.- Parameters:
expiresAt-
-
initialAmount
public CheckoutVoucherAction initialAmount(Amount initialAmount)
-
getInitialAmount
public Amount getInitialAmount()
Get initialAmount- Returns:
- initialAmount
-
setInitialAmount
public void setInitialAmount(Amount initialAmount)
initialAmount- Parameters:
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)
The URL to the detailed instructions to make payment using the voucher.- Parameters:
instructionsUrl-
-
issuer
public CheckoutVoucherAction issuer(String issuer)
-
getIssuer
public String getIssuer()
The issuer of the voucher.- Returns:
- issuer
-
setIssuer
public void setIssuer(String issuer)
The issuer of the voucher.- Parameters:
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)
The shopper telephone number (partially masked).- Parameters:
maskedTelephoneNumber-
-
merchantName
public CheckoutVoucherAction merchantName(String merchantName)
-
getMerchantName
public String getMerchantName()
The merchant name.- Returns:
- merchantName
-
setMerchantName
public void setMerchantName(String merchantName)
The merchant name.- Parameters:
merchantName-
-
merchantReference
public CheckoutVoucherAction merchantReference(String merchantReference)
-
getMerchantReference
public String getMerchantReference()
The merchant reference.- Returns:
- merchantReference
-
setMerchantReference
public void setMerchantReference(String merchantReference)
The merchant reference.- Parameters:
merchantReference-
-
passCreationToken
public CheckoutVoucherAction passCreationToken(String passCreationToken)
-
getPassCreationToken
public String getPassCreationToken()
A base64 encoded signature of all properties- Returns:
- passCreationToken
-
setPassCreationToken
public void setPassCreationToken(String passCreationToken)
A base64 encoded signature of all properties- Parameters:
passCreationToken-
-
paymentData
public CheckoutVoucherAction paymentData(String paymentData)
-
getPaymentData
public String getPaymentData()
Encoded payment data.- Returns:
- paymentData
-
setPaymentData
public void setPaymentData(String paymentData)
Encoded payment data.- Parameters:
paymentData-
-
paymentMethodType
public CheckoutVoucherAction paymentMethodType(String paymentMethodType)
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
Specifies the payment method.- Parameters:
paymentMethodType-
-
reference
public CheckoutVoucherAction reference(String reference)
-
getReference
public String getReference()
The voucher reference code.- Returns:
- reference
-
setReference
public void setReference(String reference)
The voucher reference code.- Parameters:
reference-
-
shopperEmail
public CheckoutVoucherAction shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper email.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
The shopper email.- Parameters:
shopperEmail-
-
shopperName
public CheckoutVoucherAction shopperName(String shopperName)
-
getShopperName
public String getShopperName()
The shopper name.- Returns:
- shopperName
-
setShopperName
public void setShopperName(String shopperName)
The shopper name.- Parameters:
shopperName-
-
surcharge
public CheckoutVoucherAction surcharge(Amount surcharge)
-
getSurcharge
public Amount getSurcharge()
Get surcharge- Returns:
- surcharge
-
setSurcharge
public void setSurcharge(Amount surcharge)
surcharge- Parameters:
surcharge-
-
totalAmount
public CheckoutVoucherAction totalAmount(Amount totalAmount)
-
getTotalAmount
public Amount getTotalAmount()
Get totalAmount- Returns:
- totalAmount
-
setTotalAmount
public void setTotalAmount(Amount totalAmount)
totalAmount- Parameters:
totalAmount-
-
type
public CheckoutVoucherAction type(CheckoutVoucherAction.TypeEnum type)
-
getType
public CheckoutVoucherAction.TypeEnum getType()
**voucher**- Returns:
- type
-
setType
public void setType(CheckoutVoucherAction.TypeEnum type)
**voucher**- Parameters:
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)
Specifies the URL to redirect to.- Parameters:
url-
-
equals
public boolean equals(Object o)
Return true if this CheckoutVoucherAction object is equal to o.
-
fromJson
public static CheckoutVoucherAction fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutVoucherAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutVoucherAction
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutVoucherAction
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutVoucherAction to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-