Class: Google::Apis::ContentV2_1::TestOrderLineItem
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::TestOrderLineItem
- 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
-
#product ⇒ Google::Apis::ContentV2_1::TestOrderLineItemProduct
Product data from the time of the order placement.
-
#quantity_ordered ⇒ Fixnum
Number of items ordered.
-
#return_info ⇒ Google::Apis::ContentV2_1::OrderLineItemReturnInfo
Details of the return policy for the line item.
-
#shipping_details ⇒ Google::Apis::ContentV2_1::OrderLineItemShippingDetails
Details of the requested shipping for the line item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestOrderLineItem
constructor
A new instance of TestOrderLineItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ TestOrderLineItem
Returns a new instance of TestOrderLineItem
9604 9605 9606 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product ⇒ Google::Apis::ContentV2_1::TestOrderLineItemProduct
Product data from the time of the order placement.
Corresponds to the JSON property product
9587 9588 9589 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9587 def product @product end |
#quantity_ordered ⇒ Fixnum
Number of items ordered.
Corresponds to the JSON property quantityOrdered
9592 9593 9594 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9592 def quantity_ordered @quantity_ordered end |
#return_info ⇒ Google::Apis::ContentV2_1::OrderLineItemReturnInfo
Details of the return policy for the line item.
Corresponds to the JSON property returnInfo
9597 9598 9599 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9597 def return_info @return_info end |
#shipping_details ⇒ Google::Apis::ContentV2_1::OrderLineItemShippingDetails
Details of the requested shipping for the line item.
Corresponds to the JSON property shippingDetails
9602 9603 9604 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9602 def shipping_details @shipping_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9609 9610 9611 9612 9613 9614 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9609 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 |