Class: Google::Apis::ContentV2sandbox::OrdersShipLineItemsRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2sandbox::OrdersShipLineItemsRequest
- 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
-
#carrier ⇒ String
Deprecated.
-
#line_items ⇒ Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>
Line items to ship.
-
#operation_id ⇒ String
The ID of the operation.
-
#shipment_id ⇒ String
Deprecated.
-
#shipment_infos ⇒ Array<Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>
Shipment information.
-
#tracking_id ⇒ String
Deprecated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrdersShipLineItemsRequest
constructor
A new instance of OrdersShipLineItemsRequest.
-
#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) ⇒ OrdersShipLineItemsRequest
Returns a new instance of OrdersShipLineItemsRequest
2288 2289 2290 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2288 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ String
Deprecated. Please use shipmentInfo instead. The carrier handling the shipment.
See shipments[].carrier in the Orders resource representation for a list of
acceptable values.
Corresponds to the JSON property carrier
2260 2261 2262 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2260 def carrier @carrier end |
#line_items ⇒ Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>
Line items to ship.
Corresponds to the JSON property lineItems
2265 2266 2267 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2265 def line_items @line_items end |
#operation_id ⇒ String
The ID of the operation. Unique across all operations for a given order.
Corresponds to the JSON property operationId
2270 2271 2272 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2270 def operation_id @operation_id end |
#shipment_id ⇒ String
Deprecated. Please use shipmentInfo instead. The ID of the shipment.
Corresponds to the JSON property shipmentId
2275 2276 2277 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2275 def shipment_id @shipment_id end |
#shipment_infos ⇒ Array<Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>
Shipment information. This field is repeated because a single line item can be
shipped in several packages (and have several tracking IDs).
Corresponds to the JSON property shipmentInfos
2281 2282 2283 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2281 def shipment_infos @shipment_infos end |
#tracking_id ⇒ String
Deprecated. Please use shipmentInfo instead. The tracking id for the shipment.
Corresponds to the JSON property trackingId
2286 2287 2288 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2286 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2293 2294 2295 2296 2297 2298 2299 2300 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2293 def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) @line_items = args[:line_items] if args.key?(:line_items) @operation_id = args[:operation_id] if args.key?(:operation_id) @shipment_id = args[:shipment_id] if args.key?(:shipment_id) @shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end |