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