Class: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails

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

Overview

ScheduledDeliveryDetails used to update the scheduled delivery order.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails

Returns a new instance of OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails.



7337
7338
7339
# File 'generated/google/apis/content_v2_1/classes.rb', line 7337

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

Instance Attribute Details

#carrier_phone_numberString

The phone number of the carrier fulfilling the delivery. The phone number should be formatted as the international notation in Corresponds to the JSON property carrierPhoneNumber

Returns:

  • (String)


7330
7331
7332
# File 'generated/google/apis/content_v2_1/classes.rb', line 7330

def carrier_phone_number
  @carrier_phone_number
end

#scheduled_dateString

The date a shipment is scheduled for delivery, in ISO 8601 format. Corresponds to the JSON property scheduledDate

Returns:

  • (String)


7335
7336
7337
# File 'generated/google/apis/content_v2_1/classes.rb', line 7335

def scheduled_date
  @scheduled_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7342
7343
7344
7345
# File 'generated/google/apis/content_v2_1/classes.rb', line 7342

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