1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
/*
* Selling Partner API for Reports
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* The version of the OpenAPI document: 2020-09-04
*
* Generated by: https://openapi-generator.tech
*/
/// ReportSchedule : Detailed information about a report schedule.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ReportSchedule {
/// The identifier for the report schedule. This identifier is unique only in combination with a seller ID.
#[serde(default, rename = "reportScheduleId")]
pub report_schedule_id: String,
/// The report type.
#[serde(default, rename = "reportType")]
pub report_type: String,
/// A list of marketplace identifiers. The report document's contents will contain data for all of the specified marketplaces, unless the report type indicates otherwise.
#[serde(default, rename = "marketplaceIds", skip_serializing_if = "Option::is_none")]
pub marketplace_ids: Option<Vec<String>>,
/// Additional information passed to reports. This varies by report type.
#[serde(default, rename = "reportOptions", skip_serializing_if = "Option::is_none")]
pub report_options: Option<::std::collections::HashMap<String, String>>,
/// An ISO 8601 period value that indicates how often a report should be created.
#[serde(default, rename = "period")]
pub period: String,
/// The date and time when the schedule will create its next report, in ISO 8601 date time format.
#[serde(default, rename = "nextReportCreationTime", skip_serializing_if = "Option::is_none")]
pub next_report_creation_time: Option<String>,
}
impl ReportSchedule {
/// Detailed information about a report schedule.
pub fn new(report_schedule_id: String, report_type: String, period: String) -> ReportSchedule {
ReportSchedule {
report_schedule_id,
report_type,
marketplace_ids: None,
report_options: None,
period,
next_report_creation_time: None,
}
}
}