Class: Google::Apis::ContentV2_1::OrdersShipLineItemsRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersShipLineItemsRequest

Returns a new instance of OrdersShipLineItemsRequest.



8812
8813
8814
# File 'lib/google/apis/content_v2_1/classes.rb', line 8812

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#line_itemsArray<Google::Apis::ContentV2_1::OrderShipmentLineItemShipment>

Line items to ship. Corresponds to the JSON property lineItems



8793
8794
8795
# File 'lib/google/apis/content_v2_1/classes.rb', line 8793

def line_items
  @line_items
end

#operation_idString

The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property operationId

Returns:

  • (String)


8798
8799
8800
# File 'lib/google/apis/content_v2_1/classes.rb', line 8798

def operation_id
  @operation_id
end

#shipment_group_idString

ID of the shipment group. Required for orders that use the orderinvoices service. Corresponds to the JSON property shipmentGroupId

Returns:

  • (String)


8804
8805
8806
# File 'lib/google/apis/content_v2_1/classes.rb', line 8804

def shipment_group_id
  @shipment_group_id
end

#shipment_infosArray<Google::Apis::ContentV2_1::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



8810
8811
8812
# File 'lib/google/apis/content_v2_1/classes.rb', line 8810

def shipment_infos
  @shipment_infos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8817
8818
8819
8820
8821
8822
# File 'lib/google/apis/content_v2_1/classes.rb', line 8817

def update!(**args)
  @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_infos = args[:shipment_infos] if args.key?(:shipment_infos)
end