Fix: Corriger le type PDO dans StripeService et retirer getConnection()
This commit is contained in:
29
api/vendor/stripe/stripe-php/lib/Service/Climate/ClimateServiceFactory.php
vendored
Normal file
29
api/vendor/stripe/stripe-php/lib/Service/Climate/ClimateServiceFactory.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Climate;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Climate namespace.
|
||||
*
|
||||
* @property OrderService $orders
|
||||
* @property ProductService $products
|
||||
* @property SupplierService $suppliers
|
||||
*/
|
||||
class ClimateServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'orders' => OrderService::class,
|
||||
'products' => ProductService::class,
|
||||
'suppliers' => SupplierService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
99
api/vendor/stripe/stripe-php/lib/Service/Climate/OrderService.php
vendored
Normal file
99
api/vendor/stripe/stripe-php/lib/Service/Climate/OrderService.php
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Climate;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class OrderService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Lists all Climate order objects. The orders are returned sorted by creation
|
||||
* date, with the most recently created orders appearing first.
|
||||
*
|
||||
* @param null|array{ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Climate\Order>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/climate/orders', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels a Climate order. You can cancel an order within 24 hours of creation.
|
||||
* Stripe refunds the reservation <code>amount_subtotal</code>, but not the
|
||||
* <code>amount_fees</code> for user-triggered cancellations. Frontier might cancel
|
||||
* reservations if suppliers fail to deliver. If Frontier cancels the reservation,
|
||||
* Stripe provides 90 days advance notice and refunds the
|
||||
* <code>amount_total</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Climate\Order
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function cancel($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/climate/orders/%s/cancel', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Climate order object for a given Climate product. The order will be
|
||||
* processed immediately after creation and payment will be deducted your Stripe
|
||||
* balance.
|
||||
*
|
||||
* @param null|array{amount?: int, beneficiary?: array{public_name: string}, currency?: string, expand?: string[], metadata?: array<string, string>, metric_tons?: string, product: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Climate\Order
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/climate/orders', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of a Climate order object with the given ID.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Climate\Order
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/climate/orders/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the specified order by setting the values of the parameters passed.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{beneficiary?: null|array{public_name: null|string}, expand?: string[], metadata?: array<string, string>} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Climate\Order
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/climate/orders/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
44
api/vendor/stripe/stripe-php/lib/Service/Climate/ProductService.php
vendored
Normal file
44
api/vendor/stripe/stripe-php/lib/Service/Climate/ProductService.php
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Climate;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class ProductService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Lists all available Climate product objects.
|
||||
*
|
||||
* @param null|array{ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Climate\Product>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/climate/products', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of a Climate product with the given ID.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Climate\Product
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/climate/products/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
44
api/vendor/stripe/stripe-php/lib/Service/Climate/SupplierService.php
vendored
Normal file
44
api/vendor/stripe/stripe-php/lib/Service/Climate/SupplierService.php
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Climate;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class SupplierService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Lists all available Climate supplier objects.
|
||||
*
|
||||
* @param null|array{ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Climate\Supplier>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/climate/suppliers', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a Climate supplier object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Climate\Supplier
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/climate/suppliers/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user