mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
Update Stripe lib to 10.7.0
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Issuing namespace.
|
||||
*
|
||||
* @property CardService $cards
|
||||
*/
|
||||
class IssuingServiceFactory extends \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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user