Google Cloud Recommendation Engine V1beta1 Client - Class ExactPrice (0.7.7)

Reference documentation and code samples for the Google Cloud Recommendation Engine V1beta1 Client class ExactPrice.

Exact product price.

Generated from protobuf message google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice

Namespace

Google \ Cloud \ RecommendationEngine \ V1beta1 \ ProductCatalogItem

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ display_price float

Optional. Display price of the product.

↳ original_price float

Optional. Price of the product without any discount. If zero, by default set to be the 'displayPrice'.

getDisplayPrice

Optional. Display price of the product.

Returns
Type Description
float

setDisplayPrice

Optional. Display price of the product.

Parameter
Name Description
var float
Returns
Type Description
$this

getOriginalPrice

Optional. Price of the product without any discount. If zero, by default set to be the 'displayPrice'.

Returns
Type Description
float

setOriginalPrice

Optional. Price of the product without any discount. If zero, by default set to be the 'displayPrice'.

Parameter
Name Description
var float
Returns
Type Description
$this