Package io.electrum.suv.api.models
Class RedemptionResponse
- java.lang.Object
-
- io.electrum.vas.model.Transaction
-
- io.electrum.suv.api.models.RedemptionResponse
-
- All Implemented Interfaces:
VoucherTransaction,io.electrum.vas.model.VasMessage
public final class RedemptionResponse extends io.electrum.vas.model.Transaction implements VoucherTransaction
Information about the voucher redemption outcome.
-
-
Constructor Summary
Constructors Constructor Description RedemptionResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedemptionResponseamounts(io.electrum.vas.model.Amounts amounts)booleanequals(Object o)io.electrum.vas.model.AmountsgetAmounts()Describes various amounts pertaining to the voucher provisioned.io.electrum.vas.model.PosInfogetPosInfo()VouchergetVoucher()The voucher used for the redemption if the vendor processed the request successfully.inthashCode()RedemptionResponseposInfo(io.electrum.vas.model.PosInfo posInfo)Information about the status of the POS/terminal used in the transaction.voidsetAmounts(io.electrum.vas.model.Amounts amounts)voidsetPosInfo(io.electrum.vas.model.PosInfo posInfo)voidsetVoucher(Voucher voucher)StringtoString()RedemptionResponsevoucher(Voucher voucher)-
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 RedemptionResponse amounts(io.electrum.vas.model.Amounts amounts)
- Specified by:
amountsin interfaceVoucherTransaction
-
getAmounts
public io.electrum.vas.model.Amounts getAmounts()
Describes various amounts pertaining to the voucher provisioned.- Specified by:
getAmountsin interfaceVoucherTransaction- Returns:
- amounts
-
setAmounts
public void setAmounts(io.electrum.vas.model.Amounts amounts)
- Specified by:
setAmountsin interfaceVoucherTransaction
-
voucher
public RedemptionResponse voucher(Voucher voucher)
- Specified by:
voucherin interfaceVoucherTransaction
-
getVoucher
public Voucher getVoucher()
The voucher used for the redemption if the vendor processed the request successfully.- Specified by:
getVoucherin interfaceVoucherTransaction- Returns:
- voucher
-
setVoucher
public void setVoucher(Voucher voucher)
- Specified by:
setVoucherin interfaceVoucherTransaction
-
posInfo
public RedemptionResponse 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
-
-