Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Stripe/lib/Service/CoreServiceFactory.php
Строк: 170
<?php

namespace StripeService;

/**
 * Service factory class for API resources in the root namespace.
 *
 * @property AccountLinkService $accountLinks
 * @property AccountService $accounts
 * @property ApplePayDomainService $applePayDomains
 * @property ApplicationFeeService $applicationFees
 * @property BalanceService $balance
 * @property BalanceTransactionService $balanceTransactions
 * @property BillingPortalBillingPortalServiceFactory $billingPortal
 * @property ChargeService $charges
 * @property CheckoutCheckoutServiceFactory $checkout
 * @property CountrySpecService $countrySpecs
 * @property CouponService $coupons
 * @property CreditNoteService $creditNotes
 * @property CustomerService $customers
 * @property DisputeService $disputes
 * @property EphemeralKeyService $ephemeralKeys
 * @property EventService $events
 * @property ExchangeRateService $exchangeRates
 * @property FileLinkService $fileLinks
 * @property FileService $files
 * @property InvoiceItemService $invoiceItems
 * @property InvoiceService $invoices
 * @property IssuingIssuingServiceFactory $issuing
 * @property MandateService $mandates
 * @property OrderReturnService $orderReturns
 * @property OrderService $orders
 * @property PaymentIntentService $paymentIntents
 * @property PaymentMethodService $paymentMethods
 * @property PayoutService $payouts
 * @property PlanService $plans
 * @property PriceService $prices
 * @property ProductService $products
 * @property RadarRadarServiceFactory $radar
 * @property RefundService $refunds
 * @property ReportingReportingServiceFactory $reporting
 * @property ReviewService $reviews
 * @property SetupIntentService $setupIntents
 * @property SigmaSigmaServiceFactory $sigma
 * @property SkuService $skus
 * @property SourceService $sources
 * @property SubscriptionItemService $subscriptionItems
 * @property SubscriptionService $subscriptions
 * @property SubscriptionScheduleService $subscriptionSchedules
 * @property TaxRateService $taxRates
 * @property TerminalTerminalServiceFactory $terminal
 * @property TokenService $tokens
 * @property TopupService $topups
 * @property TransferService $transfers
 * @property WebhookEndpointService $webhookEndpoints
 */
class CoreServiceFactory extends StripeServiceAbstractServiceFactory
{
    
/**
     * @var array<string, string>
     */
    
private static $classMap = [
        
'accountLinks' => AccountLinkService::class,
        
'accounts' => AccountService::class,
        
'applePayDomains' => ApplePayDomainService::class,
        
'applicationFees' => ApplicationFeeService::class,
        
'balance' => BalanceService::class,
        
'balanceTransactions' => BalanceTransactionService::class,
        
'billingPortal' => BillingPortalBillingPortalServiceFactory::class,
        
'charges' => ChargeService::class,
        
'checkout' => CheckoutCheckoutServiceFactory::class,
        
'countrySpecs' => CountrySpecService::class,
        
'coupons' => CouponService::class,
        
'creditNotes' => CreditNoteService::class,
        
'customers' => CustomerService::class,
        
'disputes' => DisputeService::class,
        
'ephemeralKeys' => EphemeralKeyService::class,
        
'events' => EventService::class,
        
'exchangeRates' => ExchangeRateService::class,
        
'fileLinks' => FileLinkService::class,
        
'files' => FileService::class,
        
'invoiceItems' => InvoiceItemService::class,
        
'invoices' => InvoiceService::class,
        
'issuing' => IssuingIssuingServiceFactory::class,
        
'mandates' => MandateService::class,
        
'orderReturns' => OrderReturnService::class,
        
'orders' => OrderService::class,
        
'paymentIntents' => PaymentIntentService::class,
        
'paymentMethods' => PaymentMethodService::class,
        
'payouts' => PayoutService::class,
        
'plans' => PlanService::class,
        
'prices' => PriceService::class,
        
'products' => ProductService::class,
        
'radar' => RadarRadarServiceFactory::class,
        
'refunds' => RefundService::class,
        
'reporting' => ReportingReportingServiceFactory::class,
        
'reviews' => ReviewService::class,
        
'setupIntents' => SetupIntentService::class,
        
'sigma' => SigmaSigmaServiceFactory::class,
        
'skus' => SkuService::class,
        
'sources' => SourceService::class,
        
'subscriptionItems' => SubscriptionItemService::class,
        
'subscriptions' => SubscriptionService::class,
        
'subscriptionSchedules' => SubscriptionScheduleService::class,
        
'taxRates' => TaxRateService::class,
        
'terminal' => TerminalTerminalServiceFactory::class,
        
'tokens' => TokenService::class,
        
'topups' => TopupService::class,
        
'transfers' => TransferService::class,
        
'webhookEndpoints' => WebhookEndpointService::class,
    ];

    protected function 
getServiceClass($name)
    {
        return 
array_key_exists($nameself::$classMap) ? self::$classMap[$name] : null;
    }
}
Онлайн: 2
Реклама