Google Shopping Common Protos Client - Class Price (0.4.0)

Reference documentation and code samples for the Google Shopping Common Protos Client class Price.

The price represented as a number and currency.

Generated from protobuf message google.shopping.type.Price

Namespace

Google \ Shopping \ Type

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ amount_micros int|string

The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).

↳ currency_code string

The currency of the price using three-letter acronyms according to ISO 4217.

getAmountMicros

The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).

Returns
Type Description
int|string

hasAmountMicros

clearAmountMicros

setAmountMicros

The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).

Parameter
Name Description
var int|string
Returns
Type Description
$this

getCurrencyCode

The currency of the price using three-letter acronyms according to ISO 4217.

Returns
Type Description
string

hasCurrencyCode

clearCurrencyCode

setCurrencyCode

The currency of the price using three-letter acronyms according to ISO 4217.

Parameter
Name Description
var string
Returns
Type Description
$this