Package com.stripe.model.terminal
Class ReaderCollectedData
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.terminal.ReaderCollectedData
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Returns data collected by Terminal readers. This data is only stored for 24 hours.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Represents magstripe data collected by the reader.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Time at which the object was created.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.The magstripe data collected by the reader.String representing the object's type.getType()
The type of data collected by the reader.int
hashCode()
static ReaderCollectedData
Retrieve data collected using Reader hardware.static ReaderCollectedData
retrieve
(String readerCollectedData, RequestOptions options) Retrieve data collected using Reader hardware.static ReaderCollectedData
retrieve
(String readerCollectedData, ReaderCollectedDataRetrieveParams params, RequestOptions options) Retrieve data collected using Reader hardware.static ReaderCollectedData
Retrieve data collected using Reader hardware.void
setCreated
(Long created) Time at which the object was created.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMagstripe
(ReaderCollectedData.Magstripe magstripe) The magstripe data collected by the reader.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
The type of data collected by the reader.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
ReaderCollectedData
public ReaderCollectedData()
-
-
Method Details
-
retrieve
Retrieve data collected using Reader hardware.- Throws:
StripeException
-
retrieve
public static ReaderCollectedData retrieve(String readerCollectedData, RequestOptions options) throws StripeException Retrieve data collected using Reader hardware.- Throws:
StripeException
-
retrieve
public static ReaderCollectedData retrieve(String readerCollectedData, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve data collected using Reader hardware.- Throws:
StripeException
-
retrieve
public static ReaderCollectedData retrieve(String readerCollectedData, ReaderCollectedDataRetrieveParams params, RequestOptions options) throws StripeException Retrieve data collected using Reader hardware.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getMagstripe
The magstripe data collected by the reader. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.reader_collected_data
. -
getType
The type of data collected by the reader.Equal to
magstripe
. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMagstripe
The magstripe data collected by the reader. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.reader_collected_data
. -
setType
The type of data collected by the reader.Equal to
magstripe
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-