amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Amazon Shipping API
 *
 * 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.
 *
 * The version of the OpenAPI document: v2
 * Contact: swa-api-core@amazon.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// 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. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NdrRequestData {
    /// The date on which the Seller wants to reschedule shipment delivery, in ISO-8601 date/time format
    #[serde(rename = "rescheduleDate", skip_serializing_if = "Option::is_none")]
    pub reschedule_date: Option<String>,
    /// Address notes to re-attempt delivery with.
    #[serde(rename = "additionalAddressNotes", skip_serializing_if = "Option::is_none")]
    pub additional_address_notes: Option<String>,
}

impl 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. 
    pub fn new() -> NdrRequestData {
        NdrRequestData {
            reschedule_date: None,
            additional_address_notes: None,
        }
    }
}