amazon_spapi/models/shipping_v2/submit_ndr_feedback_request.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/// SubmitNdrFeedbackRequest : The request schema for the NdrFeedback operation
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SubmitNdrFeedbackRequest {
17 /// The carrier generated identifier for a package in a purchased shipment.
18 #[serde(rename = "trackingId")]
19 pub tracking_id: String,
20 #[serde(rename = "ndrAction")]
21 pub ndr_action: models::shipping_v2::NdrAction,
22 #[serde(rename = "ndrRequestData", skip_serializing_if = "Option::is_none")]
23 pub ndr_request_data: Option<Box<models::shipping_v2::NdrRequestData>>,
24}
25
26impl SubmitNdrFeedbackRequest {
27 /// The request schema for the NdrFeedback operation
28 pub fn new(tracking_id: String, ndr_action: models::shipping_v2::NdrAction) -> SubmitNdrFeedbackRequest {
29 SubmitNdrFeedbackRequest {
30 tracking_id,
31 ndr_action,
32 ndr_request_data: None,
33 }
34 }
35}
36