Class: Google::Apis::ContentV2sandbox::OrderShipment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/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



1214
1215
1216
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1214

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

Instance Attribute Details

#carrierString

The carrier handling the shipment. Acceptable values are:

  • "gsx"
  • "ups"
  • "usps"
  • "fedex"
  • "dhl"
  • "ecourier"
  • "cxt"
  • "google"
  • "ontrac"
  • "emsy"
  • "ont"
  • "deliv"
  • "dynamex"
  • "lasership"
  • "mpx"
  • "uds" Corresponds to the JSON property carrier

Returns:

  • (String)


1181
1182
1183
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1181

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)


1186
1187
1188
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1186

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 delievered Corresponds to the JSON property deliveryDate

Returns:

  • (String)


1192
1193
1194
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1192

def delivery_date
  @delivery_date
end

#idString

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

Returns:

  • (String)


1197
1198
1199
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1197

def id
  @id
end

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

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



1202
1203
1204
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1202

def line_items
  @line_items
end

#statusString

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

Returns:

  • (String)


1207
1208
1209
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1207

def status
  @status
end

#tracking_idString

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

Returns:

  • (String)


1212
1213
1214
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1212

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1219
1220
1221
1222
1223
1224
1225
1226
1227
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1219

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