amazon_spapi/models/orders_v0/delivery_preferences.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/// DeliveryPreferences : Contains all of the delivery instructions provided by the customer for the shipping address.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeliveryPreferences {
17 /// Drop-off location selected by the customer.
18 #[serde(rename = "DropOffLocation", skip_serializing_if = "Option::is_none")]
19 pub drop_off_location: Option<String>,
20 #[serde(rename = "PreferredDeliveryTime", skip_serializing_if = "Option::is_none")]
21 pub preferred_delivery_time: Option<Box<models::orders_v0::PreferredDeliveryTime>>,
22 /// Enumerated list of miscellaneous delivery attributes associated with the shipping address.
23 #[serde(rename = "OtherAttributes", skip_serializing_if = "Option::is_none")]
24 pub other_attributes: Option<Vec<models::orders_v0::OtherDeliveryAttributes>>,
25 /// Building instructions, nearby landmark or navigation instructions.
26 #[serde(rename = "AddressInstructions", skip_serializing_if = "Option::is_none")]
27 pub address_instructions: Option<String>,
28}
29
30impl DeliveryPreferences {
31 /// Contains all of the delivery instructions provided by the customer for the shipping address.
32 pub fn new() -> DeliveryPreferences {
33 DeliveryPreferences {
34 drop_off_location: None,
35 preferred_delivery_time: None,
36 other_attributes: None,
37 address_instructions: None,
38 }
39 }
40}
41