package com.khmer9.yuki.remote

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
class CreateBettingRequest(
    @Json(name = "yuki_id")
    val lottoId: String,

    @Json(name = "amount")
    val amount: Int
)

@JsonClass(generateAdapter = true)
data class CreateBettingResponse(
    @Json(name = "code")
    val resultCode: String,

    @Json(name = "message")
    val message: CreateBettingMessage,

    @Json(name = "data")
    val data: CreateBettingData?
)

@JsonClass(generateAdapter = true)
data class CreateBettingMessage(
    @Json(name = "code")
    val code: String,

    @Json(name = "descriptions")
    val description: String
)

@JsonClass(generateAdapter = true)
data class CreateBettingData(
    @Json(name = "invoice_no")
    val id: String,

    @Json(name = "no")
    val no: Int,

    @Json(name = "bet_types")
    val betTypes: List<BetType>,

    @Json(name = "total_amount")
    val amount: String,

    @Json(name = "time")
    val time: String,

    @Json(name = "balance")
    val balance: String
)