IssuingServiceFactory.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 PersonalizationDesignService $personalizationDesigns
  12. * @property PhysicalBundleService $physicalBundles
  13. * @property TokenService $tokens
  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. 'personalizationDesigns' => PersonalizationDesignService::class,
  27. 'physicalBundles' => PhysicalBundleService::class,
  28. 'tokens' => TokenService::class,
  29. 'transactions' => TransactionService::class,
  30. ];
  31. protected function getServiceClass($name)
  32. {
  33. return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
  34. }
  35. }