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: i32
Unique identifier for the resource.
parent_id: Option<i32>
Parent order ID.
number: String
Order number.
order_key: String
Order key.
created_via: String
Shows where the order was created.
version: String
Version of WooCommerce which last updated the order.
status: OrderStatus
Order status.
currency: CurrencyISO
Currency 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: String
Total discount amount for the order.
discount_tax: String
Total discount tax amount for the order.
shipping_total: String
Total shipping amount for the order.
shipping_tax: String
Total shipping tax amount for the order.
cart_tax: String
Sum of line item taxes only.
total: String
Grand total.
total_tax: String
Sum of all taxes.
prices_include_tax: bool
True the prices included tax during checkout.
customer_id: i32
User ID who owns the order. 0 for guests. Default is 0.
customer_ip_address: String
Customer’s IP address.
customer_user_agent: String
User agent of the customer.
customer_note: String
Note left by customer during checkout.
billing: Billing
Billing address.
shipping: Shipping
Shipping address.
payment_method: String
Payment method ID.
payment_method_title: String
Payment method title.
transaction_id: String
Unique 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: String
MD5 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.