Class: Google::Apis::MerchantapiAccountsV1beta::TransitTimeValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_daysFixnum

Must be greater than or equal to min_transit_days. Corresponds to the JSON property maxTransitDays

Returns:

  • (Fixnum)


2876
2877
2878
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2876

def max_transit_days
  @max_transit_days
end

#min_transit_daysFixnum

Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery. Corresponds to the JSON property minTransitDays

Returns:

  • (Fixnum)


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