Class: Google::Apis::ContentV2_1::OrderDeliveryDetails

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) ⇒ OrderDeliveryDetails

Returns a new instance of OrderDeliveryDetails.



5232
5233
5234
# File 'lib/google/apis/content_v2_1/classes.rb', line 5232

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2_1::OrderAddress

The delivery address Corresponds to the JSON property address



5225
5226
5227
# File 'lib/google/apis/content_v2_1/classes.rb', line 5225

def address
  @address
end

#phone_numberString

The phone number of the person receiving the delivery. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


5230
5231
5232
# File 'lib/google/apis/content_v2_1/classes.rb', line 5230

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5237
5238
5239
5240
# File 'lib/google/apis/content_v2_1/classes.rb', line 5237

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