Class: Google::Apis::MerchantapiAccountsV1beta::TransitTable
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::TransitTable
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb
Overview
Transit time table, number of business days spent in transit based on row and
column dimensions. Either min_transit_days
, max_transit_days
or
transit_time_table
can be set, but not both.
Instance Attribute Summary collapse
-
#postal_code_group_names ⇒ Array<String>
Required.
-
#rows ⇒ Array<Google::Apis::MerchantapiAccountsV1beta::TransitTimeRow>
Required.
-
#transit_time_labels ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransitTable
constructor
A new instance of TransitTable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransitTable
Returns a new instance of TransitTable.
2833 2834 2835 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2833 def initialize(**args) update!(**args) end |
Instance Attribute Details
#postal_code_group_names ⇒ Array<String>
Required. A list of region names Region.name . The last value can be "all
other locations"
. Example: ["zone 1", "zone 2", "all other locations"]
. The
referred postal code groups must match the delivery country of the service.
Corresponds to the JSON property postalCodeGroupNames
2817 2818 2819 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2817 def postal_code_group_names @postal_code_group_names end |
#rows ⇒ Array<Google::Apis::MerchantapiAccountsV1beta::TransitTimeRow>
Required. If there's only one dimension set of postal_code_group_names
or
transit_time_labels
, there are multiple rows each with one value for that
dimension. If there are two dimensions, each row corresponds to a
postal_code_group_names
, and columns (values) to a transit_time_labels
.
Corresponds to the JSON property rows
2825 2826 2827 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2825 def rows @rows end |
#transit_time_labels ⇒ Array<String>
Required. A list of transit time labels. The last value can be "all other
labels"
. Example: ["food", "electronics", "all other labels"]
.
Corresponds to the JSON property transitTimeLabels
2831 2832 2833 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2831 def transit_time_labels @transit_time_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2838 2839 2840 2841 2842 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2838 def update!(**args) @postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names) @rows = args[:rows] if args.key?(:rows) @transit_time_labels = args[:transit_time_labels] if args.key?(:transit_time_labels) end |