Package com.stripe.model.reporting
Class ReportType
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.reporting.ReportType
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
The Report Type resource corresponds to a particular type of report, such as the "Activity
summary" or "Itemized payouts" reports. These objects are identified by an ID
belonging to a set of enumerated values. See API Access to Reports documentation
for those Report Type IDs, along with required and optional parameters.
Note that certain report types can only be run based on your live-mode data (not test-mode data), and will error when queried without a live-mode API key.
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Most recent time for which this Report Type is available.Earliest time for which this Report Type is available.List of column names that are included by default when this Report Type gets run.getId()
The ID of the Report Type, such asbalance.summary.1
.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.getName()
Human-readable name of the Report Type.String representing the object's type.When this Report Type was latest updated.Version of the Report Type.int
hashCode()
static ReportTypeCollection
list
(ReportTypeListParams params) Returns a full list of Report Types.static ReportTypeCollection
list
(ReportTypeListParams params, RequestOptions options) Returns a full list of Report Types.static ReportTypeCollection
Returns a full list of Report Types.static ReportTypeCollection
list
(Map<String, Object> params, RequestOptions options) Returns a full list of Report Types.static ReportType
Retrieves the details of a Report Type.static ReportType
retrieve
(String reportType, RequestOptions options) Retrieves the details of a Report Type.static ReportType
retrieve
(String reportType, ReportTypeRetrieveParams params, RequestOptions options) Retrieves the details of a Report Type.static ReportType
Retrieves the details of a Report Type.void
setDataAvailableEnd
(Long dataAvailableEnd) Most recent time for which this Report Type is available.void
setDataAvailableStart
(Long dataAvailableStart) Earliest time for which this Report Type is available.void
setDefaultColumns
(List<String> defaultColumns) List of column names that are included by default when this Report Type gets run.void
The ID of the Report Type, such asbalance.summary.1
.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
Human-readable name of the Report Type.void
String representing the object's type.void
setUpdated
(Long updated) When this Report Type was latest updated.void
setVersion
(Long version) Version of the Report Type.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setResponseGetter, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
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
-
ReportType
public ReportType()
-
-
Method Details
-
list
Returns a full list of Report Types.- Throws:
StripeException
-
list
public static ReportTypeCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a full list of Report Types.- Throws:
StripeException
-
list
Returns a full list of Report Types.- Throws:
StripeException
-
list
public static ReportTypeCollection list(ReportTypeListParams params, RequestOptions options) throws StripeException Returns a full list of Report Types.- Throws:
StripeException
-
retrieve
Retrieves the details of a Report Type. (Certain report types require a live-mode API key.)- Throws:
StripeException
-
retrieve
Retrieves the details of a Report Type. (Certain report types require a live-mode API key.)- Throws:
StripeException
-
retrieve
public static ReportType retrieve(String reportType, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a Report Type. (Certain report types require a live-mode API key.)- Throws:
StripeException
-
retrieve
public static ReportType retrieve(String reportType, ReportTypeRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a Report Type. (Certain report types require a live-mode API key.)- Throws:
StripeException
-
getDataAvailableEnd
Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch. -
getDataAvailableStart
Earliest time for which this Report Type is available. Measured in seconds since the Unix epoch. -
getDefaultColumns
List of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support thecolumns
parameter, this will be null.) -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getName
Human-readable name of the Report Type. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
reporting.report_type
. -
getUpdated
When this Report Type was latest updated. Measured in seconds since the Unix epoch. -
getVersion
Version of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas. -
setDataAvailableEnd
Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch. -
setDataAvailableStart
Earliest time for which this Report Type is available. Measured in seconds since the Unix epoch. -
setDefaultColumns
List of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support thecolumns
parameter, this will be null.) -
setId
The ID of the Report Type, such asbalance.summary.1
. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setName
Human-readable name of the Report Type. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
reporting.report_type
. -
setUpdated
When this Report Type was latest updated. Measured in seconds since the Unix epoch. -
setVersion
Version of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
The ID of the Report Type, such asbalance.summary.1
.
-