Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class RateGroup.
Shipping rate group definitions. Only the last one is allowed to have an
empty applicable_shipping_labels
, which means
"everything else". The other applicable_shipping_labels
must
not overlap.
Generated from protobuf message google.shopping.merchant.accounts.v1.RateGroup
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ applicable_shipping_labels
array
Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.
↳ single_value
Value
The value of the rate group (For example flat rate $10). Can only be set if main_table
and subtables
are not set.
↳ main_table
Table
A table defining the rate group, when single_value
is not expressive enough. Can only be set if single_value
is not set.
↳ subtables
array< Table
>
Optional. A list of subtables referred to by main_table
. Can only be set if main_table
is set.
↳ carrier_rates
array< CarrierRate
>
Optional. A list of carrier rates that can be referred to by main_table
or single_value
.
↳ name
string
Optional. Name of the rate group. If set has to be unique within shipping service.
getApplicableShippingLabels
Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.
setApplicableShippingLabels
Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.
var
string[]
$this
getSingleValue
The value of the rate group (For example flat rate $10). Can only be set
if main_table
and subtables
are not set.
hasSingleValue
clearSingleValue
setSingleValue
The value of the rate group (For example flat rate $10). Can only be set
if main_table
and subtables
are not set.
$this
getMainTable
A table defining the rate group, when single_value
is not
expressive enough. Can only be set if single_value
is not
set.
hasMainTable
clearMainTable
setMainTable
A table defining the rate group, when single_value
is not
expressive enough. Can only be set if single_value
is not
set.
$this
getSubtables
Optional. A list of subtables referred to by main_table
. Can only
be set if main_table
is set.
setSubtables
Optional. A list of subtables referred to by main_table
. Can only
be set if main_table
is set.
$this
getCarrierRates
Optional. A list of carrier rates that can be referred to by main_table
or single_value
.
setCarrierRates
Optional. A list of carrier rates that can be referred to by main_table
or single_value
.
$this
getName
Optional. Name of the rate group.
If set has to be unique within shipping service.
string
hasName
clearName
setName
Optional. Name of the rate group.
If set has to be unique within shipping service.
var
string
$this