Package io.electrum.suv.api.models
Class VoucherLookupResponse
- java.lang.Object
-
- io.electrum.suv.api.models.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 Summary
Fields Modifier and Type Field Description protected io.electrum.vas.model.Institutionreceiverprotected io.electrum.vas.model.InstitutionsettlementEntity
-
Constructor Summary
Constructors Constructor Description VoucherLookupResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoucherLookupResponseamounts(io.electrum.vas.model.Amounts amounts)The amounts for which the single use voucher is provisioned for.booleanequals(Object o)io.electrum.vas.model.AmountsgetAmounts()ProductgetProduct()io.electrum.vas.model.InstitutiongetReceiver()StringgetRrn()io.electrum.vas.model.InstitutiongetSettlementEntity()List<io.electrum.vas.model.ThirdPartyIdentifier>getThirdPartyIdentifiers()VouchergetVoucher()inthashCode()VoucherLookupResponseproduct(Product product)The product for which the voucher was provisioned.VoucherLookupResponsereceiver(io.electrum.vas.model.Institution receiver)Data relating to the entity which issued the voucher.VoucherLookupResponserrn(String rrn)A reference set by the upstream entity that processed the request.voidsetAmounts(io.electrum.vas.model.Amounts amounts)voidsetProduct(Product product)voidsetReceiver(io.electrum.vas.model.Institution receiver)voidsetRrn(String rrn)voidsetSettlementEntity(io.electrum.vas.model.Institution settlementEntity)voidsetThirdPartyIdentifiers(List<io.electrum.vas.model.ThirdPartyIdentifier> transactionIdentifiers)VoucherLookupResponsesettlementEntity(io.electrum.vas.model.Institution settlementEntity)Information about who the request was routed to for processing.voidsetVoucher(Voucher voucher)VoucherLookupResponsethirdPartyIdentifiers(List<io.electrum.vas.model.ThirdPartyIdentifier> transactionIdentifiers)An array of identifiers which each identify the transaction within each entity's system.StringtoString()VoucherLookupResponsevoucher(Voucher voucher)Available details about the voucher.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.electrum.suv.api.models.VoucherTransaction
getPosInfo, posInfo, setPosInfo
-
-
-
-
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:
amountsin interfaceVoucherTransaction
-
getAmounts
public io.electrum.vas.model.Amounts getAmounts()
- Specified by:
getAmountsin interfaceVoucherTransaction
-
setAmounts
public void setAmounts(io.electrum.vas.model.Amounts amounts)
- Specified by:
setAmountsin interfaceVoucherTransaction
-
voucher
public VoucherLookupResponse voucher(Voucher voucher)
Available details about the voucher.- Specified by:
voucherin interfaceVoucherTransaction
-
getVoucher
@NotNull public Voucher getVoucher()
- Specified by:
getVoucherin interfaceVoucherTransaction
-
setVoucher
public void setVoucher(Voucher voucher)
- Specified by:
setVoucherin interfaceVoucherTransaction
-
product
public VoucherLookupResponse product(Product product)
The product for which the voucher was provisioned.
-
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)
-
rrn
public VoucherLookupResponse rrn(String rrn)
A reference set by the upstream entity that processed the request.
-
getRrn
public String getRrn()
-
setRrn
public void setRrn(String rrn)
-
-