Class: Google::Apis::ContentV2_1::OrderPickupDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderPickupDetails

Returns a new instance of OrderPickupDetails.



6247
6248
6249
# File 'lib/google/apis/content_v2_1/classes.rb', line 6247

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2_1::OrderAddress

Address of the pickup location where the shipment should be sent. Note that recipientName in the address is the name of the business at the pickup location. Corresponds to the JSON property address



6228
6229
6230
# File 'lib/google/apis/content_v2_1/classes.rb', line 6228

def address
  @address
end

#collectorsArray<Google::Apis::ContentV2_1::OrderPickupDetailsCollector>

Collectors authorized to pick up shipment from the pickup location. Corresponds to the JSON property collectors



6233
6234
6235
# File 'lib/google/apis/content_v2_1/classes.rb', line 6233

def collectors
  @collectors
end

#location_idString

ID of the pickup location. Corresponds to the JSON property locationId

Returns:

  • (String)


6238
6239
6240
# File 'lib/google/apis/content_v2_1/classes.rb', line 6238

def location_id
  @location_id
end

#pickup_typeString

The pickup type of this order. Acceptable values are: - "merchantStore" - " merchantStoreCurbside" - "merchantStoreLocker" - "thirdPartyPickupPoint" - "thirdPartyLocker" Corresponds to the JSON property pickupType

Returns:

  • (String)


6245
6246
6247
# File 'lib/google/apis/content_v2_1/classes.rb', line 6245

def pickup_type
  @pickup_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6252
6253
6254
6255
6256
6257
# File 'lib/google/apis/content_v2_1/classes.rb', line 6252

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @collectors = args[:collectors] if args.key?(:collectors)
  @location_id = args[:location_id] if args.key?(:location_id)
  @pickup_type = args[:pickup_type] if args.key?(:pickup_type)
end