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)
      • getCollectionInstitutionNumber

        public String getCollectionInstitutionNumber()
        A collection institution number (store number) for Econtext Pay-Easy ATM.
        Returns:
        collectionInstitutionNumber
      • setCollectionInstitutionNumber

        public void setCollectionInstitutionNumber​(String collectionInstitutionNumber)
      • getDownloadUrl

        public String getDownloadUrl()
        The URL to download the voucher.
        Returns:
        downloadUrl
      • setDownloadUrl

        public void setDownloadUrl​(String downloadUrl)
      • getEntity

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

        public void setEntity​(String entity)
      • getExpiresAt

        public String getExpiresAt()
        The date time of the voucher expiry.
        Returns:
        expiresAt
      • setExpiresAt

        public void setExpiresAt​(String expiresAt)
      • getInitialAmount

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

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

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

        public void setIssuer​(String issuer)
      • getMaskedTelephoneNumber

        public String getMaskedTelephoneNumber()
        The shopper telephone number (partially masked).
        Returns:
        maskedTelephoneNumber
      • setMaskedTelephoneNumber

        public void setMaskedTelephoneNumber​(String maskedTelephoneNumber)
      • getMerchantName

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

        public void setMerchantName​(String merchantName)
      • getMerchantReference

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

        public void setMerchantReference​(String merchantReference)
      • getPassCreationToken

        public String getPassCreationToken()
        A base64 encoded signature of all properties
        Returns:
        passCreationToken
      • setPassCreationToken

        public void setPassCreationToken​(String passCreationToken)
      • 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)
      • getPaymentMethodType

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

        public void setPaymentMethodType​(String paymentMethodType)
      • getReference

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

        public void setReference​(String reference)
      • getShopperEmail

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

        public void setShopperEmail​(String shopperEmail)
      • getShopperName

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

        public void setShopperName​(String shopperName)
      • getSurcharge

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

        public void setSurcharge​(Amount surcharge)
      • getTotalAmount

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

        public void setTotalAmount​(Amount totalAmount)
      • getUrl

        public String getUrl()
        Specifies the URL to redirect to.
        Returns:
        url
      • setUrl

        public void setUrl​(String 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