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
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * Selling Partner APIs for Fulfillment Outbound
 *
 * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.
 *
 * The version of the OpenAPI document: 2020-07-01
 * 
 * Generated by: https://openapi-generator.tech
 */

/// UpdateFulfillmentOrderItem : Item information for updating a fulfillment order.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UpdateFulfillmentOrderItem {
    /// The seller SKU of the item.
    #[serde(default, rename = "sellerSku", skip_serializing_if = "Option::is_none")]
    pub seller_sku: Option<String>,
    /// Identifies the fulfillment order item to update. Created with a previous call to the createFulfillmentOrder operation.
    #[serde(default, rename = "sellerFulfillmentOrderItemId")]
    pub seller_fulfillment_order_item_id: String,
    /// The item quantity.
    #[serde(default, rename = "quantity")]
    pub quantity: i32,
    /// A message to the gift recipient, if applicable.
    #[serde(default, rename = "giftMessage", skip_serializing_if = "Option::is_none")]
    pub gift_message: Option<String>,
    /// Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip.
    #[serde(default, rename = "displayableComment", skip_serializing_if = "Option::is_none")]
    pub displayable_comment: Option<String>,
    /// Amazon's fulfillment network SKU of the item.
    #[serde(default, rename = "fulfillmentNetworkSku", skip_serializing_if = "Option::is_none")]
    pub fulfillment_network_sku: Option<String>,
    /// Indicates whether the item is sellable or unsellable.
    #[serde(default, rename = "orderItemDisposition", skip_serializing_if = "Option::is_none")]
    pub order_item_disposition: Option<String>,
    #[serde(default, rename = "perUnitDeclaredValue", skip_serializing_if = "Option::is_none")]
    pub per_unit_declared_value: Option<Box<crate::models::Money>>,
    #[serde(default, rename = "perUnitPrice", skip_serializing_if = "Option::is_none")]
    pub per_unit_price: Option<Box<crate::models::Money>>,
    #[serde(default, rename = "perUnitTax", skip_serializing_if = "Option::is_none")]
    pub per_unit_tax: Option<Box<crate::models::Money>>,
}

impl UpdateFulfillmentOrderItem {
    /// Item information for updating a fulfillment order.
    pub fn new(seller_fulfillment_order_item_id: String, quantity: i32) -> UpdateFulfillmentOrderItem {
        UpdateFulfillmentOrderItem {
            seller_sku: None,
            seller_fulfillment_order_item_id,
            quantity,
            gift_message: None,
            displayable_comment: None,
            fulfillment_network_sku: None,
            order_item_disposition: None,
            per_unit_declared_value: None,
            per_unit_price: None,
            per_unit_tax: None,
        }
    }
}