1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-29 04:47:48 +00:00
tgbotapi/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/payments/PreCheckoutQuery.kt

30 lines
961 B
Kotlin
Raw Normal View History

2018-12-26 08:07:24 +00:00
package com.github.insanusmokrassar.TelegramBotAPI.types.payments
import com.github.insanusmokrassar.TelegramBotAPI.types.*
import com.github.insanusmokrassar.TelegramBotAPI.types.payments.abstracts.*
import kotlinx.serialization.*
import kotlinx.serialization.Optional
import java.util.*
// TODO:: separate to normal classes hierarchy
@Serializable
data class PreCheckoutQuery(
@SerialName(idField)
val id: PreCheckoutQueryId,
@SerialName(fromField)
val user: User,
@Serializable(CurrencySerializer::class)
@SerialName(currencyField)
override val currency: Currency,
@SerialName(totalAmountField)
override val amount: Long,
@SerialName(invoicePayloadField)
val invoicePayload: InvoicePayload,
@SerialName(shippingOptionIdField)
@Optional
val shippingOptionId: ShippingOptionIdentifier? = null,
@SerialName(orderInfoField)
@Optional
val orderInfo: OrderInfo? = null
) : Currencied, Amounted