Package io.electrum.suv.api.models
Class ProvisionResponse
- java.lang.Object
-
- io.electrum.vas.model.Transaction
-
- io.electrum.suv.api.models.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.
-
-
Constructor Summary
Constructors Constructor Description ProvisionResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisionResponseamounts(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.booleanequals(Object o)io.electrum.vas.model.AmountsgetAmounts()io.electrum.vas.model.PosInfogetPosInfo()ProductgetProduct()VouchergetVoucher()inthashCode()ProvisionResponseposInfo(io.electrum.vas.model.PosInfo posInfo)Information about the status of the POS/terminal used in the transaction.ProvisionResponseproduct(Product product)The product for which the voucher was provisioned.voidsetAmounts(io.electrum.vas.model.Amounts amounts)voidsetPosInfo(io.electrum.vas.model.PosInfo posInfo)voidsetProduct(Product product)voidsetVoucher(Voucher voucher)StringtoString()ProvisionResponsevoucher(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
-
-
-
-
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:
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 ProvisionResponse voucher(Voucher voucher)
The voucher provisioned if the vendor processed the request successfully.- 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 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:
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
-
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
-
-