Class: Google::Apis::ContentV2sandbox::TestOrderLineItem
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2sandbox::TestOrderLineItem
- Defined in:
- generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb
Instance Attribute Summary collapse
-
#product ⇒ Google::Apis::ContentV2sandbox::TestOrderLineItemProduct
Product data from the time of the order placement.
-
#quantity_ordered ⇒ Fixnum
Number of items ordered.
-
#return_info ⇒ Google::Apis::ContentV2sandbox::OrderLineItemReturnInfo
Details of the return policy for the line item.
-
#shipping_details ⇒ Google::Apis::ContentV2sandbox::OrderLineItemShippingDetails
Details of the requested shipping for the line item.
-
#unit_tax ⇒ Google::Apis::ContentV2sandbox::Price
Unit tax 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
2256 2257 2258 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2256 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product ⇒ Google::Apis::ContentV2sandbox::TestOrderLineItemProduct
Product data from the time of the order placement.
Corresponds to the JSON property product
2234 2235 2236 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2234 def product @product end |
#quantity_ordered ⇒ Fixnum
Number of items ordered.
Corresponds to the JSON property quantityOrdered
2239 2240 2241 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2239 def quantity_ordered @quantity_ordered end |
#return_info ⇒ Google::Apis::ContentV2sandbox::OrderLineItemReturnInfo
Details of the return policy for the line item.
Corresponds to the JSON property returnInfo
2244 2245 2246 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2244 def return_info @return_info end |
#shipping_details ⇒ Google::Apis::ContentV2sandbox::OrderLineItemShippingDetails
Details of the requested shipping for the line item.
Corresponds to the JSON property shippingDetails
2249 2250 2251 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2249 def shipping_details @shipping_details end |
#unit_tax ⇒ Google::Apis::ContentV2sandbox::Price
Unit tax for the line item.
Corresponds to the JSON property unitTax
2254 2255 2256 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2254 def unit_tax @unit_tax end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2261 2262 2263 2264 2265 2266 2267 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2261 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 |