Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Invoice(val title: String, val description: String, val startParameter: StartParameter, val currency: Currency, val amount: Long) : Amounted, Currencied, ReplyInfo.External.ContentVariant
Link copied to clipboard
@Serializable
data class LabeledPrice(val label: String, val amount: Long) : Amounted
Link copied to clipboard
object LabeledPricesSerializer : KSerializer<List<LabeledPrice>>
Link copied to clipboard
@Serializable
data class OrderInfo(val name: String?, val phoneNumber: String?, val email: String?, val shippingAddress: ShippingAddress?)

All the field of this class are nullable due to specific of OrderInfo from official bots api

Link copied to clipboard
@Serializable
data class PreCheckoutQuery(val id: PreCheckoutQueryId, val from: User, val currency: Currency, val amount: Long, val invoicePayload: InvoicePayload, val shippingOptionId: ShippingOptionId? = null, val orderInfo: OrderInfo? = null) : Currencied, Amounted, FromUser
Link copied to clipboard
@Serializable
data class RefundedPayment(val currency: Currency, val amount: Long, val invoicePayload: String, val telegramPaymentChargeId: TelegramPaymentChargeId, val providerPaymentChargeId: String? = null) : Amounted, Currencied
Link copied to clipboard
@Serializable
data class ShippingAddress(val countryCode: String, val city: String, val firstStreetLine: String, val secondStreetLine: String, val state: String = "", val postCode: String = "")
Link copied to clipboard
@Serializable
data class ShippingOption(val id: ShippingOptionId, val title: String, val prices: List<LabeledPrice>) : Priced
Link copied to clipboard
@Serializable
data class ShippingQuery(val id: ShippingQueryId, val from: User, val invoicePayload: InvoicePayload, val shippingAddress: ShippingAddress) : FromUser
Link copied to clipboard
@Serializable
data class SuccessfulPayment(val currency: Currency, val amount: Long, val invoicePayload: String, val telegramPaymentChargeId: TelegramPaymentChargeId, val providerPaymentChargeId: String, val shippingOptionId: String? = null, val orderInfo: OrderInfo? = null) : Amounted, Currencied

Functions

Link copied to clipboard