/*
* Selling Partner API for Pricing
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
*
* The version of the OpenAPI document: 2022-05-01
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// Price : The schema for item's price information, including listing price, shipping price, and Amazon Points.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Price {
#[serde(rename = "listingPrice")]
pub listing_price: Box<models::product_pricing_2022_05_01::MoneyType>,
#[serde(rename = "shippingPrice", skip_serializing_if = "Option::is_none")]
pub shipping_price: Option<Box<models::product_pricing_2022_05_01::MoneyType>>,
#[serde(rename = "points", skip_serializing_if = "Option::is_none")]
pub points: Option<Box<models::product_pricing_2022_05_01::Points>>,
}
impl Price {
/// The schema for item's price information, including listing price, shipping price, and Amazon Points.
pub fn new(listing_price: models::product_pricing_2022_05_01::MoneyType) -> Price {
Price {
listing_price: Box::new(listing_price),
shipping_price: None,
points: None,
}
}
}