Class: Google::Apis::ContentV2::TestOrderLineItem
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::TestOrderLineItem
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#product ⇒ Google::Apis::ContentV2::TestOrderLineItemProduct
Product data from the time of the order placement.
-
#quantity_ordered ⇒ Fixnum
Number of items ordered.
-
#return_info ⇒ Google::Apis::ContentV2::OrderLineItemReturnInfo
Details of the return policy for the line item.
-
#shipping_details ⇒ Google::Apis::ContentV2::OrderLineItemShippingDetails
Details of the requested shipping for the line item.
-
#unit_tax ⇒ Google::Apis::ContentV2::Price
Deprecated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestOrderLineItem
constructor
A new instance of TestOrderLineItem.
-
#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) ⇒ TestOrderLineItem
Returns a new instance of TestOrderLineItem
10670 10671 10672 |
# File 'generated/google/apis/content_v2/classes.rb', line 10670 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product ⇒ Google::Apis::ContentV2::TestOrderLineItemProduct
Product data from the time of the order placement.
Corresponds to the JSON property product
10647 10648 10649 |
# File 'generated/google/apis/content_v2/classes.rb', line 10647 def product @product end |
#quantity_ordered ⇒ Fixnum
Number of items ordered.
Corresponds to the JSON property quantityOrdered
10652 10653 10654 |
# File 'generated/google/apis/content_v2/classes.rb', line 10652 def quantity_ordered @quantity_ordered end |
#return_info ⇒ Google::Apis::ContentV2::OrderLineItemReturnInfo
Details of the return policy for the line item.
Corresponds to the JSON property returnInfo
10657 10658 10659 |
# File 'generated/google/apis/content_v2/classes.rb', line 10657 def return_info @return_info end |
#shipping_details ⇒ Google::Apis::ContentV2::OrderLineItemShippingDetails
Details of the requested shipping for the line item.
Corresponds to the JSON property shippingDetails
10662 10663 10664 |
# File 'generated/google/apis/content_v2/classes.rb', line 10662 def shipping_details @shipping_details end |
#unit_tax ⇒ Google::Apis::ContentV2::Price
Deprecated. Ignored if provided. Tax is automatically calculated for MFL
orders. For non-MFL orders, tax settings from Merchant Center are applied.
Corresponds to the JSON property unitTax
10668 10669 10670 |
# File 'generated/google/apis/content_v2/classes.rb', line 10668 def unit_tax @unit_tax end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10675 10676 10677 10678 10679 10680 10681 |
# File 'generated/google/apis/content_v2/classes.rb', line 10675 def update!(**args) @product = args[:product] if args.key?(:product) @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) @return_info = args[:return_info] if args.key?(:return_info) @shipping_details = args[:shipping_details] if args.key?(:shipping_details) @unit_tax = args[:unit_tax] if args.key?(:unit_tax) end |