package com.remax.visualnovel.entity.response

/**
 * Created by HJW on 2025/9/12
 */

data class Transaction(
    val pageList: Pageable<AccountBuffBill>
)

data class TransactionGift(
    val giftId: Int? = null
)

data class AccountBuffBill(
    val amount: Long,
    val bizNum: String,
    val bizType: String,
    val buffType: String,
    val item: String,
    val inOrOut: String? = null,
    val time: Long,
    val extend: String? = null,
    val toWithdrawableIncomeTime: Long,
    val tradeNo: String,
) {

    val isIn: Boolean
        get() = inOrOut == IN

    companion object {
        const val BALANCE = "BALANCE"
        const val INCOME = "INCOME"

        const val IN = "IN"
        const val OUT = "OUT"
    }
}
