Class ShippingSettings
The Merchant Center account's shipping
settings. The
ShippingSettings
resource lets you retrieve and update the shipping
settings of your advanced account and all its associated sub-accounts.
Implements
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public sealed class ShippingSettings : IMessage<ShippingSettings>, IEquatable<ShippingSettings>, IDeepCloneable<ShippingSettings>, IBufferMessage, IMessage
Constructors
ShippingSettings()
Declaration
public ShippingSettings()
ShippingSettings(ShippingSettings)
Declaration
public ShippingSettings(ShippingSettings other)
Parameters
Type | Name | Description |
---|---|---|
ShippingSettings | other |
Properties
Etag
Required. This field helps avoid async issues. It ensures that the shipping
setting
data doesn't change between the get
call and the insert
call. The user
should follow these steps:
Set the etag field as an empty string for the initial shipping setting creation.
After the initial creation, call the
get
method to obtain an etag and the current shipping setting data before callinginsert
.Modify the shipping setting information.
Call the
insert
method with the shipping setting information and the etag obtained in step 2.If the shipping setting data changes between step 2 and step 4, the insert request will fail because the etag changes every time the shipping setting data changes. In this case, the user should repeat steps 2-4 with the new etag.
Declaration
public string Etag { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Identifier. The resource name of the shipping settings.
Format: accounts/{account}/shippingSettings
. For example,
accounts/123456/shippingSettings
.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Services
Optional. The target account's list of services.
Declaration
public RepeatedField<Service> Services { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Service> |
ShippingSettingsName
ShippingSettingsName-typed view over the Name resource name property.
Declaration
public ShippingSettingsName ShippingSettingsName { get; set; }
Property Value
Type | Description |
---|---|
ShippingSettingsName |
Warehouses
Optional. A list of warehouses which can be referred to in services
.
Declaration
public RepeatedField<Warehouse> Warehouses { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Warehouse> |