amazon_spapi/models/orders_v0/
substitution_option.rs

1/*
2 * Selling Partner API for Orders
3 *
4 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SubstitutionOption : Substitution options for an order item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SubstitutionOption {
17    /// The item's Amazon Standard Identification Number (ASIN).
18    #[serde(rename = "ASIN", skip_serializing_if = "Option::is_none")]
19    pub asin: Option<String>,
20    /// The number of items to be picked for this substitution option. 
21    #[serde(rename = "QuantityOrdered", skip_serializing_if = "Option::is_none")]
22    pub quantity_ordered: Option<i32>,
23    /// The item's seller stock keeping unit (SKU).
24    #[serde(rename = "SellerSKU", skip_serializing_if = "Option::is_none")]
25    pub seller_sku: Option<String>,
26    /// The item's title.
27    #[serde(rename = "Title", skip_serializing_if = "Option::is_none")]
28    pub title: Option<String>,
29    #[serde(rename = "Measurement", skip_serializing_if = "Option::is_none")]
30    pub measurement: Option<Box<models::orders_v0::Measurement>>,
31}
32
33impl SubstitutionOption {
34    /// Substitution options for an order item.
35    pub fn new() -> SubstitutionOption {
36        SubstitutionOption {
37            asin: None,
38            quantity_ordered: None,
39            seller_sku: None,
40            title: None,
41            measurement: None,
42        }
43    }
44}
45