ApiOperations
6 months ago
Apps
6 months ago
Billing
6 months ago
BillingPortal
6 months ago
Checkout
6 months ago
Climate
6 months ago
Entitlements
6 months ago
EventData
6 months ago
Events
6 months ago
Exception
6 months ago
FinancialConnections
6 months ago
Forwarding
6 months ago
HttpClient
6 months ago
Identity
6 months ago
Issuing
6 months ago
Radar
6 months ago
Reporting
6 months ago
Service
6 months ago
Sigma
6 months ago
Tax
6 months ago
Terminal
6 months ago
TestHelpers
6 months ago
Treasury
6 months ago
Util
6 months ago
V2
6 months ago
Account.php
6 months ago
AccountLink.php
6 months ago
AccountSession.php
6 months ago
ApiRequestor.php
6 months ago
ApiResource.php
6 months ago
ApiResponse.php
6 months ago
ApplePayDomain.php
6 months ago
Application.php
6 months ago
ApplicationFee.php
6 months ago
ApplicationFeeRefund.php
6 months ago
Balance.php
6 months ago
BalanceTransaction.php
6 months ago
BankAccount.php
6 months ago
BaseStripeClient.php
6 months ago
BaseStripeClientInterface.php
6 months ago
Capability.php
6 months ago
Card.php
6 months ago
CashBalance.php
6 months ago
Charge.php
6 months ago
Collection.php
6 months ago
ConfirmationToken.php
6 months ago
ConnectCollectionTransfer.php
6 months ago
CountrySpec.php
6 months ago
Coupon.php
6 months ago
CreditNote.php
6 months ago
CreditNoteLineItem.php
6 months ago
Customer.php
6 months ago
CustomerBalanceTransaction.php
6 months ago
CustomerCashBalanceTransaction.php
6 months ago
CustomerSession.php
6 months ago
Discount.php
6 months ago
Dispute.php
6 months ago
EphemeralKey.php
6 months ago
ErrorObject.php
6 months ago
Event.php
6 months ago
ExchangeRate.php
6 months ago
File.php
6 months ago
FileLink.php
6 months ago
FundingInstructions.php
6 months ago
Invoice.php
6 months ago
InvoiceItem.php
6 months ago
InvoiceLineItem.php
6 months ago
InvoicePayment.php
6 months ago
InvoiceRenderingTemplate.php
6 months ago
LineItem.php
6 months ago
LoginLink.php
6 months ago
Mandate.php
6 months ago
OAuth.php
6 months ago
OAuthErrorObject.php
6 months ago
PaymentIntent.php
6 months ago
PaymentLink.php
6 months ago
PaymentMethod.php
6 months ago
PaymentMethodConfiguration.php
6 months ago
PaymentMethodDomain.php
6 months ago
Payout.php
6 months ago
Person.php
6 months ago
Plan.php
6 months ago
Price.php
6 months ago
Product.php
6 months ago
ProductFeature.php
6 months ago
PromotionCode.php
6 months ago
Quote.php
6 months ago
Reason.php
6 months ago
RecipientTransfer.php
6 months ago
Refund.php
6 months ago
RelatedObject.php
6 months ago
RequestTelemetry.php
6 months ago
ReserveTransaction.php
6 months ago
Review.php
6 months ago
SearchResult.php
6 months ago
SetupAttempt.php
6 months ago
SetupIntent.php
6 months ago
ShippingRate.php
6 months ago
SingletonApiResource.php
6 months ago
Source.php
6 months ago
SourceMandateNotification.php
6 months ago
SourceTransaction.php
6 months ago
Stripe.php
6 months ago
StripeClient.php
6 months ago
StripeClientInterface.php
6 months ago
StripeObject.php
6 months ago
StripeStreamingClientInterface.php
6 months ago
Subscription.php
6 months ago
SubscriptionItem.php
6 months ago
SubscriptionSchedule.php
6 months ago
TaxCode.php
6 months ago
TaxDeductedAtSource.php
6 months ago
TaxId.php
6 months ago
TaxRate.php
6 months ago
ThinEvent.php
6 months ago
Token.php
6 months ago
Topup.php
6 months ago
Transfer.php
6 months ago
TransferReversal.php
6 months ago
Webhook.php
6 months ago
WebhookEndpoint.php
6 months ago
WebhookSignature.php
6 months ago
StripeClient.php
103 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaVendor\Stripe; |
| 4 | |
| 5 | /** |
| 6 | * Client used to send requests to Stripe's API. |
| 7 | * |
| 8 | * @property Service\OAuthService $oauth |
| 9 | * // The beginning of the section generated from our OpenAPI spec |
| 10 | * @property Service\AccountLinkService $accountLinks |
| 11 | * @property Service\AccountService $accounts |
| 12 | * @property Service\AccountSessionService $accountSessions |
| 13 | * @property Service\ApplePayDomainService $applePayDomains |
| 14 | * @property Service\ApplicationFeeService $applicationFees |
| 15 | * @property Service\Apps\AppsServiceFactory $apps |
| 16 | * @property Service\BalanceService $balance |
| 17 | * @property Service\BalanceTransactionService $balanceTransactions |
| 18 | * @property Service\Billing\BillingServiceFactory $billing |
| 19 | * @property Service\BillingPortal\BillingPortalServiceFactory $billingPortal |
| 20 | * @property Service\ChargeService $charges |
| 21 | * @property Service\Checkout\CheckoutServiceFactory $checkout |
| 22 | * @property Service\Climate\ClimateServiceFactory $climate |
| 23 | * @property Service\ConfirmationTokenService $confirmationTokens |
| 24 | * @property Service\CountrySpecService $countrySpecs |
| 25 | * @property Service\CouponService $coupons |
| 26 | * @property Service\CreditNoteService $creditNotes |
| 27 | * @property Service\CustomerService $customers |
| 28 | * @property Service\CustomerSessionService $customerSessions |
| 29 | * @property Service\DisputeService $disputes |
| 30 | * @property Service\Entitlements\EntitlementsServiceFactory $entitlements |
| 31 | * @property Service\EphemeralKeyService $ephemeralKeys |
| 32 | * @property Service\EventService $events |
| 33 | * @property Service\ExchangeRateService $exchangeRates |
| 34 | * @property Service\FileLinkService $fileLinks |
| 35 | * @property Service\FileService $files |
| 36 | * @property Service\FinancialConnections\FinancialConnectionsServiceFactory $financialConnections |
| 37 | * @property Service\Forwarding\ForwardingServiceFactory $forwarding |
| 38 | * @property Service\Identity\IdentityServiceFactory $identity |
| 39 | * @property Service\InvoiceItemService $invoiceItems |
| 40 | * @property Service\InvoicePaymentService $invoicePayments |
| 41 | * @property Service\InvoiceRenderingTemplateService $invoiceRenderingTemplates |
| 42 | * @property Service\InvoiceService $invoices |
| 43 | * @property Service\Issuing\IssuingServiceFactory $issuing |
| 44 | * @property Service\MandateService $mandates |
| 45 | * @property Service\PaymentIntentService $paymentIntents |
| 46 | * @property Service\PaymentLinkService $paymentLinks |
| 47 | * @property Service\PaymentMethodConfigurationService $paymentMethodConfigurations |
| 48 | * @property Service\PaymentMethodDomainService $paymentMethodDomains |
| 49 | * @property Service\PaymentMethodService $paymentMethods |
| 50 | * @property Service\PayoutService $payouts |
| 51 | * @property Service\PlanService $plans |
| 52 | * @property Service\PriceService $prices |
| 53 | * @property Service\ProductService $products |
| 54 | * @property Service\PromotionCodeService $promotionCodes |
| 55 | * @property Service\QuoteService $quotes |
| 56 | * @property Service\Radar\RadarServiceFactory $radar |
| 57 | * @property Service\RefundService $refunds |
| 58 | * @property Service\Reporting\ReportingServiceFactory $reporting |
| 59 | * @property Service\ReviewService $reviews |
| 60 | * @property Service\SetupAttemptService $setupAttempts |
| 61 | * @property Service\SetupIntentService $setupIntents |
| 62 | * @property Service\ShippingRateService $shippingRates |
| 63 | * @property Service\Sigma\SigmaServiceFactory $sigma |
| 64 | * @property Service\SourceService $sources |
| 65 | * @property Service\SubscriptionItemService $subscriptionItems |
| 66 | * @property Service\SubscriptionService $subscriptions |
| 67 | * @property Service\SubscriptionScheduleService $subscriptionSchedules |
| 68 | * @property Service\Tax\TaxServiceFactory $tax |
| 69 | * @property Service\TaxCodeService $taxCodes |
| 70 | * @property Service\TaxIdService $taxIds |
| 71 | * @property Service\TaxRateService $taxRates |
| 72 | * @property Service\Terminal\TerminalServiceFactory $terminal |
| 73 | * @property Service\TestHelpers\TestHelpersServiceFactory $testHelpers |
| 74 | * @property Service\TokenService $tokens |
| 75 | * @property Service\TopupService $topups |
| 76 | * @property Service\TransferService $transfers |
| 77 | * @property Service\Treasury\TreasuryServiceFactory $treasury |
| 78 | * @property Service\V2\V2ServiceFactory $v2 |
| 79 | * @property Service\WebhookEndpointService $webhookEndpoints |
| 80 | * // The end of the section generated from our OpenAPI spec |
| 81 | */ |
| 82 | class StripeClient extends BaseStripeClient |
| 83 | { |
| 84 | /** |
| 85 | * @var Service\CoreServiceFactory |
| 86 | */ |
| 87 | private $coreServiceFactory; |
| 88 | |
| 89 | public function __get($name) |
| 90 | { |
| 91 | return $this->getService($name); |
| 92 | } |
| 93 | |
| 94 | public function getService($name) |
| 95 | { |
| 96 | if (null === $this->coreServiceFactory) { |
| 97 | $this->coreServiceFactory = new Service\CoreServiceFactory($this); |
| 98 | } |
| 99 | |
| 100 | return $this->coreServiceFactory->getService($name); |
| 101 | } |
| 102 | } |
| 103 |