Class RefundRequest

  • All Implemented Interfaces:
    VoucherTransaction, io.electrum.vas.model.VasMessage

    public final class RefundRequest
    extends io.electrum.vas.model.Transaction
    implements VoucherTransaction
    • Constructor Detail

      • RefundRequest

        public RefundRequest()
    • Method Detail

      • 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:
        getAmounts in interface VoucherTransaction
        Returns:
        amounts
      • getRedemptionId

        public String getRedemptionId()
        Carries the value of the id field of the RedemptionRequest which is being refunded

        Use 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 redemption

        Use 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:
        posInfo in interface VoucherTransaction
        Returns:
        Since:
        v1.14.0
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class io.electrum.vas.model.Transaction
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class io.electrum.vas.model.Transaction
      • toString

        public String toString()
        Overrides:
        toString in class io.electrum.vas.model.Transaction