/*
* Selling Partner API for Orders
*
* Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
*
* The version of the OpenAPI document: v0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// PointsGrantedDetail : 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 PointsGrantedDetail {
/// The number of Amazon Points granted with the purchase of an item.
#[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::orders_v0::Money>>,
}
impl PointsGrantedDetail {
/// The number of Amazon Points offered with the purchase of an item, and their monetary value.
pub fn new() -> PointsGrantedDetail {
PointsGrantedDetail {
points_number: None,
points_monetary_value: None,
}
}
}