TransactionPartner

@Serializable
sealed class TransactionPartner

This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of

  • TransactionPartnerUser

  • TransactionPartnerAffiliateProgram

  • TransactionPartnerFragment

  • TransactionPartnerTelegramAds

  • TransactionPartnerTelegramApi

  • TransactionPartnerOther

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "affiliate_program")
data class AffiliateProgram(val sponsorUser: User? = null, val commissionPerMille: Int) : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "fragment")
data class Fragment(val withdrawalState: RevenueWithdrawalState? = null) : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "other")
data object Other : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "telegram_ads")
data object TelegramAds : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "telegram_api")
data class TelegramApi(val requestCount: Int) : TransactionPartner
Link copied to clipboard
@Serializable
@SerialName(value = "user")
data class UserPartner(val user: User, val affiliate: AffiliateInfo? = null, val invoicePayload: String? = null, val paidMedia: List<PaidMedia>? = null, val paidMediaPayload: String? = null, val subscriptionPeriod: Duration? = null, val gift: String? = null) : TransactionPartner

Properties

Link copied to clipboard