class Hamilton::Types::AffiliateInfo

Overview

Contains information about the affiliate that received a commission via this transaction.

Included Modules

Defined in:

types/affiliate_info.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def affiliate_chat : Hamilton::Types::Chat | Nil #

The chat that received an affiliate commission if it was received by a chat.


def affiliate_chat=(affiliate_chat : Hamilton::Types::Chat | Nil) #

The chat that received an affiliate commission if it was received by a chat.


def affiliate_user : Hamilton::Types::User | Nil #

The bot or the user that received an affiliate commission if it was received by a bot or a user.


def affiliate_user=(affiliate_user : Hamilton::Types::User | Nil) #

The bot or the user that received an affiliate commission if it was received by a bot or a user.


def amount : Int32 #

Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds.


def amount=(amount : Int32) #

Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds.


def commission_per_mille : Int32 #

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


def commission_per_mille=(commission_per_mille : Int32) #

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


def nanostar_amount : Int32 | Nil #

The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.


def nanostar_amount=(nanostar_amount : Int32 | Nil) #

The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.