GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItem (google_api_recommendation_engine v0.4.5) View Source

ProductCatalogItem captures item metadata specific to retail products.

Attributes

  • availableQuantity (type: String.t, default: nil) - Optional. The available quantity of the item.
  • canonicalProductUri (type: String.t, default: nil) - Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..
  • costs (type: map(), default: nil) - Optional. A map to pass the costs associated with the product. For example: {"manufacturing": 45.5} The profit of selling this item is computed like so: If 'exactPrice' is provided, profit = displayPrice - sum(costs) If 'priceRange' is provided, profit = minPrice - sum(costs)
  • currencyCode (type: String.t, default: nil) - Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.
  • exactPrice (type: GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice.t, default: nil) - Optional. The exact product price.
  • images (type: list(GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1Image.t), default: nil) - Optional. Product images for the catalog item.
  • priceRange (type: GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange.t, default: nil) - Optional. The product price range.
  • stockState (type: String.t, default: nil) - Optional. Online stock state of the catalog item. Default is IN_STOCK.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() ::
  %GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItem{
    availableQuantity: String.t() | nil,
    canonicalProductUri: String.t() | nil,
    costs: map() | nil,
    currencyCode: String.t() | nil,
    exactPrice:
      GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice.t()
      | nil,
    images:
      [
        GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1Image.t()
      ]
      | nil,
    priceRange:
      GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange.t()
      | nil,
    stockState: String.t() | nil
  }

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.