Add Stripe endpoint for listing terminal readers
Introduced a new `stripe_endpoint_readers` class to handle terminal readers, with a `list` method to retrieve all reader data. Integrated this endpoint into Stripe module routes and updated dependencies to support terminal-related
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace stripe\endpoints;
|
||||
|
||||
use Exception;
|
||||
use Stripe\Collection;
|
||||
use Stripe\Exception\ApiErrorException;
|
||||
use traits\stripe_endpoint_t;
|
||||
|
||||
class stripe_endpoint_readers
|
||||
{
|
||||
use stripe_endpoint_t;
|
||||
|
||||
/**
|
||||
* Get all readers
|
||||
* @return Collection
|
||||
* @throws ApiErrorException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function list(): Collection
|
||||
{
|
||||
return self::getClient()->terminal->readers->all();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user