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
3344 3345 3346 |
# File 'generated/google/apis/content_v2/classes.rb', line 3344 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ String
The carrier handling the shipment. Acceptable values are:
- "gsx"
- "ups"
- "united parcel service"
- "usps"
- "united states postal service"
- "fedex"
- "dhl"
- "ecourier"
- "cxt"
- "google"
- "on trac"
- "ontrac"
- "on-trac"
- "on_trac"
- "delvic"
- "dynamex"
- "lasership"
- "smartpost"
- "fedex smartpost"
- "mpx"
- "uds"
- "united delivery service"
Corresponds to the JSON property
carrier
3311 3312 3313 |
# File 'generated/google/apis/content_v2/classes.rb', line 3311 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
3316 3317 3318 |
# File 'generated/google/apis/content_v2/classes.rb', line 3316 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 delievered
Corresponds to the JSON property deliveryDate
3322 3323 3324 |
# File 'generated/google/apis/content_v2/classes.rb', line 3322 def delivery_date @delivery_date end |
#id ⇒ String
The id of the shipment.
Corresponds to the JSON property id
3327 3328 3329 |
# File 'generated/google/apis/content_v2/classes.rb', line 3327 def id @id end |
#line_items ⇒ Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>
The line items that are shipped.
Corresponds to the JSON property lineItems
3332 3333 3334 |
# File 'generated/google/apis/content_v2/classes.rb', line 3332 def line_items @line_items end |
#status ⇒ String
The status of the shipment.
Corresponds to the JSON property status
3337 3338 3339 |
# File 'generated/google/apis/content_v2/classes.rb', line 3337 def status @status end |
#tracking_id ⇒ String
The tracking id for the shipment.
Corresponds to the JSON property trackingId
3342 3343 3344 |
# File 'generated/google/apis/content_v2/classes.rb', line 3342 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3349 3350 3351 3352 3353 3354 3355 3356 3357 |
# File 'generated/google/apis/content_v2/classes.rb', line 3349 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 |