Class: Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersUpdateShipmentRequest

Returns a new instance of OrdersUpdateShipmentRequest.



8713
8714
8715
# File 'lib/google/apis/content_v2_1/classes.rb', line 8713

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

Instance Attribute Details

#carrierString

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

Returns:

  • (String)


8660
8661
8662
# File 'lib/google/apis/content_v2_1/classes.rb', line 8660

def carrier
  @carrier
end

#delivery_dateString

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

Returns:

  • (String)


8666
8667
8668
# File 'lib/google/apis/content_v2_1/classes.rb', line 8666

def delivery_date
  @delivery_date
end

#last_pickup_dateString

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

Returns:

  • (String)


8673
8674
8675
# File 'lib/google/apis/content_v2_1/classes.rb', line 8673

def last_pickup_date
  @last_pickup_date
end

#operation_idString

The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property operationId

Returns:

  • (String)


8678
8679
8680
# File 'lib/google/apis/content_v2_1/classes.rb', line 8678

def operation_id
  @operation_id
end

#ready_pickup_dateString

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

Returns:

  • (String)


8684
8685
8686
# File 'lib/google/apis/content_v2_1/classes.rb', line 8684

def ready_pickup_date
  @ready_pickup_date
end

#scheduled_delivery_detailsGoogle::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails

ScheduledDeliveryDetails used to update the scheduled delivery order. Corresponds to the JSON property scheduledDeliveryDetails



8689
8690
8691
# File 'lib/google/apis/content_v2_1/classes.rb', line 8689

def scheduled_delivery_details
  @scheduled_delivery_details
end

#shipment_idString

The ID of the shipment. Corresponds to the JSON property shipmentId

Returns:

  • (String)


8694
8695
8696
# File 'lib/google/apis/content_v2_1/classes.rb', line 8694

def shipment_id
  @shipment_id
end

#statusString

New status for the shipment. Not updated if missing. Acceptable values are: - " delivered" - "undeliverable" - "readyForPickup" Corresponds to the JSON property status

Returns:

  • (String)


8700
8701
8702
# File 'lib/google/apis/content_v2_1/classes.rb', line 8700

def status
  @status
end

#tracking_idString

The tracking ID for the shipment. Not updated if missing. Corresponds to the JSON property trackingId

Returns:

  • (String)


8705
8706
8707
# File 'lib/google/apis/content_v2_1/classes.rb', line 8705

def tracking_id
  @tracking_id
end

#undelivered_dateString

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

Returns:

  • (String)


8711
8712
8713
# File 'lib/google/apis/content_v2_1/classes.rb', line 8711

def undelivered_date
  @undelivered_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
# File 'lib/google/apis/content_v2_1/classes.rb', line 8718

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