List customers
https://developers.taxjar.com/api/?php#get-list-customers

@param array $parameters

@return object Customer collection.
160169
public function listCustomers($parameters = [])
    {
        $response = $this->client->get('customers', [
            'query' => $parameters,
        ]);
        return json_decode($response->getBody())->customers;
    }
251349
protected function getFilterCriteria(array $parameters)
    {
        /** @var \Netgen\EzPlatformSiteApi\API\Values\Location $location */
        $location = $parameters['location'];

        $criteria = [];
        $criteria[] = new SubtreeCriterion($location->pathString);

        if ($parameters['exclude_self']) {
            $criteria[] = new LogicalNot(new LocationId($location->id));
        }

        return $criteria;
    }
1037417
public function listFor(Customer $customer, $from = null, $limit = null, array $parameters = [])
    {
        return $this->listForId($customer->id, $from, $limit, $parameters);
    }
649106
public static function listAllFreeShippingCouponsAsync(array $parameters = [])
    {
        return self::listAllFreeShippingCouponsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
829689
public function paginatedList($parameters = [])
    {
        $response =  $this->sendRequest(
            self::METHOD_GET,
            self::$endPoints['list'] . '?' . http_build_query($parameters),
            $this->requestData
        );
        $this->resetRequestData();
        return $response;
    }
1088303
public function getList($params = array()) {
        $this->checkPermissions('getList');
        
        return $this->client->retrieveData($this->resourceName, $params);
    }
697449
public static function listAllBrandsAsync(array $parameters = [])
    {
        return self::listAllBrandsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
329491
public function getBusinessesSearchResults($parameters = [])
    {
        $csvParams = ['attributes', 'categories', 'price'];

        $path = $this->appendParametersToUrl('/v3/businesses/search', $parameters, $csvParams);
        $request = $this->getRequest('GET', $path, $this->getDefaultHeaders());

        return $this->processRequest($request);
    }
715409
public static function listAllTransactionsAsync(array $parameters = [])
    {
        return self::listAllTransactionsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
1128381
public function purchase(array $parameters = array())
    {
        /** @todo create customer before payment if none supplied */

        // schedule regular payment
        if (isset($parameters['frequency']) && $parameters['frequency'] !== 'once') {
            return $this->createRequest('\Omnipay\PaywayRest\Message\RegularPaymentRequest', $parameters);
        }

        // process once-off payment
        return $this->createRequest('\Omnipay\PaywayRest\Message\PurchaseRequest', $parameters);
    }
471788
public static function listAllWishListsAsync(array $parameters = [])
    {
        return self::listAllWishListsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
781019
public function getShopInfo($parameters = array())
    {
        $request = array(
            'action' => 'get_shop_info',
        );

        $request = array_merge($request, $parameters);

        return $this->sendRequest($request);
    }
309352
public static function listAllFreeItemCouponsAsync(array $parameters = [])
    {
        return self::listAllFreeItemCouponsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
678834
public static function listAllStatesAsync(array $parameters = [])
    {
        return self::listAllStatesAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
532920
public static function listAllOptionSetsAsync(array $parameters = [])
    {
        return self::listAllOptionSetsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
509639
private function getSearchResults($parameters)
    {
        $searchRequest  = $this->requestBuilder->getSearchRequest($parameters);
        $searchResponse = $this->searchEngine->search($searchRequest);

        return $searchResponse;
    }
1268815
public static function listAllCountriesAsync(array $parameters = [])
    {
        return self::listAllCountriesAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }