Class ProvisionResponse

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

    public final class ProvisionResponse
    extends io.electrum.vas.model.Transaction
    implements VoucherTransaction
    Information about the voucher provisioned.
    • 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
      ProvisionResponse amounts​(io.electrum.vas.model.Amounts amounts)
      If the voucher identified by the voucher field is not a fixed price product then the amounts field indicates the value of the product in the response.
      boolean equals​(Object o)  
      io.electrum.vas.model.Amounts getAmounts()  
      io.electrum.vas.model.PosInfo getPosInfo()  
      Product getProduct()  
      Voucher getVoucher()  
      int hashCode()  
      ProvisionResponse posInfo​(io.electrum.vas.model.PosInfo posInfo)
      Information about the status of the POS/terminal used in the transaction.
      ProvisionResponse product​(Product product)
      The product for which the voucher was provisioned.
      void setAmounts​(io.electrum.vas.model.Amounts amounts)  
      void setPosInfo​(io.electrum.vas.model.PosInfo posInfo)  
      void setProduct​(Product product)  
      void setVoucher​(Voucher voucher)  
      String toString()  
      ProvisionResponse voucher​(Voucher voucher)
      The voucher provisioned if the vendor processed the request successfully.
      • 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

      • ProvisionResponse

        public ProvisionResponse()
    • Method Detail

      • amounts

        public ProvisionResponse amounts​(io.electrum.vas.model.Amounts amounts)
        If the voucher identified by the voucher field is not a fixed price product then the amounts field indicates the value of the product in the response.
        Specified by:
        amounts in interface VoucherTransaction
      • product

        public ProvisionResponse product​(Product product)
        The product for which the voucher was provisioned. This should be the same as the product in the ProvisionRequest and is echoed back for convenience.
      • getProduct

        public Product getProduct()
      • setProduct

        public void setProduct​(Product product)
      • posInfo

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