class Google::Apis::ContentV2::TestOrderLineItem

Attributes

product[RW]

Required. Product data from the time of the order placement. Corresponds to the JSON property `product` @return [Google::Apis::ContentV2::TestOrderLineItemProduct]

quantity_ordered[RW]

Required. Number of items ordered. Corresponds to the JSON property `quantityOrdered` @return [Fixnum]

return_info[RW]

Required. Details of the return policy for the line item. Corresponds to the JSON property `returnInfo` @return [Google::Apis::ContentV2::OrderLineItemReturnInfo]

shipping_details[RW]

Required. Details of the requested shipping for the line item. Corresponds to the JSON property `shippingDetails` @return [Google::Apis::ContentV2::OrderLineItemShippingDetails]

unit_tax[RW]

Deprecated. Ignored if provided. Corresponds to the JSON property `unitTax` @return [Google::Apis::ContentV2::Price]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 11130
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 11135
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