class

Tourmaline::TransactionPartnerAffiliateProgram

Inherits JSON::Serializable < Reference < Object

Describes the affiliate program that issued the affiliate commission received via this transaction.

Constructors

new(type : String, commission_per_mille : Int32 | Int64, sponsor_user : Tourmaline::User | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

commission_per_mille

The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users

Source
commission_per_mille=(commission_per_mille : Int32 | Int64)

The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users

Source
type

Type of the transaction partner, always "affiliate_program"

Source
type=(type : String)

Type of the transaction partner, always "affiliate_program"

Source