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,StripeObjectInterface
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, 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".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, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
ReportRun
public ReportRun()
-
-
Method Details
-
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
-
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
-
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.
-