Class: TD::Types::StarPaymentOption

Inherits:
Base
  • Object
show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#amountInteger

The amount to pay, in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of amount



11
12
13
# File 'lib/tdlib/types/star_payment_option.rb', line 11

def amount
  @amount
end

#currencyTD::Types::String

ISO 4217 currency code for the payment.

Returns:

  • (TD::Types::String)

    the current value of currency



11
12
13
# File 'lib/tdlib/types/star_payment_option.rb', line 11

def currency
  @currency
end

#is_additionalBoolean

True, if the option must be shown only in the full list of payment options.

Returns:

  • (Boolean)

    the current value of is_additional



11
12
13
# File 'lib/tdlib/types/star_payment_option.rb', line 11

def is_additional
  @is_additional
end

#star_countInteger

Number of Telegram Stars that will be purchased.

Returns:

  • (Integer)

    the current value of star_count



11
12
13
# File 'lib/tdlib/types/star_payment_option.rb', line 11

def star_count
  @star_count
end

#store_product_idTD::Types::String?

Identifier of the store product associated with the option; may be empty if none.

Returns:

  • (TD::Types::String, nil)

    the current value of store_product_id



11
12
13
# File 'lib/tdlib/types/star_payment_option.rb', line 11

def store_product_id
  @store_product_id
end