Class: Google::Apis::ContentV2sandbox::OrderPromotionBenefit
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2sandbox::OrderPromotionBenefit
 
 
- Defined in:
 - generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb 
Instance Attribute Summary collapse
- 
  
    
      #discount  ⇒ Google::Apis::ContentV2sandbox::Price 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The discount in the order price when the promotion is applied.
 - 
  
    
      #offer_ids  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The OfferId(s) that were purchased in this order and map to this specific benefit of the promotion.
 - 
  
    
      #sub_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Further describes the benefit of the promotion.
 - 
  
    
      #tax_impact  ⇒ Google::Apis::ContentV2sandbox::Price 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The impact on tax when the promotion is applied.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping).
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ OrderPromotionBenefit 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of OrderPromotionBenefit.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrderPromotionBenefit
Returns a new instance of OrderPromotionBenefit
      1060 1061 1062  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1060 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#discount ⇒ Google::Apis::ContentV2sandbox::Price
The discount in the order price when the promotion is applied.
Corresponds to the JSON property discount
      1035 1036 1037  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1035 def discount @discount end  | 
  
#offer_ids ⇒ Array<String>
The OfferId(s) that were purchased in this order and map to this specific
benefit of the promotion.
Corresponds to the JSON property offerIds
      1041 1042 1043  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1041 def offer_ids @offer_ids end  | 
  
#sub_type ⇒ String
Further describes the benefit of the promotion. Note that we will expand on
this enumeration as we support new promotion sub-types.
Corresponds to the JSON property subType
      1047 1048 1049  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1047 def sub_type @sub_type end  | 
  
#tax_impact ⇒ Google::Apis::ContentV2sandbox::Price
The impact on tax when the promotion is applied.
Corresponds to the JSON property taxImpact
      1052 1053 1054  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1052 def tax_impact @tax_impact end  | 
  
#type ⇒ String
Describes whether the promotion applies to products (e.g. 20% off) or to
shipping (e.g. Free Shipping).
Corresponds to the JSON property type
      1058 1059 1060  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1058 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1065 1066 1067 1068 1069 1070 1071  | 
    
      # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1065 def update!(**args) @discount = args[:discount] if args.key?(:discount) @offer_ids = args[:offer_ids] if args.key?(:offer_ids) @sub_type = args[:sub_type] if args.key?(:sub_type) @tax_impact = args[:tax_impact] if args.key?(:tax_impact) @type = args[:type] if args.key?(:type) end  |