Class: Google::Apis::ContentV2::OrderShipment
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::OrderShipment
- 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
-
#carrier ⇒ String
The carrier handling the shipment.
-
#creation_date ⇒ String
Date on which the shipment has been created, in ISO 8601 format.
-
#delivery_date ⇒ String
Date on which the shipment has been delivered, in ISO 8601 format.
-
#id ⇒ String
The ID of the shipment.
-
#line_items ⇒ Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>
The line items that are shipped.
-
#status ⇒ String
The status of the shipment.
-
#tracking_id ⇒ String
The tracking ID for the shipment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderShipment
constructor
A new instance of OrderShipment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrderShipment
Returns a new instance of OrderShipment
5321 5322 5323 |
# File 'generated/google/apis/content_v2/classes.rb', line 5321 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ String
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"
- "efw"
- "jd logistics" Acceptable values for FR are:
- "colissimo"
- "chronopost"
- "gls"
- "dpd"
- "bpost"
- "colis prive"
- "boxtal"
- "geodis"
- "tnt"
- "la poste"
Corresponds to the JSON property
carrier
5288 5289 5290 |
# File 'generated/google/apis/content_v2/classes.rb', line 5288 def carrier @carrier end |
#creation_date ⇒ String
Date on which the shipment has been created, in ISO 8601 format.
Corresponds to the JSON property creationDate
5293 5294 5295 |
# File 'generated/google/apis/content_v2/classes.rb', line 5293 def creation_date @creation_date end |
#delivery_date ⇒ String
Date on which the shipment has been delivered, in ISO 8601 format. Present
only if status is delivered
Corresponds to the JSON property deliveryDate
5299 5300 5301 |
# File 'generated/google/apis/content_v2/classes.rb', line 5299 def delivery_date @delivery_date end |
#id ⇒ String
The ID of the shipment.
Corresponds to the JSON property id
5304 5305 5306 |
# File 'generated/google/apis/content_v2/classes.rb', line 5304 def id @id end |
#line_items ⇒ Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>
The line items that are shipped.
Corresponds to the JSON property lineItems
5309 5310 5311 |
# File 'generated/google/apis/content_v2/classes.rb', line 5309 def line_items @line_items end |
#status ⇒ String
The status of the shipment.
Corresponds to the JSON property status
5314 5315 5316 |
# File 'generated/google/apis/content_v2/classes.rb', line 5314 def status @status end |
#tracking_id ⇒ String
The tracking ID for the shipment.
Corresponds to the JSON property trackingId
5319 5320 5321 |
# File 'generated/google/apis/content_v2/classes.rb', line 5319 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5326 5327 5328 5329 5330 5331 5332 5333 5334 |
# File 'generated/google/apis/content_v2/classes.rb', line 5326 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 |