Class RedemptionResponse

  • All Implemented Interfaces:
    VoucherTransaction, io.electrum.vas.model.VasMessage

    public final class RedemptionResponse
    extends io.electrum.vas.model.Transaction
    implements VoucherTransaction
    Information about the voucher redemption outcome.
    • Field Summary

      • Fields inherited from class io.electrum.vas.model.Transaction

        basketRef, client, destAccType, id, originator, receiver, rrn, settlementEntity, slipData, srcAccType, stan, thirdPartyIdentifiers, time, tranType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RedemptionResponse amounts​(io.electrum.vas.model.Amounts amounts)  
      boolean equals​(Object o)  
      io.electrum.vas.model.Amounts getAmounts()
      Describes various amounts pertaining to the voucher provisioned.
      io.electrum.vas.model.PosInfo getPosInfo()  
      Voucher getVoucher()
      The voucher used for the redemption if the vendor processed the request successfully.
      int hashCode()  
      RedemptionResponse posInfo​(io.electrum.vas.model.PosInfo posInfo)
      Information about the status of the POS/terminal used in the transaction.
      void setAmounts​(io.electrum.vas.model.Amounts amounts)  
      void setPosInfo​(io.electrum.vas.model.PosInfo posInfo)  
      void setVoucher​(Voucher voucher)  
      String toString()  
      RedemptionResponse voucher​(Voucher voucher)  
      • Methods inherited from class io.electrum.vas.model.Transaction

        basketRef, client, destAccType, getBasketRef, getClient, getDestAccType, getId, getOriginator, getReceiver, getRrn, getSettlementEntity, getSlipData, getSrcAccType, getStan, getThirdPartyIdentifiers, getTime, getTranType, id, originator, receiver, rrn, setBasketRef, setClient, setDestAccType, setId, setOriginator, setReceiver, setRrn, setSettlementEntity, setSlipData, setSrcAccType, setStan, setThirdPartyIdentifiers, setTime, settlementEntity, setTranType, slipData, srcAccType, stan, thirdPartyIdentifiers, time, tranType
    • Constructor Detail

      • RedemptionResponse

        public RedemptionResponse()
    • Method Detail

      • getAmounts

        public io.electrum.vas.model.Amounts getAmounts()
        Describes various amounts pertaining to the voucher provisioned.
        Specified by:
        getAmounts in interface VoucherTransaction
        Returns:
        amounts
      • getVoucher

        public Voucher getVoucher()
        The voucher used for the redemption if the vendor processed the request successfully.
        Specified by:
        getVoucher in interface VoucherTransaction
        Returns:
        voucher
      • posInfo

        public RedemptionResponse posInfo​(io.electrum.vas.model.PosInfo posInfo)
        Information about the status of the POS/terminal used in the transaction.
        Specified by:
        posInfo in interface VoucherTransaction
        Returns:
        Since:
        v1.14.0
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class io.electrum.vas.model.Transaction
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class io.electrum.vas.model.Transaction
      • toString

        public String toString()
        Overrides:
        toString in class io.electrum.vas.model.Transaction