class Google::Apis::ContentV2::OrderShipment

Attributes

carrier[RW]

The carrier handling the shipment. Corresponds to the JSON property `carrier` @return [String]

creation_date[RW]

Date on which the shipment has been created, in ISO 8601 format. Corresponds to the JSON property `creationDate` @return [String]

delivery_date[RW]

Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is delievered Corresponds to the JSON property `deliveryDate` @return [String]

id[RW]

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

line_items[RW]

The line items that are shipped. Corresponds to the JSON property `lineItems` @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]

status[RW]

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

tracking_id[RW]

The tracking id for the shipment. Corresponds to the JSON property `trackingId` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 3438
def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @creation_date = args[:creation_date] if args.key?(:creation_date)
  @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
  @id = args[:id] if args.key?(:id)
  @line_items = args[:line_items] if args.key?(:line_items)
  @status = args[:status] if args.key?(:status)
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end