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.
Implements
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class RateGroup : IMessage<RateGroup>, IEquatable<RateGroup>, IDeepCloneable<RateGroup>, IBufferMessage, IMessage
Constructors
RateGroup()
Declaration
public RateGroup()
RateGroup(RateGroup)
Declaration
public RateGroup(RateGroup other)
Parameters
Type | Name | Description |
---|---|---|
RateGroup | other |
Properties
ApplicableShippingLabels
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.
Declaration
public RepeatedField<string> ApplicableShippingLabels { get; }
Property Value
Type | Description |
---|---|
RepeatedField<string> |
CarrierRates
Optional. A list of carrier rates that can be referred to by
main_table
or single_value
.
Declaration
public RepeatedField<CarrierRate> CarrierRates { get; }
Property Value
Type | Description |
---|---|
RepeatedField<CarrierRate> |
HasName
Gets whether the "name" field is set
Declaration
public bool HasName { get; }
Property Value
Type | Description |
---|---|
bool |
MainTable
A table defining the rate group, when single_value
is not
expressive enough. Can only be set if single_value
is not
set.
Declaration
public Table MainTable { get; set; }
Property Value
Type | Description |
---|---|
Table |
Name
Optional. Name of the rate group. If set has to be unique within shipping service.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SingleValue
The value of the rate group (For example flat rate $10). Can only be set
if main_table
and subtables
are not set.
Declaration
public Value SingleValue { get; set; }
Property Value
Type | Description |
---|---|
Value |
Subtables
Optional. A list of subtables referred to by main_table
. Can only
be set if main_table
is set.
Declaration
public RepeatedField<Table> Subtables { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Table> |