Class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems
- 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.
-
#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) ⇒ OrdersCustomBatchRequestEntryShipLineItems
constructor
A new instance of OrdersCustomBatchRequestEntryShipLineItems.
-
#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) ⇒ OrdersCustomBatchRequestEntryShipLineItems
Returns a new instance of OrdersCustomBatchRequestEntryShipLineItems
6630 6631 6632 |
# File 'generated/google/apis/content_v2/classes.rb', line 6630 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
6601 6602 6603 |
# File 'generated/google/apis/content_v2/classes.rb', line 6601 def carrier @carrier end |
#line_items ⇒ Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>
Line items to ship.
Corresponds to the JSON property lineItems
6606 6607 6608 |
# File 'generated/google/apis/content_v2/classes.rb', line 6606 def line_items @line_items end |
#shipment_group_id ⇒ String
ID of the shipment group. Required for orders that use the orderinvoices
service.
Corresponds to the JSON property shipmentGroupId
6612 6613 6614 |
# File 'generated/google/apis/content_v2/classes.rb', line 6612 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
6617 6618 6619 |
# File 'generated/google/apis/content_v2/classes.rb', line 6617 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
6623 6624 6625 |
# File 'generated/google/apis/content_v2/classes.rb', line 6623 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
6628 6629 6630 |
# File 'generated/google/apis/content_v2/classes.rb', line 6628 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6635 6636 6637 6638 6639 6640 6641 6642 |
# File 'generated/google/apis/content_v2/classes.rb', line 6635 def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) @line_items = args[:line_items] if args.key?(:line_items) @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 |