Package io.electrum.suv.api.models
Class ProvisionRequest
- java.lang.Object
-
- io.electrum.vas.model.Transaction
-
- io.electrum.suv.api.models.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.
-
-
Constructor Summary
Constructors Constructor Description ProvisionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisionRequestamounts(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.ProvisionRequestcustomer(io.electrum.vas.model.Customer customer)Information about the customer purchasing the voucher, if available.booleanequals(Object o)io.electrum.vas.model.AmountsgetAmounts()io.electrum.vas.model.CustomergetCustomer()io.electrum.vas.model.PosInfogetPosInfo()ProductgetProduct()List<io.electrum.vas.model.Tender>getTenders()VouchergetVoucher()inthashCode()ProvisionRequestposInfo(io.electrum.vas.model.PosInfo posInfo)Information about the status of the POS/terminal used in the transaction.ProvisionRequestproduct(Product product)The product for which the voucher should be provisioned.voidsetAmounts(io.electrum.vas.model.Amounts amounts)voidsetCustomer(io.electrum.vas.model.Customer customer)voidsetPosInfo(io.electrum.vas.model.PosInfo posInfo)voidsetProduct(Product product)voidsetTenders(List<io.electrum.vas.model.Tender> tenders)voidsetVoucher(Voucher voucher)ProvisionRequesttenders(List<io.electrum.vas.model.Tender> tenders)An array of tenders used to pay for the transactionStringtoString()ProvisionRequestvoucher(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
-
-
-
-
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:
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
-
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)
-
voucher
public ProvisionRequest voucher(Voucher voucher)
The voucher that is being requested for provisioning.- Specified by:
voucherin interfaceVoucherTransaction
-
getVoucher
public Voucher getVoucher()
- Specified by:
getVoucherin interfaceVoucherTransaction
-
setVoucher
public void setVoucher(Voucher voucher)
- Specified by:
setVoucherin interfaceVoucherTransaction
-
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:
posInfoin interfaceVoucherTransaction- Returns:
- Since:
- v1.14.0
-
getPosInfo
public io.electrum.vas.model.PosInfo getPosInfo()
- Specified by:
getPosInfoin interfaceVoucherTransaction- Returns:
-
setPosInfo
public void setPosInfo(io.electrum.vas.model.PosInfo posInfo)
- Specified by:
setPosInfoin interfaceVoucherTransaction
-
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:
equalsin classio.electrum.vas.model.Transaction
-
hashCode
public int hashCode()
- Overrides:
hashCodein classio.electrum.vas.model.Transaction
-
toString
public String toString()
- Overrides:
toStringin classio.electrum.vas.model.Transaction
-
-