def list_by_reservation_order_as_lazy(reservation_order_id, grain, filter:nil, custom_headers:nil)
      response = list_by_reservation_order_async(reservation_order_id, grain, filter:filter, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_reservation_order_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_reservation_order_as_lazy(reservation_order_id, grain, filter:nil, custom_headers:nil)
      response = list_by_reservation_order_async(reservation_order_id, grain, filter:filter, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_reservation_order_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Lists the reservations summaries for daily or monthly grain.

 @param reservation_order_id [String] Order Id of the reservation
 @param grain [Datagrain] Can be daily or monthly. Possible values include:
 'DailyGrain', 'MonthlyGrain'
 @param filter [String] Required only for daily grain. The
 properties/UsageDate for start date and end date. The filter supports 'le'
 and  'ge'
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ReservationSummariesListResult] which provide lazy access to pages
 of the response.