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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetPayTradeHistoryResponseDataInner {
    #[serde(rename = "orderType", skip_serializing_if = "Option::is_none")]
    pub order_type: Option<String>,
    #[serde(rename = "transactionId", skip_serializing_if = "Option::is_none")]
    pub transaction_id: Option<String>,
    #[serde(rename = "transactionTime", skip_serializing_if = "Option::is_none")]
    pub transaction_time: Option<i64>,
    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
    pub amount: Option<String>,
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    #[serde(rename = "walletType", skip_serializing_if = "Option::is_none")]
    pub wallet_type: Option<i64>,
    #[serde(rename = "walletTypes", skip_serializing_if = "Option::is_none")]
    pub wallet_types: Option<Vec<i64>>,
    #[serde(rename = "fundsDetail", skip_serializing_if = "Option::is_none")]
    pub funds_detail: Option<Vec<models::GetPayTradeHistoryResponseDataInnerFundsDetailInner>>,
    #[serde(rename = "payerInfo", skip_serializing_if = "Option::is_none")]
    pub payer_info: Option<Box<models::GetPayTradeHistoryResponseDataInnerPayerInfo>>,
    #[serde(rename = "receiverInfo", skip_serializing_if = "Option::is_none")]
    pub receiver_info: Option<Box<models::GetPayTradeHistoryResponseDataInnerReceiverInfo>>,
}

impl GetPayTradeHistoryResponseDataInner {
    #[must_use]
    pub fn new() -> GetPayTradeHistoryResponseDataInner {
        GetPayTradeHistoryResponseDataInner {
            order_type: None,
            transaction_id: None,
            transaction_time: None,
            amount: None,
            currency: None,
            wallet_type: None,
            wallet_types: None,
            funds_detail: None,
            payer_info: None,
            receiver_info: None,
        }
    }
}
