Class: Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest
- 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
-
#carrier ⇒ String
The carrier handling the shipment.
-
#delivery_date ⇒ String
Date on which the shipment has been delivered, in ISO 8601 format.
-
#last_pickup_date ⇒ String
Date after which the pickup will expire, in ISO 8601 format.
-
#operation_id ⇒ String
The ID of the operation.
-
#ready_pickup_date ⇒ String
Date on which the shipment has been ready for pickup, in ISO 8601 format.
-
#scheduled_delivery_details ⇒ Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails
ScheduledDeliveryDetails used to update the scheduled delivery order.
-
#shipment_id ⇒ String
The ID of the shipment.
-
#status ⇒ String
New status for the shipment.
-
#tracking_id ⇒ String
The tracking ID for the shipment.
-
#undelivered_date ⇒ String
Date on which the shipment has been undeliverable, in ISO 8601 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrdersUpdateShipmentRequest
constructor
A new instance of OrdersUpdateShipmentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrdersUpdateShipmentRequest
Returns a new instance of OrdersUpdateShipmentRequest.
8176 8177 8178 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ String
The carrier handling the shipment. Not updated if missing. See shipments[].
carrier in the Orders resource representation for a list of acceptable values.
Corresponds to the JSON property carrier
8123 8124 8125 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8123 def carrier @carrier end |
#delivery_date ⇒ String
Date on which the shipment has been delivered, in ISO 8601 format. Optional
and can be provided only if status is delivered.
Corresponds to the JSON property deliveryDate
8129 8130 8131 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8129 def delivery_date @delivery_date end |
#last_pickup_date ⇒ String
Date after which the pickup will expire, in ISO 8601 format. Required only
when order is buy-online-pickup-in-store(BOPIS) and status is ready for
pickup.
Corresponds to the JSON property lastPickupDate
8136 8137 8138 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8136 def last_pickup_date @last_pickup_date end |
#operation_id ⇒ String
The ID of the operation. Unique across all operations for a given order.
Corresponds to the JSON property operationId
8141 8142 8143 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8141 def operation_id @operation_id end |
#ready_pickup_date ⇒ String
Date on which the shipment has been ready for pickup, in ISO 8601 format.
Optional and can be provided only if status is ready for pickup.
Corresponds to the JSON property readyPickupDate
8147 8148 8149 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8147 def ready_pickup_date @ready_pickup_date end |
#scheduled_delivery_details ⇒ Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails
ScheduledDeliveryDetails used to update the scheduled delivery order.
Corresponds to the JSON property scheduledDeliveryDetails
8152 8153 8154 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8152 def scheduled_delivery_details @scheduled_delivery_details end |
#shipment_id ⇒ String
The ID of the shipment.
Corresponds to the JSON property shipmentId
8157 8158 8159 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8157 def shipment_id @shipment_id end |
#status ⇒ String
New status for the shipment. Not updated if missing. Acceptable values are: - "
delivered" - "undeliverable" - "readyForPickup"
Corresponds to the JSON property status
8163 8164 8165 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8163 def status @status end |
#tracking_id ⇒ String
The tracking ID for the shipment. Not updated if missing.
Corresponds to the JSON property trackingId
8168 8169 8170 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8168 def tracking_id @tracking_id end |
#undelivered_date ⇒ String
Date on which the shipment has been undeliverable, in ISO 8601 format.
Optional and can be provided only if status is undeliverable.
Corresponds to the JSON property undeliveredDate
8174 8175 8176 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8174 def undelivered_date @undelivered_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8181 def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) @delivery_date = args[:delivery_date] if args.key?(:delivery_date) @last_pickup_date = args[:last_pickup_date] if args.key?(:last_pickup_date) @operation_id = args[:operation_id] if args.key?(:operation_id) @ready_pickup_date = args[:ready_pickup_date] if args.key?(:ready_pickup_date) @scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details) @shipment_id = args[:shipment_id] if args.key?(:shipment_id) @status = args[:status] if args.key?(:status) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) @undelivered_date = args[:undelivered_date] if args.key?(:undelivered_date) end |