forked from Wavyzz/dolibarr
Update Stripe lib to 10.7.0
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class CreditReversalService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of CreditReversals.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\CreditReversal>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/credit_reversals', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverses a ReceivedCredit and creates a CreditReversal object.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\CreditReversal
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/treasury/credit_reversals', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an existing CreditReversal by passing the unique
|
||||
* CreditReversal ID from either the CreditReversal creation request or
|
||||
* CreditReversal list.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\CreditReversal
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/credit_reversals/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class DebitReversalService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of DebitReversals.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\DebitReversal>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/debit_reversals', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverses a ReceivedDebit and creates a DebitReversal object.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\DebitReversal
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/treasury/debit_reversals', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a DebitReversal object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\DebitReversal
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/debit_reversals/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class FinancialAccountService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of FinancialAccounts.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\FinancialAccount>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/financial_accounts', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new FinancialAccount. For now, each connected account can only have
|
||||
* one FinancialAccount.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccount
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/treasury/financial_accounts', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of a FinancialAccount.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccount
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/financial_accounts/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves Features information associated with the FinancialAccount.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccount
|
||||
*/
|
||||
public function retrieveFeatures($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/financial_accounts/%s/features', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the details of a FinancialAccount.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccount
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/treasury/financial_accounts/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the Features associated with a FinancialAccount.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\FinancialAccount
|
||||
*/
|
||||
public function updateFeatures($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/treasury/financial_accounts/%s/features', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class InboundTransferService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of InboundTransfers sent from the specified FinancialAccount.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\InboundTransfer>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/inbound_transfers', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels an InboundTransfer.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*/
|
||||
public function cancel($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/treasury/inbound_transfers/%s/cancel', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an InboundTransfer.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/treasury/inbound_transfers', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an existing InboundTransfer.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/inbound_transfers/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class OutboundPaymentService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of OutboundPayments sent from the specified FinancialAccount.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\OutboundPayment>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/outbound_payments', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancel an OutboundPayment.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*/
|
||||
public function cancel($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/treasury/outbound_payments/%s/cancel', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an OutboundPayment.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/treasury/outbound_payments', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an existing OutboundPayment by passing the unique
|
||||
* OutboundPayment ID from either the OutboundPayment creation request or
|
||||
* OutboundPayment list.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/outbound_payments/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class OutboundTransferService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of OutboundTransfers sent from the specified FinancialAccount.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\OutboundTransfer>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/outbound_transfers', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* An OutboundTransfer can be canceled if the funds have not yet been paid out.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*/
|
||||
public function cancel($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/treasury/outbound_transfers/%s/cancel', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an OutboundTransfer.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/treasury/outbound_transfers', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an existing OutboundTransfer by passing the unique
|
||||
* OutboundTransfer ID from either the OutboundTransfer creation request or
|
||||
* OutboundTransfer list.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/outbound_transfers/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class ReceivedCreditService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of ReceivedCredits.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\ReceivedCredit>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/received_credits', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an existing ReceivedCredit by passing the unique
|
||||
* ReceivedCredit ID from the ReceivedCredit list.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\ReceivedCredit
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/received_credits/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class ReceivedDebitService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of ReceivedDebits.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\ReceivedDebit>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/received_debits', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an existing ReceivedDebit by passing the unique
|
||||
* ReceivedDebit ID from the ReceivedDebit list.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\ReceivedDebit
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/received_debits/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class TransactionEntryService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieves a list of TransactionEntry objects.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\TransactionEntry>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/transaction_entries', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a TransactionEntry object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\TransactionEntry
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/transaction_entries/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Treasury;
|
||||
|
||||
class TransactionService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Retrieves a list of Transaction objects.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Treasury\Transaction>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/treasury/transactions', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an existing Transaction.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Treasury\Transaction
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/treasury/transactions/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user