Class CheckoutVoucherAction


  • public class CheckoutVoucherAction
    extends Object
    CheckoutVoucherAction
    • Constructor Detail

      • CheckoutVoucherAction

        public CheckoutVoucherAction()
    • Method Detail

      • getAlternativeReference

        public String getAlternativeReference()
        The voucher alternative reference code.
        Returns:
        alternativeReference
      • setAlternativeReference

        public void setAlternativeReference​(String alternativeReference)
        The voucher alternative reference code.
        Parameters:
        alternativeReference -
      • 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 -
      • 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 -
      • getEntity

        public String getEntity()
        An entity number of Multibanco.
        Returns:
        entity
      • setEntity

        public void setEntity​(String entity)
        An entity number of Multibanco.
        Parameters:
        entity -
      • 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 -
      • getInitialAmount

        public Amount getInitialAmount()
        Get initialAmount
        Returns:
        initialAmount
      • setInitialAmount

        public void setInitialAmount​(Amount initialAmount)
        initialAmount
        Parameters:
        initialAmount -
      • 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 -
      • getIssuer

        public String getIssuer()
        The issuer of the voucher.
        Returns:
        issuer
      • setIssuer

        public void setIssuer​(String issuer)
        The issuer of the voucher.
        Parameters:
        issuer -
      • 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 -
      • getMerchantName

        public String getMerchantName()
        The merchant name.
        Returns:
        merchantName
      • setMerchantName

        public void setMerchantName​(String merchantName)
        The merchant name.
        Parameters:
        merchantName -
      • getMerchantReference

        public String getMerchantReference()
        The merchant reference.
        Returns:
        merchantReference
      • setMerchantReference

        public void setMerchantReference​(String merchantReference)
        The merchant reference.
        Parameters:
        merchantReference -
      • getPassCreationToken

        public String getPassCreationToken()
        A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet.
        Returns:
        passCreationToken
      • setPassCreationToken

        public void setPassCreationToken​(String passCreationToken)
        A Base64-encoded token containing all properties of the voucher. For iOS, you can use this to pass a voucher to Apple Wallet.
        Parameters:
        passCreationToken -
      • getPaymentData

        public String getPaymentData()
        Encoded payment data.
        Returns:
        paymentData
      • setPaymentData

        public void setPaymentData​(String paymentData)
        Encoded payment data.
        Parameters:
        paymentData -
      • getPaymentMethodType

        public String getPaymentMethodType()
        Specifies the payment method.
        Returns:
        paymentMethodType
      • setPaymentMethodType

        public void setPaymentMethodType​(String paymentMethodType)
        Specifies the payment method.
        Parameters:
        paymentMethodType -
      • getReference

        public String getReference()
        The voucher reference code.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
        The voucher reference code.
        Parameters:
        reference -
      • getShopperEmail

        public String getShopperEmail()
        The shopper email.
        Returns:
        shopperEmail
      • setShopperEmail

        public void setShopperEmail​(String shopperEmail)
        The shopper email.
        Parameters:
        shopperEmail -
      • getShopperName

        public String getShopperName()
        The shopper name.
        Returns:
        shopperName
      • setShopperName

        public void setShopperName​(String shopperName)
        The shopper name.
        Parameters:
        shopperName -
      • getSurcharge

        public Amount getSurcharge()
        Get surcharge
        Returns:
        surcharge
      • setSurcharge

        public void setSurcharge​(Amount surcharge)
        surcharge
        Parameters:
        surcharge -
      • getTotalAmount

        public Amount getTotalAmount()
        Get totalAmount
        Returns:
        totalAmount
      • setTotalAmount

        public void setTotalAmount​(Amount totalAmount)
        totalAmount
        Parameters:
        totalAmount -
      • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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