Package dev.inmo.tgbotapi.types.payments

Types

Link copied to clipboard
data class Invoice(title: String, description: String, startParameter: StartParameter, currency: Currency, amount: Long) : Amounted, Currencied
Link copied to clipboard
data class LabeledPrice(label: String, amount: Long) : Amounted
Link copied to clipboard
object LabeledPricesSerializer : KSerializer<List<LabeledPrice>>
Link copied to clipboard
data class OrderInfo(name: String, phoneNumber: String, email: String, shippingAddress: ShippingAddress)
Link copied to clipboard
data class PreCheckoutQuery(id: PreCheckoutQueryId, from: User, currency: Currency, amount: Long, invoicePayload: InvoicePayload, shippingOptionId: ShippingOptionIdentifier?, orderInfo: OrderInfo?) : Currencied, Amounted, FromUser
Link copied to clipboard
data class ShippingAddress(countryCode: String, city: String, firstStreetLine: String, secondStreetLine: String, state: String, postCode: String)
Link copied to clipboard
data class ShippingOption(id: ShippingOptionIdentifier, title: String, prices: List<LabeledPrice>) : Priced
Link copied to clipboard
data class ShippingQuery(id: ShippingQueryIdentifier, from: User, invoicePayload: InvoicePayload, shippingAddress: ShippingAddress) : FromUser
Link copied to clipboard
data class SuccessfulPayment(currency: Currency, amount: Long, invoicePayload: String, telegramPaymentChargeId: String, providerPaymentChargeId: String, shippingOptionId: String?, orderInfo: OrderInfo?) : Amounted, Currencied

Functions

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