Class: Google::Apis::ContentV2::ShippingSettings

Inherits:
Object
  • Object
show all
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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ShippingSettings

Returns a new instance of ShippingSettings



5719
5720
5721
# File 'generated/google/apis/content_v2/classes.rb', line 5719

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#account_idFixnum

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

Returns:

  • (Fixnum)


5707
5708
5709
# File 'generated/google/apis/content_v2/classes.rb', line 5707

def 
  @account_id
end

#postal_code_groupsArray<Google::Apis::ContentV2::PostalCodeGroup>

A list of postal code groups that can be referred to in services. Optional. Corresponds to the JSON property postalCodeGroups



5712
5713
5714
# File 'generated/google/apis/content_v2/classes.rb', line 5712

def postal_code_groups
  @postal_code_groups
end

#servicesArray<Google::Apis::ContentV2::Service>

The target account's list of services. Optional. Corresponds to the JSON property services



5717
5718
5719
# File 'generated/google/apis/content_v2/classes.rb', line 5717

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5724
5725
5726
5727
5728
# File 'generated/google/apis/content_v2/classes.rb', line 5724

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