amazon_spapi/models/orders_v0/
rejection_reason.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/// RejectionReason : The reason for rejecting the order's regulated information. This is only present if the order is rejected.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RejectionReason {
17    /// The unique identifier for the rejection reason.
18    #[serde(rename = "RejectionReasonId")]
19    pub rejection_reason_id: String,
20    /// The description of this rejection reason.
21    #[serde(rename = "RejectionReasonDescription")]
22    pub rejection_reason_description: String,
23}
24
25impl RejectionReason {
26    /// The reason for rejecting the order's regulated information. This is only present if the order is rejected.
27    pub fn new(rejection_reason_id: String, rejection_reason_description: String) -> RejectionReason {
28        RejectionReason {
29            rejection_reason_id,
30            rejection_reason_description,
31        }
32    }
33}
34