Struct google_content2_sandbox::api::Order
source · pub struct Order {Show 20 fields
pub acknowledged: Option<bool>,
pub channel_type: Option<String>,
pub customer: Option<OrderCustomer>,
pub delivery_details: Option<OrderDeliveryDetails>,
pub id: Option<String>,
pub kind: Option<String>,
pub line_items: Option<Vec<OrderLineItem>>,
pub merchant_id: Option<u64>,
pub merchant_order_id: Option<String>,
pub net_amount: Option<Price>,
pub payment_method: Option<OrderPaymentMethod>,
pub payment_status: Option<String>,
pub placed_date: Option<String>,
pub promotions: Option<Vec<OrderLegacyPromotion>>,
pub refunds: Option<Vec<OrderRefund>>,
pub shipments: Option<Vec<OrderShipment>>,
pub shipping_cost: Option<Price>,
pub shipping_cost_tax: Option<Price>,
pub shipping_option: Option<String>,
pub status: Option<String>,
}
Expand description
There is no detailed description.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- acknowledge orders (none)
- advancetestorder orders (none)
- cancel orders (none)
- cancellineitem orders (none)
- canceltestorderbycustomer orders (none)
- createtestorder orders (none)
- createtestreturn orders (none)
- custombatch orders (none)
- get orders (response)
- getbymerchantorderid orders (none)
- gettestordertemplate orders (none)
- instorerefundlineitem orders (none)
- list orders (none)
- refund orders (none)
- rejectreturnlineitem orders (none)
- returnlineitem orders (none)
- returnrefundlineitem orders (none)
- setlineitemmetadata orders (none)
- shiplineitems orders (none)
- updatelineitemshippingdetails orders (none)
- updatemerchantorderid orders (none)
- updateshipment orders (none)
Fields§
§acknowledged: Option<bool>
Whether the order was acknowledged.
channel_type: Option<String>
The channel type of the order: “purchaseOnGoogle” or “googleExpress”.
customer: Option<OrderCustomer>
The details of the customer who placed the order.
delivery_details: Option<OrderDeliveryDetails>
The details for the delivery.
id: Option<String>
The REST id of the order. Globally unique.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string “content#order”.
line_items: Option<Vec<OrderLineItem>>
Line items that are ordered.
merchant_id: Option<u64>
no description provided
merchant_order_id: Option<String>
Merchant-provided id of the order.
net_amount: Option<Price>
The net amount for the order. For example, if an order was originally for a grand total of $100 and a refund was issued for $20, the net amount will be $80.
payment_method: Option<OrderPaymentMethod>
The details of the payment method.
payment_status: Option<String>
The status of the payment.
placed_date: Option<String>
The date when the order was placed, in ISO 8601 format.
promotions: Option<Vec<OrderLegacyPromotion>>
Deprecated. The details of the merchant provided promotions applied to the order. More details about the program are here.
refunds: Option<Vec<OrderRefund>>
Refunds for the order.
shipments: Option<Vec<OrderShipment>>
Shipments of the order.
shipping_cost: Option<Price>
The total cost of shipping for all items.
shipping_cost_tax: Option<Price>
The tax for the total shipping cost.
shipping_option: Option<String>
The requested shipping option.
status: Option<String>
The status of the order.