class Google::Apis::ContentV2::AccountShipping

The shipping settings of a merchant account.

Attributes

account_id[RW]

The ID of the account to which these account shipping settings belong. Corresponds to the JSON property `accountId` @return [String]

carrier_rates[RW]

Carrier-based shipping calculations. Corresponds to the JSON property `carrierRates` @return [Array<Google::Apis::ContentV2::AccountShippingCarrierRate>]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “content# accountShipping”. Corresponds to the JSON property `kind` @return [String]

location_groups[RW]

Location groups for shipping. Corresponds to the JSON property `locationGroups` @return [Array<Google::Apis::ContentV2::AccountShippingLocationGroup>]

rate_tables[RW]

Rate tables definitions. Corresponds to the JSON property `rateTables` @return [Array<Google::Apis::ContentV2::AccountShippingRateTable>]

services[RW]

Shipping services describing shipping fees calculation. Corresponds to the JSON property `services` @return [Array<Google::Apis::ContentV2::AccountShippingShippingService>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 192
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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