/*
* Selling Partner API for Fulfillment Inbound
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* The version of the OpenAPI document: v0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// Amount : The monetary value.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Amount {
#[serde(rename = "CurrencyCode")]
pub currency_code: models::fulfillment_inbound_v0::CurrencyCode,
/// Number format that supports decimal.
#[serde(rename = "Value")]
pub value: f64,
}
impl Amount {
/// The monetary value.
pub fn new(currency_code: models::fulfillment_inbound_v0::CurrencyCode, value: f64) -> Amount {
Amount {
currency_code,
value,
}
}
}