2020-10-04 11:06:30 +00:00
|
|
|
package dev.inmo.tgbotapi.types.payments
|
2018-12-26 08:07:24 +00:00
|
|
|
|
2022-05-01 16:13:40 +00:00
|
|
|
import dev.inmo.tgbotapi.abstracts.FromUser
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.types.*
|
2022-04-21 18:16:41 +00:00
|
|
|
import dev.inmo.tgbotapi.types.chat.User
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.types.payments.abstracts.*
|
2019-04-13 02:21:19 +00:00
|
|
|
import kotlinx.serialization.SerialName
|
|
|
|
import kotlinx.serialization.Serializable
|
2018-12-26 08:07:24 +00:00
|
|
|
|
|
|
|
// TODO:: separate to normal classes hierarchy
|
|
|
|
@Serializable
|
|
|
|
data class PreCheckoutQuery(
|
|
|
|
@SerialName(idField)
|
|
|
|
val id: PreCheckoutQueryId,
|
|
|
|
@SerialName(fromField)
|
2021-10-18 08:45:57 +00:00
|
|
|
override val from: User,
|
2018-12-26 08:07:24 +00:00
|
|
|
@SerialName(currencyField)
|
|
|
|
override val currency: Currency,
|
|
|
|
@SerialName(totalAmountField)
|
|
|
|
override val amount: Long,
|
|
|
|
@SerialName(invoicePayloadField)
|
|
|
|
val invoicePayload: InvoicePayload,
|
|
|
|
@SerialName(shippingOptionIdField)
|
2024-03-16 16:47:17 +00:00
|
|
|
val shippingOptionId: ShippingOptionId? = null,
|
2018-12-26 08:07:24 +00:00
|
|
|
@SerialName(orderInfoField)
|
|
|
|
val orderInfo: OrderInfo? = null
|
2021-06-28 21:57:32 +00:00
|
|
|
) : Currencied, Amounted, FromUser
|