amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Pricing
 *
 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// Points : The number of Amazon Points offered with the purchase of an item, and their monetary value.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Points {
    /// The number of points.
    #[serde(rename = "PointsNumber", skip_serializing_if = "Option::is_none")]
    pub points_number: Option<i32>,
    #[serde(rename = "PointsMonetaryValue", skip_serializing_if = "Option::is_none")]
    pub points_monetary_value: Option<Box<models::product_pricing_v0::MoneyType>>,
}

impl Points {
    /// The number of Amazon Points offered with the purchase of an item, and their monetary value.
    pub fn new() -> Points {
        Points {
            points_number: None,
            points_monetary_value: None,
        }
    }
}