ameliabooking
/
vendor
/
stripe
/
stripe-php
/
lib
/
Service
/
TestHelpers
/
TestHelpersServiceFactory.php
Issuing
6 months ago
Terminal
6 months ago
Treasury
6 months ago
ConfirmationTokenService.php
6 months ago
CustomerService.php
6 months ago
RefundService.php
6 months ago
TestClockService.php
6 months ago
TestHelpersServiceFactory.php
6 months ago
TestHelpersServiceFactory.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | namespace AmeliaVendor\Stripe\Service\TestHelpers; |
| 5 | |
| 6 | /** |
| 7 | * Service factory class for API resources in the TestHelpers namespace. |
| 8 | * |
| 9 | * @property ConfirmationTokenService $confirmationTokens |
| 10 | * @property CustomerService $customers |
| 11 | * @property Issuing\IssuingServiceFactory $issuing |
| 12 | * @property RefundService $refunds |
| 13 | * @property Terminal\TerminalServiceFactory $terminal |
| 14 | * @property TestClockService $testClocks |
| 15 | * @property Treasury\TreasuryServiceFactory $treasury |
| 16 | */ |
| 17 | class TestHelpersServiceFactory extends \AmeliaVendor\Stripe\Service\AbstractServiceFactory |
| 18 | { |
| 19 | /** |
| 20 | * @var array<string, string> |
| 21 | */ |
| 22 | private static $classMap = ['confirmationTokens' => ConfirmationTokenService::class, 'customers' => CustomerService::class, 'issuing' => \AmeliaVendor\Stripe\Service\TestHelpers\Issuing\IssuingServiceFactory::class, 'refunds' => RefundService::class, 'terminal' => \AmeliaVendor\Stripe\Service\TestHelpers\Terminal\TerminalServiceFactory::class, 'testClocks' => TestClockService::class, 'treasury' => \AmeliaVendor\Stripe\Service\TestHelpers\Treasury\TreasuryServiceFactory::class]; |
| 23 | protected function getServiceClass($name) |
| 24 | { |
| 25 | return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; |
| 26 | } |
| 27 | } |