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

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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderDeliveryDetails

Returns a new instance of OrderDeliveryDetails



3740
3741
3742
# File 'generated/google/apis/content_v2_1/classes.rb', line 3740

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2_1::OrderAddress

The delivery address Corresponds to the JSON property address



3733
3734
3735
# File 'generated/google/apis/content_v2_1/classes.rb', line 3733

def address
  @address
end

#phone_numberString

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

Returns:

  • (String)


3738
3739
3740
# File 'generated/google/apis/content_v2_1/classes.rb', line 3738

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3745
3746
3747
3748
# File 'generated/google/apis/content_v2_1/classes.rb', line 3745

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