package cn.muchinfo.rma.global.data

/**
 * 资金账户信息
 * @property accountflag Int
 * @property accountid Int
 * @property accountname String
 * @property balance Double
 * @property capitalbalance Double
 * @property changeflag Int
 * @property changetime String
 * @property closepl Double
 * @property creditdecrease Double
 * @property creditincrease Double
 * @property currencyid Int
 * @property currentbalance Double
 * @property freezecharge Double
 * @property freezemargin Double
 * @property fromaccountid Int
 * @property inamount Double
 * @property ismain Int
 * @property ismarketaccount Int
 * @property isreckonaccount Int
 * @property mortgagecredit Double
 * @property orifreezecharge Double
 * @property orifreezemargin Double
 * @property orimortgagecredit Double
 * @property oriothercredit Double
 * @property oriotherfreezemargin Double
 * @property orioutamountfreeze Double
 * @property oriusedmargin Double
 * @property othercredit Double
 * @property othercreditdecrease Double
 * @property othercreditincrease Double
 * @property otherfreezemargin Double
 * @property otherincome Double
 * @property otherpay Double
 * @property outamount Double
 * @property outamountfreeze Double
 * @property outthreshold Double
 * @property parentaccountid Int
 * @property paycharge Double
 * @property relatedaccountstatus Int
 * @property relateduserid Int
 * @property serivcegroup Int
 * @property signstatus Int
 * @property sublevelpath String
 * @property taaccounttype Int
 * @property thirdinamount Double
 * @property thirdoutamount Double
 * @property tradestatus Int
 * @property tradestatuschangetime String
 * @property transferamount Double
 * @property usedmargin Double
 * @property userid Int
 * @constructor
 */
data class AccountData(
    val accountflag : Long = 0,//账户标识 - 0\1 (默认为0， 当上级账户与本账户的关联用户均为自己时更新为1)
    val accountid : Long = 0,//资金账户ID
    val accountname : String = "",//账户名称
    val balance : Double = 0.0,//期初余额
    val capitalbalance : Double = 0.0,//本金余额[外部子账户实际出入金余额]
    val changeflag : Long = 0,//变动标志(当前账户资金有任何变动更新为1系统结算时更新0;供清算时使用) 0：无变动 1：有变动
    val changetime : String = "",//账户状态变更时间
    val closepl : Double = 0.0,//今日平仓盈亏
    val creditdecrease : Double = 0.0,//今日授信减少
    val creditincrease : Double = 0.0,//今日授信增加
    val currencyid : Int = 0,//货币ID
    val currentbalance : Double = 0.0,//期末余额
    val freezecharge : Double = 0.0,//手续费冻结
    val freezemargin : Double = 0.0,//冻结保证金
    val fromaccountid : Long = 0,//所属上级账户
    val inamount : Double = 0.0,//今日入金金额(包括三方入金)
    val ismain : Int = 0,//是否母账号 0:不是母账户 1:是母账户
    val ismarketaccount : Long = 0,//是否机构接单账号 0:不是 1:是
    val isreckonaccount : Long = 0,//是否机构分润账号 0:不是 1:是
    val mortgagecredit : Double = 0.0,//授信金额
    val orifreezecharge : Double = 0.0,//期初手续费冻结
    val orifreezemargin : Double = 0.0,//期初冻结保证金
    val orimortgagecredit : Double = 0.0,//期初授信金额
    val oriothercredit : Double = 0.0,//期初其它授信金额
    val oriotherfreezemargin : Double = 0.0,//期初其他冻结保证金(出金冻结资金 交割买方冻结 申购冻结 全款买入 商城买入)
    val orioutamountfreeze : Double = 0.0,//期初出金冻结
    val oriusedmargin : Double = 0.0,//期初占用保证金
    val othercredit : Double = 0.0,//其它授信金额
    val othercreditdecrease : Double = 0.0,//今日其它授信减少
    val othercreditincrease : Double = 0.0,//今日其它授信增加
    val otherfreezemargin : Double = 0.0,//其他冻结保证金(交割买方冻结 申购冻结 全款买入 商城买入)
    val otherincome : Double = 0.0,//其他收入(交割收款 申购收款 全款卖出 商城卖出 买家退货 会员手续费收入)
    val otherpay : Double = 0.0,//其他支出(交割付款 申购付款 全款买入 商城买入 卖家退货)
    val outamount : Double = 0.0,//今日出金金额(包括三方出金)
    val outamountfreeze : Double = 0.0,//出金冻结
    val outthreshold : Double = 0.0,//出金阈值
    val parentaccountid : Long = 0,//所属根账号
    val paycharge : Double = 0.0,//今日手续费支出
    val relatedaccountstatus : Long = 0,//关联用户交易权限状态 - 1:正常(可交易) 2:受限(可平仓，不可建仓) 3:冻结(不可交易)
    val relateduserid : Long = 0,//关联用户
    val serivcegroup : Long = 0,//服务分组
    val signstatus : Long = 0,//签约状态 - 1:未签约 2:签约待审核 3:签约中 4:已签约 5:解约待审核 6:解约中 7:已解约 8:已解绑 9:绑卡中
    val sublevelpath : String = "",//账号层级路径(逗号分隔,首尾加逗号)
    val taaccounttype : Long = 0,//账号类型 - 1:外部账号 2:内部账号 3:内部做市自营账号 4:内部做市接单账号
    val thirdinamount : Double = 0.0,//今日三方入金
    val thirdoutamount : Double = 0.0,//今日三方出金
    val tradestatus : Long = 0,//交易状态 - 1:正常 2:受限 3:冻结 4:禁止建仓(人工受限) 5:禁止交易(人工冻结) 6:待激活 7:已注销
    val tradestatuschangetime : String = "",//激活时间
    val transferamount : Double = 0.0,//今日划转金额(母子账号资金划转，从划入账号为正，从账号划出为负)
    val usedmargin : Double = 0.0,//占用保证金
    val userid : Long = 0//用户ID
)