Class: Google::Apis::ContentV2::Warehouse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Overview

A fulfillment warehouse, which stores and handles inventory.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Warehouse

Returns a new instance of Warehouse.



11231
11232
11233
# File 'lib/google/apis/content_v2/classes.rb', line 11231

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

Instance Attribute Details

#business_day_configGoogle::Apis::ContentV2::BusinessDayConfig

Business days of the warehouse. If not set, will be Monday to Friday by default. Corresponds to the JSON property businessDayConfig



11205
11206
11207
# File 'lib/google/apis/content_v2/classes.rb', line 11205

def business_day_config
  @business_day_config
end

#cutoff_timeGoogle::Apis::ContentV2::WarehouseCutoffTime

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code. Corresponds to the JSON property cutoffTime



11212
11213
11214
# File 'lib/google/apis/content_v2/classes.rb', line 11212

def cutoff_time
  @cutoff_time
end

#handling_daysFixnum

Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item. Corresponds to the JSON property handlingDays

Returns:

  • (Fixnum)


11219
11220
11221
# File 'lib/google/apis/content_v2/classes.rb', line 11219

def handling_days
  @handling_days
end

#nameString

Required. The name of the warehouse. Must be unique within account. Corresponds to the JSON property name

Returns:

  • (String)


11224
11225
11226
# File 'lib/google/apis/content_v2/classes.rb', line 11224

def name
  @name
end

#shipping_addressGoogle::Apis::ContentV2::Address

Required. Shipping address of the warehouse. Corresponds to the JSON property shippingAddress



11229
11230
11231
# File 'lib/google/apis/content_v2/classes.rb', line 11229

def shipping_address
  @shipping_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11236
11237
11238
11239
11240
11241
11242
# File 'lib/google/apis/content_v2/classes.rb', line 11236

def update!(**args)
  @business_day_config = args[:business_day_config] if args.key?(:business_day_config)
  @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
  @handling_days = args[:handling_days] if args.key?(:handling_days)
  @name = args[:name] if args.key?(:name)
  @shipping_address = args[:shipping_address] if args.key?(:shipping_address)
end