class Google::Apis::ContentV2_1::OrderLineItem
Attributes
Price
and tax adjustments applied on the line item. Corresponds to the JSON property `adjustments` @return [Array<Google::Apis::ContentV2_1::OrderLineItemAdjustment>]
Annotations that are attached to the line item. Corresponds to the JSON property `annotations` @return [Array<Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation>]
Cancellations of the line item. Corresponds to the JSON property `cancellations` @return [Array<Google::Apis::ContentV2_1::OrderCancellation>]
The ID of the line item. Corresponds to the JSON property `id` @return [String]
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_1::Price]
Product
data as seen by customer from the time of the order placement. Note that certain attributes values (e.g. title or gtin) might be reformatted and no longer match values submitted via product feed. Corresponds to the JSON property `product` @return [Google::Apis::ContentV2_1::OrderLineItemProduct]
Number of items canceled. Corresponds to the JSON property `quantityCanceled` @return [Fixnum]
Number of items delivered. Corresponds to the JSON property `quantityDelivered` @return [Fixnum]
Number of items ordered. Corresponds to the JSON property `quantityOrdered` @return [Fixnum]
Number of items pending. Corresponds to the JSON property `quantityPending` @return [Fixnum]
Number of items ready for pickup. Corresponds to the JSON property `quantityReadyForPickup` @return [Fixnum]
Number of items returned. Corresponds to the JSON property `quantityReturned` @return [Fixnum]
Number of items shipped. Corresponds to the JSON property `quantityShipped` @return [Fixnum]
Number of items undeliverable. Corresponds to the JSON property `quantityUndeliverable` @return [Fixnum]
Details of the return policy for the line item. Corresponds to the JSON property `returnInfo` @return [Google::Apis::ContentV2_1::OrderLineItemReturnInfo]
Returns of the line item. Corresponds to the JSON property `returns` @return [Array<Google::Apis::ContentV2_1::OrderReturn>]
Details of the requested shipping for the line item. Corresponds to the JSON property `shippingDetails` @return [Google::Apis::ContentV2_1::OrderLineItemShippingDetails]
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_1::Price]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 5755 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 5760 def update!(**args) @adjustments = args[:adjustments] if args.key?(:adjustments) @annotations = args[:annotations] if args.key?(:annotations) @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_ready_for_pickup = args[:quantity_ready_for_pickup] if args.key?(:quantity_ready_for_pickup) @quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned) @quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped) @quantity_undeliverable = args[:quantity_undeliverable] if args.key?(:quantity_undeliverable) @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