Class: Google::Apis::ContentV2::AccountShippingRateTable

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

A single or bi-dimensional table of shipping rates. Each dimension is defined in terms of consecutive price/weight ranges, delivery locations, or shipping labels.

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

Returns a new instance of AccountShippingRateTable.



427
428
429
# File 'generated/google/apis/content_v2/classes.rb', line 427

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

Instance Attribute Details

#contentArray<Google::Apis::ContentV2::AccountShippingRateTableCell>

One-dimensional table cells define one condition along the same dimension. Bi- dimensional table cells use two dimensions with respectively M and N distinct values and must contain exactly M * N cells with distinct conditions (for each possible value pairs). Corresponds to the JSON property content



414
415
416
# File 'generated/google/apis/content_v2/classes.rb', line 414

def content
  @content
end

#nameString

The name of the rate table. Corresponds to the JSON property name

Returns:

  • (String)


419
420
421
# File 'generated/google/apis/content_v2/classes.rb', line 419

def name
  @name
end

#sale_countryString

The sale country for which this table is valid, represented as a CLDR territory code. Corresponds to the JSON property saleCountry

Returns:

  • (String)


425
426
427
# File 'generated/google/apis/content_v2/classes.rb', line 425

def sale_country
  @sale_country
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



432
433
434
435
436
# File 'generated/google/apis/content_v2/classes.rb', line 432

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @name = args[:name] if args.key?(:name)
  @sale_country = args[:sale_country] if args.key?(:sale_country)
end