NAME
Net::API::Stripe::Reporting::ReportRun - Stripe API Reporting Run Object
SYNOPSIS
VERSION
0.1
DESCRIPTION
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 (https://stripe.com/docs/reporting/statements/api).
Note that reports can only be run based on your live-mode data (not test-mode data), and thus related requests must be made with a live-mode API key (https://stripe.com/docs/keys#test-live-modes).
CONSTRUCTOR
- new( %arg )
-
Creates a new
Net::API::Stripe::Reporting::ReportRun
objects. It may also take an hash like arguments, that also are method of the same name.- debug
-
Toggles debug mode on/off
METHODS
- id() string
-
Unique identifier for the object.
- object() string, value is "reporting.report_run"
-
String representing the object’s type. Objects of the same type share the same value.
- created() timestamp
-
Time at which the object was created. Measured in seconds since the Unix epoch.
- error() string
-
If something should go wrong during the run, a message about the failure (populated when status=failed).
- livemode() boolean
-
Always true: reports can only be run on live-mode data.
- parameters() hash
-
Parameters of this report run.
- columns array containing strings
-
The set of output columns requested for inclusion in the report run.
- connected_account string
-
Connected account ID by which to filter the report run.
- urrency currency
-
Currency of objects to be included in the report run.
- interval_end timestamp
-
Ending timestamp of data to be included in the report run (exclusive).
- interval_start timestamp
-
Starting timestamp of data to be included in the report run.
- payout string
-
Payout ID by which to filter the report run.
- reporting_category string
-
Category of balance transactions to be included in the report run.
- report_type() string
-
The ID of the report type to run, such as "balance.summary.1".
- result() hash
-
The file object (
Net::APi::Stripe::File
) representing the result of the report run (populated when status=succeeded). - status() string
-
Status of this report run. This will be pending when the run is initially created. When the run finishes, this will be set to succeeded and the result field will be populated. Rarely, we may encounter an error, at which point this will be set to failed and the error field will be populated.
- succeeded_at() timestamp
-
Timestamp at which this run successfully finished (populated when status=succeeded). Measured in seconds since the Unix epoch.
API SAMPLE
{
"id": "frr_1G2dqECeyNCl6fY2KeuZWZ14",
"object": "reporting.report_run",
"created": 1579440566,
"error": null,
"livemode": true,
"parameters": {
"interval_end": 1525132800,
"interval_start": 1522540800
},
"report_type": "balance.summary.1",
"result": {
"id": "file_1D4e5EF5IfL0eXz9mGVilzEx",
"object": "file",
"created": 1535589144,
"filename": "file_1D4e5EF5IfL0eXz9mGVilzEx",
"links": {
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/file_links?file=file_1D4e5EF5IfL0eXz9mGVilzEx"
},
"purpose": "finance_report_run",
"size": 9863,
"title": null,
"type": "csv",
"url": "https://files.stripe.com/v1/files/file_1D4e5EF5IfL0eXz9mGVilzEx/contents"
},
"status": "succeeded",
"succeeded_at": 1525192811
}
HISTORY
v0.1
Initial version
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
COPYRIGHT & LICENSE
Copyright (c) 2020 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 90:
You forgot a '=back' before '=head1'