class Tourmaline::TransactionPartnerAffiliateProgram

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, commission_per_mille : Int32 | Int64, sponsor_user : Tourmaline::User | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def 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


[View source]
def 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


[View source]
def type : String #

Type of the transaction partner, always "affiliate_program"


[View source]
def type=(type : String) #

Type of the transaction partner, always "affiliate_program"


[View source]