class Google::Apis::ContentV2::OrderLineItem

Attributes

cancellations[RW]

Cancellations of the line item. Corresponds to the JSON property `cancellations` @return [Array<Google::Apis::ContentV2::OrderCancellation>]

id[RW]

The id of the line item. Corresponds to the JSON property `id` @return [String]

price[RW]

Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2::Price]

product[RW]

Product data from the time of the order placement. Corresponds to the JSON property `product` @return [Google::Apis::ContentV2::OrderLineItemProduct]

quantity_canceled[RW]

Number of items canceled. Corresponds to the JSON property `quantityCanceled` @return [Fixnum]

quantity_delivered[RW]

Number of items delivered. Corresponds to the JSON property `quantityDelivered` @return [Fixnum]

quantity_ordered[RW]

Number of items ordered. Corresponds to the JSON property `quantityOrdered` @return [Fixnum]

quantity_pending[RW]

Number of items pending. Corresponds to the JSON property `quantityPending` @return [Fixnum]

quantity_returned[RW]

Number of items returned. Corresponds to the JSON property `quantityReturned` @return [Fixnum]

quantity_shipped[RW]

Number of items shipped. Corresponds to the JSON property `quantityShipped` @return [Fixnum]

return_info[RW]

Details of the return policy for the line item. Corresponds to the JSON property `returnInfo` @return [Google::Apis::ContentV2::OrderLineItemReturnInfo]

returns[RW]

Returns of the line item. Corresponds to the JSON property `returns` @return [Array<Google::Apis::ContentV2::OrderReturn>]

shipping_details[RW]

Details of the requested shipping for the line item. Corresponds to the JSON property `shippingDetails` @return [Google::Apis::ContentV2::OrderLineItemShippingDetails]

tax[RW]

Total tax amount for the line item. For example, if two items are purchased, and each have a cost tax of $2, the total tax amount will be $4. Corresponds to the JSON property `tax` @return [Google::Apis::ContentV2::Price]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 2897
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 2902
def update!(**args)
  @cancellations = args[:cancellations] if args.key?(:cancellations)
  @id = args[:id] if args.key?(:id)
  @price = args[:price] if args.key?(:price)
  @product = args[:product] if args.key?(:product)
  @quantity_canceled = args[:quantity_canceled] if args.key?(:quantity_canceled)
  @quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered)
  @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered)
  @quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending)
  @quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned)
  @quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped)
  @return_info = args[:return_info] if args.key?(:return_info)
  @returns = args[:returns] if args.key?(:returns)
  @shipping_details = args[:shipping_details] if args.key?(:shipping_details)
  @tax = args[:tax] if args.key?(:tax)
end