Skip to main content

amazon_spapi/models/shipping_v2/
ndr_request_data.rs

1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NdrRequestData : Additional information required for the NDR action that has been filed. If the NDR Action is RESCHEDULE, rescheduleDate is a required field. Otherwise, if the NDR Action is REATTEMPT, additionalAddressNotes is a required field. 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NdrRequestData {
17    /// The date on which the Seller wants to reschedule shipment delivery, in ISO-8601 date/time format
18    #[serde(rename = "rescheduleDate", skip_serializing_if = "Option::is_none")]
19    pub reschedule_date: Option<String>,
20    /// Address notes to re-attempt delivery with.
21    #[serde(rename = "additionalAddressNotes", skip_serializing_if = "Option::is_none")]
22    pub additional_address_notes: Option<String>,
23}
24
25impl NdrRequestData {
26    /// Additional information required for the NDR action that has been filed. If the NDR Action is RESCHEDULE, rescheduleDate is a required field. Otherwise, if the NDR Action is REATTEMPT, additionalAddressNotes is a required field. 
27    pub fn new() -> NdrRequestData {
28        NdrRequestData {
29            reschedule_date: None,
30            additional_address_notes: None,
31        }
32    }
33}
34