Class: TD::Types::PremiumPaymentOption
- Defined in:
- lib/tdlib/types/premium_payment_option.rb
Overview
Describes an option for buying Telegram Premium to a user.
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 subscription payment.
-
#discount_percentage ⇒ Integer
The discount associated with this option, as a percentage.
-
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active.
-
#payment_link ⇒ TD::Types::InternalLinkType?
An internal link to be opened for buying Telegram Premium to the user if store payment isn’t possible; may be null if direct payment isn’t available.
-
#store_product_id ⇒ TD::Types::String
Identifier of the store product associated with the option.
Method Summary
Methods inherited from Base
Instance Attribute Details
#amount ⇒ Integer
The amount to pay, in the smallest units of the currency.
11 12 13 |
# File 'lib/tdlib/types/premium_payment_option.rb', line 11 def amount @amount end |
#currency ⇒ TD::Types::String
ISO 4217 currency code for Telegram Premium subscription payment.
11 12 13 |
# File 'lib/tdlib/types/premium_payment_option.rb', line 11 def currency @currency end |
#discount_percentage ⇒ Integer
The discount associated with this option, as a percentage.
11 12 13 |
# File 'lib/tdlib/types/premium_payment_option.rb', line 11 def discount_percentage @discount_percentage end |
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active.
11 12 13 |
# File 'lib/tdlib/types/premium_payment_option.rb', line 11 def month_count @month_count end |
#payment_link ⇒ TD::Types::InternalLinkType?
An internal link to be opened for buying Telegram Premium to the user if store payment isn’t possible; may be null if direct payment isn’t available.
11 12 13 |
# File 'lib/tdlib/types/premium_payment_option.rb', line 11 def payment_link @payment_link end |
#store_product_id ⇒ TD::Types::String
Identifier of the store product associated with the option.
11 12 13 |
# File 'lib/tdlib/types/premium_payment_option.rb', line 11 def store_product_id @store_product_id end |