def list_settlements(location_id, opts = {})
      data, _status_code, _headers = list_settlements_with_http_info(location_id, opts)
      return data
    end
def list_settlements(location_id, opts = {})
      data, _status_code, _headers = list_settlements_with_http_info(location_id, opts)
      return data
    end
ListSettlements
 Provides summary information for all deposits and withdrawals initiated by Square to a linked bank account during a date range. Date ranges cannot exceed one year in length.  *Note**: the ListSettlements endpoint does not provide entry information.
 @param location_id The ID of the location to list settlements for. If you specify me, this endpoint returns payments aggregated from all of the business&#39;s locations.
 @param [Hash] opts the optional parameters
 @option opts [String] :order TThe order in which payments are listed in the response.
 @option opts [String] :begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
 @option opts [String] :end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
 @option opts [Integer] :limit The maximum number of payments to return in a single response. This value cannot exceed 200.
 @option opts [String] :status Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED).
 @option opts [String] :batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint.
 @return [Array<V1Settlement>]