Show / Hide Table of Contents

Class CarrierRate

A list of carrier rates that can be referred to by main_table or single_value. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?ref_topic=12570808&sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.

Inheritance
object
CarrierRate
Implements
IMessage<CarrierRate>
IEquatable<CarrierRate>
IDeepCloneable<CarrierRate>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public sealed class CarrierRate : IMessage<CarrierRate>, IEquatable<CarrierRate>, IDeepCloneable<CarrierRate>, IBufferMessage, IMessage

Constructors

CarrierRate()

Declaration
public CarrierRate()

CarrierRate(CarrierRate)

Declaration
public CarrierRate(CarrierRate other)
Parameters
Type Name Description
CarrierRate other

Properties

Carrier

Required. Carrier service, such as "UPS" or "Fedex".

Declaration
public string Carrier { get; set; }
Property Value
Type Description
string

CarrierService

Required. Carrier service, such as "ground" or "2 days".

Declaration
public string CarrierService { get; set; }
Property Value
Type Description
string

FlatAdjustment

Optional. Additive shipping rate modifier. Can be negative. For example { "amount_micros": 1, "currency_code" : "USD" } adds $1 to the rate, { "amount_micros": -3, "currency_code" : "USD" } removes $3 from the rate.

Declaration
public Price FlatAdjustment { get; set; }
Property Value
Type Description
Price

HasCarrier

Gets whether the "carrier" field is set

Declaration
public bool HasCarrier { get; }
Property Value
Type Description
bool

HasCarrierService

Gets whether the "carrier_service" field is set

Declaration
public bool HasCarrierService { get; }
Property Value
Type Description
bool

HasName

Gets whether the "name" field is set

Declaration
public bool HasName { get; }
Property Value
Type Description
bool

HasOriginPostalCode

Gets whether the "origin_postal_code" field is set

Declaration
public bool HasOriginPostalCode { get; }
Property Value
Type Description
bool

HasPercentageAdjustment

Gets whether the "percentage_adjustment" field is set

Declaration
public bool HasPercentageAdjustment { get; }
Property Value
Type Description
bool

Name

Required. Name of the carrier rate. Must be unique per rate group.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

OriginPostalCode

Required. Shipping origin for this carrier rate.

Declaration
public string OriginPostalCode { get; set; }
Property Value
Type Description
string

PercentageAdjustment

Optional. Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the rate by 3%.

Declaration
public string PercentageAdjustment { get; set; }
Property Value
Type Description
string
In this article
Back to top Generated by DocFX