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.
2835 2836 2837 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2835 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
2819 2820 2821 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2819 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
2827 2828 2829 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2827 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
2833 2834 2835 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2833 def transit_time_labels @transit_time_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2840 2841 2842 2843 2844 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2840 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 |