mirror of
https://github.com/itflow-org/itflow
synced 2026-03-26 23:35:39 +00:00
Bump plugin stripe-php from 10.5.0 to 16.4.0 and update links
This commit is contained in:
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class AuthorizationService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Capture a test-mode authorization.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\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|RequestOptionsArray|\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|RequestOptionsArray|\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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finalize the amount on an Authorization prior to capture, when the initial
|
||||
* authorization was for an estimated amount.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*/
|
||||
public function finalizeAmount($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/finalize_amount', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Increment a test-mode Authorization.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Respond to a fraud challenge on a testmode Issuing authorization, simulating
|
||||
* either a confirmation of fraud or a correction of legitimacy.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*/
|
||||
public function respond($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse a test-mode Authorization.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
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|RequestOptionsArray|\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|RequestOptionsArray|\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|RequestOptionsArray|\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|RequestOptionsArray|\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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>submitted</code>. This method requires Stripe Version ‘2024-09-30.acacia’
|
||||
* or later.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*/
|
||||
public function submitCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/submit', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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 PersonalizationDesignService $personalizationDesigns
|
||||
* @property TransactionService $transactions
|
||||
*/
|
||||
class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'authorizations' => AuthorizationService::class,
|
||||
'cards' => CardService::class,
|
||||
'personalizationDesigns' => PersonalizationDesignService::class,
|
||||
'transactions' => TransactionService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class PersonalizationDesignService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Updates the <code>status</code> of the specified testmode personalization design
|
||||
* object to <code>active</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\PersonalizationDesign
|
||||
*/
|
||||
public function activate($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/personalization_designs/%s/activate', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the <code>status</code> of the specified testmode personalization design
|
||||
* object to <code>inactive</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\PersonalizationDesign
|
||||
*/
|
||||
public function deactivate($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/personalization_designs/%s/deactivate', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the <code>status</code> of the specified testmode personalization design
|
||||
* object to <code>rejected</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Issuing\PersonalizationDesign
|
||||
*/
|
||||
public function reject($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/personalization_designs/%s/reject', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
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|RequestOptionsArray|\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|RequestOptionsArray|\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|RequestOptionsArray|\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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user