MessagePaymentSuccessful class final

A payment has been completed

Inheritance

Constructors

MessagePaymentSuccessful({required int invoiceChatId, required int invoiceMessageId, required String currency, required int totalAmount, required bool isRecurring, required bool isFirstRecurring, required String invoiceName})
A payment has been completed
const
MessagePaymentSuccessful.fromJson(Map<String, dynamic> json)
Parses a MessagePaymentSuccessful from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
currency → String
Currency for the price of the product
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
invoiceChatId → int
Identifier of the chat, containing the corresponding invoice message
final
invoiceMessageId → int
Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message
final
invoiceName → String
Name of the invoice; may be empty if unknown
final
isFirstRecurring → bool
True, if this is the first recurring payment
final
isRecurring → bool
True, if this is a recurring payment
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalAmount → int
Total price for the product, in the smallest units of the currency
final

Methods

copyWith({int? invoiceChatId, int? invoiceMessageId, String? currency, int? totalAmount, bool? isRecurring, bool? isFirstRecurring, String? invoiceName}) → MessagePaymentSuccessful
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.