Class: Google::Apis::ContentV2::TestOrderLineItem
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::TestOrderLineItem
- 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
-
#product ⇒ Google::Apis::ContentV2::TestOrderLineItemProduct
Required.
-
#quantity_ordered ⇒ Fixnum
Required.
-
#return_info ⇒ Google::Apis::ContentV2::OrderLineItemReturnInfo
Required.
-
#shipping_details ⇒ Google::Apis::ContentV2::OrderLineItemShippingDetails
Required.
-
#unit_tax ⇒ Google::Apis::ContentV2::Price
Deprecated.
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.
10807 10808 10809 |
# File 'lib/google/apis/content_v2/classes.rb', line 10807 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product ⇒ Google::Apis::ContentV2::TestOrderLineItemProduct
Required. Product data from the time of the order placement.
Corresponds to the JSON property product
10785 10786 10787 |
# File 'lib/google/apis/content_v2/classes.rb', line 10785 def product @product end |
#quantity_ordered ⇒ Fixnum
Required. Number of items ordered.
Corresponds to the JSON property quantityOrdered
10790 10791 10792 |
# File 'lib/google/apis/content_v2/classes.rb', line 10790 def quantity_ordered @quantity_ordered end |
#return_info ⇒ Google::Apis::ContentV2::OrderLineItemReturnInfo
Required. Details of the return policy for the line item.
Corresponds to the JSON property returnInfo
10795 10796 10797 |
# File 'lib/google/apis/content_v2/classes.rb', line 10795 def return_info @return_info end |
#shipping_details ⇒ Google::Apis::ContentV2::OrderLineItemShippingDetails
Required. Details of the requested shipping for the line item.
Corresponds to the JSON property shippingDetails
10800 10801 10802 |
# File 'lib/google/apis/content_v2/classes.rb', line 10800 def shipping_details @shipping_details end |
#unit_tax ⇒ Google::Apis::ContentV2::Price
Deprecated. Ignored if provided.
Corresponds to the JSON property unitTax
10805 10806 10807 |
# File 'lib/google/apis/content_v2/classes.rb', line 10805 def unit_tax @unit_tax end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10812 10813 10814 10815 10816 10817 10818 |
# File 'lib/google/apis/content_v2/classes.rb', line 10812 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 |