Class ProvisionRequest

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

    public final class ProvisionRequest
    extends io.electrum.vas.model.Transaction
    implements VoucherTransaction
    Information about the voucher provision request.
    • 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
      ProvisionRequest 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 referred to.
      ProvisionRequest customer​(io.electrum.vas.model.Customer customer)
      Information about the customer purchasing the voucher, if available.
      boolean equals​(Object o)  
      io.electrum.vas.model.Amounts getAmounts()  
      io.electrum.vas.model.Customer getCustomer()  
      io.electrum.vas.model.PosInfo getPosInfo()  
      Product getProduct()  
      List<io.electrum.vas.model.Tender> getTenders()  
      Voucher getVoucher()  
      int hashCode()  
      ProvisionRequest posInfo​(io.electrum.vas.model.PosInfo posInfo)
      Information about the status of the POS/terminal used in the transaction.
      ProvisionRequest product​(Product product)
      The product for which the voucher should be provisioned.
      void setAmounts​(io.electrum.vas.model.Amounts amounts)  
      void setCustomer​(io.electrum.vas.model.Customer customer)  
      void setPosInfo​(io.electrum.vas.model.PosInfo posInfo)  
      void setProduct​(Product product)  
      void setTenders​(List<io.electrum.vas.model.Tender> tenders)  
      void setVoucher​(Voucher voucher)  
      ProvisionRequest tenders​(List<io.electrum.vas.model.Tender> tenders)
      An array of tenders used to pay for the transaction
      String toString()  
      ProvisionRequest voucher​(Voucher voucher)
      The voucher that is being requested for provisioning.
      • 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

      • ProvisionRequest

        public ProvisionRequest()
    • Method Detail

      • amounts

        public ProvisionRequest 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 referred to.
        Specified by:
        amounts in interface VoucherTransaction
      • tenders

        public ProvisionRequest tenders​(List<io.electrum.vas.model.Tender> tenders)
        An array of tenders used to pay for the transaction
      • getTenders

        public List<io.electrum.vas.model.Tender> getTenders()
      • setTenders

        public void setTenders​(List<io.electrum.vas.model.Tender> tenders)
      • product

        public ProvisionRequest product​(Product product)
        The product for which the voucher should be provisioned.
      • getProduct

        public Product getProduct()
      • setProduct

        public void setProduct​(Product product)
      • posInfo

        public ProvisionRequest 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
      • customer

        public ProvisionRequest customer​(io.electrum.vas.model.Customer customer)
        Information about the customer purchasing the voucher, if available.
        Returns:
        customer
        Since:
        v1.16.0
      • getCustomer

        public io.electrum.vas.model.Customer getCustomer()
      • setCustomer

        public void setCustomer​(io.electrum.vas.model.Customer customer)
      • 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