StarTransaction class

This object describes a Telegram Star transaction.

Constructors

StarTransaction({required String id, required int amount, required int nanostarAmount, required int date, TransactionPartner? source, TransactionPartner? receiver})
Creates a new StarTransaction object.
const
StarTransaction.fromJson(Map<String, dynamic> json)
Creates a new StarTransaction object from json.
factory

Properties

amount int
Number of Telegram Stars transferred by the transaction.
final
date int
Date the transaction was created in Unix time.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier of the transaction. Coincides with the identifier of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegramPaymentChargeId for successful incoming payments from users.
final
nanostarAmount int
Optional. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999
final
receiver TransactionPartner?
Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source TransactionPartner?
Optional. Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a StarTransaction object to json.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited