class Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest

Attributes

carrier[RW]

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` @return [String]

delivery_date[RW]

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` @return [String]

last_pickup_date[RW]

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` @return [String]

operation_id[RW]

The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property `operationId` @return [String]

ready_pickup_date[RW]

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` @return [String]

scheduled_delivery_details[RW]

ScheduledDeliveryDetails used to update the scheduled delivery order. Corresponds to the JSON property `scheduledDeliveryDetails` @return [Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails]

shipment_id[RW]

The ID of the shipment. Corresponds to the JSON property `shipmentId` @return [String]

status[RW]

New status for the shipment. Not updated if missing. Acceptable values are: - “ `delivered`” - “`undeliverable`” - “`readyForPickup`” Corresponds to the JSON property `status` @return [String]

tracking_id[RW]

The tracking ID for the shipment. Not updated if missing. Corresponds to the JSON property `trackingId` @return [String]

undelivered_date[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 9041
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 9046
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