Package io.electrum.suv.api.models
Class RefundRequest
- java.lang.Object
-
- io.electrum.vas.model.Transaction
-
- io.electrum.suv.api.models.RefundRequest
-
- All Implemented Interfaces:
VoucherTransaction,io.electrum.vas.model.VasMessage
public final class RefundRequest extends io.electrum.vas.model.Transaction implements VoucherTransaction
-
-
Constructor Summary
Constructors Constructor Description RefundRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RefundRequestamounts(io.electrum.vas.model.Amounts amounts)booleanequals(Object o)io.electrum.vas.model.AmountsgetAmounts()Indicates the amount for which the voucher should be refunded in the requestAmount field.io.electrum.vas.model.PosInfogetPosInfo()StringgetReceiverTransactionRef()Carries the value of the receiver's transaction reference for the original redemptionStringgetRedemptionId()Carries the value of theidfield of theRedemptionRequestwhich is being refundedVouchergetVoucher()The voucher to be refunded.inthashCode()RefundRequestposInfo(io.electrum.vas.model.PosInfo posInfo)Information about the status of the POS/terminal used in the transaction.RefundRequestreceiverTransactionRef(String receiverTransactionRef)RefundRequestredemptionId(String redemptionId)voidsetAmounts(io.electrum.vas.model.Amounts amounts)voidsetPosInfo(io.electrum.vas.model.PosInfo posInfo)voidsetReceiverTransactionRef(String receiverTransactionRef)voidsetRedemptionId(String redemptionId)voidsetVoucher(Voucher voucher)StringtoString()RefundRequestvoucher(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 RefundRequest amounts(io.electrum.vas.model.Amounts amounts)
- Specified by:
amountsin interfaceVoucherTransaction
-
getAmounts
public io.electrum.vas.model.Amounts getAmounts()
Indicates the amount for which the voucher should be refunded in the requestAmount field. If requestAmount is not populated then a full refund is to be assumed.- Specified by:
getAmountsin interfaceVoucherTransaction- Returns:
- amounts
-
setAmounts
public void setAmounts(io.electrum.vas.model.Amounts amounts)
- Specified by:
setAmountsin interfaceVoucherTransaction
-
voucher
public RefundRequest voucher(Voucher voucher)
- Specified by:
voucherin interfaceVoucherTransaction
-
getVoucher
@NotNull public Voucher getVoucher()
The voucher to be refunded.- Specified by:
getVoucherin interfaceVoucherTransaction- Returns:
- voucher
-
setVoucher
public void setVoucher(Voucher voucher)
- Specified by:
setVoucherin interfaceVoucherTransaction
-
redemptionId
public RefundRequest redemptionId(String redemptionId)
-
getRedemptionId
public String getRedemptionId()
Carries the value of theidfield of theRedemptionRequestwhich is being refundedUse of this field is encouraged if the refund request is submitted to the same system which processed the original redemption.
- Returns:
- redemptionId
-
setRedemptionId
public void setRedemptionId(String redemptionId)
-
receiverTransactionRef
public RefundRequest receiverTransactionRef(String receiverTransactionRef)
-
getReceiverTransactionRef
public String getReceiverTransactionRef()
Carries the value of the receiver's transaction reference for the original redemptionUse of this field allows a refund to pass through systems which did not process the original redemption. If the original voucher alone is not enough to facilitate a refund then the receiver may use this field to identify the original redemption to be refunded. Therefore, use of this field is strongly encouraged to aid processing of a refund request.
- Returns:
- receiverTransactionRef
-
setReceiverTransactionRef
public void setReceiverTransactionRef(String receiverTransactionRef)
-
posInfo
public RefundRequest 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
-
-