amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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,
        }
    }
}