Class: Google::Apis::ContentV2::OrderDeliveryDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderDeliveryDetails

Returns a new instance of OrderDeliveryDetails.



4539
4540
4541
# File 'generated/google/apis/content_v2/classes.rb', line 4539

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2::OrderAddress

The delivery address Corresponds to the JSON property address



4532
4533
4534
# File 'generated/google/apis/content_v2/classes.rb', line 4532

def address
  @address
end

#phone_numberString

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

Returns:

  • (String)


4537
4538
4539
# File 'generated/google/apis/content_v2/classes.rb', line 4537

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4544
4545
4546
4547
# File 'generated/google/apis/content_v2/classes.rb', line 4544

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