amazon_spapi/models/finances_v0/
currency.rs

1/*
2 * Selling Partner API for Finances
3 *
4 * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
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/// Currency : A currency type and amount.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Currency {
17    /// The three-digit currency code in ISO 4217 format.
18    #[serde(rename = "CurrencyCode", skip_serializing_if = "Option::is_none")]
19    pub currency_code: Option<String>,
20    /// Fields with a schema type of BigDecimal are a signed decimal number (for example CurrencyAmount).
21    #[serde(rename = "CurrencyAmount", skip_serializing_if = "Option::is_none")]
22    pub currency_amount: Option<f64>,
23}
24
25impl Currency {
26    /// A currency type and amount.
27    pub fn new() -> Currency {
28        Currency {
29            currency_code: None,
30            currency_amount: None,
31        }
32    }
33}
34