CalculationService.php
7 months ago
RegistrationService.php
7 months ago
SettingsService.php
7 months ago
TaxServiceFactory.php
7 months ago
TransactionService.php
7 months ago
TaxServiceFactory.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace AmeliaVendor\Stripe\Service\Tax; |
| 6 | |
| 7 | /** |
| 8 | * Service factory class for API resources in the Tax namespace. |
| 9 | * |
| 10 | * @property CalculationService $calculations |
| 11 | * @property RegistrationService $registrations |
| 12 | * @property SettingsService $settings |
| 13 | * @property TransactionService $transactions |
| 14 | */ |
| 15 | class TaxServiceFactory extends \AmeliaVendor\Stripe\Service\AbstractServiceFactory |
| 16 | { |
| 17 | /** |
| 18 | * @var array<string, string> |
| 19 | */ |
| 20 | private static $classMap = [ |
| 21 | 'calculations' => CalculationService::class, |
| 22 | 'registrations' => RegistrationService::class, |
| 23 | 'settings' => SettingsService::class, |
| 24 | 'transactions' => TransactionService::class, |
| 25 | ]; |
| 26 | |
| 27 | protected function getServiceClass($name) |
| 28 | { |
| 29 | return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; |
| 30 | } |
| 31 | } |
| 32 |