/*
 * Binance Simple Earn REST API
 *
 * OpenAPI Specification for the Binance Simple Earn 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::simple_earn::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetSimpleEarnFlexibleProductListResponseRowsInner {
    #[serde(rename = "asset", skip_serializing_if = "Option::is_none")]
    pub asset: Option<String>,
    #[serde(
        rename = "latestAnnualPercentageRate",
        skip_serializing_if = "Option::is_none"
    )]
    pub latest_annual_percentage_rate: Option<String>,
    #[serde(
        rename = "tierAnnualPercentageRate",
        skip_serializing_if = "Option::is_none"
    )]
    pub tier_annual_percentage_rate:
        Option<Box<models::GetFlexibleProductPositionResponseRowsInnerTierAnnualPercentageRate>>,
    #[serde(
        rename = "airDropPercentageRate",
        skip_serializing_if = "Option::is_none"
    )]
    pub air_drop_percentage_rate: Option<String>,
    #[serde(rename = "canPurchase", skip_serializing_if = "Option::is_none")]
    pub can_purchase: Option<bool>,
    #[serde(rename = "canRedeem", skip_serializing_if = "Option::is_none")]
    pub can_redeem: Option<bool>,
    #[serde(rename = "isSoldOut", skip_serializing_if = "Option::is_none")]
    pub is_sold_out: Option<bool>,
    #[serde(rename = "hot", skip_serializing_if = "Option::is_none")]
    pub hot: Option<bool>,
    #[serde(rename = "minPurchaseAmount", skip_serializing_if = "Option::is_none")]
    pub min_purchase_amount: Option<String>,
    #[serde(rename = "productId", skip_serializing_if = "Option::is_none")]
    pub product_id: Option<String>,
    #[serde(
        rename = "subscriptionStartTime",
        skip_serializing_if = "Option::is_none"
    )]
    pub subscription_start_time: Option<i64>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
}

impl GetSimpleEarnFlexibleProductListResponseRowsInner {
    #[must_use]
    pub fn new() -> GetSimpleEarnFlexibleProductListResponseRowsInner {
        GetSimpleEarnFlexibleProductListResponseRowsInner {
            asset: None,
            latest_annual_percentage_rate: None,
            tier_annual_percentage_rate: None,
            air_drop_percentage_rate: None,
            can_purchase: None,
            can_redeem: None,
            is_sold_out: None,
            hot: None,
            min_purchase_amount: None,
            product_id: None,
            subscription_start_time: None,
            status: None,
        }
    }
}
