Class: Google::Apis::ContentV2::AccountShipping

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 shipping settings of a merchant account.

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) ⇒ AccountShipping

Returns a new instance of AccountShipping.



192
193
194
# File 'generated/google/apis/content_v2/classes.rb', line 192

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

Instance Attribute Details

#account_idString

The ID of the account to which these account shipping settings belong. Corresponds to the JSON property accountId

Returns:

  • (String)


164
165
166
# File 'generated/google/apis/content_v2/classes.rb', line 164

def 
  @account_id
end

#carrier_ratesArray<Google::Apis::ContentV2::AccountShippingCarrierRate>

Carrier-based shipping calculations. Corresponds to the JSON property carrierRates



169
170
171
# File 'generated/google/apis/content_v2/classes.rb', line 169

def carrier_rates
  @carrier_rates
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# accountShipping". Corresponds to the JSON property kind

Returns:

  • (String)


175
176
177
# File 'generated/google/apis/content_v2/classes.rb', line 175

def kind
  @kind
end

#location_groupsArray<Google::Apis::ContentV2::AccountShippingLocationGroup>

Location groups for shipping. Corresponds to the JSON property locationGroups



180
181
182
# File 'generated/google/apis/content_v2/classes.rb', line 180

def location_groups
  @location_groups
end

#rate_tablesArray<Google::Apis::ContentV2::AccountShippingRateTable>

Rate tables definitions. Corresponds to the JSON property rateTables



185
186
187
# File 'generated/google/apis/content_v2/classes.rb', line 185

def rate_tables
  @rate_tables
end

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

Shipping services describing shipping fees calculation. Corresponds to the JSON property services



190
191
192
# File 'generated/google/apis/content_v2/classes.rb', line 190

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



197
198
199
200
201
202
203
204
# File 'generated/google/apis/content_v2/classes.rb', line 197

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates)
  @kind = args[:kind] if args.key?(:kind)
  @location_groups = args[:location_groups] if args.key?(:location_groups)
  @rate_tables = args[:rate_tables] if args.key?(:rate_tables)
  @services = args[:services] if args.key?(:services)
end