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