tangocard.sdk.response.success
Class PurchaseCardResponse

java.lang.Object
  extended by tangocard.sdk.response.success.SuccessResponse
      extended by tangocard.sdk.response.success.PurchaseCardResponse
All Implemented Interfaces:
BaseResponse

public class PurchaseCardResponse
extends SuccessResponse

The Class PurchaseCardResponse.


Constructor Summary
PurchaseCardResponse()
          Instantiates a new purchase card response.
PurchaseCardResponse(org.json.JSONObject responseJson)
          Instantiates a new purchase card response.
 
Method Summary
 java.lang.String getCardNumber()
          Gets the card number.
 java.lang.String getCardPin()
          Gets the card pin.
 java.lang.String getCardToken()
          Gets the card token.
 java.lang.String getChallengeKey()
          Gets the challenge Key.
 java.lang.String getClaimUrl()
          Gets the claim URL.
 java.lang.String getEventNumber()
          Gets the event number.
 java.lang.String getReferenceOrderId()
          Gets the reference order id.
 boolean parseResponseJSON(org.json.JSONObject responseJson)
          Parses the response JSON.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurchaseCardResponse

public PurchaseCardResponse()
Instantiates a new purchase card response.


PurchaseCardResponse

public PurchaseCardResponse(org.json.JSONObject responseJson)
                     throws TangoCardSdkException
Instantiates a new purchase card response.

Parameters:
responseJson - the response JSON
Throws:
TangoCardSdkException
Method Detail

getReferenceOrderId

public java.lang.String getReferenceOrderId()
Gets the reference order id.

Returns:
the reference order id

getCardToken

public java.lang.String getCardToken()
Gets the card token.

Returns:
the card token

getCardNumber

public java.lang.String getCardNumber()
Gets the card number.

Returns:
the card number

getCardPin

public java.lang.String getCardPin()
Gets the card pin.

Returns:
the card pin

getClaimUrl

public java.lang.String getClaimUrl()
Gets the claim URL.

Returns:
the claim URL

getChallengeKey

public java.lang.String getChallengeKey()
Gets the challenge Key.

Returns:
the challenge Key

getEventNumber

public java.lang.String getEventNumber()
Gets the event number.

Returns:
the event number

parseResponseJSON

public boolean parseResponseJSON(org.json.JSONObject responseJson)
                          throws TangoCardSdkException
Description copied from interface: BaseResponse
Parses the response JSON.

Parameters:
responseJson - the response JSON
Returns:
true, if successful
Throws:
TangoCardSdkException