Файловый менеджер - Редактировать - /home/lakoyani/lakoyani.com.fj/TestHelpers.tar
Назад
TestClock.php 0000777 00000004221 14711035413 0007155 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\TestHelpers; /** * A test clock enables deterministic control over objects in testmode. With a test clock, you can create * objects at a frozen time in the past or future, and advance to a specific future time to observe webhooks and state changes. After the clock advances, * you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time. * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property int $deletes_after Time at which this clock is scheduled to auto delete. * @property int $frozen_time Time at which all objects belonging to this clock are frozen. * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. * @property null|string $name The custom name supplied at creation. * @property string $status The status of the Test Clock. */ class TestClock extends \Stripe\ApiResource { const OBJECT_NAME = 'test_helpers.test_clock'; use \Stripe\ApiOperations\All; use \Stripe\ApiOperations\Create; use \Stripe\ApiOperations\Delete; use \Stripe\ApiOperations\Retrieve; const STATUS_ADVANCING = 'advancing'; const STATUS_INTERNAL_FAILURE = 'internal_failure'; const STATUS_READY = 'ready'; /** * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\TestHelpers\TestClock the advanced test clock */ public function advance($params = null, $opts = null) { $url = $this->instanceUrl() . '/advance'; list($response, $opts) = $this->_request('post', $url, $params, $opts); $this->refreshFrom($response, $opts); return $this; } } RefundService.php 0000777 00000001233 14711054302 0010024 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers; class RefundService extends \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); } } Treasury/ReceivedCreditService.php 0000777 00000001412 14711054302 0013277 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Treasury; class ReceivedCreditService extends \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); } } Treasury/InboundTransferService.php 0000777 00000004217 14711054302 0013527 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Treasury; class InboundTransferService extends \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); } } Treasury/ReceivedDebitService.php 0000777 00000001405 14711054302 0013116 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Treasury; class ReceivedDebitService extends \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); } } Treasury/TreasuryServiceFactory.php 0000777 00000002047 14711054302 0013571 0 ustar 00 <?php // File generated from our OpenAPI spec namespace 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 \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; } } Treasury/OutboundPaymentService.php 0000777 00000004163 14711054302 0013561 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Treasury; class OutboundPaymentService extends \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); } } Treasury/OutboundTransferService.php 0000777 00000004201 14711054302 0013721 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Treasury; class OutboundTransferService extends \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); } } TestHelpersServiceFactory.php 0000777 00000002107 14711054302 0012374 0 ustar 00 <?php // File generated from our OpenAPI spec namespace 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 \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; } } CustomerService.php 0000777 00000001267 14711054302 0010411 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers; class CustomerService extends \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); } } Issuing/TransactionService.php 0000777 00000003313 14711054302 0012510 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Issuing; class TransactionService extends \Stripe\Service\AbstractService { /** * Allows the user to capture an arbitrary amount, also known as a forced capture. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Issuing\Transaction */ public function createForceCapture($params = null, $opts = null) { return $this->request('post', '/v1/test_helpers/issuing/transactions/create_force_capture', $params, $opts); } /** * Allows the user to refund an arbitrary amount, also known as a unlinked refund. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Issuing\Transaction */ public function createUnlinkedRefund($params = null, $opts = null) { return $this->request('post', '/v1/test_helpers/issuing/transactions/create_unlinked_refund', $params, $opts); } /** * Refund a test-mode 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\Issuing\Transaction */ public function refund($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/transactions/%s/refund', $id), $params, $opts); } } Issuing/IssuingServiceFactory.php 0000777 00000001402 14711054302 0013171 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Issuing; /** * Service factory class for API resources in the Issuing namespace. * * @property AuthorizationService $authorizations * @property CardService $cards * @property TransactionService $transactions */ class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory { /** * @var array<string, string> */ private static $classMap = [ 'authorizations' => AuthorizationService::class, 'cards' => CardService::class, 'transactions' => TransactionService::class, ]; protected function getServiceClass($name) { return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; } } Issuing/AuthorizationService.php 0000777 00000005223 14711054302 0013065 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Issuing; class AuthorizationService extends \Stripe\Service\AbstractService { /** * Capture a test-mode authorization. * * @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\Authorization */ public function capture($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/capture', $id), $params, $opts); } /** * Create a test-mode authorization. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Issuing\Authorization */ public function create($params = null, $opts = null) { return $this->request('post', '/v1/test_helpers/issuing/authorizations', $params, $opts); } /** * Expire a test-mode Authorization. * * @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\Authorization */ public function expire($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/expire', $id), $params, $opts); } /** * Increment a test-mode Authorization. * * @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\Authorization */ public function increment($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/increment', $id), $params, $opts); } /** * Reverse a test-mode Authorization. * * @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\Authorization */ public function reverse($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/reverse', $id), $params, $opts); } } Issuing/CardService.php 0000777 00000004715 14711054302 0011103 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Issuing; class CardService extends \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); } } Terminal/TerminalServiceFactory.php 0000777 00000001077 14711054302 0013465 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Terminal; /** * Service factory class for API resources in the Terminal namespace. * * @property ReaderService $readers */ class TerminalServiceFactory extends \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; } } Terminal/ReaderService.php 0000777 00000001444 14711054302 0011562 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers\Terminal; class ReaderService extends \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); } } TestClockService.php 0000777 00000005215 14711054302 0010500 0 ustar 00 <?php // File generated from our OpenAPI spec namespace Stripe\Service\TestHelpers; class TestClockService extends \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); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка