Package com.stripe.model.reporting
Class ReportRun
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.reporting.ReportRun
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
The Report Run object represents an instance of a report type generated with specific run
parameters. Once the object is created, Stripe begins processing the report. When the report has
finished running, it will give you a reference to a file where you can retrieve your results. For
an overview, see API Access to
Reports.
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
static ReportRun
create
(ReportRunCreateParams params) Creates a new object and begin running the report.static ReportRun
create
(ReportRunCreateParams params, RequestOptions options) Creates a new object and begin running the report.static ReportRun
Creates a new object and begin running the report.static ReportRun
create
(Map<String, Object> params, RequestOptions options) Creates a new object and begin running the report.boolean
Time at which the object was created.getError()
If something should go wrong during the run, a message about the failure (populated whenstatus=failed
).getId()
Unique identifier for the object.true
if the report is run on live mode data andfalse
if it is run on test mode data.String representing the object's type.The ID of the report type to run, such as"balance.summary.1"
.The file object representing the result of the report run (populated whenstatus=succeeded
).Status of this report run.Timestamp at which this run successfully finished (populated whenstatus=succeeded
).int
hashCode()
static ReportRunCollection
list
(ReportRunListParams params) Returns a list of Report Runs, with the most recent appearing first.static ReportRunCollection
list
(ReportRunListParams params, RequestOptions options) Returns a list of Report Runs, with the most recent appearing first.static ReportRunCollection
Returns a list of Report Runs, with the most recent appearing first.static ReportRunCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of Report Runs, with the most recent appearing first.static ReportRun
Retrieves the details of an existing Report Run.static ReportRun
retrieve
(String reportRun, RequestOptions options) Retrieves the details of an existing Report Run.static ReportRun
retrieve
(String reportRun, ReportRunRetrieveParams params, RequestOptions options) Retrieves the details of an existing Report Run.static ReportRun
Retrieves the details of an existing Report Run.void
setCreated
(Long created) Time at which the object was created.void
If something should go wrong during the run, a message about the failure (populated whenstatus=failed
).void
Unique identifier for the object.void
setLivemode
(Boolean livemode) true
if the report is run on live mode data andfalse
if it is run on test mode data.void
String representing the object's type.void
setParameters
(ReportRun.Parameters parameters) void
setReportType
(String reportType) The ID of the report type to run, such as"balance.summary.1"
.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
The file object representing the result of the report run (populated whenstatus=succeeded
).void
Status of this report run.void
setSucceededAt
(Long succeededAt) Timestamp at which this run successfully finished (populated whenstatus=succeeded
).Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, 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
-
ReportRun
public ReportRun()
-
-
Method Details
-
create
Creates a new object and begin running the report. (Certain report types require a live-mode API key.)- Throws:
StripeException
-
create
public static ReportRun create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new object and begin running the report. (Certain report types require a live-mode API key.)- Throws:
StripeException
-
create
Creates a new object and begin running the report. (Certain report types require a live-mode API key.)- Throws:
StripeException
-
create
public static ReportRun create(ReportRunCreateParams params, RequestOptions options) throws StripeException Creates a new object and begin running the report. (Certain report types require a live-mode API key.)- Throws:
StripeException
-
list
Returns a list of Report Runs, with the most recent appearing first.- Throws:
StripeException
-
list
public static ReportRunCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of Report Runs, with the most recent appearing first.- Throws:
StripeException
-
list
Returns a list of Report Runs, with the most recent appearing first.- Throws:
StripeException
-
list
public static ReportRunCollection list(ReportRunListParams params, RequestOptions options) throws StripeException Returns a list of Report Runs, with the most recent appearing first.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing Report Run.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing Report Run.- Throws:
StripeException
-
retrieve
public static ReportRun retrieve(String reportRun, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing Report Run.- Throws:
StripeException
-
retrieve
public static ReportRun retrieve(String reportRun, ReportRunRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing Report Run.- 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. -
getError
If something should go wrong during the run, a message about the failure (populated whenstatus=failed
). -
getLivemode
true
if the report is run on live mode data andfalse
if it is run on test mode data. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
reporting.report_run
. -
getParameters
-
getReportType
The ID of the report type to run, such as"balance.summary.1"
. -
getResult
The file object representing the result of the report run (populated whenstatus=succeeded
). -
getStatus
Status of this report run. This will bepending
when the run is initially created. When the run finishes, this will be set tosucceeded
and theresult
field will be populated. Rarely, we may encounter an error, at which point this will be set tofailed
and theerror
field will be populated. -
getSucceededAt
Timestamp at which this run successfully finished (populated whenstatus=succeeded
). Measured in seconds since the Unix epoch. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setError
If something should go wrong during the run, a message about the failure (populated whenstatus=failed
). -
setId
Unique identifier for the object. -
setLivemode
true
if the report is run on live mode data andfalse
if it is run on test mode data. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
reporting.report_run
. -
setParameters
-
setReportType
The ID of the report type to run, such as"balance.summary.1"
. -
setResult
The file object representing the result of the report run (populated whenstatus=succeeded
). -
setStatus
Status of this report run. This will bepending
when the run is initially created. When the run finishes, this will be set tosucceeded
and theresult
field will be populated. Rarely, we may encounter an error, at which point this will be set tofailed
and theerror
field will be populated. -
setSucceededAt
Timestamp at which this run successfully finished (populated whenstatus=succeeded
). Measured in seconds since the Unix epoch. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-