Class: Google::Apis::MerchantapiAccountsV1beta::DeliveryTime

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

Time spent in various aspects from order to the delivery of the product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeliveryTime

Returns a new instance of DeliveryTime.



806
807
808
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 806

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

Instance Attribute Details

#cutoff_timeGoogle::Apis::MerchantapiAccountsV1beta::CutoffTime

Business days cutoff time definition. Corresponds to the JSON property cutoffTime



753
754
755
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 753

def cutoff_time
  @cutoff_time
end

#handling_business_day_configGoogle::Apis::MerchantapiAccountsV1beta::BusinessDayConfig

Business days of the warehouse. Corresponds to the JSON property handlingBusinessDayConfig



758
759
760
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 758

def handling_business_day_config
  @handling_business_day_config
end

#max_handling_daysFixnum

Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to min_handling_days. Corresponds to the JSON property maxHandlingDays

Returns:

  • (Fixnum)


765
766
767
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 765

def max_handling_days
  @max_handling_days
end

#max_transit_daysFixnum

Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to min_transit_days. Corresponds to the JSON property maxTransitDays

Returns:

  • (Fixnum)


772
773
774
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 772

def max_transit_days
  @max_transit_days
end

#min_handling_daysFixnum

Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Corresponds to the JSON property minHandlingDays

Returns:

  • (Fixnum)


778
779
780
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 778

def min_handling_days
  @min_handling_days
end

#min_transit_daysFixnum

Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either min_transit_days, max_transit_days or transit_time_table must be set, but not both. Corresponds to the JSON property minTransitDays

Returns:

  • (Fixnum)


785
786
787
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 785

def min_transit_days
  @min_transit_days
end

#transit_business_day_configGoogle::Apis::MerchantapiAccountsV1beta::BusinessDayConfig

Business days of the warehouse. Corresponds to the JSON property transitBusinessDayConfig



790
791
792
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 790

def transit_business_day_config
  @transit_business_day_config
end

#transit_time_tableGoogle::Apis::MerchantapiAccountsV1beta::TransitTable

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. Corresponds to the JSON property transitTimeTable



797
798
799
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 797

def transit_time_table
  @transit_time_table
end

#warehouse_based_delivery_timesArray<Google::Apis::MerchantapiAccountsV1beta::WarehouseBasedDeliveryTime>

Optional. Indicates that the delivery time should be calculated per warehouse ( shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set. Corresponds to the JSON property warehouseBasedDeliveryTimes



804
805
806
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 804

def warehouse_based_delivery_times
  @warehouse_based_delivery_times
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



811
812
813
814
815
816
817
818
819
820
821
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 811

def update!(**args)
  @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
  @handling_business_day_config = args[:handling_business_day_config] if args.key?(:handling_business_day_config)
  @max_handling_days = args[:max_handling_days] if args.key?(:max_handling_days)
  @max_transit_days = args[:max_transit_days] if args.key?(:max_transit_days)
  @min_handling_days = args[:min_handling_days] if args.key?(:min_handling_days)
  @min_transit_days = args[:min_transit_days] if args.key?(:min_transit_days)
  @transit_business_day_config = args[:transit_business_day_config] if args.key?(:transit_business_day_config)
  @transit_time_table = args[:transit_time_table] if args.key?(:transit_time_table)
  @warehouse_based_delivery_times = args[:warehouse_based_delivery_times] if args.key?(:warehouse_based_delivery_times)
end