RefundedPayment class

This object contains basic information about a refunded payment.

Constructors

RefundedPayment({required String currency, required int totalAmount, required String invoicePayload, required String telegramPaymentChargeId, String? providerPaymentChargeId})
Constructs a RefundedPayment object.
const
RefundedPayment.fromJson(Map<String, dynamic> json)
Creates a RefundedPayment object from JSON.
factory

Properties

currency String
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR”.
final
hashCode int
The hash code for this object.
no setterinherited
invoicePayload String
Bot-specified invoice payload.
final
providerPaymentChargeId String?
Optional. Provider payment identifier.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
telegramPaymentChargeId String
Telegram payment identifier.
final
totalAmount int
Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_amount = 145.
final

Methods

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

Operators

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