/*
 * 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 QueryTransferListResponseTransfersInner {
    #[serde(rename = "transferId", skip_serializing_if = "Option::is_none")]
    pub transfer_id: Option<String>,
    #[serde(rename = "direction", skip_serializing_if = "Option::is_none")]
    pub direction: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(rename = "walletAddress", skip_serializing_if = "Option::is_none")]
    pub wallet_address: Option<String>,
    #[serde(rename = "fromToken", skip_serializing_if = "Option::is_none")]
    pub from_token: Option<String>,
    #[serde(rename = "fromTokenAmount", skip_serializing_if = "Option::is_none")]
    pub from_token_amount: Option<String>,
    #[serde(rename = "toToken", skip_serializing_if = "Option::is_none")]
    pub to_token: Option<String>,
    #[serde(rename = "toTokenAmount", skip_serializing_if = "Option::is_none")]
    pub to_token_amount: Option<String>,
    #[serde(
        rename = "errorCode",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub error_code: Option<Option<String>>,
    #[serde(
        rename = "errorMessage",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<Option<String>>,
    #[serde(rename = "createTime", skip_serializing_if = "Option::is_none")]
    pub create_time: Option<String>,
    #[serde(rename = "updateTime", skip_serializing_if = "Option::is_none")]
    pub update_time: Option<String>,
    #[serde(rename = "completeAt", skip_serializing_if = "Option::is_none")]
    pub complete_at: Option<String>,
}

impl QueryTransferListResponseTransfersInner {
    #[must_use]
    pub fn new() -> QueryTransferListResponseTransfersInner {
        QueryTransferListResponseTransfersInner {
            transfer_id: None,
            direction: None,
            status: None,
            wallet_address: None,
            from_token: None,
            from_token_amount: None,
            to_token: None,
            to_token_amount: None,
            error_code: None,
            error_message: None,
            create_time: None,
            update_time: None,
            complete_at: None,
        }
    }
}
