Class: TD::Types::StorePaymentPurpose::PremiumGiftCodes
- Inherits:
-
TD::Types::StorePaymentPurpose
- Object
- Dry::Struct
- Base
- TD::Types::StorePaymentPurpose
- TD::Types::StorePaymentPurpose::PremiumGiftCodes
- 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
-
#amount ⇒ Integer
Paid amount, in the smallest units of the currency.
-
#boosted_chat_id ⇒ Integer
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.
-
#currency ⇒ TD::Types::String
ISO 4217 currency code of the payment currency.
-
#user_ids ⇒ Array<Integer>
Identifiers of the users which can activate the gift codes.
Method Summary
Methods inherited from Base
Instance Attribute Details
#amount ⇒ Integer
Paid amount, in the smallest units of the currency.
9 10 11 |
# File 'lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb', line 9 def amount @amount end |
#boosted_chat_id ⇒ Integer
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.
9 10 11 |
# File 'lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb', line 9 def boosted_chat_id @boosted_chat_id end |
#currency ⇒ TD::Types::String
ISO 4217 currency code of the payment currency.
9 10 11 |
# File 'lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb', line 9 def currency @currency end |
#user_ids ⇒ Array<Integer>
Identifiers of the users which can activate the gift codes.
9 10 11 |
# File 'lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb', line 9 def user_ids @user_ids end |