WooRefund class

Money given back on an order.

Constructors

WooRefund({required int id, required WooPrice amount, required Map<String, Object?> raw, String reason = '', int refundedBy = 0, DateTime? dateCreated})
Creates a refund.
const
WooRefund.fromJson(Map<String, Object?> json)
Reads WooCommerce's representation.
factory

Properties

amount → WooPrice
How much went back.
final
dateCreated → DateTime?
When.
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
Refund id.
final
raw → Map<String, Object?>
The whole refund as the store sent it.
final
reason → String
Why, when someone said.
final
refundedBy → int
The user who issued it.
final
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
toString() → String
A string representation of this object.
inherited

Operators

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