amazon_spapi/models/product_pricing_v0/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 information for Amazon Marketplace products.
5 *
6 * The version of the OpenAPI document: v0
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 offered with the purchase of an item, and their monetary value.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Points {
17 /// The number of 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_v0::MoneyType>>,
22}
23
24impl Points {
25 /// The number of Amazon Points offered with the purchase of an item, and their monetary value.
26 pub fn new() -> Points {
27 Points {
28 points_number: None,
29 points_monetary_value: None,
30 }
31 }
32}
33