Class: Google::Apis::ContentV2_1::ShippingSettings

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShippingSettings

Returns a new instance of ShippingSettings.



13619
13620
13621
# File 'lib/google/apis/content_v2_1/classes.rb', line 13619

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)


13602
13603
13604
# File 'lib/google/apis/content_v2_1/classes.rb', line 13602

def 
  @account_id
end

#postal_code_groupsArray<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



13607
13608
13609
# File 'lib/google/apis/content_v2_1/classes.rb', line 13607

def postal_code_groups
  @postal_code_groups
end

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

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



13612
13613
13614
# File 'lib/google/apis/content_v2_1/classes.rb', line 13612

def services
  @services
end

#warehousesArray<Google::Apis::ContentV2_1::Warehouse>

Optional. A list of warehouses which can be referred to in services. Corresponds to the JSON property warehouses



13617
13618
13619
# File 'lib/google/apis/content_v2_1/classes.rb', line 13617

def warehouses
  @warehouses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13624
13625
13626
13627
13628
13629
# File 'lib/google/apis/content_v2_1/classes.rb', line 13624

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