You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.6 KiB
43 lines
1.6 KiB
<?php
|
|
|
|
// File generated from our OpenAPI spec
|
|
|
|
namespace Stripe\Service\Treasury;
|
|
|
|
/**
|
|
* Service factory class for API resources in the Treasury namespace.
|
|
*
|
|
* @property CreditReversalService $creditReversals
|
|
* @property DebitReversalService $debitReversals
|
|
* @property FinancialAccountService $financialAccounts
|
|
* @property InboundTransferService $inboundTransfers
|
|
* @property OutboundPaymentService $outboundPayments
|
|
* @property OutboundTransferService $outboundTransfers
|
|
* @property ReceivedCreditService $receivedCredits
|
|
* @property ReceivedDebitService $receivedDebits
|
|
* @property TransactionEntryService $transactionEntries
|
|
* @property TransactionService $transactions
|
|
*/
|
|
class TreasuryServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
|
{
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
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,
|
|
];
|
|
|
|
protected function getServiceClass($name)
|
|
{
|
|
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
|
}
|
|
}
|
|
|