1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* The Selling Partner API for Amazon Warehousing and Distribution
*
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
*
* The version of the OpenAPI document: 2024-05-09
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// PrepDetails : The preparation details for a product. This contains the prep category, prep owner, and label owner. Prep instructions are generated based on the specified category.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PrepDetails {
#[serde(rename = "labelOwner", skip_serializing_if = "Option::is_none")]
pub label_owner: Option<models::awd_2024_05_09::LabelOwner>,
#[serde(rename = "prepCategory", skip_serializing_if = "Option::is_none")]
pub prep_category: Option<models::awd_2024_05_09::PrepCategory>,
/// Contains information about the preparation of the inbound products. The system auto-generates this field with the use of the `prepCategory`, and if you attempt to pass a value for this field, the system will ignore it.
#[serde(rename = "prepInstructions", skip_serializing_if = "Option::is_none")]
pub prep_instructions: Option<Vec<models::awd_2024_05_09::PrepInstruction>>,
#[serde(rename = "prepOwner", skip_serializing_if = "Option::is_none")]
pub prep_owner: Option<models::awd_2024_05_09::PrepOwner>,
}
impl PrepDetails {
/// The preparation details for a product. This contains the prep category, prep owner, and label owner. Prep instructions are generated based on the specified category.
pub fn new() -> PrepDetails {
PrepDetails {
label_owner: None,
prep_category: None,
prep_instructions: None,
prep_owner: None,
}
}
}