StripeClient.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe;
  4. /**
  5. * Client used to send requests to Stripe's API.
  6. *
  7. * @property \Stripe\Service\AccountLinkService $accountLinks
  8. * @property \Stripe\Service\AccountService $accounts
  9. * @property \Stripe\Service\ApplePayDomainService $applePayDomains
  10. * @property \Stripe\Service\ApplicationFeeService $applicationFees
  11. * @property \Stripe\Service\BalanceService $balance
  12. * @property \Stripe\Service\BalanceTransactionService $balanceTransactions
  13. * @property \Stripe\Service\BillingPortal\BillingPortalServiceFactory $billingPortal
  14. * @property \Stripe\Service\ChargeService $charges
  15. * @property \Stripe\Service\Checkout\CheckoutServiceFactory $checkout
  16. * @property \Stripe\Service\CountrySpecService $countrySpecs
  17. * @property \Stripe\Service\CouponService $coupons
  18. * @property \Stripe\Service\CreditNoteService $creditNotes
  19. * @property \Stripe\Service\CustomerService $customers
  20. * @property \Stripe\Service\DisputeService $disputes
  21. * @property \Stripe\Service\EphemeralKeyService $ephemeralKeys
  22. * @property \Stripe\Service\EventService $events
  23. * @property \Stripe\Service\ExchangeRateService $exchangeRates
  24. * @property \Stripe\Service\FileLinkService $fileLinks
  25. * @property \Stripe\Service\FileService $files
  26. * @property \Stripe\Service\InvoiceItemService $invoiceItems
  27. * @property \Stripe\Service\InvoiceService $invoices
  28. * @property \Stripe\Service\Issuing\IssuingServiceFactory $issuing
  29. * @property \Stripe\Service\MandateService $mandates
  30. * @property \Stripe\Service\OAuthService $oauth
  31. * @property \Stripe\Service\OrderReturnService $orderReturns
  32. * @property \Stripe\Service\OrderService $orders
  33. * @property \Stripe\Service\PaymentIntentService $paymentIntents
  34. * @property \Stripe\Service\PaymentMethodService $paymentMethods
  35. * @property \Stripe\Service\PayoutService $payouts
  36. * @property \Stripe\Service\PlanService $plans
  37. * @property \Stripe\Service\PriceService $prices
  38. * @property \Stripe\Service\ProductService $products
  39. * @property \Stripe\Service\PromotionCodeService $promotionCodes
  40. * @property \Stripe\Service\Radar\RadarServiceFactory $radar
  41. * @property \Stripe\Service\RefundService $refunds
  42. * @property \Stripe\Service\Reporting\ReportingServiceFactory $reporting
  43. * @property \Stripe\Service\ReviewService $reviews
  44. * @property \Stripe\Service\SetupAttemptService $setupAttempts
  45. * @property \Stripe\Service\SetupIntentService $setupIntents
  46. * @property \Stripe\Service\Sigma\SigmaServiceFactory $sigma
  47. * @property \Stripe\Service\SkuService $skus
  48. * @property \Stripe\Service\SourceService $sources
  49. * @property \Stripe\Service\SubscriptionItemService $subscriptionItems
  50. * @property \Stripe\Service\SubscriptionScheduleService $subscriptionSchedules
  51. * @property \Stripe\Service\SubscriptionService $subscriptions
  52. * @property \Stripe\Service\TaxRateService $taxRates
  53. * @property \Stripe\Service\Terminal\TerminalServiceFactory $terminal
  54. * @property \Stripe\Service\TokenService $tokens
  55. * @property \Stripe\Service\TopupService $topups
  56. * @property \Stripe\Service\TransferService $transfers
  57. * @property \Stripe\Service\WebhookEndpointService $webhookEndpoints
  58. */
  59. class StripeClient extends BaseStripeClient
  60. {
  61. /**
  62. * @var \Stripe\Service\CoreServiceFactory
  63. */
  64. private $coreServiceFactory;
  65. public function __get($name)
  66. {
  67. if (null === $this->coreServiceFactory) {
  68. $this->coreServiceFactory = new \Stripe\Service\CoreServiceFactory($this);
  69. }
  70. return $this->coreServiceFactory->__get($name);
  71. }
  72. }