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