Class: Google::Apis::ContentV2_1::ShippingSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ShippingSettings
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShippingSettings
constructor
A new instance of ShippingSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ShippingSettings
Returns a new instance of ShippingSettings
8252 8253 8254 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8252 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
8240 8241 8242 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8240 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
8245 8246 8247 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8245 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
8250 8251 8252 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8250 def services @services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8257 8258 8259 8260 8261 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8257 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) end |