Class: Google::Apis::ContentV2::OrdersShipLineItemsRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::OrdersShipLineItemsRequest
- 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
Deprecated.
-
#line_items ⇒ Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>
Line items to ship.
-
#operation_id ⇒ String
The ID of the operation.
-
#shipment_group_id ⇒ String
ID of the shipment group.
-
#shipment_id ⇒ String
Deprecated.
-
#shipment_infos ⇒ Array<Google::Apis::ContentV2::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
7433 7434 7435 |
# File 'generated/google/apis/content_v2/classes.rb', line 7433 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
7399 7400 7401 |
# File 'generated/google/apis/content_v2/classes.rb', line 7399 def carrier @carrier end |
#line_items ⇒ Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>
Line items to ship.
Corresponds to the JSON property lineItems
7404 7405 7406 |
# File 'generated/google/apis/content_v2/classes.rb', line 7404 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
7409 7410 7411 |
# File 'generated/google/apis/content_v2/classes.rb', line 7409 def operation_id @operation_id end |
#shipment_group_id ⇒ String
ID of the shipment group. Required for orders that use the orderinvoices
service.
Corresponds to the JSON property shipmentGroupId
7415 7416 7417 |
# File 'generated/google/apis/content_v2/classes.rb', line 7415 def shipment_group_id @shipment_group_id end |
#shipment_id ⇒ String
Deprecated. Please use shipmentInfo instead. The ID of the shipment.
Corresponds to the JSON property shipmentId
7420 7421 7422 |
# File 'generated/google/apis/content_v2/classes.rb', line 7420 def shipment_id @shipment_id end |
#shipment_infos ⇒ Array<Google::Apis::ContentV2::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
7426 7427 7428 |
# File 'generated/google/apis/content_v2/classes.rb', line 7426 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
7431 7432 7433 |
# File 'generated/google/apis/content_v2/classes.rb', line 7431 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7438 7439 7440 7441 7442 7443 7444 7445 7446 |
# File 'generated/google/apis/content_v2/classes.rb', line 7438 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_group_id = args[:shipment_group_id] if args.key?(:shipment_group_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 |