Class: Google::Apis::ContentV2_1::TestOrderPickupDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestOrderPickupDetails

Returns a new instance of TestOrderPickupDetails.



13361
13362
13363
# File 'generated/google/apis/content_v2_1/classes.rb', line 13361

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

Instance Attribute Details

#location_codeString

Required. Code of the location defined by provider or merchant. Corresponds to the JSON property locationCode

Returns:

  • (String)


13343
13344
13345
# File 'generated/google/apis/content_v2_1/classes.rb', line 13343

def location_code
  @location_code
end

#pickup_location_addressGoogle::Apis::ContentV2_1::TestOrderAddress

Required. Pickup location address. Corresponds to the JSON property pickupLocationAddress



13348
13349
13350
# File 'generated/google/apis/content_v2_1/classes.rb', line 13348

def pickup_location_address
  @pickup_location_address
end

#pickup_location_typeString

Pickup location type. Acceptable values are: - "locker" - "store" - " curbside" Corresponds to the JSON property pickupLocationType

Returns:

  • (String)


13354
13355
13356
# File 'generated/google/apis/content_v2_1/classes.rb', line 13354

def pickup_location_type
  @pickup_location_type
end

#pickup_personsArray<Google::Apis::ContentV2_1::TestOrderPickupDetailsPickupPerson>

Required. all pickup persons set by users. Corresponds to the JSON property pickupPersons



13359
13360
13361
# File 'generated/google/apis/content_v2_1/classes.rb', line 13359

def pickup_persons
  @pickup_persons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13366
13367
13368
13369
13370
13371
# File 'generated/google/apis/content_v2_1/classes.rb', line 13366

def update!(**args)
  @location_code = args[:location_code] if args.key?(:location_code)
  @pickup_location_address = args[:pickup_location_address] if args.key?(:pickup_location_address)
  @pickup_location_type = args[:pickup_location_type] if args.key?(:pickup_location_type)
  @pickup_persons = args[:pickup_persons] if args.key?(:pickup_persons)
end