Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Value.
The single value of a rate group or the value of a rate group table's cell.
Exactly one of no_shipping
, flat_rate
, price_percentage
, carrier_rateName
, subtable_name
must be set.
Generated from protobuf message google.shopping.merchant.accounts.v1.Value
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ no_shipping
bool
If true, then the product can't be shipped. Must be true when set, can only be set if all other fields are not set.
↳ flat_rate
↳ price_percentage
string
A percentage of the price represented as a number in decimal notation (For example, "5.4"
). Can only be set if all other fields are not set.
↳ carrier_rate
string
The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
↳ subtable
string
The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
getNoShipping
If true, then the product can't be shipped. Must be true when set, can only be set if all other fields are not set.
bool
hasNoShipping
clearNoShipping
setNoShipping
If true, then the product can't be shipped. Must be true when set, can only be set if all other fields are not set.
var
bool
$this
getFlatRate
A flat rate. Can only be set if all other fields are not set.
hasFlatRate
clearFlatRate
setFlatRate
A flat rate. Can only be set if all other fields are not set.
$this
getPricePercentage
A percentage of the price represented as a number in decimal notation
(For example, "5.4"
). Can only be set if all other fields are not
set.
string
hasPricePercentage
clearPricePercentage
setPricePercentage
A percentage of the price represented as a number in decimal notation
(For example, "5.4"
). Can only be set if all other fields are not
set.
var
string
$this
getCarrierRate
The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
string
hasCarrierRate
clearCarrierRate
setCarrierRate
The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
var
string
$this
getSubtable
The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
string
hasSubtable
clearSubtable
setSubtable
The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
var
string
$this