Package dev.inmo.tgbotapi.types.payments

Types

Link copied to clipboard
data class Invoice(    val title: String,     val description: String,     val startParameter: StartParameter,     val currency: Currency,     val amount: Long) : Amounted, Currencied
Link copied to clipboard
data class LabeledPrice(val label: String, val amount: Long) : Amounted
Link copied to clipboard
object LabeledPricesSerializer : KSerializer<List<LabeledPrice>>
Link copied to clipboard
data class OrderInfo(    val name: String,     val phoneNumber: String,     val email: String,     val shippingAddress: ShippingAddress)
Link copied to clipboard
data class PreCheckoutQuery(    val id: PreCheckoutQueryId,     val from: User,     val currency: Currency,     val amount: Long,     val invoicePayload: InvoicePayload,     val shippingOptionId: ShippingOptionIdentifier? = null,     val orderInfo: OrderInfo? = null) : Currencied, Amounted, FromUser
Link copied to clipboard
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
data class ShippingOption(    val id: ShippingOptionIdentifier,     val title: String,     val prices: List<LabeledPrice>) : Priced
Link copied to clipboard
data class ShippingQuery(    val id: ShippingQueryIdentifier,     val from: User,     val invoicePayload: InvoicePayload,     val shippingAddress: ShippingAddress) : FromUser
Link copied to clipboard
data class SuccessfulPayment(    val currency: Currency,     val amount: Long,     val invoicePayload: String,     val telegramPaymentChargeId: String,     val providerPaymentChargeId: String,     val shippingOptionId: String? = null,     val orderInfo: OrderInfo? = null) : Amounted, Currencied

Functions

Link copied to clipboard
fun Currencied.javaCurrency(): Currency