amazon_spapi/models/fulfillment_inbound_v0/amount.rs
1/*
2 * Selling Partner API for Fulfillment Inbound
3 *
4 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
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/// Amount : The monetary value.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Amount {
17 #[serde(rename = "CurrencyCode")]
18 pub currency_code: models::fulfillment_inbound_v0::CurrencyCode,
19 /// Number format that supports decimal.
20 #[serde(rename = "Value")]
21 pub value: f64,
22}
23
24impl Amount {
25 /// The monetary value.
26 pub fn new(currency_code: models::fulfillment_inbound_v0::CurrencyCode, value: f64) -> Amount {
27 Amount {
28 currency_code,
29 value,
30 }
31 }
32}
33