class Google::Apis::ContentV2::TestOrderLineItem
Attributes
product[RW]
Product data from the time of the order placement. Corresponds to the JSON property `product` @return [Google::Apis::ContentV2::TestOrderLineItemProduct]
quantity_ordered[RW]
Number of items ordered. Corresponds to the JSON property `quantityOrdered` @return [Fixnum]
return_info[RW]
Details of the return policy for the line item. Corresponds to the JSON property `returnInfo` @return [Google::Apis::ContentV2::OrderLineItemReturnInfo]
shipping_details[RW]
Details of the requested shipping for the line item. Corresponds to the JSON property `shippingDetails` @return [Google::Apis::ContentV2::OrderLineItemShippingDetails]
unit_tax[RW]
Unit tax for the line item. Corresponds to the JSON property `unitTax` @return [Google::Apis::ContentV2::Price]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 5945 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/content_v2/classes.rb, line 5950 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