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 ClassesModifier and TypeClassDescriptionstatic classFor more details about Parameters, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic ReportRuncreate(ReportRunCreateParams params) Creates a new object and begin running the report.static ReportRuncreate(ReportRunCreateParams params, RequestOptions options) Creates a new object and begin running the report.static ReportRunCreates a new object and begin running the report.static ReportRuncreate(Map<String, Object> params, RequestOptions options) Creates a new object and begin running the report.booleanTime 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.trueif the report is run on live mode data andfalseif 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).inthashCode()static ReportRunCollectionlist(ReportRunListParams params) Returns a list of Report Runs, with the most recent appearing first.static ReportRunCollectionlist(ReportRunListParams params, RequestOptions options) Returns a list of Report Runs, with the most recent appearing first.static ReportRunCollectionReturns a list of Report Runs, with the most recent appearing first.static ReportRunCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of Report Runs, with the most recent appearing first.static ReportRunRetrieves the details of an existing Report Run.static ReportRunretrieve(String reportRun, RequestOptions options) Retrieves the details of an existing Report Run.static ReportRunretrieve(String reportRun, ReportRunRetrieveParams params, RequestOptions options) Retrieves the details of an existing Report Run.static ReportRunRetrieves the details of an existing Report Run.voidsetCreated(Long created) Time at which the object was created.voidIf something should go wrong during the run, a message about the failure (populated whenstatus=failed).voidUnique identifier for the object.voidsetLivemode(Boolean livemode) trueif the report is run on live mode data andfalseif it is run on test mode data.voidString representing the object's type.voidsetParameters(ReportRun.Parameters parameters) voidsetReportType(String reportType) The ID of the report type to run, such as"balance.summary.1".voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidThe file object representing the result of the report run (populated whenstatus=succeeded).voidStatus of this report run.voidsetSucceededAt(Long succeededAt) Timestamp at which this run successfully finished (populated whenstatus=succeeded).Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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
trueif the report is run on live mode data andfalseif 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 bependingwhen the run is initially created. When the run finishes, this will be set tosucceededand theresultfield will be populated. Rarely, we may encounter an error, at which point this will be set tofailedand theerrorfield 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
trueif the report is run on live mode data andfalseif 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 bependingwhen the run is initially created. When the run finishes, this will be set tosucceededand theresultfield will be populated. Rarely, we may encounter an error, at which point this will be set tofailedand theerrorfield 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.
-