pub struct TestOrder {
pub customer: Option<TestOrderCustomer>,
pub enable_orderinvoices: Option<bool>,
pub kind: Option<String>,
pub line_items: Option<Vec<TestOrderLineItem>>,
pub notification_mode: Option<String>,
pub payment_method: Option<TestOrderPaymentMethod>,
pub predefined_delivery_address: Option<String>,
pub predefined_pickup_details: Option<String>,
pub promotions: Option<Vec<OrderLegacyPromotion>>,
pub shipping_cost: Option<Price>,
pub shipping_cost_tax: Option<Price>,
pub shipping_option: Option<String>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§customer: Option<TestOrderCustomer>
Required. The details of the customer who placed the order.
enable_orderinvoices: Option<bool>
Whether the orderinvoices service should support this order.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string “content#testOrder
”
line_items: Option<Vec<TestOrderLineItem>>
Required. Line items that are ordered. At least one line item must be provided.
notification_mode: Option<String>
Restricted. Do not use.
payment_method: Option<TestOrderPaymentMethod>
The details of the payment method.
predefined_delivery_address: Option<String>
Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - “dwight
” - “jim
” - “pam
”
predefined_pickup_details: Option<String>
Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type pickup
. Acceptable values are: - “dwight
” - “jim
” - “pam
”
promotions: Option<Vec<OrderLegacyPromotion>>
Deprecated. Ignored if provided.
shipping_cost: Option<Price>
Required. The price of shipping for all items. Shipping tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. Note that shipping is not taxed in certain states.
shipping_cost_tax: Option<Price>
Deprecated. Ignored if provided.
shipping_option: Option<String>
Required. The requested shipping option. Acceptable values are: - “economy
” - “expedited
” - “oneDay
” - “sameDay
” - “standard
” - “twoDay
”
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestOrder
impl<'de> Deserialize<'de> for TestOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for TestOrder
Auto Trait Implementations§
impl Freeze for TestOrder
impl RefUnwindSafe for TestOrder
impl Send for TestOrder
impl Sync for TestOrder
impl Unpin for TestOrder
impl UnwindSafe for TestOrder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more