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
/*
* Selling Partner API for Orders
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* The version of the OpenAPI document: v0
*
* Generated by: https://openapi-generator.tech
*/
/// OrdersList : A list of orders along with additional information to make subsequent API calls.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct OrdersList {
/// A list of orders.
#[serde(default, rename = "Orders")]
pub orders: Vec<crate::models::Order>,
/// When present and not empty, pass this string token in the next request to return the next response page.
#[serde(default, rename = "NextToken", skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
/// A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. All dates must be in ISO 8601 format.
#[serde(default, rename = "LastUpdatedBefore", skip_serializing_if = "Option::is_none")]
pub last_updated_before: Option<String>,
/// A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format.
#[serde(default, rename = "CreatedBefore", skip_serializing_if = "Option::is_none")]
pub created_before: Option<String>,
}
impl OrdersList {
/// A list of orders along with additional information to make subsequent API calls.
pub fn new(orders: Vec<crate::models::Order>) -> OrdersList {
OrdersList {
orders,
next_token: None,
last_updated_before: None,
created_before: None,
}
}
}