Class: Google::Apis::ContentV2sandbox::TestOrderLineItem

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TestOrderLineItem

Returns a new instance of TestOrderLineItem



3184
3185
3186
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3184

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

Instance Attribute Details

#productGoogle::Apis::ContentV2sandbox::TestOrderLineItemProduct

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



3162
3163
3164
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3162

def product
  @product
end

#quantity_orderedFixnum

Number of items ordered. Corresponds to the JSON property quantityOrdered

Returns:

  • (Fixnum)


3167
3168
3169
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3167

def quantity_ordered
  @quantity_ordered
end

#return_infoGoogle::Apis::ContentV2sandbox::OrderLineItemReturnInfo

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



3172
3173
3174
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3172

def return_info
  @return_info
end

#shipping_detailsGoogle::Apis::ContentV2sandbox::OrderLineItemShippingDetails

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



3177
3178
3179
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3177

def shipping_details
  @shipping_details
end

#unit_taxGoogle::Apis::ContentV2sandbox::Price

Unit tax for the line item. Corresponds to the JSON property unitTax



3182
3183
3184
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3182

def unit_tax
  @unit_tax
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3189
3190
3191
3192
3193
3194
3195
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3189

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