Class: Google::Apis::ContentV2_1::TestOrderLineItem
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::TestOrderLineItem
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#product ⇒ Google::Apis::ContentV2_1::TestOrderLineItemProduct
Required.
-
#quantity_ordered ⇒ Fixnum
Required.
-
#return_info ⇒ Google::Apis::ContentV2_1::OrderLineItemReturnInfo
Required.
-
#shipping_details ⇒ Google::Apis::ContentV2_1::OrderLineItemShippingDetails
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestOrderLineItem
constructor
A new instance of TestOrderLineItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TestOrderLineItem
Returns a new instance of TestOrderLineItem.
15315 15316 15317 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15315 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product ⇒ Google::Apis::ContentV2_1::TestOrderLineItemProduct
Required. Product data from the time of the order placement.
Corresponds to the JSON property product
15298 15299 15300 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15298 def product @product end |
#quantity_ordered ⇒ Fixnum
Required. Number of items ordered.
Corresponds to the JSON property quantityOrdered
15303 15304 15305 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15303 def quantity_ordered @quantity_ordered end |
#return_info ⇒ Google::Apis::ContentV2_1::OrderLineItemReturnInfo
Required. Details of the return policy for the line item.
Corresponds to the JSON property returnInfo
15308 15309 15310 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15308 def return_info @return_info end |
#shipping_details ⇒ Google::Apis::ContentV2_1::OrderLineItemShippingDetails
Required. Details of the requested shipping for the line item.
Corresponds to the JSON property shippingDetails
15313 15314 15315 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15313 def shipping_details @shipping_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15320 15321 15322 15323 15324 15325 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15320 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 |