pub struct Order {Show 41 fields
pub id: i32,
pub parent_id: Option<i32>,
pub number: String,
pub order_key: String,
pub created_via: String,
pub version: String,
pub status: OrderStatus,
pub currency: CurrencyISO,
pub date_created: Option<NaiveDateTime>,
pub date_created_gmt: Option<NaiveDateTime>,
pub date_modified: Option<NaiveDateTime>,
pub date_modified_gmt: Option<NaiveDateTime>,
pub discount_total: String,
pub discount_tax: String,
pub shipping_total: String,
pub shipping_tax: String,
pub cart_tax: String,
pub total: String,
pub total_tax: String,
pub prices_include_tax: bool,
pub customer_id: i32,
pub customer_ip_address: String,
pub customer_user_agent: String,
pub customer_note: String,
pub billing: Billing,
pub shipping: Shipping,
pub payment_method: String,
pub payment_method_title: String,
pub transaction_id: String,
pub date_paid: Option<NaiveDateTime>,
pub date_paid_gmt: Option<NaiveDateTime>,
pub date_completed: Option<NaiveDateTime>,
pub date_completed_gmt: Option<NaiveDateTime>,
pub cart_hash: String,
pub meta_data: Vec<MetaData>,
pub line_items: Vec<OrderLineItemProperties>,
pub tax_lines: Vec<OrderTaxLineProperties>,
pub shipping_lines: Vec<ShippingLineProperties>,
pub fee_lines: Vec<OrderFeeLineProperties>,
pub coupon_lines: Vec<OrderCouponLineProperties>,
pub refunds: Vec<OrderRefundProperties>,
}Fields§
§id: i32Unique identifier for the resource.
parent_id: Option<i32>Parent order ID.
number: StringOrder number.
order_key: StringOrder key.
created_via: StringShows where the order was created.
version: StringVersion of WooCommerce which last updated the order.
status: OrderStatusOrder status.
currency: CurrencyISOCurrency the order was created with, in ISO format.
date_created: Option<NaiveDateTime>The date the order was created, in the site’s timezone.
date_created_gmt: Option<NaiveDateTime>The date the order was created, as GMT.
date_modified: Option<NaiveDateTime>The date the order was last modified, in the site’s timezone.
date_modified_gmt: Option<NaiveDateTime>The date the order was last modified, as GMT
discount_total: StringTotal discount amount for the order.
discount_tax: StringTotal discount tax amount for the order.
shipping_total: StringTotal shipping amount for the order.
shipping_tax: StringTotal shipping tax amount for the order.
cart_tax: StringSum of line item taxes only.
total: StringGrand total.
total_tax: StringSum of all taxes.
prices_include_tax: boolTrue the prices included tax during checkout.
customer_id: i32User ID who owns the order. 0 for guests. Default is 0.
customer_ip_address: StringCustomer’s IP address.
customer_user_agent: StringUser agent of the customer.
customer_note: StringNote left by customer during checkout.
billing: BillingBilling address.
shipping: ShippingShipping address.
payment_method: StringPayment method ID.
payment_method_title: StringPayment method title.
transaction_id: StringUnique transaction ID.
date_paid: Option<NaiveDateTime>The date the order was paid, in the site’s timezone.
date_paid_gmt: Option<NaiveDateTime>The date the order was paid, as GMT.
date_completed: Option<NaiveDateTime>The date the order was completed, in the site’s timezone.
date_completed_gmt: Option<NaiveDateTime>The date the order was completed, as GMT.
cart_hash: StringMD5 hash of cart items to ensure orders are not modified.
meta_data: Vec<MetaData>Meta data.
line_items: Vec<OrderLineItemProperties>Line items data.
tax_lines: Vec<OrderTaxLineProperties>Tax lines data.
shipping_lines: Vec<ShippingLineProperties>Shipping lines data.
fee_lines: Vec<OrderFeeLineProperties>Fee lines data.
coupon_lines: Vec<OrderCouponLineProperties>Coupons line data.
refunds: Vec<OrderRefundProperties>List of refunds.