Class: Google::Apis::ContentV2_1::TestOrderPickupDetails
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::TestOrderPickupDetails
- 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
-
#location_code ⇒ String
Required.
-
#pickup_location_address ⇒ Google::Apis::ContentV2_1::TestOrderAddress
Required.
-
#pickup_location_type ⇒ String
Pickup location type.
-
#pickup_persons ⇒ Array<Google::Apis::ContentV2_1::TestOrderPickupDetailsPickupPerson>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestOrderPickupDetails
constructor
A new instance of TestOrderPickupDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TestOrderPickupDetails
Returns a new instance of TestOrderPickupDetails.
15351 15352 15353 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15351 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location_code ⇒ String
Required. Code of the location defined by provider or merchant.
Corresponds to the JSON property locationCode
15333 15334 15335 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15333 def location_code @location_code end |
#pickup_location_address ⇒ Google::Apis::ContentV2_1::TestOrderAddress
Required. Pickup location address.
Corresponds to the JSON property pickupLocationAddress
15338 15339 15340 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15338 def pickup_location_address @pickup_location_address end |
#pickup_location_type ⇒ String
Pickup location type. Acceptable values are: - "locker" - "store" - "
curbside"
Corresponds to the JSON property pickupLocationType
15344 15345 15346 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15344 def pickup_location_type @pickup_location_type end |
#pickup_persons ⇒ Array<Google::Apis::ContentV2_1::TestOrderPickupDetailsPickupPerson>
Required. all pickup persons set by users.
Corresponds to the JSON property pickupPersons
15349 15350 15351 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15349 def pickup_persons @pickup_persons end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15356 15357 15358 15359 15360 15361 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15356 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 |