TabbyTransaction class
Constructors
-
TabbyTransaction({String id = "", TabbyResStatus status = TabbyResStatus.notSpecified, num amount = 0, DateTime? createdAt, DateTime? closedAt, Map<
String, dynamic> ? meta, String currency = "SAR", IOrder? order, List<ICaptureData> captures = const [], List<ICaptureData> refunds = const [], String errorMessage = "", UniPayCustomerInfo? customer}) -
TabbyTransaction.fromMap(Map<
String, dynamic> data) -
From Json to Model
factory
Properties
- amount ↔ num
-
Amount
getter/setter pair
-
captures
↔ List<
ICaptureData> -
Captures
getter/setter pair
- closedAt ↔ DateTime?
-
Closed At
getter/setter pair
- createdAt ↔ DateTime
-
Created At
getter/setter pair
- currency ↔ String
-
Currency
getter/setter pair
- customer ↔ UniPayCustomerInfo?
-
Customer/Buyer information
getter/setter pair
- errorMessage ↔ String
-
Error Message for failed transaction
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
Transaction ID
getter/setter pair
- isPaymentAuthorized → bool
-
Is Payment Authorised
no setter
- isPaymentClosed → bool
-
Is Payment Closed
no setter
- isPaymentFailed → bool
-
Is Payment Failed
no setter
-
meta
↔ Map<
String, dynamic> ? -
Meta Data
getter/setter pair
- order ↔ IOrder?
-
Order
getter/setter pair
-
refunds
↔ List<
ICaptureData> -
Refunds
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ TabbyResStatus
-
Payment Status
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - From Model to Json
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited