Update Stripe lib to 10.7.0

This commit is contained in:
Laurent Destailleur
2023-04-24 18:42:04 +02:00
parent 06f8291e07
commit 936512d0bb
256 changed files with 8077 additions and 2978 deletions

View File

@@ -7,15 +7,6 @@ namespace Stripe;
*/
abstract class SingletonApiResource extends ApiResource
{
protected static function _singletonRetrieve($options = null)
{
$opts = Util\RequestOptions::parse($options);
$instance = new static(null, $opts);
$instance->refresh();
return $instance;
}
/**
* @return string the endpoint associated with this singleton class
*/
@@ -23,6 +14,8 @@ abstract class SingletonApiResource extends ApiResource
{
// Replace dots with slashes for namespaced resources, e.g. if the object's name is
// "foo.bar", then its URL will be "/v1/foo/bar".
/** @phpstan-ignore-next-line */
$base = \str_replace('.', '/', static::OBJECT_NAME);
return "/v1/{$base}";