Package dev.inmo.tgbotapi.types.payments

Types

Invoice
Link copied to clipboard
common
data class Invoice(title: String, description: String, startParameter: String, currency: String, amount: Long) : Amounted, Currencied
LabeledPrice
Link copied to clipboard
common
data class LabeledPrice(label: String, amount: Long) : Amounted
OrderInfo
Link copied to clipboard
common
data class OrderInfo(name: String, phoneNumber: String, email: String, shippingAddress: ShippingAddress)
PreCheckoutQuery
Link copied to clipboard
common
data class PreCheckoutQuery(id: String, user: User, currency: String, amount: Long, invoicePayload: String, shippingOptionId: String?, orderInfo: OrderInfo?) : Currencied, Amounted
ShippingAddress
Link copied to clipboard
common
data class ShippingAddress(countryCode: String, city: String, firstStreetLine: String, secondStreetLine: String, state: String, postCode: String)
ShippingOption
Link copied to clipboard
common
data class ShippingOption(id: String, title: String, prices: List<LabeledPrice>) : Priced
ShippingQuery
Link copied to clipboard
common
data class ShippingQuery(id: String, user: User, invoicePayload: String, shippingAddress: ShippingAddress)
SuccessfulPayment
Link copied to clipboard
common
data class SuccessfulPayment(currency: String, amount: Long, invoicePayload: String, telegramPaymentChargeId: String, providerPaymentChargeId: String, shippingOptionId: String?, orderInfo: OrderInfo?) : Amounted, Currencied

Functions

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