Skip to main content

amazon_spapi/models/product_pricing_2022_05_01/
points.rs

1/*
2 * Selling Partner API for Pricing
3 *
4 * 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).
5 *
6 * The version of the OpenAPI document: 2022-05-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Points : The number of Amazon Points that are offered with the purchase of an item and the monetary value of these points.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Points {
17    /// The number of Amazon Points.
18    #[serde(rename = "pointsNumber", skip_serializing_if = "Option::is_none")]
19    pub points_number: Option<i32>,
20    #[serde(rename = "pointsMonetaryValue", skip_serializing_if = "Option::is_none")]
21    pub points_monetary_value: Option<Box<models::product_pricing_2022_05_01::MoneyType>>,
22}
23
24impl Points {
25    /// The number of Amazon Points that are offered with the purchase of an item and the monetary value of these points.
26    pub fn new() -> Points {
27        Points {
28            points_number: None,
29            points_monetary_value: None,
30        }
31    }
32}
33