use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Product {
#[serde(rename = "Identifiers")]
pub identifiers: Box<models::product_pricing_v0::IdentifierType>,
#[serde(rename = "AttributeSets", skip_serializing_if = "Option::is_none")]
pub attribute_sets: Option<Vec<serde_json::Value>>,
#[serde(rename = "Relationships", skip_serializing_if = "Option::is_none")]
pub relationships: Option<Vec<serde_json::Value>>,
#[serde(rename = "CompetitivePricing", skip_serializing_if = "Option::is_none")]
pub competitive_pricing: Option<Box<models::product_pricing_v0::CompetitivePricingType>>,
#[serde(rename = "SalesRankings", skip_serializing_if = "Option::is_none")]
pub sales_rankings: Option<Vec<models::product_pricing_v0::SalesRankType>>,
#[serde(rename = "Offers", skip_serializing_if = "Option::is_none")]
pub offers: Option<Vec<models::product_pricing_v0::OfferType>>,
}
impl Product {
pub fn new(identifiers: models::product_pricing_v0::IdentifierType) -> Product {
Product {
identifiers: Box::new(identifiers),
attribute_sets: None,
relationships: None,
competitive_pricing: None,
sales_rankings: None,
offers: None,
}
}
}