Google Shopping Merchant Accounts V1 Client - Class Value (1.0.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
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
Google\Shopping\Type\Price

A flat rate. Can only be set if all other fields are not set.

↳ 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.

Returns
Type
Description
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.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getFlatRate

A flat rate. Can only be set if all other fields are not set.

Returns
Type
Description

hasFlatRate

clearFlatRate

setFlatRate

A flat rate. Can only be set if all other fields are not set.

Parameter
Name
Description
Returns
Type
Description
$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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: