amazon_spapi/models/finances_2024_06_19/
time_range_context.rs

1/*
2 * The Selling Partner API for Finances
3 *
4 * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
5 *
6 * The version of the OpenAPI document: 2024-06-19
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TimeRangeContext : Additional information related to time range for transaction.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TimeRangeContext {
17    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
18    #[serde(rename = "startTime", skip_serializing_if = "Option::is_none")]
19    pub start_time: Option<String>,
20    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
21    #[serde(rename = "endTime", skip_serializing_if = "Option::is_none")]
22    pub end_time: Option<String>,
23}
24
25impl TimeRangeContext {
26    /// Additional information related to time range for transaction.
27    pub fn new() -> TimeRangeContext {
28        TimeRangeContext {
29            start_time: None,
30            end_time: None,
31        }
32    }
33}
34