/*
 * Prediction Trading REST API
 *
 * Place and manage prediction market orders, query positions, and transfer funds via the Prediction Trading 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::w3w_prediction::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetQuoteResponse {
    #[serde(rename = "quoteId", skip_serializing_if = "Option::is_none")]
    pub quote_id: Option<String>,
    #[serde(rename = "tokenId", skip_serializing_if = "Option::is_none")]
    pub token_id: Option<String>,
    #[serde(rename = "chance", skip_serializing_if = "Option::is_none")]
    pub chance: Option<String>,
    #[serde(rename = "vendor", skip_serializing_if = "Option::is_none")]
    pub vendor: Option<String>,
    #[serde(rename = "marketTitle", skip_serializing_if = "Option::is_none")]
    pub market_title: Option<String>,
    #[serde(rename = "marketExtId", skip_serializing_if = "Option::is_none")]
    pub market_ext_id: Option<String>,
    #[serde(rename = "side", skip_serializing_if = "Option::is_none")]
    pub side: Option<String>,
    #[serde(rename = "amountIn", skip_serializing_if = "Option::is_none")]
    pub amount_in: Option<String>,
    #[serde(rename = "amountOut", skip_serializing_if = "Option::is_none")]
    pub amount_out: Option<String>,
    #[serde(rename = "isMinAmountOut", skip_serializing_if = "Option::is_none")]
    pub is_min_amount_out: Option<bool>,
    #[serde(rename = "feeAmount", skip_serializing_if = "Option::is_none")]
    pub fee_amount: Option<String>,
    #[serde(rename = "feeDiscountBps", skip_serializing_if = "Option::is_none")]
    pub fee_discount_bps: Option<String>,
    #[serde(rename = "averagePrice", skip_serializing_if = "Option::is_none")]
    pub average_price: Option<f64>,
    #[serde(rename = "lastPrice", skip_serializing_if = "Option::is_none")]
    pub last_price: Option<f64>,
    #[serde(rename = "priceImpact", skip_serializing_if = "Option::is_none")]
    pub price_impact: Option<f64>,
    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
    pub timestamp: Option<i64>,
    #[serde(rename = "chainId", skip_serializing_if = "Option::is_none")]
    pub chain_id: Option<String>,
    #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
    pub user_id: Option<i64>,
    #[serde(rename = "walletAddress", skip_serializing_if = "Option::is_none")]
    pub wallet_address: Option<String>,
    #[serde(rename = "orderType", skip_serializing_if = "Option::is_none")]
    pub order_type: Option<String>,
    #[serde(rename = "slippageBps", skip_serializing_if = "Option::is_none")]
    pub slippage_bps: Option<i32>,
    #[serde(rename = "feeRateBps", skip_serializing_if = "Option::is_none")]
    pub fee_rate_bps: Option<i32>,
    #[serde(rename = "minReceive", skip_serializing_if = "Option::is_none")]
    pub min_receive: Option<String>,
    #[serde(rename = "expireAt", skip_serializing_if = "Option::is_none")]
    pub expire_at: Option<i64>,
    #[serde(
        rename = "priceLimit",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub price_limit: Option<Option<String>>,
}

impl GetQuoteResponse {
    #[must_use]
    pub fn new() -> GetQuoteResponse {
        GetQuoteResponse {
            quote_id: None,
            token_id: None,
            chance: None,
            vendor: None,
            market_title: None,
            market_ext_id: None,
            side: None,
            amount_in: None,
            amount_out: None,
            is_min_amount_out: None,
            fee_amount: None,
            fee_discount_bps: None,
            average_price: None,
            last_price: None,
            price_impact: None,
            timestamp: None,
            chain_id: None,
            user_id: None,
            wallet_address: None,
            order_type: None,
            slippage_bps: None,
            fee_rate_bps: None,
            min_receive: None,
            expire_at: None,
            price_limit: None,
        }
    }
}
