All.php
2 months ago
Create.php
2 months ago
Delete.php
2 months ago
NestedResource.php
2 months ago
Request.php
2 months ago
Retrieve.php
2 months ago
Search.php
2 months ago
SingletonRetrieve.php
2 months ago
Update.php
2 months ago
Search.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePressVendor\Stripe\ApiOperations; |
| 4 | |
| 5 | /** |
| 6 | * Trait for searchable resources. |
| 7 | * |
| 8 | * This trait should only be applied to classes that derive from StripeObject. |
| 9 | */ |
| 10 | trait Search |
| 11 | { |
| 12 | /** |
| 13 | * @param string $searchUrl |
| 14 | * @param null|array $params |
| 15 | * @param null|array|string $opts |
| 16 | * |
| 17 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 18 | * |
| 19 | * @return \Stripe\SearchResult of ApiResources |
| 20 | */ |
| 21 | protected static function _searchResource($searchUrl, $params = null, $opts = null) |
| 22 | { |
| 23 | return static::_requestPage($searchUrl, \ProfilePressVendor\Stripe\SearchResult::class, $params, $opts); |
| 24 | } |
| 25 | } |
| 26 |