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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
float

setDisplayPrice

Optional. Display price of the product.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getOriginalPrice

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

Returns
TypeDescription
float

setOriginalPrice

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this