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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlexibleLoanRepayResponse {
    #[serde(rename = "loanCoin", skip_serializing_if = "Option::is_none")]
    pub loan_coin: Option<String>,
    #[serde(rename = "collateralCoin", skip_serializing_if = "Option::is_none")]
    pub collateral_coin: Option<String>,
    #[serde(rename = "remainingDebt", skip_serializing_if = "Option::is_none")]
    pub remaining_debt: Option<String>,
    #[serde(
        rename = "remainingCollateral",
        skip_serializing_if = "Option::is_none"
    )]
    pub remaining_collateral: Option<String>,
    #[serde(rename = "fullRepayment", skip_serializing_if = "Option::is_none")]
    pub full_repayment: Option<bool>,
    #[serde(rename = "currentLTV", skip_serializing_if = "Option::is_none")]
    pub current_ltv: Option<String>,
    #[serde(rename = "repayStatus", skip_serializing_if = "Option::is_none")]
    pub repay_status: Option<String>,
}

impl FlexibleLoanRepayResponse {
    #[must_use]
    pub fn new() -> FlexibleLoanRepayResponse {
        FlexibleLoanRepayResponse {
            loan_coin: None,
            collateral_coin: None,
            remaining_debt: None,
            remaining_collateral: None,
            full_repayment: None,
            current_ltv: None,
            repay_status: None,
        }
    }
}
