ameliabooking
/
vendor
/
stripe
/
stripe-php
/
lib
/
Service
/
Treasury
/
TreasuryServiceFactory.php
CreditReversalService.php
6 months ago
DebitReversalService.php
6 months ago
FinancialAccountService.php
6 months ago
InboundTransferService.php
6 months ago
OutboundPaymentService.php
6 months ago
OutboundTransferService.php
6 months ago
ReceivedCreditService.php
6 months ago
ReceivedDebitService.php
6 months ago
TransactionEntryService.php
6 months ago
TransactionService.php
6 months ago
TreasuryServiceFactory.php
6 months ago
TreasuryServiceFactory.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace AmeliaVendor\Stripe\Service\Treasury; |
| 6 | |
| 7 | /** |
| 8 | * Service factory class for API resources in the Treasury namespace. |
| 9 | * |
| 10 | * @property CreditReversalService $creditReversals |
| 11 | * @property DebitReversalService $debitReversals |
| 12 | * @property FinancialAccountService $financialAccounts |
| 13 | * @property InboundTransferService $inboundTransfers |
| 14 | * @property OutboundPaymentService $outboundPayments |
| 15 | * @property OutboundTransferService $outboundTransfers |
| 16 | * @property ReceivedCreditService $receivedCredits |
| 17 | * @property ReceivedDebitService $receivedDebits |
| 18 | * @property TransactionEntryService $transactionEntries |
| 19 | * @property TransactionService $transactions |
| 20 | */ |
| 21 | class TreasuryServiceFactory extends \AmeliaVendor\Stripe\Service\AbstractServiceFactory |
| 22 | { |
| 23 | /** |
| 24 | * @var array<string, string> |
| 25 | */ |
| 26 | private static $classMap = [ |
| 27 | 'creditReversals' => CreditReversalService::class, |
| 28 | 'debitReversals' => DebitReversalService::class, |
| 29 | 'financialAccounts' => FinancialAccountService::class, |
| 30 | 'inboundTransfers' => InboundTransferService::class, |
| 31 | 'outboundPayments' => OutboundPaymentService::class, |
| 32 | 'outboundTransfers' => OutboundTransferService::class, |
| 33 | 'receivedCredits' => ReceivedCreditService::class, |
| 34 | 'receivedDebits' => ReceivedDebitService::class, |
| 35 | 'transactionEntries' => TransactionEntryService::class, |
| 36 | 'transactions' => TransactionService::class, |
| 37 | ]; |
| 38 | |
| 39 | protected function getServiceClass($name) |
| 40 | { |
| 41 | return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; |
| 42 | } |
| 43 | } |
| 44 |