Class: TD::Types::PremiumGiftCodePaymentOption

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

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



12
13
14
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12

def amount
  @amount
end

#currencyTD::Types::String

ISO 4217 currency code for Telegram Premium gift code payment.

Returns:

  • (TD::Types::String)

    the current value of currency



12
13
14
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12

def currency
  @currency
end

#month_countInteger

Number of months the Telegram Premium subscription will be active.

Returns:

  • (Integer)

    the current value of month_count



12
13
14
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12

def month_count
  @month_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



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_quantityInteger

Number of times the store product must be paid.

Returns:

  • (Integer)

    the current value of store_product_quantity



12
13
14
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12

def store_product_quantity
  @store_product_quantity
end

#user_countInteger

Number of users which will be able to activate the gift codes.

Returns:

  • (Integer)

    the current value of user_count



12
13
14
# File 'lib/tdlib/types/premium_gift_code_payment_option.rb', line 12

def user_count
  @user_count
end