Class: Google::Apis::MerchantapiAccountsV1beta::Warehouse

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

A fulfillment warehouse, which stores and handles inventory. Next tag: 7

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Warehouse

Returns a new instance of Warehouse.



3023
3024
3025
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3023

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

Instance Attribute Details

#business_day_configGoogle::Apis::MerchantapiAccountsV1beta::BusinessDayConfig

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



2997
2998
2999
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2997

def business_day_config
  @business_day_config
end

#cutoff_timeGoogle::Apis::MerchantapiAccountsV1beta::WarehouseCutoffTime

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



3004
3005
3006
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3004

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)


3011
3012
3013
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3011

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)


3016
3017
3018
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3016

def name
  @name
end

#shipping_addressGoogle::Apis::MerchantapiAccountsV1beta::Address

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



3021
3022
3023
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3021

def shipping_address
  @shipping_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3028
3029
3030
3031
3032
3033
3034
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3028

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