# dev.inmo.tgbotapi.types.payments

docs

# Package dev.inmo.tgbotapi.types.payments

## Types

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

## Functions

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