amazon_spapi/models/orders_v0/
shipping_constraints.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/// ShippingConstraints : Delivery constraints applicable to this order.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ShippingConstraints {
17    #[serde(rename = "PalletDelivery", skip_serializing_if = "Option::is_none")]
18    pub pallet_delivery: Option<models::orders_v0::ConstraintType>,
19    #[serde(rename = "SignatureConfirmation", skip_serializing_if = "Option::is_none")]
20    pub signature_confirmation: Option<models::orders_v0::ConstraintType>,
21    #[serde(rename = "RecipientIdentityVerification", skip_serializing_if = "Option::is_none")]
22    pub recipient_identity_verification: Option<models::orders_v0::ConstraintType>,
23    #[serde(rename = "RecipientAgeVerification", skip_serializing_if = "Option::is_none")]
24    pub recipient_age_verification: Option<models::orders_v0::ConstraintType>,
25}
26
27impl ShippingConstraints {
28    /// Delivery constraints applicable to this order.
29    pub fn new() -> ShippingConstraints {
30        ShippingConstraints {
31            pallet_delivery: None,
32            signature_confirmation: None,
33            recipient_identity_verification: None,
34            recipient_age_verification: None,
35        }
36    }
37}
38