Struct google_content2::OrderPromotionBenefit
[−]
[src]
pub struct OrderPromotionBenefit { pub offer_ids: Option<Vec<String>>, pub discount: Option<Price>, pub type_: Option<String>, pub tax_impact: Option<Price>, pub sub_type: Option<String>, }
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields
offer_ids: Option<Vec<String>>
The OfferId(s) that were purchased in this order and map to this specific benefit of the promotion.
discount: Option<Price>
The discount in the order price when the promotion is applied.
type_: Option<String>
Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping).
tax_impact: Option<Price>
The impact on tax when the promotion is applied.
sub_type: Option<String>
Further describes the benefit of the promotion. Note that we will expand on this enumeration as we support new promotion sub-types.
Trait Implementations
impl Debug for OrderPromotionBenefit
[src]
impl Clone for OrderPromotionBenefit
[src]
fn clone(&self) -> OrderPromotionBenefit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for OrderPromotionBenefit
[src]
fn default() -> OrderPromotionBenefit
Returns the "default value" for a type. Read more