Class RedemptionRequest

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

    public final class RedemptionRequest
    extends io.electrum.vas.model.Transaction
    implements VoucherTransaction
    • 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
      RedemptionRequest amounts​(io.electrum.vas.model.Amounts amounts)  
      boolean equals​(Object o)  
      io.electrum.vas.model.Amounts getAmounts()
      Indicates the amount for which the voucher is to be redeemed.
      io.electrum.vas.model.PosInfo getPosInfo()  
      Voucher getVoucher()
      The voucher to be redeemed.
      int hashCode()  
      RedemptionRequest 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()  
      RedemptionRequest 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

      • RedemptionRequest

        public RedemptionRequest()
    • Method Detail

      • getAmounts

        public io.electrum.vas.model.Amounts getAmounts()
        Indicates the amount for which the voucher is to be redeemed.
        Specified by:
        getAmounts in interface VoucherTransaction
        Returns:
        amounts
      • posInfo

        public RedemptionRequest 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