Class: Google::Apis::ContentV2::OrderShipment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderShipment

Returns a new instance of OrderShipment



5150
5151
5152
# File 'generated/google/apis/content_v2/classes.rb', line 5150

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

Instance Attribute Details

#carrierString

The carrier handling the shipment. Acceptable values for US are:

  • "gsx"
  • "ups"
  • "usps"
  • "fedex"
  • "dhl"
  • "ecourier"
  • "cxt"
  • "google"
  • "ontrac"
  • "emsy"
  • "ont"
  • "deliv"
  • "dynamex"
  • "lasership"
  • "mpx"
  • "uds" Acceptable values for FR are:
  • "colissimo"
  • "chronopost" Corresponds to the JSON property carrier

Returns:

  • (String)


5117
5118
5119
# File 'generated/google/apis/content_v2/classes.rb', line 5117

def carrier
  @carrier
end

#creation_dateString

Date on which the shipment has been created, in ISO 8601 format. Corresponds to the JSON property creationDate

Returns:

  • (String)


5122
5123
5124
# File 'generated/google/apis/content_v2/classes.rb', line 5122

def creation_date
  @creation_date
end

#delivery_dateString

Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is delivered Corresponds to the JSON property deliveryDate

Returns:

  • (String)


5128
5129
5130
# File 'generated/google/apis/content_v2/classes.rb', line 5128

def delivery_date
  @delivery_date
end

#idString

The id of the shipment. Corresponds to the JSON property id

Returns:

  • (String)


5133
5134
5135
# File 'generated/google/apis/content_v2/classes.rb', line 5133

def id
  @id
end

#line_itemsArray<Google::Apis::ContentV2::OrderShipmentLineItemShipment>

The line items that are shipped. Corresponds to the JSON property lineItems



5138
5139
5140
# File 'generated/google/apis/content_v2/classes.rb', line 5138

def line_items
  @line_items
end

#statusString

The status of the shipment. Corresponds to the JSON property status

Returns:

  • (String)


5143
5144
5145
# File 'generated/google/apis/content_v2/classes.rb', line 5143

def status
  @status
end

#tracking_idString

The tracking id for the shipment. Corresponds to the JSON property trackingId

Returns:

  • (String)


5148
5149
5150
# File 'generated/google/apis/content_v2/classes.rb', line 5148

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5155
5156
5157
5158
5159
5160
5161
5162
5163
# File 'generated/google/apis/content_v2/classes.rb', line 5155

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