Refund class final
A refund against an order, including its reason, line items, and settlement.
status and the lifecycle timestamps describe processing progress; settlement identifies how the refunded value is returned.
Constructors
-
Refund({DateTime? canceledAt, required DateTime createdAt, CustomData? customData, DateTime? failedAt, required String id, required List<
LineItem> lineItems, required String orderId, DateTime? processingAt, required Reason reason, String? reasonDetails, String? reference, required Settlement settlement, required Status status, DateTime? succeededAt, required Amount total}) -
const
-
Refund.fromJson(Map<
String, Object?> json) -
factory
Properties
- canceledAt → DateTime?
-
final
- createdAt → DateTime
-
final
- customData → CustomData?
-
final
- failedAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
lineItems
→ List<
LineItem> -
final
- orderId → String
-
final
- processingAt → DateTime?
-
final
- reason → Reason
-
final
- reasonDetails → String?
-
final
- reference → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settlement → Settlement
-
final
- status → Status
-
final
- succeededAt → DateTime?
-
final
- total → Amount
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited