WooOrder class

Constructors

WooOrder.new({required int id, int? parentId, String? number, String? orderKey, String? createdVia, String? version, WooOrderStatus? status, WooOrderCurrency? currency, DateTime? dateCreated, DateTime? dateCreatedGmt, DateTime? dateModified, DateTime? dateModifiedGmt, double? discountTotal, double? discountTax, double? shippingTotal, double? shippingTax, double? cartTax, double? total, double? totalTax, bool? pricesIncludeTax, int? customerId, String? customerIpAddress, String? customerUserAgent, String? customerNote, WooBilling? billing, WooShipping? shipping, String? paymentMethod, String? paymentMethodTitle, String? transactionId, DateTime? datePaid, DateTime? datePaidGmt, DateTime? dateCompleted, DateTime? dateCompletedGmt, String? cartHash, List<WooMetaData>? metaData, List<WooLineItem>? lineItems, List<WooTaxLine>? taxLines, List<WooShippingLine>? shippingLines, List<WooOrderFeeLine>? feeLines, List<WooOrderCouponLine>? couponLines, List<WooRefunds>? refunds, bool? setPaid = false})
WooOrder.fake()
factory
WooOrder.fromJson(Map<String, dynamic> json)

Properties

billing WooBilling?
Billing address.
getter/setter pair
cartHash String?
MD5 hash of cart items to ensure orders are not modified.
getter/setter pair
cartTax double?
Sum of line item taxes only.
getter/setter pair
couponLines List<WooOrderCouponLine>?
Coupons line data.
getter/setter pair
createdVia String?
Shows where the order was created. Example: rest-api
getter/setter pair
currency WooOrderCurrency?
Currency the order was created with, in ISO format. Options: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTC, BTN, BWP, BYR, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, IRT, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PRB, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STD, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR and ZMW. Default is USD.
getter/setter pair
customerId int?
User ID who owns the order. 0 for guests. Default is 0.
getter/setter pair
customerIpAddress String?
Customer's IP address.
getter/setter pair
customerNote String?
Note left by customer during checkout.
getter/setter pair
customerUserAgent String?
User agent of the customer.
getter/setter pair
dateCompleted DateTime?
The date the order was completed, in the site's timezone.
getter/setter pair
dateCompletedGmt DateTime?
The date the order was completed, as GMT.
getter/setter pair
dateCreated DateTime?
The date the order was created, in the site's timezone.
getter/setter pair
dateCreatedGmt DateTime?
The date the order was created, as GMT.
getter/setter pair
dateModified DateTime?
The date the order was last modified, in the site's timezone.
getter/setter pair
dateModifiedGmt DateTime?
The date the order was last modified, as GMT.
getter/setter pair
datePaid DateTime?
The date the order was paid, in the site's timezone.
getter/setter pair
datePaidGmt DateTime?
The date the order was paid, as GMT.
getter/setter pair
discountTax double?
Total discount tax amount for the order.
getter/setter pair
discountTotal double?
Total discount amount for the order.
getter/setter pair
feeLines List<WooOrderFeeLine>?
Fee lines data.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?
Unique identifier for the resource.
getter/setter pair
lineItems List<WooLineItem>?
Line items data.
getter/setter pair
metaData List<WooMetaData>?
Meta data.
getter/setter pair
number String?
Order number.
getter/setter pair
orderKey String?
Order key.
getter/setter pair
parentId int?
Parent order ID.
getter/setter pair
paymentMethod String?
Payment method ID.
getter/setter pair
paymentMethodTitle String?
Payment method title.
getter/setter pair
pricesIncludeTax bool?
True the prices included tax during checkout.
getter/setter pair
refunds List<WooRefunds>?
List of refunds
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setPaid bool?
Define if the order is paid. It will set the status to processing and reduce stock items. Default is false.
getter/setter pair
shipping WooShipping?
Shipping address.
getter/setter pair
shippingLines List<WooShippingLine>?
Shipping lines data.
getter/setter pair
shippingTax double?
Total shipping tax amount for the order.
getter/setter pair
shippingTotal double?
Total shipping amount for the order.
getter/setter pair
status WooOrderStatus?
Order status. Options: pending, processing, on-hold, completed, cancelled, refunded, failed and trash. Default is pending.
getter/setter pair
taxLines List<WooTaxLine>?
Tax lines data.
getter/setter pair
total double?
Grand total.
getter/setter pair
totalTax double?
Sum of all taxes.
getter/setter pair
transactionId String?
Unique transaction ID.
getter/setter pair
version String?
Version of WooCommerce which last updated the order.
getter/setter pair

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.
override

Operators

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