Refund class
Information about refunds associated with a transaction.
Contains details about on-chain or off-chain refunds issued for a transaction, including total amounts, fees, and individual payment records.
Constructors
-
Refund(String amountRefunded, String amountFee, List<
RefundPayment> payments) - Creates a Refund with refund details.
-
Refund.fromJson(Map<
String, dynamic> json) -
Creates a Refund from JSON response data.
factory
Properties
- amountFee ↔ String
-
The total amount charged in fees for processing all refund payments,
in units of amountInAsset.
The sum of all fee values in the payments list should equal this value.
getter/setter pair
- amountRefunded ↔ String
-
The total amount refunded to the user, in units of amountInAsset.
If a full refund was issued, this amount should match the transaction's amountIn.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
payments
↔ List<
RefundPayment> -
A list of individual refund payments made back to the user.
Multiple payments may be issued for partial refunds or refund fee adjustments.
getter/setter pair
- rateLimitLimit ↔ int?
-
Maximum number of requests allowed in the current rate limit window.
getter/setter pairinherited
- rateLimitRemaining ↔ int?
-
Number of requests remaining in the current rate limit window.
getter/setter pairinherited
- rateLimitReset ↔ int?
-
Unix timestamp when the rate limit window will reset.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setHeaders(
Map< String, String> headers) → void -
Populates rate limit fields from HTTP response headers.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited