late 0.0.297

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};

/// CreateConversionDestinationRequestValue : Static conversion value. Used when `valueType=FIXED`. The currency should match the ad account's currency.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateConversionDestinationRequestValue {
    /// ISO 4217 (e.g. \"USD\").
    #[serde(rename = "currencyCode")]
    pub currency_code: String,
    /// Decimal string (e.g. \"49.99\").
    #[serde(rename = "amount")]
    pub amount: String,
}

impl CreateConversionDestinationRequestValue {
    /// Static conversion value. Used when `valueType=FIXED`. The currency should match the ad account's currency.
    pub fn new(currency_code: String, amount: String) -> CreateConversionDestinationRequestValue {
        CreateConversionDestinationRequestValue {
            currency_code,
            amount,
        }
    }
}