tangocard.sdk.response.failure
Class InsufficientInventoryResponse

java.lang.Object
  extended by tangocard.sdk.response.failure.FailureResponse
      extended by tangocard.sdk.response.failure.InsufficientInventoryResponse
All Implemented Interfaces:
BaseResponse

public class InsufficientInventoryResponse
extends FailureResponse

The Class InsufficientInventoryResponse.


Constructor Summary
InsufficientInventoryResponse(org.json.JSONObject responseJson)
          Instantiates a new insufficient inventory response.
 
Method Summary
 java.lang.String getMessage()
          Gets the message.
 java.lang.String getSku()
          Gets the sku.
 int getValue()
          Gets the value.
 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

InsufficientInventoryResponse

public InsufficientInventoryResponse(org.json.JSONObject responseJson)
                              throws TangoCardSdkException
Instantiates a new insufficient inventory response.

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

getSku

public java.lang.String getSku()
Gets the sku.

Returns:
the sku

getValue

public int getValue()
Gets the value.

Returns:
the value

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

getMessage

public java.lang.String getMessage()
Description copied from class: FailureResponse
Gets the message.

Specified by:
getMessage in class FailureResponse
Returns:
the message