Class: Google::Apis::MerchantapiAccountsV1beta::TransitTimeValue
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::TransitTimeValue
- 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 range (min-max) in business days.
Instance Attribute Summary collapse
-
#max_transit_days ⇒ Fixnum
Must be greater than or equal to
min_transit_days
. -
#min_transit_days ⇒ Fixnum
Minimum transit time range in business days.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransitTimeValue
constructor
A new instance of TransitTimeValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransitTimeValue
Returns a new instance of TransitTimeValue.
2884 2885 2886 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_transit_days ⇒ Fixnum
Must be greater than or equal to min_transit_days
.
Corresponds to the JSON property maxTransitDays
2876 2877 2878 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2876 def max_transit_days @max_transit_days end |
#min_transit_days ⇒ Fixnum
Minimum transit time range in business days. 0 means same day delivery, 1
means next day delivery.
Corresponds to the JSON property minTransitDays
2882 2883 2884 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2882 def min_transit_days @min_transit_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2889 2890 2891 2892 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2889 def update!(**args) @max_transit_days = args[:max_transit_days] if args.key?(:max_transit_days) @min_transit_days = args[:min_transit_days] if args.key?(:min_transit_days) end |