Package dev.inmo.tgbotapi.types.payments

Types

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

Functions

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