Class: Google::Apis::ContentV2::OrdersUpdateShipmentRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersUpdateShipmentRequest

Returns a new instance of OrdersUpdateShipmentRequest.



7565
7566
7567
# File 'lib/google/apis/content_v2/classes.rb', line 7565

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)


7536
7537
7538
# File 'lib/google/apis/content_v2/classes.rb', line 7536

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)


7542
7543
7544
# File 'lib/google/apis/content_v2/classes.rb', line 7542

def delivery_date
  @delivery_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)


7547
7548
7549
# File 'lib/google/apis/content_v2/classes.rb', line 7547

def operation_id
  @operation_id
end

#shipment_idString

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

Returns:

  • (String)


7552
7553
7554
# File 'lib/google/apis/content_v2/classes.rb', line 7552

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)


7558
7559
7560
# File 'lib/google/apis/content_v2/classes.rb', line 7558

def status
  @status
end

#tracking_idString

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

Returns:

  • (String)


7563
7564
7565
# File 'lib/google/apis/content_v2/classes.rb', line 7563

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7570
7571
7572
7573
7574
7575
7576
7577
# File 'lib/google/apis/content_v2/classes.rb', line 7570

def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
  @operation_id = args[:operation_id] if args.key?(:operation_id)
  @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)
end