Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
PHP
<?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);
|
|
}
|