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:
Jepp9350
2025-02-21 09:42:53 +01:00
parent 9e8f3f7088
commit ff12fbcbd0
3 changed files with 53 additions and 0 deletions
@@ -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();
}
}