diff --git a/README.md b/README.md index 1a0e3e4..bd8bbe7 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Complete Pipedrive API client for PHP This won't take much time. You could use my referral code or link to get up to 45 days completely free of charge. Just sign up using this link or add the code to the billing section: -[af-devio](https://www.pipedrive.com/register?promocode=af-devio) +[pdp-devio](https://www.pipedrive.com/register?promocode=pdp-devio) ## Consider donating diff --git a/src/Resources/Deals.php b/src/Resources/Deals.php index da673ba..c99f614 100644 --- a/src/Resources/Deals.php +++ b/src/Resources/Deals.php @@ -4,12 +4,13 @@ use Devio\Pipedrive\Http\Response; use Devio\Pipedrive\Resources\Basics\Entity; +use Devio\Pipedrive\Resources\Traits\Searches; use Devio\Pipedrive\Resources\Traits\ListsProducts; use Devio\Pipedrive\Resources\Traits\ListsAttachedFiles; class Deals extends Entity { - use ListsProducts, ListsAttachedFiles; + use ListsProducts, ListsAttachedFiles, Searches; /** * Get the deals timeline. diff --git a/src/Resources/Organizations.php b/src/Resources/Organizations.php index 29cf81e..ae13863 100644 --- a/src/Resources/Organizations.php +++ b/src/Resources/Organizations.php @@ -6,10 +6,11 @@ use Devio\Pipedrive\Resources\Basics\Entity; use Devio\Pipedrive\Resources\Traits\ListsDeals; use Devio\Pipedrive\Resources\Traits\ListsAttachedFiles; +use Devio\Pipedrive\Resources\Traits\Searches; class Organizations extends Entity { - use ListsDeals, ListsAttachedFiles; + use ListsDeals, ListsAttachedFiles, Searches; /** * List the persons of a resource. diff --git a/src/Resources/Persons.php b/src/Resources/Persons.php index 88949f5..f2c33e1 100644 --- a/src/Resources/Persons.php +++ b/src/Resources/Persons.php @@ -6,10 +6,12 @@ use Devio\Pipedrive\Resources\Traits\ListsDeals; use Devio\Pipedrive\Resources\Traits\ListsProducts; use Devio\Pipedrive\Resources\Traits\ListsAttachedFiles; +use Devio\Pipedrive\Resources\Traits\Searches; class Persons extends Entity { use ListsDeals, ListsProducts, - ListsAttachedFiles; + ListsAttachedFiles, + Searches; } diff --git a/src/Resources/Products.php b/src/Resources/Products.php index adbe467..bd921e5 100644 --- a/src/Resources/Products.php +++ b/src/Resources/Products.php @@ -7,10 +7,12 @@ use Devio\Pipedrive\Resources\Traits\FindsByName; use Devio\Pipedrive\Resources\Traits\ListsAttachedFiles; use Devio\Pipedrive\Resources\Traits\ListsPermittedUsers; +use Devio\Pipedrive\Resources\Traits\Searches; class Products extends Resource { use FindsByName, + Searches, ListsAttachedFiles, ListsDeals, ListsPermittedUsers; diff --git a/src/Resources/Traits/Searches.php b/src/Resources/Traits/Searches.php new file mode 100644 index 0000000..f9f4768 --- /dev/null +++ b/src/Resources/Traits/Searches.php @@ -0,0 +1,22 @@ +request->get('search', $options); + } +} \ No newline at end of file