You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
1 year ago
|
<?php
|
||
|
|
||
|
// File generated from our OpenAPI spec
|
||
|
|
||
|
namespace Stripe\Service\TestHelpers;
|
||
|
|
||
|
/**
|
||
|
* Service factory class for API resources in the TestHelpers namespace.
|
||
|
*
|
||
|
* @property CustomerService $customers
|
||
|
* @property Issuing\IssuingServiceFactory $issuing
|
||
|
* @property RefundService $refunds
|
||
|
* @property Terminal\TerminalServiceFactory $terminal
|
||
|
* @property TestClockService $testClocks
|
||
|
* @property Treasury\TreasuryServiceFactory $treasury
|
||
|
*/
|
||
|
class TestHelpersServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||
|
{
|
||
|
/**
|
||
|
* @var array<string, string>
|
||
|
*/
|
||
|
private static $classMap = [
|
||
|
'customers' => CustomerService::class,
|
||
|
'issuing' => Issuing\IssuingServiceFactory::class,
|
||
|
'refunds' => RefundService::class,
|
||
|
'terminal' => Terminal\TerminalServiceFactory::class,
|
||
|
'testClocks' => TestClockService::class,
|
||
|
'treasury' => Treasury\TreasuryServiceFactory::class,
|
||
|
];
|
||
|
|
||
|
protected function getServiceClass($name)
|
||
|
{
|
||
|
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||
|
}
|
||
|
}
|