RefundedPayment class abstract

This object contains basic information about a refunded payment.

Annotations
  • @freezed

Constructors

RefundedPayment.new({@JsonKey(name: 'currency') required String currency, @JsonKey(name: 'total_amount') required int totalAmount, @JsonKey(name: 'invoice_payload') required String invoicePayload, @JsonKey(name: 'telegram_payment_charge_id') required String telegramPaymentChargeId, @JsonKey(name: 'provider_payment_charge_id') String? providerPaymentChargeId})
Constructs a RefundedPayment object.
const
factory
RefundedPayment.fromJson(Map<String, dynamic> json)
Creates a RefundedPayment object from JSON.
factory

Properties

copyWith → $RefundedPaymentCopyWith<RefundedPayment>
Create a copy of RefundedPayment with the given fields replaced by the non-null parameter values.
no setterinherited
currency String
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR”.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
invoicePayload String
Bot-specified invoice payload.
no setterinherited
providerPaymentChargeId String?
Optional. Provider payment identifier.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
telegramPaymentChargeId String
Telegram payment identifier.
no setterinherited
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.
no setterinherited

Methods

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

Operators

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