Class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems
- 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.
-
#shipment_id ⇒ String
Deprecated.
-
#shipment_infos ⇒ Array<Google::Apis::ContentV2sandbox::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
1929 1930 1931 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1929 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
1906 1907 1908 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1906 def carrier @carrier end |
#line_items ⇒ Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>
Line items to ship.
Corresponds to the JSON property lineItems
1911 1912 1913 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1911 def line_items @line_items end |
#shipment_id ⇒ String
Deprecated. Please use shipmentInfo instead. The ID of the shipment.
Corresponds to the JSON property shipmentId
1916 1917 1918 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1916 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
1922 1923 1924 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1922 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
1927 1928 1929 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1927 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1934 1935 1936 1937 1938 1939 1940 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1934 def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) @line_items = args[:line_items] if args.key?(:line_items) @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 |