Initial Commit
This commit is contained in:
23
dependencies/stripe/stripe-php/lib/Service/TestHelpers/CustomerService.php
vendored
Normal file
23
dependencies/stripe/stripe-php/lib/Service/TestHelpers/CustomerService.php
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers;
|
||||
|
||||
class CustomerService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Create an incoming testmode bank transfer.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\CustomerCashBalanceTransaction
|
||||
*/
|
||||
public function fundCashBalance($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/customers/%s/fund_cash_balance', $id), $params, $opts);
|
||||
}
|
||||
}
|
72
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php
vendored
Normal file
72
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
class CardService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>delivered</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*/
|
||||
public function deliverCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/deliver', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>failure</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*/
|
||||
public function failCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/fail', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>returned</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*/
|
||||
public function returnCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/return', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>shipped</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*/
|
||||
public function shipCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/ship', $id), $params, $opts);
|
||||
}
|
||||
}
|
21
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
vendored
Normal file
21
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Issuing namespace.
|
||||
*
|
||||
* @property CardService $cards
|
||||
*/
|
||||
class IssuingServiceFactory extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = ['cards' => CardService::class];
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
23
dependencies/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php
vendored
Normal file
23
dependencies/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers;
|
||||
|
||||
class RefundService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Expire a refund with a status of <code>requires_action</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Refund
|
||||
*/
|
||||
public function expire($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/refunds/%s/expire', $id), $params, $opts);
|
||||
}
|
||||
}
|
24
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php
vendored
Normal file
24
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Terminal;
|
||||
|
||||
class ReaderService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Presents a payment method on a simulated reader. Can be used to simulate
|
||||
* accepting a payment, saving a card or refunding a 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\Terminal\Reader
|
||||
*/
|
||||
public function presentPaymentMethod($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/terminal/readers/%s/present_payment_method', $id), $params, $opts);
|
||||
}
|
||||
}
|
21
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php
vendored
Normal file
21
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Terminal;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Terminal namespace.
|
||||
*
|
||||
* @property ReaderService $readers
|
||||
*/
|
||||
class TerminalServiceFactory extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = ['readers' => ReaderService::class];
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
82
dependencies/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php
vendored
Normal file
82
dependencies/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers;
|
||||
|
||||
class TestClockService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Starts advancing a test clock to a specified time in the future. Advancement is
|
||||
* done when status changes to <code>Ready</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\TestHelpers\TestClock
|
||||
*/
|
||||
public function advance($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/test_clocks/%s/advance', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Returns a list of your test clocks.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\TestHelpers\TestClock>
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/test_helpers/test_clocks', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Creates a new test clock that can be attached to new customers and quotes.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\TestHelpers\TestClock
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/test_clocks', $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Deletes a test clock.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\TestHelpers\TestClock
|
||||
*/
|
||||
public function delete($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('delete', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Retrieves a test clock.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\TestHelpers\TestClock
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
26
dependencies/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php
vendored
Normal file
26
dependencies/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the TestHelpers namespace.
|
||||
*
|
||||
* @property CustomerService $customers
|
||||
* @property Issuing\IssuingServiceFactory $issuing
|
||||
* @property RefundService $refunds
|
||||
* @property Terminal\TerminalServiceFactory $terminal
|
||||
* @property TestClockService $testClocks
|
||||
* @property Treasury\TreasuryServiceFactory $treasury
|
||||
*/
|
||||
class TestHelpersServiceFactory extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = ['customers' => CustomerService::class, 'issuing' => Issuing\IssuingServiceFactory::class, 'refunds' => RefundService::class, 'terminal' => Terminal\TerminalServiceFactory::class, 'testClocks' => TestClockService::class, 'treasury' => Treasury\TreasuryServiceFactory::class];
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
59
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php
vendored
Normal file
59
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
class InboundTransferService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created InboundTransfer to the <code>failed</code>
|
||||
* status. The InboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @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 fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Marks the test mode InboundTransfer object as returned and links the
|
||||
* InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the
|
||||
* <code>succeeded</code> state.
|
||||
*
|
||||
* @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 returnInboundTransfer($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/return', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Transitions a test mode created InboundTransfer to the <code>succeeded</code>
|
||||
* status. The InboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @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 succeed($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/succeed', $id), $params, $opts);
|
||||
}
|
||||
}
|
59
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
vendored
Normal file
59
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
class OutboundPaymentService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>failed</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @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 fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>posted</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @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 post($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/post', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>returned</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @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 returnOutboundPayment($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/return', $id), $params, $opts);
|
||||
}
|
||||
}
|
59
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
vendored
Normal file
59
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
class OutboundTransferService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>failed</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @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 fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>posted</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @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 post($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/post', $id), $params, $opts);
|
||||
}
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>returned</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @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 returnOutboundTransfer($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/return', $id), $params, $opts);
|
||||
}
|
||||
}
|
24
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
vendored
Normal file
24
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
class ReceivedCreditService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Use this endpoint to simulate a test mode ReceivedCredit initiated by a third
|
||||
* party. In live mode, you can’t directly create ReceivedCredits initiated by
|
||||
* third parties.
|
||||
*
|
||||
* @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 create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/treasury/received_credits', $params, $opts);
|
||||
}
|
||||
}
|
24
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
vendored
Normal file
24
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
class ReceivedDebitService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Use this endpoint to simulate a test mode ReceivedDebit initiated by a third
|
||||
* party. In live mode, you can’t directly create ReceivedDebits initiated by third
|
||||
* parties.
|
||||
*
|
||||
* @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 create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/treasury/received_debits', $params, $opts);
|
||||
}
|
||||
}
|
25
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php
vendored
Normal file
25
dependencies/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Treasury namespace.
|
||||
*
|
||||
* @property InboundTransferService $inboundTransfers
|
||||
* @property OutboundPaymentService $outboundPayments
|
||||
* @property OutboundTransferService $outboundTransfers
|
||||
* @property ReceivedCreditService $receivedCredits
|
||||
* @property ReceivedDebitService $receivedDebits
|
||||
*/
|
||||
class TreasuryServiceFactory extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = ['inboundTransfers' => InboundTransferService::class, 'outboundPayments' => OutboundPaymentService::class, 'outboundTransfers' => OutboundTransferService::class, 'receivedCredits' => ReceivedCreditService::class, 'receivedDebits' => ReceivedDebitService::class];
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user