amazon_spapi/models/orders_v0/
associated_item.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/// AssociatedItem : An item that is associated with an order item. For example, a tire installation service that is purchased with tires.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AssociatedItem {
17    /// The order item's order identifier, in 3-7-7 format.
18    #[serde(rename = "OrderId", skip_serializing_if = "Option::is_none")]
19    pub order_id: Option<String>,
20    /// An Amazon-defined item identifier for the associated item.
21    #[serde(rename = "OrderItemId", skip_serializing_if = "Option::is_none")]
22    pub order_item_id: Option<String>,
23    #[serde(rename = "AssociationType", skip_serializing_if = "Option::is_none")]
24    pub association_type: Option<models::orders_v0::AssociationType>,
25}
26
27impl AssociatedItem {
28    /// An item that is associated with an order item. For example, a tire installation service that is purchased with tires.
29    pub fn new() -> AssociatedItem {
30        AssociatedItem {
31            order_id: None,
32            order_item_id: None,
33            association_type: None,
34        }
35    }
36}
37