Class: Google::Apis::ContentV2::ShippingSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::ShippingSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/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::PostalCodeGroup>
A list of postal code groups that can be referred to in
services
. -
#services ⇒ Array<Google::Apis::ContentV2::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.
Constructor Details
#initialize(**args) ⇒ ShippingSettings
Returns a new instance of ShippingSettings.
10638 10639 10640 |
# File 'generated/google/apis/content_v2/classes.rb', line 10638 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
10626 10627 10628 |
# File 'generated/google/apis/content_v2/classes.rb', line 10626 def account_id @account_id end |
#postal_code_groups ⇒ Array<Google::Apis::ContentV2::PostalCodeGroup>
A list of postal code groups that can be referred to in services
. Optional.
Corresponds to the JSON property postalCodeGroups
10631 10632 10633 |
# File 'generated/google/apis/content_v2/classes.rb', line 10631 def postal_code_groups @postal_code_groups end |
#services ⇒ Array<Google::Apis::ContentV2::Service>
The target account's list of services. Optional.
Corresponds to the JSON property services
10636 10637 10638 |
# File 'generated/google/apis/content_v2/classes.rb', line 10636 def services @services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10643 10644 10645 10646 10647 |
# File 'generated/google/apis/content_v2/classes.rb', line 10643 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 |