Class: Google::Apis::ContentV2_1::TestOrderLineItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestOrderLineItem

Returns a new instance of TestOrderLineItem.



13229
13230
13231
# File 'generated/google/apis/content_v2_1/classes.rb', line 13229

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

Instance Attribute Details

#productGoogle::Apis::ContentV2_1::TestOrderLineItemProduct

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



13212
13213
13214
# File 'generated/google/apis/content_v2_1/classes.rb', line 13212

def product
  @product
end

#quantity_orderedFixnum

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

Returns:

  • (Fixnum)


13217
13218
13219
# File 'generated/google/apis/content_v2_1/classes.rb', line 13217

def quantity_ordered
  @quantity_ordered
end

#return_infoGoogle::Apis::ContentV2_1::OrderLineItemReturnInfo

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



13222
13223
13224
# File 'generated/google/apis/content_v2_1/classes.rb', line 13222

def return_info
  @return_info
end

#shipping_detailsGoogle::Apis::ContentV2_1::OrderLineItemShippingDetails

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



13227
13228
13229
# File 'generated/google/apis/content_v2_1/classes.rb', line 13227

def shipping_details
  @shipping_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13234
13235
13236
13237
13238
13239
# File 'generated/google/apis/content_v2_1/classes.rb', line 13234

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)
end