Class: TD::Types::StarTransaction

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/star_transaction.rb

Overview

Represents a transaction changing the amount of owned Telegram Stars.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#dateInteger

Point in time (Unix timestamp) when the transaction was completed.

Returns:

  • (Integer)

    the current value of date



10
11
12
# File 'lib/tdlib/types/star_transaction.rb', line 10

def date
  @date
end

#idTD::Types::String

Unique identifier of the transaction.

Returns:

  • (TD::Types::String)

    the current value of id



10
11
12
# File 'lib/tdlib/types/star_transaction.rb', line 10

def id
  @id
end

#is_refundBoolean

True, if the transaction is a refund of a previous transaction.

Returns:

  • (Boolean)

    the current value of is_refund



10
11
12
# File 'lib/tdlib/types/star_transaction.rb', line 10

def is_refund
  @is_refund
end

#partnerTD::Types::StarTransactionPartner

Source of the incoming transaction, or its recipient for outgoing transactions.

Returns:



10
11
12
# File 'lib/tdlib/types/star_transaction.rb', line 10

def partner
  @partner
end

#star_countInteger

The amount of added owned Telegram Stars; negative for outgoing transactions.

Returns:

  • (Integer)

    the current value of star_count



10
11
12
# File 'lib/tdlib/types/star_transaction.rb', line 10

def star_count
  @star_count
end