Class: TD::Types::PremiumGiftCodePaymentOption
- Defined in:
- lib/tdlib/types/premium_gift_code_payment_option.rb
Overview
Describes an option for creating Telegram Premium gift codes. Use telegramPaymentPurposePremiumGiftCodes for out-of-store payments.
Instance Attribute Summary collapse
-
#amount ⇒ Integer
The amount to pay, in the smallest units of the currency.
-
#currency ⇒ TD::Types::String
ISO 4217 currency code for Telegram Premium gift code payment.
-
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active.
-
#store_product_id ⇒ TD::Types::String?
Identifier of the store product associated with the option; may be empty if none.
-
#store_product_quantity ⇒ Integer
Number of times the store product must be paid.
-
#user_count ⇒ Integer
Number of users which will be able to activate the gift codes.
Method Summary
Methods inherited from Base
Instance Attribute Details
#amount ⇒ Integer
The amount to pay, in the smallest units of the currency.
12 13 14 |
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12 def amount @amount end |
#currency ⇒ TD::Types::String
ISO 4217 currency code for Telegram Premium gift code payment.
12 13 14 |
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12 def currency @currency end |
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active.
12 13 14 |
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12 def month_count @month_count end |
#store_product_id ⇒ TD::Types::String?
Identifier of the store product associated with the option; may be empty if none.
12 13 14 |
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12 def store_product_id @store_product_id end |
#store_product_quantity ⇒ Integer
Number of times the store product must be paid.
12 13 14 |
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12 def store_product_quantity @store_product_quantity end |
#user_count ⇒ Integer
Number of users which will be able to activate the gift codes.
12 13 14 |
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12 def user_count @user_count end |