/*
* 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};
/// SubmitNdrFeedbackRequest : The request schema for the NdrFeedback operation
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SubmitNdrFeedbackRequest {
/// The carrier generated identifier for a package in a purchased shipment.
#[serde(rename = "trackingId")]
pub tracking_id: String,
#[serde(rename = "ndrAction")]
pub ndr_action: models::shipping_v2::NdrAction,
#[serde(rename = "ndrRequestData", skip_serializing_if = "Option::is_none")]
pub ndr_request_data: Option<Box<models::shipping_v2::NdrRequestData>>,
}
impl SubmitNdrFeedbackRequest {
/// The request schema for the NdrFeedback operation
pub fn new(tracking_id: String, ndr_action: models::shipping_v2::NdrAction) -> SubmitNdrFeedbackRequest {
SubmitNdrFeedbackRequest {
tracking_id,
ndr_action,
ndr_request_data: None,
}
}
}