Class: Telegram::Bot::Types::TransactionPartnerAffiliateProgram

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/transaction_partner_affiliate_program.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#commission_per_milleInteger (readonly)

Returns the value of attribute commission_per_mille.

Returns:

  • (Integer)


10
11
12
# File 'sig/telegram/bot/types/transaction_partner_affiliate_program.rbs', line 10

def commission_per_mille
  @commission_per_mille
end

Returns the value of attribute sponsor_user.

Returns:



9
10
11
# File 'sig/telegram/bot/types/transaction_partner_affiliate_program.rbs', line 9

def sponsor_user
  @sponsor_user
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/transaction_partner_affiliate_program.rbs', line 8

def type
  @type
end

Class Method Details

.new(type:, sponsor_user:, commission_per_mille:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, sponsor_user:, commission_per_mille:) ⇒ instance

    Parameters:

    • type: (String)
    • sponsor_user: (User)
    • commission_per_mille: (Integer)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/transaction_partner_affiliate_program.rbs', line 6

def self.new: (?type: String, ?sponsor_user: User, commission_per_mille: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance