CoreServiceFactory.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service;
  4. /**
  5. * Service factory class for API resources in the root namespace.
  6. *
  7. * @property AccountLinkService $accountLinks
  8. * @property AccountService $accounts
  9. * @property ApplePayDomainService $applePayDomains
  10. * @property ApplicationFeeService $applicationFees
  11. * @property BalanceService $balance
  12. * @property BalanceTransactionService $balanceTransactions
  13. * @property BillingPortal\BillingPortalServiceFactory $billingPortal
  14. * @property ChargeService $charges
  15. * @property Checkout\CheckoutServiceFactory $checkout
  16. * @property CountrySpecService $countrySpecs
  17. * @property CouponService $coupons
  18. * @property CreditNoteService $creditNotes
  19. * @property CustomerService $customers
  20. * @property DisputeService $disputes
  21. * @property EphemeralKeyService $ephemeralKeys
  22. * @property EventService $events
  23. * @property ExchangeRateService $exchangeRates
  24. * @property FileLinkService $fileLinks
  25. * @property FileService $files
  26. * @property InvoiceItemService $invoiceItems
  27. * @property InvoiceService $invoices
  28. * @property Issuing\IssuingServiceFactory $issuing
  29. * @property MandateService $mandates
  30. * @property OAuthService $oauth
  31. * @property OrderReturnService $orderReturns
  32. * @property OrderService $orders
  33. * @property PaymentIntentService $paymentIntents
  34. * @property PaymentMethodService $paymentMethods
  35. * @property PayoutService $payouts
  36. * @property PlanService $plans
  37. * @property PriceService $prices
  38. * @property ProductService $products
  39. * @property PromotionCodeService $promotionCodes
  40. * @property Radar\RadarServiceFactory $radar
  41. * @property RefundService $refunds
  42. * @property Reporting\ReportingServiceFactory $reporting
  43. * @property ReviewService $reviews
  44. * @property SetupAttemptService $setupAttempts
  45. * @property SetupIntentService $setupIntents
  46. * @property Sigma\SigmaServiceFactory $sigma
  47. * @property SkuService $skus
  48. * @property SourceService $sources
  49. * @property SubscriptionItemService $subscriptionItems
  50. * @property SubscriptionService $subscriptions
  51. * @property SubscriptionScheduleService $subscriptionSchedules
  52. * @property TaxRateService $taxRates
  53. * @property Terminal\TerminalServiceFactory $terminal
  54. * @property TokenService $tokens
  55. * @property TopupService $topups
  56. * @property TransferService $transfers
  57. * @property WebhookEndpointService $webhookEndpoints
  58. */
  59. class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
  60. {
  61. /**
  62. * @var array<string, string>
  63. */
  64. private static $classMap = [
  65. 'accountLinks' => AccountLinkService::class,
  66. 'accounts' => AccountService::class,
  67. 'applePayDomains' => ApplePayDomainService::class,
  68. 'applicationFees' => ApplicationFeeService::class,
  69. 'balance' => BalanceService::class,
  70. 'balanceTransactions' => BalanceTransactionService::class,
  71. 'billingPortal' => BillingPortal\BillingPortalServiceFactory::class,
  72. 'charges' => ChargeService::class,
  73. 'checkout' => Checkout\CheckoutServiceFactory::class,
  74. 'countrySpecs' => CountrySpecService::class,
  75. 'coupons' => CouponService::class,
  76. 'creditNotes' => CreditNoteService::class,
  77. 'customers' => CustomerService::class,
  78. 'disputes' => DisputeService::class,
  79. 'ephemeralKeys' => EphemeralKeyService::class,
  80. 'events' => EventService::class,
  81. 'exchangeRates' => ExchangeRateService::class,
  82. 'fileLinks' => FileLinkService::class,
  83. 'files' => FileService::class,
  84. 'invoiceItems' => InvoiceItemService::class,
  85. 'invoices' => InvoiceService::class,
  86. 'issuing' => Issuing\IssuingServiceFactory::class,
  87. 'mandates' => MandateService::class,
  88. 'oauth' => OAuthService::class,
  89. 'orderReturns' => OrderReturnService::class,
  90. 'orders' => OrderService::class,
  91. 'paymentIntents' => PaymentIntentService::class,
  92. 'paymentMethods' => PaymentMethodService::class,
  93. 'payouts' => PayoutService::class,
  94. 'plans' => PlanService::class,
  95. 'prices' => PriceService::class,
  96. 'products' => ProductService::class,
  97. 'promotionCodes' => PromotionCodeService::class,
  98. 'radar' => Radar\RadarServiceFactory::class,
  99. 'refunds' => RefundService::class,
  100. 'reporting' => Reporting\ReportingServiceFactory::class,
  101. 'reviews' => ReviewService::class,
  102. 'setupAttempts' => SetupAttemptService::class,
  103. 'setupIntents' => SetupIntentService::class,
  104. 'sigma' => Sigma\SigmaServiceFactory::class,
  105. 'skus' => SkuService::class,
  106. 'sources' => SourceService::class,
  107. 'subscriptionItems' => SubscriptionItemService::class,
  108. 'subscriptions' => SubscriptionService::class,
  109. 'subscriptionSchedules' => SubscriptionScheduleService::class,
  110. 'taxRates' => TaxRateService::class,
  111. 'terminal' => Terminal\TerminalServiceFactory::class,
  112. 'tokens' => TokenService::class,
  113. 'topups' => TopupService::class,
  114. 'transfers' => TransferService::class,
  115. 'webhookEndpoints' => WebhookEndpointService::class,
  116. ];
  117. protected function getServiceClass($name)
  118. {
  119. return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
  120. }
  121. }