Class: Google::Apis::ContentV2_1::Warehouse
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Warehouse
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
A fulfillment warehouse, which stores and handles inventory.
Instance Attribute Summary collapse
-
#business_day_config ⇒ Google::Apis::ContentV2_1::BusinessDayConfig
Business days of the warehouse.
-
#cutoff_time ⇒ Google::Apis::ContentV2_1::WarehouseCutoffTime
Required.
-
#handling_days ⇒ Fixnum
Required.
-
#name ⇒ String
Required.
-
#shipping_address ⇒ Google::Apis::ContentV2_1::Address
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Warehouse
constructor
A new instance of Warehouse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Warehouse
Returns a new instance of Warehouse.
14471 14472 14473 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14471 def initialize(**args) update!(**args) end |
Instance Attribute Details
#business_day_config ⇒ Google::Apis::ContentV2_1::BusinessDayConfig
Business days of the warehouse. If not set, will be Monday to Friday by
default.
Corresponds to the JSON property businessDayConfig
14445 14446 14447 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14445 def business_day_config @business_day_config end |
#cutoff_time ⇒ Google::Apis::ContentV2_1::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
14452 14453 14454 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14452 def cutoff_time @cutoff_time end |
#handling_days ⇒ Fixnum
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
14459 14460 14461 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14459 def handling_days @handling_days end |
#name ⇒ String
Required. The name of the warehouse. Must be unique within account.
Corresponds to the JSON property name
14464 14465 14466 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14464 def name @name end |
#shipping_address ⇒ Google::Apis::ContentV2_1::Address
Required. Shipping address of the warehouse.
Corresponds to the JSON property shippingAddress
14469 14470 14471 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14469 def shipping_address @shipping_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14476 14477 14478 14479 14480 14481 14482 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14476 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 |