it.dtt.ca.response
Class RcRechargeResponse

java.lang.Object
  extended by it.dtt.ca.response.ResponseEvent
      extended by it.dtt.ca.response.SuccessResponseEvent
          extended by it.dtt.ca.response.RcRechargeResponse

public class RcRechargeResponse
extends SuccessResponseEvent

When a credit recharge via return channel has been successfully carried out an object of this class is returned and the credit that has been recharged can be retrieved.


Constructor Summary
RcRechargeResponse(CARequest request, Money amount, Wallet wallet)
          Constructs OfferedProductsResponseEvent.
 
Method Summary
 Money getRechargeValue()
          Get the amount of credit that has been recharged.
 Wallet getWallet()
          Get the wallet on which the recharge amount has been credited.
 
Methods inherited from class it.dtt.ca.response.ResponseEvent
getRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RcRechargeResponse

public RcRechargeResponse(CARequest request,
                          Money amount,
                          Wallet wallet)
Constructs OfferedProductsResponseEvent.

Parameters:
request - the CARequest object, that generated this response.
amount - the amount that was recharged.
wallet - the wallet used in the transaction.
Method Detail

getRechargeValue

public Money getRechargeValue()
Get the amount of credit that has been recharged.

Returns:
the credit recharged.

getWallet

public Wallet getWallet()
Get the wallet on which the recharge amount has been credited.

Returns:
the updated wallet.