Class: TD::Types::StorePaymentPurpose::PremiumGiftCodes

Inherits:
TD::Types::StorePaymentPurpose show all
Defined in:
lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb

Overview

The user creating Telegram Premium gift codes for other users.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#amountInteger

Paid amount, in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of amount



9
10
11
# File 'lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb', line 9

def amount
  @amount
end

#boosted_chat_idInteger

Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none.

Returns:

  • (Integer)

    the current value of boosted_chat_id



9
10
11
# File 'lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb', line 9

def boosted_chat_id
  @boosted_chat_id
end

#currencyTD::Types::String

ISO 4217 currency code of the payment currency.

Returns:

  • (TD::Types::String)

    the current value of currency



9
10
11
# File 'lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb', line 9

def currency
  @currency
end

#user_idsArray<Integer>

Identifiers of the users which can activate the gift codes.

Returns:

  • (Array<Integer>)

    the current value of user_ids



9
10
11
# File 'lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb', line 9

def user_ids
  @user_ids
end