hermes_ebay_sell_analytics/models/report.rs
1/*
2 * Analytics API
3 *
4 * The <i>Analytics API</i> provides data and information about a seller and their eBay business. <br><br>The resources and methods in this API let sellers review information on their listing performance, metrics on their customer service performance, and details on their eBay seller performance rating. <br><br>The three resources in the Analytics API provide the following data and information: <ul><li><b>Customer Service Metric</b> – Returns benchmark data and a metric rating pertaining to a seller's customer service performance as compared to other seller's in the same peer group.</li> <li><b>Traffic Report</b> – Returns data and information that shows how buyers are engaging with a seller's listings.</li> <li><b>Seller Standards Profile</b> – Returns information pertaining to a seller's profile rating.</li></ul> Sellers can use the data and information returned by the various Analytics API methods to determine where they can make improvements to increase sales and how they might improve their seller status as viewed by eBay buyers. <br><br>For details on using this API, see <a href=\"/api-docs/sell/static/performance/analyzing-performance.html\" title=\"Selling Integration Guide\">Analyzing seller performance</a>.
5 *
6 * The version of the OpenAPI document: 1.3.2
7 * Contact: your-email@example.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Report : The complex type that defines that defines the report.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Report {
17 /// A complex type containing the header of the report and the type of data containted in the rows of the report.
18 #[serde(rename = "dimensionMetadata", skip_serializing_if = "Option::is_none")]
19 pub dimension_metadata: Option<Vec<models::Metadata>>,
20 /// <br><br>The time stamp is formatted as an <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\" target=\"_blank\">ISO 8601</a> string, which is based on the 24-hour Universal Coordinated Time (UTC) clock. <br><br>If you specify an end date that is beyond the <a href=\"#response.lastUpdatedDate\">lastUpdatedDate</a> value, eBay returns a report that contains data only up to the lastUpdateDate date. <br><br><b>Format:</b> <code>[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z</code> <br><b>Example:</b> <code>2018-08-20T07:09:00.000Z</code>
21 #[serde(rename = "endDate", skip_serializing_if = "Option::is_none")]
22 pub end_date: Option<String>,
23 #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
24 pub header: Option<Box<models::Header>>,
25 /// The date and time, in ISO 8601 format, that indicates the last time the data returned in the report was updated.
26 #[serde(rename = "lastUpdatedDate", skip_serializing_if = "Option::is_none")]
27 pub last_updated_date: Option<String>,
28 /// A complex type containing the individual data records for the traffic report.
29 #[serde(rename = "records", skip_serializing_if = "Option::is_none")]
30 pub records: Option<Vec<models::Record>>,
31 /// The start date of the date range used to calculate the report, in ISO 8601 format.
32 #[serde(rename = "startDate", skip_serializing_if = "Option::is_none")]
33 pub start_date: Option<String>,
34 /// An array of any process errors or warnings that were generated during the processing of the call processing.
35 #[serde(rename = "warnings", skip_serializing_if = "Option::is_none")]
36 pub warnings: Option<Vec<models::Error>>,
37}
38
39impl Report {
40 /// The complex type that defines that defines the report.
41 pub fn new() -> Report {
42 Report {
43 dimension_metadata: None,
44 end_date: None,
45 header: None,
46 last_updated_date: None,
47 records: None,
48 start_date: None,
49 warnings: None,
50 }
51 }
52}
53