GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItem (google_api_recommendation_engine v0.3.1) 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 isIN_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(), canonicalProductUri: String.t(), costs: map(), currencyCode: String.t(), exactPrice: GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice.t(), images: [ GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1Image.t() ], priceRange: GoogleApi.RecommendationEngine.V1beta1.Model.GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange.t(), stockState: String.t() }
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.