OrderModel class
Constructors
- OrderModel({int? id, int? parentId, String? number, String? orderKey, String? createdVia, String? version, String status = 'pending', String currency = 'USD', DateTime? dateCreated, DateTime? dateCreatedGmt, DateTime? dateModified, DateTime? dateModifiedGmt, String? discountTotal, String? discountTax, String? shippingTotal, String? shippingTax, String? cartTax, String? total, String? totalTax, bool pricesIncludeTax = false, int customerId = 0, String? customerIpAddress, String? customerUserAgent, String? customerNote, dynamic billing, dynamic shipping, String? paymentMethod, String? paymentMethodTitle, String? transactionId, DateTime? datePaid, DateTime? datePaidGmt, DateTime? dateCompleted, DateTime? dateCompletedGmt, String? cartHash, List? metaData, List? lineItems, List? taxLines, List? shippingLines, List? feeLines, List? couponLines, List? refunds, bool setPaid = false})
-
OrderModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- billing → dynamic
-
final
- cartHash → String?
-
final
- cartTax → String?
-
final
- couponLines → List?
-
final
- createdVia → String?
-
final
- currency → String
-
final
- customerId → int
-
final
- customerIpAddress → String?
-
final
- customerNote → String?
-
final
- customerUserAgent → String?
-
final
- dateCompleted → DateTime?
-
final
- dateCompletedGmt → DateTime?
-
final
- dateCreated → DateTime?
-
final
- dateCreatedGmt → DateTime?
-
final
- dateModified → DateTime?
-
final
- dateModifiedGmt → DateTime?
-
final
- datePaid → DateTime?
-
final
- datePaidGmt → DateTime?
-
final
- discountTax → String?
-
final
- discountTotal → String?
-
final
- feeLines → List?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
final
- lineItems → List?
-
final
- metaData → List?
-
final
- number → String?
-
final
- orderKey → String?
-
final
- parentId → int?
-
final
- paymentMethod → String?
-
final
- paymentMethodTitle → String?
-
final
- pricesIncludeTax → bool
-
final
- refunds → List?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setPaid → bool
-
final
- shipping → dynamic
-
final
- shippingLines → List?
-
final
- shippingTax → String?
-
final
- shippingTotal → String?
-
final
- status → String
-
final
- taxLines → List?
-
final
- total → String?
-
final
- totalTax → String?
-
final
- transactionId → String?
-
final
- version → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited