Class: Google::Apis::ContentV2_1::TestOrderDeliveryDetails

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

Returns a new instance of TestOrderDeliveryDetails.



13193
13194
13195
# File 'generated/google/apis/content_v2_1/classes.rb', line 13193

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2_1::TestOrderAddress

The delivery address Corresponds to the JSON property address



13180
13181
13182
# File 'generated/google/apis/content_v2_1/classes.rb', line 13180

def address
  @address
end

#is_scheduled_deliveryBoolean Also known as: is_scheduled_delivery?

Whether the order is scheduled delivery order. Corresponds to the JSON property isScheduledDelivery

Returns:

  • (Boolean)


13185
13186
13187
# File 'generated/google/apis/content_v2_1/classes.rb', line 13185

def is_scheduled_delivery
  @is_scheduled_delivery
end

#phone_numberString

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

Returns:

  • (String)


13191
13192
13193
# File 'generated/google/apis/content_v2_1/classes.rb', line 13191

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13198
13199
13200
13201
13202
# File 'generated/google/apis/content_v2_1/classes.rb', line 13198

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