amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Finances
 *
 * 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 or date range without having to wait until a statement period closes.
 *
 * The version of the OpenAPI document: 2024-06-19
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// Currency : A currency type and amount.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Currency {
    /// The three-digit currency code in ISO 4217 format.
    #[serde(rename = "currencyCode", skip_serializing_if = "Option::is_none")]
    pub currency_code: Option<String>,
    /// Fields with a schema type of BigDecimal are a signed decimal number (for example CurrencyAmount).
    #[serde(rename = "currencyAmount", skip_serializing_if = "Option::is_none")]
    pub currency_amount: Option<f64>,
}

impl Currency {
    /// A currency type and amount.
    pub fn new() -> Currency {
        Currency {
            currency_code: None,
            currency_amount: None,
        }
    }
}