Class: Google::Apis::ContentV2_1::ShippingSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ShippingSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
Instance Attribute Summary collapse
-
#account_id ⇒ Fixnum
The ID of the account to which these account shipping settings belong.
-
#postal_code_groups ⇒ Array<Google::Apis::ContentV2_1::PostalCodeGroup>
A list of postal code groups that can be referred to in
services
. -
#services ⇒ Array<Google::Apis::ContentV2_1::Service>
The target account's list of services.
-
#warehouses ⇒ Array<Google::Apis::ContentV2_1::Warehouse>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShippingSettings
constructor
A new instance of ShippingSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ShippingSettings
Returns a new instance of ShippingSettings.
13919 13920 13921 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13919 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
The ID of the account to which these account shipping settings belong. Ignored
upon update, always present in get request responses.
Corresponds to the JSON property accountId
13902 13903 13904 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13902 def account_id @account_id end |
#postal_code_groups ⇒ Array<Google::Apis::ContentV2_1::PostalCodeGroup>
A list of postal code groups that can be referred to in services
. Optional.
Corresponds to the JSON property postalCodeGroups
13907 13908 13909 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13907 def postal_code_groups @postal_code_groups end |
#services ⇒ Array<Google::Apis::ContentV2_1::Service>
The target account's list of services. Optional.
Corresponds to the JSON property services
13912 13913 13914 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13912 def services @services end |
#warehouses ⇒ Array<Google::Apis::ContentV2_1::Warehouse>
Optional. A list of warehouses which can be referred to in services
.
Corresponds to the JSON property warehouses
13917 13918 13919 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13917 def warehouses @warehouses end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13924 13925 13926 13927 13928 13929 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13924 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups) @services = args[:services] if args.key?(:services) @warehouses = args[:warehouses] if args.key?(:warehouses) end |