Skip to main content

amazon_spapi/models/fulfillment_outbound_2020_07_01/
reason_code_details.rs

1/*
2 * Selling Partner APIs for Fulfillment Outbound
3 *
4 * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.
5 *
6 * The version of the OpenAPI document: 2020-07-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ReasonCodeDetails : A return reason code, a description, and an optional description translation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ReasonCodeDetails {
17    /// A code that indicates a valid return reason.
18    #[serde(rename = "returnReasonCode")]
19    pub return_reason_code: String,
20    /// A human readable description of the return reason code.
21    #[serde(rename = "description")]
22    pub description: String,
23    /// A translation of the description. The translation is in the language specified in the Language request parameter.
24    #[serde(rename = "translatedDescription", skip_serializing_if = "Option::is_none")]
25    pub translated_description: Option<String>,
26}
27
28impl ReasonCodeDetails {
29    /// A return reason code, a description, and an optional description translation.
30    pub fn new(return_reason_code: String, description: String) -> ReasonCodeDetails {
31        ReasonCodeDetails {
32            return_reason_code,
33            description,
34            translated_description: None,
35        }
36    }
37}
38