google_api_content v0.30.0 GoogleApi.Content.V2.Model.OrderLineItemProduct View Source

Attributes

  • brand (type: String.t, default: nil) - Brand of the item.

  • channel (type: String.t, default: nil) - The item's channel (online or local).

    Acceptable values are:

    • "local"
    • "online"
  • condition (type: String.t, default: nil) - Condition or state of the item.

    Acceptable values are:

    • "new"
    • "refurbished"
    • "used"
  • contentLanguage (type: String.t, default: nil) - The two-letter ISO 639-1 language code for the item.

  • fees (type: list(GoogleApi.Content.V2.Model.OrderLineItemProductFee.t), default: nil) - Associated fees at order creation time.

  • gtin (type: String.t, default: nil) - Global Trade Item Number (GTIN) of the item.

  • id (type: String.t, default: nil) - The REST ID of the product.

  • imageLink (type: String.t, default: nil) - URL of an image of the item.

  • itemGroupId (type: String.t, default: nil) - Shared identifier for all variants of the same product.

  • mpn (type: String.t, default: nil) - Manufacturer Part Number (MPN) of the item.

  • offerId (type: String.t, default: nil) - An identifier of the item.

  • price (type: GoogleApi.Content.V2.Model.Price.t, default: nil) - Price of the item.

  • shownImage (type: String.t, default: nil) - URL to the cached image shown to the user when order was placed.

  • targetCountry (type: String.t, default: nil) - The CLDR territory code of the target country of the product.

  • title (type: String.t, default: nil) - The title of the product.

  • variantAttributes (type: list(GoogleApi.Content.V2.Model.OrderLineItemProductVariantAttribute.t), default: nil) - Variant attributes for the item. These are dimensions of the product, such as color, gender, material, pattern, and size. You can find a comprehensive list of variant attributes here.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Content.V2.Model.OrderLineItemProduct{
  brand: String.t(),
  channel: String.t(),
  condition: String.t(),
  contentLanguage: String.t(),
  fees: [GoogleApi.Content.V2.Model.OrderLineItemProductFee.t()],
  gtin: String.t(),
  id: String.t(),
  imageLink: String.t(),
  itemGroupId: String.t(),
  mpn: String.t(),
  offerId: String.t(),
  price: GoogleApi.Content.V2.Model.Price.t(),
  shownImage: String.t(),
  targetCountry: String.t(),
  title: String.t(),
  variantAttributes: [
    GoogleApi.Content.V2.Model.OrderLineItemProductVariantAttribute.t()
  ]
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.