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
5184 5185 5186 |
# File 'generated/google/apis/content_v2/classes.rb', line 5184 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" Acceptable values for FR are:
- "colissimo"
- "chronopost"
Corresponds to the JSON property
carrier
5151 5152 5153 |
# File 'generated/google/apis/content_v2/classes.rb', line 5151 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
5156 5157 5158 |
# File 'generated/google/apis/content_v2/classes.rb', line 5156 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
5162 5163 5164 |
# File 'generated/google/apis/content_v2/classes.rb', line 5162 def delivery_date @delivery_date end |
#id ⇒ String
The id of the shipment.
Corresponds to the JSON property id
5167 5168 5169 |
# File 'generated/google/apis/content_v2/classes.rb', line 5167 def id @id end |
#line_items ⇒ Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>
The line items that are shipped.
Corresponds to the JSON property lineItems
5172 5173 5174 |
# File 'generated/google/apis/content_v2/classes.rb', line 5172 def line_items @line_items end |
#status ⇒ String
The status of the shipment.
Corresponds to the JSON property status
5177 5178 5179 |
# File 'generated/google/apis/content_v2/classes.rb', line 5177 def status @status end |
#tracking_id ⇒ String
The tracking id for the shipment.
Corresponds to the JSON property trackingId
5182 5183 5184 |
# File 'generated/google/apis/content_v2/classes.rb', line 5182 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5189 5190 5191 5192 5193 5194 5195 5196 5197 |
# File 'generated/google/apis/content_v2/classes.rb', line 5189 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 |