late 0.0.512

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MoneyAmount {
    /// Amount as a decimal string, e.g. \"88.59\".
    #[serde(rename = "amount")]
    pub amount: String,
    /// ISO 4217 currency code, e.g. \"USD\".
    #[serde(rename = "currencyCode")]
    pub currency_code: String,
}

impl MoneyAmount {
    pub fn new(amount: String, currency_code: String) -> MoneyAmount {
        MoneyAmount {
            amount,
            currency_code,
        }
    }
}