RefundedPayment class abstract

This object contains basic information about a refunded payment.

Available extensions
Annotations
  • @freezed

Constructors

RefundedPayment({@JsonKey.new(name: 'currency') required String currency, @JsonKey.new(name: 'total_amount') required int totalAmount, @JsonKey.new(name: 'invoice_payload') required String invoicePayload, @JsonKey.new(name: 'telegram_payment_charge_id') required String telegramPaymentChargeId, @JsonKey.new(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

map<TResult extends Object?>(TResult $default(_RefundedPayment value)) → TResult

Available on RefundedPayment, provided by the RefundedPaymentPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_RefundedPayment value)?) → TResult?

Available on RefundedPayment, provided by the RefundedPaymentPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_RefundedPayment value)?, {required TResult orElse()}) → TResult

Available on RefundedPayment, provided by the RefundedPaymentPatterns extension

A variant of map that fallback to returning orElse.
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