Class: Google::Apis::ContentV2::TestOrderLineItem

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestOrderLineItem

Returns a new instance of TestOrderLineItem.



11122
11123
11124
# File 'lib/google/apis/content_v2/classes.rb', line 11122

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#productGoogle::Apis::ContentV2::TestOrderLineItemProduct

Required. Product data from the time of the order placement. Corresponds to the JSON property product



11100
11101
11102
# File 'lib/google/apis/content_v2/classes.rb', line 11100

def product
  @product
end

#quantity_orderedFixnum

Required. Number of items ordered. Corresponds to the JSON property quantityOrdered

Returns:

  • (Fixnum)


11105
11106
11107
# File 'lib/google/apis/content_v2/classes.rb', line 11105

def quantity_ordered
  @quantity_ordered
end

#return_infoGoogle::Apis::ContentV2::OrderLineItemReturnInfo

Required. Details of the return policy for the line item. Corresponds to the JSON property returnInfo



11110
11111
11112
# File 'lib/google/apis/content_v2/classes.rb', line 11110

def return_info
  @return_info
end

#shipping_detailsGoogle::Apis::ContentV2::OrderLineItemShippingDetails

Required. Details of the requested shipping for the line item. Corresponds to the JSON property shippingDetails



11115
11116
11117
# File 'lib/google/apis/content_v2/classes.rb', line 11115

def shipping_details
  @shipping_details
end

#unit_taxGoogle::Apis::ContentV2::Price

Deprecated. Ignored if provided. Corresponds to the JSON property unitTax



11120
11121
11122
# File 'lib/google/apis/content_v2/classes.rb', line 11120

def unit_tax
  @unit_tax
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11127
11128
11129
11130
11131
11132
11133
# File 'lib/google/apis/content_v2/classes.rb', line 11127

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