IssuingServiceFactory.php 936 B

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