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.
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class Value : IMessage<Value>, IEquatable<Value>, IDeepCloneable<Value>, IBufferMessage, IMessage
Constructors
Value()
Declaration
public Value()
Value(Value)
Declaration
public Value(Value other)
Parameters
Type | Name | Description |
---|---|---|
Value | other |
Properties
CarrierRate
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.
Declaration
public string CarrierRate { get; set; }
Property Value
Type | Description |
---|---|
string |
FlatRate
A flat rate. Can only be set if all other fields are not set.
Declaration
public Price FlatRate { get; set; }
Property Value
Type | Description |
---|---|
Price |
HasCarrierRate
Gets whether the "carrier_rate" field is set
Declaration
public bool HasCarrierRate { get; }
Property Value
Type | Description |
---|---|
bool |
HasNoShipping
Gets whether the "no_shipping" field is set
Declaration
public bool HasNoShipping { get; }
Property Value
Type | Description |
---|---|
bool |
HasPricePercentage
Gets whether the "price_percentage" field is set
Declaration
public bool HasPricePercentage { get; }
Property Value
Type | Description |
---|---|
bool |
HasSubtable
Gets whether the "subtable" field is set
Declaration
public bool HasSubtable { get; }
Property Value
Type | Description |
---|---|
bool |
NoShipping
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.
Declaration
public bool NoShipping { get; set; }
Property Value
Type | Description |
---|---|
bool |
PricePercentage
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.
Declaration
public string PricePercentage { get; set; }
Property Value
Type | Description |
---|---|
string |
Subtable
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.
Declaration
public string Subtable { get; set; }
Property Value
Type | Description |
---|---|
string |