AuthorizationService.php
2 years ago
CardService.php
2 years ago
CardholderService.php
2 years ago
DisputeService.php
2 years ago
IssuingServiceFactory.php
4 years ago
TransactionService.php
2 years ago
IssuingServiceFactory.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace Stripe\Service\Issuing; |
| 6 | |
| 7 | /** |
| 8 | * Service factory class for API resources in the Issuing namespace. |
| 9 | * |
| 10 | * @property AuthorizationService $authorizations |
| 11 | * @property CardholderService $cardholders |
| 12 | * @property CardService $cards |
| 13 | * @property DisputeService $disputes |
| 14 | * @property TransactionService $transactions |
| 15 | */ |
| 16 | class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory |
| 17 | { |
| 18 | /** |
| 19 | * @var array<string, string> |
| 20 | */ |
| 21 | private static $classMap = [ |
| 22 | 'authorizations' => AuthorizationService::class, |
| 23 | 'cardholders' => CardholderService::class, |
| 24 | 'cards' => CardService::class, |
| 25 | 'disputes' => DisputeService::class, |
| 26 | 'transactions' => TransactionService::class, |
| 27 | ]; |
| 28 | |
| 29 | protected function getServiceClass($name) |
| 30 | { |
| 31 | return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; |
| 32 | } |
| 33 | } |
| 34 |