Files
geo/api/vendor/stripe/stripe-php/lib/StripeClientInterface.php
Pierre 0687900564 fix: Récupérer l'opération active depuis la table operations
- Corrige l'erreur SQL 'Unknown column fk_operation in users'
- L'opération active est récupérée depuis operations.chk_active = 1
- Jointure avec users pour filtrer par entité de l'admin créateur
- Query: SELECT o.id FROM operations o INNER JOIN users u ON u.fk_entite = o.fk_entite WHERE u.id = ? AND o.chk_active = 1
2026-01-26 16:57:08 +01:00

46 lines
1.5 KiB
PHP
Executable File

<?php
namespace Stripe;
/**
* Interface for a Stripe client.
*/
interface StripeClientInterface extends BaseStripeClientInterface
{
/**
* Sends a request to Stripe's API.
*
* @param 'delete'|'get'|'post' $method the HTTP method
* @param string $path the path of the request
* @param array $params the parameters of the request
* @param array|Util\RequestOptions $opts the special modifiers of the request
*
* @return StripeObject the object returned by Stripe's API
*/
public function request($method, $path, $params, $opts);
/**
* Sends a request to Stripe's API and expects to return a SearchResult.
*
* @param 'get' $method the HTTP method
* @param string $path the path of the request
* @param array $params the parameters of the request
* @param array|Util\RequestOptions $opts the special modifiers of the request
*
* @return SearchResult of ApiResources
*/
public function requestSearchResult($method, $path, $params, $opts);
/**
* Sends a request to Stripe's API and expects to return a Collection|V2\Collection.
*
* @param 'get' $method the HTTP method
* @param string $path the path of the request
* @param array $params the parameters of the request
* @param array|Util\RequestOptions $opts the special modifiers of the request
*
* @return Collection|V2\Collection of ApiResources
*/
public function requestCollection($method, $path, $params, $opts);
}