use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Summary {
#[serde(rename = "TotalOfferCount")]
pub total_offer_count: i32,
#[serde(rename = "NumberOfOffers", skip_serializing_if = "Option::is_none")]
pub number_of_offers: Option<Vec<models::product_pricing_v0::OfferCountType>>,
#[serde(rename = "LowestPrices", skip_serializing_if = "Option::is_none")]
pub lowest_prices: Option<Vec<models::product_pricing_v0::LowestPriceType>>,
#[serde(rename = "BuyBoxPrices", skip_serializing_if = "Option::is_none")]
pub buy_box_prices: Option<Vec<models::product_pricing_v0::BuyBoxPriceType>>,
#[serde(rename = "ListPrice", skip_serializing_if = "Option::is_none")]
pub list_price: Option<Box<models::product_pricing_v0::MoneyType>>,
#[serde(rename = "CompetitivePriceThreshold", skip_serializing_if = "Option::is_none")]
pub competitive_price_threshold: Option<Box<models::product_pricing_v0::MoneyType>>,
#[serde(rename = "SuggestedLowerPricePlusShipping", skip_serializing_if = "Option::is_none")]
pub suggested_lower_price_plus_shipping: Option<Box<models::product_pricing_v0::MoneyType>>,
#[serde(rename = "SalesRankings", skip_serializing_if = "Option::is_none")]
pub sales_rankings: Option<Vec<models::product_pricing_v0::SalesRankType>>,
#[serde(rename = "BuyBoxEligibleOffers", skip_serializing_if = "Option::is_none")]
pub buy_box_eligible_offers: Option<Vec<models::product_pricing_v0::OfferCountType>>,
#[serde(rename = "OffersAvailableTime", skip_serializing_if = "Option::is_none")]
pub offers_available_time: Option<String>,
}
impl Summary {
pub fn new(total_offer_count: i32) -> Summary {
Summary {
total_offer_count,
number_of_offers: None,
lowest_prices: None,
buy_box_prices: None,
list_price: None,
competitive_price_threshold: None,
suggested_lower_price_plus_shipping: None,
sales_rankings: None,
buy_box_eligible_offers: None,
offers_available_time: None,
}
}
}