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:
@@ -8,6 +8,7 @@ require_once WD . '/modules/stripe/endpoints/stripe_endpoint_payment_link.php';
|
||||
require_once WD . '/modules/stripe/endpoints/stripe_endpoint_product.php';
|
||||
require_once WD . '/modules/stripe/endpoints/stripe_endpoint_prices.php';
|
||||
require_once WD . '/modules/stripe/endpoints/stripe_endpoint_invoice.php';
|
||||
require_once WD . '/modules/stripe/endpoints/stripe_endpoint_readers.php';
|
||||
|
||||
|
||||
// Require all helper classes
|
||||
@@ -24,6 +25,7 @@ use stripe\endpoints\stripe_endpoint_invoice;
|
||||
use stripe\endpoints\stripe_endpoint_payment_link;
|
||||
use stripe\endpoints\stripe_endpoint_prices;
|
||||
use stripe\endpoints\stripe_endpoint_product;
|
||||
use stripe\endpoints\stripe_endpoint_readers;
|
||||
use stripe\stripe_c;
|
||||
use Stripe\StripeClient;
|
||||
|
||||
@@ -63,12 +65,18 @@ class stripe implements stripe_i
|
||||
* @var stripe_endpoint_invoice
|
||||
*/
|
||||
public stripe_endpoint_invoice $invoice;
|
||||
/**
|
||||
* Readers endpoint
|
||||
* @var stripe_endpoint_readers
|
||||
*/
|
||||
public stripe_endpoint_readers $readers;
|
||||
/**
|
||||
* Stripe client
|
||||
* @var StripeClient
|
||||
*/
|
||||
protected StripeClient $client;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->config = new stripe_c();
|
||||
@@ -77,6 +85,7 @@ class stripe implements stripe_i
|
||||
$this->product = new stripe_endpoint_product();
|
||||
$this->prices = new stripe_endpoint_prices();
|
||||
$this->invoice = new stripe_endpoint_invoice();
|
||||
$this->readers = new stripe_endpoint_readers();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user