/*
 * Binance Dual Investment REST API
 *
 * OpenAPI Specification for the Binance Dual Investment REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

#![allow(unused_imports)]
use crate::dual_investment::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDualInvestmentProductListResponseListInner {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "investCoin", skip_serializing_if = "Option::is_none")]
    pub invest_coin: Option<String>,
    #[serde(rename = "exercisedCoin", skip_serializing_if = "Option::is_none")]
    pub exercised_coin: Option<String>,
    #[serde(rename = "strikePrice", skip_serializing_if = "Option::is_none")]
    pub strike_price: Option<String>,
    #[serde(rename = "duration", skip_serializing_if = "Option::is_none")]
    pub duration: Option<i64>,
    #[serde(rename = "settleDate", skip_serializing_if = "Option::is_none")]
    pub settle_date: Option<i64>,
    #[serde(rename = "purchaseDecimal", skip_serializing_if = "Option::is_none")]
    pub purchase_decimal: Option<i64>,
    #[serde(rename = "purchaseEndTime", skip_serializing_if = "Option::is_none")]
    pub purchase_end_time: Option<i64>,
    #[serde(rename = "canPurchase", skip_serializing_if = "Option::is_none")]
    pub can_purchase: Option<bool>,
    #[serde(rename = "apr", skip_serializing_if = "Option::is_none")]
    pub apr: Option<String>,
    #[serde(rename = "orderId", skip_serializing_if = "Option::is_none")]
    pub order_id: Option<i64>,
    #[serde(rename = "minAmount", skip_serializing_if = "Option::is_none")]
    pub min_amount: Option<String>,
    #[serde(rename = "maxAmount", skip_serializing_if = "Option::is_none")]
    pub max_amount: Option<String>,
    #[serde(rename = "createTimestamp", skip_serializing_if = "Option::is_none")]
    pub create_timestamp: Option<i64>,
    #[serde(rename = "optionType", skip_serializing_if = "Option::is_none")]
    pub option_type: Option<String>,
    #[serde(
        rename = "isAutoCompoundEnable",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_auto_compound_enable: Option<bool>,
    #[serde(
        rename = "autoCompoundPlanList",
        skip_serializing_if = "Option::is_none"
    )]
    pub auto_compound_plan_list: Option<Vec<String>>,
}

impl GetDualInvestmentProductListResponseListInner {
    #[must_use]
    pub fn new() -> GetDualInvestmentProductListResponseListInner {
        GetDualInvestmentProductListResponseListInner {
            id: None,
            invest_coin: None,
            exercised_coin: None,
            strike_price: None,
            duration: None,
            settle_date: None,
            purchase_decimal: None,
            purchase_end_time: None,
            can_purchase: None,
            apr: None,
            order_id: None,
            min_amount: None,
            max_amount: None,
            create_timestamp: None,
            option_type: None,
            is_auto_compound_enable: None,
            auto_compound_plan_list: None,
        }
    }
}
