Class: TD::Types::StarPaymentOption
- Defined in:
- lib/tdlib/types/star_payment_option.rb
Overview
Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars 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 the payment.
-
#is_additional ⇒ Boolean
True, if the option must be shown only in the full list of payment options.
-
#star_count ⇒ Integer
Number of Telegram Stars that will be purchased.
-
#store_product_id ⇒ TD::Types::String?
Identifier of the store product associated with the option; may be empty if none.
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/star_payment_option.rb', line 11 def amount @amount end |
#currency ⇒ TD::Types::String
ISO 4217 currency code for the payment.
11 12 13 |
# File 'lib/tdlib/types/star_payment_option.rb', line 11 def currency @currency end |
#is_additional ⇒ Boolean
True, if the option must be shown only in the full list of payment options.
11 12 13 |
# File 'lib/tdlib/types/star_payment_option.rb', line 11 def is_additional @is_additional end |
#star_count ⇒ Integer
Number of Telegram Stars that will be purchased.
11 12 13 |
# File 'lib/tdlib/types/star_payment_option.rb', line 11 def star_count @star_count end |
#store_product_id ⇒ TD::Types::String?
Identifier of the store product associated with the option; may be empty if none.
11 12 13 |
# File 'lib/tdlib/types/star_payment_option.rb', line 11 def store_product_id @store_product_id end |