Skip to main content

amazon_spapi/models/listings_items_2021_08_01/
points.rs

1/*
2 * Selling Partner API for Listings Items
3 *
4 * The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which you use to retrieve the information about Amazon product types needed to use the Listings Items API.  For more information, see the [Listings Items API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2021-08-01-use-case-guide).
5 *
6 * The version of the OpenAPI document: 2021-08-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 offered with the purchase of an item, and their monetary value. Note that the `Points` element is only returned in Japan (JP).
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Points {
17    #[serde(rename = "pointsNumber")]
18    pub points_number: i32,
19}
20
21impl Points {
22    /// The number of Amazon Points offered with the purchase of an item, and their monetary value. Note that the `Points` element is only returned in Japan (JP).
23    pub fn new(points_number: i32) -> Points {
24        Points {
25            points_number,
26        }
27    }
28}
29