Class: TD::Types::StorePaymentPurpose::GiftedPremium

Inherits:
TD::Types::StorePaymentPurpose show all
Defined in:
lib/tdlib/types/store_payment_purpose/gifted_premium.rb

Overview

The user gifting Telegram Premium to another user.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#amountInteger

Paid amount, in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of amount



7
8
9
# File 'lib/tdlib/types/store_payment_purpose/gifted_premium.rb', line 7

def amount
  @amount
end

#currencyTD::Types::String

ISO 4217 currency code of the payment currency.

Returns:

  • (TD::Types::String)

    the current value of currency



7
8
9
# File 'lib/tdlib/types/store_payment_purpose/gifted_premium.rb', line 7

def currency
  @currency
end

#user_idInteger

Identifier of the user to which Telegram Premium is gifted.

Returns:

  • (Integer)

    the current value of user_id



7
8
9
# File 'lib/tdlib/types/store_payment_purpose/gifted_premium.rb', line 7

def user_id
  @user_id
end