class Tourmaline::StarTransaction
- Tourmaline::StarTransaction
- Reference
- Object
Overview
Describes a Telegram Star transaction.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(id : String, amount : Int32 | Int64, date : Time, nanostar_amount : Int32 | Int64 | Nil = nil, source : Tourmaline::TransactionPartner | Nil = nil, receiver : Tourmaline::TransactionPartner | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#amount : Int32 | Int64
Integer amount of Telegram Stars transferred by the transaction
-
#amount=(amount : Int32 | Int64)
Integer amount of Telegram Stars transferred by the transaction
-
#date : Time
Date the transaction was created in Unix time
-
#date=(date : Time)
Date the transaction was created in Unix time
-
#id : String
Unique identifier of the transaction.
-
#id=(id : String)
Unique identifier of the transaction.
-
#nanostar_amount : Int32 | Int64 | Nil
Optional.
-
#nanostar_amount=(nanostar_amount : Int32 | Int64 | Nil)
Optional.
-
#receiver : Tourmaline::TransactionPartner | Nil
Optional.
-
#receiver=(receiver : Tourmaline::TransactionPartner | Nil)
Optional.
-
#source : Tourmaline::TransactionPartner | Nil
Optional.
-
#source=(source : Tourmaline::TransactionPartner | Nil)
Optional.
Constructor Detail
Instance Method Detail
Integer amount of Telegram Stars transferred by the transaction
Unique identifier of the transaction. Coincides with the identifier of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegram_payment_charge_id for successful incoming payments from users.
Unique identifier of the transaction. Coincides with the identifier of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegram_payment_charge_id for successful incoming payments from users.
Optional. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999
Optional. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999
Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions
Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions
Optional. Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions
Optional. Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions