View Source GoogleApi.Content.V21.Model.OrderLineItem (google_api_content v0.67.1)

Attributes

  • adjustments (type: list(GoogleApi.Content.V21.Model.OrderLineItemAdjustment.t), default: nil) - Price and tax adjustments applied on the line item.
  • annotations (type: list(GoogleApi.Content.V21.Model.OrderMerchantProvidedAnnotation.t), default: nil) - Annotations that are attached to the line item.
  • cancellations (type: list(GoogleApi.Content.V21.Model.OrderCancellation.t), default: nil) - Cancellations of the line item.
  • id (type: String.t, default: nil) - The ID of the line item.
  • price (type: GoogleApi.Content.V21.Model.Price.t, default: nil) - Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
  • product (type: GoogleApi.Content.V21.Model.OrderLineItemProduct.t, default: nil) - Product data as seen by customer from the time of the order placement. Note that certain attributes values (for example, title or gtin) might be reformatted and no longer match values submitted through product feed.
  • quantityCanceled (type: integer(), default: nil) - Number of items canceled.
  • quantityDelivered (type: integer(), default: nil) - Number of items delivered.
  • quantityOrdered (type: integer(), default: nil) - Number of items ordered.
  • quantityPending (type: integer(), default: nil) - Number of items pending.
  • quantityReadyForPickup (type: integer(), default: nil) - Number of items ready for pickup.
  • quantityReturned (type: integer(), default: nil) - Number of items returned.
  • quantityShipped (type: integer(), default: nil) - Number of items shipped.
  • quantityUndeliverable (type: integer(), default: nil) - Number of items undeliverable.
  • returnInfo (type: GoogleApi.Content.V21.Model.OrderLineItemReturnInfo.t, default: nil) - Details of the return policy for the line item.
  • returns (type: list(GoogleApi.Content.V21.Model.OrderReturn.t), default: nil) - Returns of the line item.
  • shippingDetails (type: GoogleApi.Content.V21.Model.OrderLineItemShippingDetails.t, default: nil) - Details of the requested shipping for the line item.
  • tax (type: GoogleApi.Content.V21.Model.Price.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.OrderLineItem{
  adjustments: [GoogleApi.Content.V21.Model.OrderLineItemAdjustment.t()] | nil,
  annotations:
    [GoogleApi.Content.V21.Model.OrderMerchantProvidedAnnotation.t()] | nil,
  cancellations: [GoogleApi.Content.V21.Model.OrderCancellation.t()] | nil,
  id: String.t() | nil,
  price: GoogleApi.Content.V21.Model.Price.t() | nil,
  product: GoogleApi.Content.V21.Model.OrderLineItemProduct.t() | nil,
  quantityCanceled: integer() | nil,
  quantityDelivered: integer() | nil,
  quantityOrdered: integer() | nil,
  quantityPending: integer() | nil,
  quantityReadyForPickup: integer() | nil,
  quantityReturned: integer() | nil,
  quantityShipped: integer() | nil,
  quantityUndeliverable: integer() | nil,
  returnInfo: GoogleApi.Content.V21.Model.OrderLineItemReturnInfo.t() | nil,
  returns: [GoogleApi.Content.V21.Model.OrderReturn.t()] | nil,
  shippingDetails:
    GoogleApi.Content.V21.Model.OrderLineItemShippingDetails.t() | nil,
  tax: GoogleApi.Content.V21.Model.Price.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.