Method: OrderCloud::LineItemApi#list

Defined in:
lib/order_cloud/api/line_item_api.rb

#list(direction, order_id, opts = {}) ⇒ ListLineItem

Parameters:

  • direction

    Direction of the line item. Possible values: Incoming, Outgoing.

  • order_id

    ID of the order.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :search (String)

    Search of the line item.

  • :search_on (Array<String>)

    Search on of the line item.

  • :sort_by (Array<String>)

    Sort by of the line item.

  • :page (Integer)

    Page of the line item.

  • :page_size (Integer)

    Page size of the line item.

  • :filters (Hash<String, String>)

    Filters of the line item.

Returns:



240
241
242
243
# File 'lib/order_cloud/api/line_item_api.rb', line 240

def list(direction, order_id, opts = {})
  data, _status_code, _headers = list_with_http_info(direction, order_id, opts)
  return data
end