View Source GoogleApi.Content.V2.Model.OrderLineItem (google_api_content v0.66.0)

Attributes

  • annotations (type: list(GoogleApi.Content.V2.Model.OrderMerchantProvidedAnnotation.t), default: nil) - Annotations that are attached to the line item.
  • cancellations (type: list(GoogleApi.Content.V2.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.V2.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.V2.Model.OrderLineItemProduct.t, default: nil) - 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.
  • 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.
  • returnInfo (type: GoogleApi.Content.V2.Model.OrderLineItemReturnInfo.t, default: nil) - Details of the return policy for the line item.
  • returns (type: list(GoogleApi.Content.V2.Model.OrderReturn.t), default: nil) - Returns of the line item.
  • shippingDetails (type: GoogleApi.Content.V2.Model.OrderLineItemShippingDetails.t, default: nil) - Details of the requested shipping for the line item.
  • tax (type: GoogleApi.Content.V2.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.V2.Model.OrderLineItem{
  annotations:
    [GoogleApi.Content.V2.Model.OrderMerchantProvidedAnnotation.t()] | nil,
  cancellations: [GoogleApi.Content.V2.Model.OrderCancellation.t()] | nil,
  id: String.t() | nil,
  price: GoogleApi.Content.V2.Model.Price.t() | nil,
  product: GoogleApi.Content.V2.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,
  returnInfo: GoogleApi.Content.V2.Model.OrderLineItemReturnInfo.t() | nil,
  returns: [GoogleApi.Content.V2.Model.OrderReturn.t()] | nil,
  shippingDetails:
    GoogleApi.Content.V2.Model.OrderLineItemShippingDetails.t() | nil,
  tax: GoogleApi.Content.V2.Model.Price.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.