PaymentReceipt class final
PaymentReceipt (paymentReceipt) - basic class
Contains information about a successful payment.
- productInfo: Information about the product.
- date: Point in time (Unix timestamp) when the payment was made.
- sellerBotUserId: User identifier of the seller bot.
- type: Type of the payment receipt.
Constructors
- PaymentReceipt({required ProductInfo productInfo, required int date, required int sellerBotUserId, required PaymentReceiptType type, dynamic extra, int? clientId})
-
PaymentReceipt (paymentReceipt) - basic class
const
-
PaymentReceipt.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- clientId → int?
-
clientId client identifier
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- date → int
-
Point in time (Unix timestamp) when the payment was made
final
- extra → dynamic
-
extra callback sign
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- productInfo → ProductInfo
-
Information about the product
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sellerBotUserId → int
-
User identifier of the seller bot
final
- type → PaymentReceiptType
-
Type of the payment receipt
final
Methods
-
copyWith(
{ProductInfo? productInfo, int? date, int? sellerBotUserId, PaymentReceiptType? type, dynamic extra, int? clientId}) → PaymentReceipt - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type