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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TestOrderLineItem

Returns a new instance of TestOrderLineItem



6675
6676
6677
# File 'generated/google/apis/content_v2/classes.rb', line 6675

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

Instance Attribute Details

#productGoogle::Apis::ContentV2::TestOrderLineItemProduct

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



6653
6654
6655
# File 'generated/google/apis/content_v2/classes.rb', line 6653

def product
  @product
end

#quantity_orderedFixnum

Number of items ordered. Corresponds to the JSON property quantityOrdered

Returns:

  • (Fixnum)


6658
6659
6660
# File 'generated/google/apis/content_v2/classes.rb', line 6658

def quantity_ordered
  @quantity_ordered
end

#return_infoGoogle::Apis::ContentV2::OrderLineItemReturnInfo

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



6663
6664
6665
# File 'generated/google/apis/content_v2/classes.rb', line 6663

def return_info
  @return_info
end

#shipping_detailsGoogle::Apis::ContentV2::OrderLineItemShippingDetails

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



6668
6669
6670
# File 'generated/google/apis/content_v2/classes.rb', line 6668

def shipping_details
  @shipping_details
end

#unit_taxGoogle::Apis::ContentV2::Price

Unit tax for the line item. Corresponds to the JSON property unitTax



6673
6674
6675
# File 'generated/google/apis/content_v2/classes.rb', line 6673

def unit_tax
  @unit_tax
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6680
6681
6682
6683
6684
6685
6686
# File 'generated/google/apis/content_v2/classes.rb', line 6680

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