Class VoucherLookupResponse

  • All Implemented Interfaces:
    VoucherTransaction

    public final class VoucherLookupResponse
    extends Object
    implements VoucherTransaction
    Information about a voucher such as its expiry date, its value and which entity the voucher belongs to.
    • Field Detail

      • settlementEntity

        protected io.electrum.vas.model.Institution settlementEntity
      • receiver

        protected io.electrum.vas.model.Institution receiver
    • Constructor Detail

      • VoucherLookupResponse

        public VoucherLookupResponse()
    • Method Detail

      • settlementEntity

        public VoucherLookupResponse settlementEntity​(io.electrum.vas.model.Institution settlementEntity)
        Information about who the request was routed to for processing.
      • getSettlementEntity

        public io.electrum.vas.model.Institution getSettlementEntity()
      • setSettlementEntity

        public void setSettlementEntity​(io.electrum.vas.model.Institution settlementEntity)
      • receiver

        public VoucherLookupResponse receiver​(io.electrum.vas.model.Institution receiver)
        Data relating to the entity which issued the voucher.
      • getReceiver

        public io.electrum.vas.model.Institution getReceiver()
      • setReceiver

        public void setReceiver​(io.electrum.vas.model.Institution receiver)
      • amounts

        public VoucherLookupResponse amounts​(io.electrum.vas.model.Amounts amounts)
        The amounts for which the single use voucher is provisioned for. If available, the monetary value of the voucher should be specified as a CREDIT amount in the approvedAmount field.
        Specified by:
        amounts in interface VoucherTransaction
      • getProduct

        public Product getProduct()
      • setProduct

        public void setProduct​(Product product)
      • thirdPartyIdentifiers

        public VoucherLookupResponse thirdPartyIdentifiers​(List<io.electrum.vas.model.ThirdPartyIdentifier> transactionIdentifiers)
        An array of identifiers which each identify the transaction within each entity's system.
      • getThirdPartyIdentifiers

        public List<io.electrum.vas.model.ThirdPartyIdentifier> getThirdPartyIdentifiers()
      • setThirdPartyIdentifiers

        public void setThirdPartyIdentifiers​(List<io.electrum.vas.model.ThirdPartyIdentifier> transactionIdentifiers)
      • getRrn

        public String getRrn()
      • setRrn

        public void setRrn​(String rrn)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object