mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -12,15 +12,16 @@ namespace Stripe;
|
||||
*
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property \Stripe\StripeObject $amazon_pay Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property \Stripe\StripeObject $apple_pay Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $amazon_pay Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $apple_pay Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @property string $domain_name The domain name that this payment method domain object represents.
|
||||
* @property bool $enabled Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
|
||||
* @property \Stripe\StripeObject $google_pay Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property \Stripe\StripeObject $link Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $google_pay Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $klarna Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $link Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
|
||||
* @property \Stripe\StripeObject $paypal Indicates the status of a specific payment method on a payment method domain.
|
||||
* @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $paypal Indicates the status of a specific payment method on a payment method domain.
|
||||
*/
|
||||
class PaymentMethodDomain extends ApiResource
|
||||
{
|
||||
@@ -31,12 +32,12 @@ class PaymentMethodDomain extends ApiResource
|
||||
/**
|
||||
* Creates a payment method domain.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{domain_name: string, enabled?: bool, expand?: string[]} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return PaymentMethodDomain the created resource
|
||||
*
|
||||
* @return \Stripe\PaymentMethodDomain the created resource
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -44,7 +45,7 @@ class PaymentMethodDomain extends ApiResource
|
||||
$url = static::classUrl();
|
||||
|
||||
list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
|
||||
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
|
||||
$obj = Util\Util::convertToStripeObject($response->json, $opts);
|
||||
$obj->setLastResponse($response);
|
||||
|
||||
return $obj;
|
||||
@@ -53,18 +54,18 @@ class PaymentMethodDomain extends ApiResource
|
||||
/**
|
||||
* Lists the details of existing payment method domains.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{domain_name?: string, enabled?: bool, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Collection<PaymentMethodDomain> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\PaymentMethodDomain> of ApiResources
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
$url = static::classUrl();
|
||||
|
||||
return static::_requestPage($url, \Stripe\Collection::class, $params, $opts);
|
||||
return static::_requestPage($url, Collection::class, $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,13 +74,13 @@ class PaymentMethodDomain extends ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return PaymentMethodDomain
|
||||
*
|
||||
* @return \Stripe\PaymentMethodDomain
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
$opts = \Stripe\Util\RequestOptions::parse($opts);
|
||||
$opts = Util\RequestOptions::parse($opts);
|
||||
$instance = new static($id, $opts);
|
||||
$instance->refresh();
|
||||
|
||||
@@ -90,12 +91,12 @@ class PaymentMethodDomain extends ApiResource
|
||||
* Updates an existing payment method domain.
|
||||
*
|
||||
* @param string $id the ID of the resource to update
|
||||
* @param null|array $params
|
||||
* @param null|array{enabled?: bool, expand?: string[]} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return PaymentMethodDomain the updated resource
|
||||
*
|
||||
* @return \Stripe\PaymentMethodDomain the updated resource
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function update($id, $params = null, $opts = null)
|
||||
{
|
||||
@@ -103,7 +104,7 @@ class PaymentMethodDomain extends ApiResource
|
||||
$url = static::resourceUrl($id);
|
||||
|
||||
list($response, $opts) = static::_staticRequest('post', $url, $params, $opts);
|
||||
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
|
||||
$obj = Util\Util::convertToStripeObject($response->json, $opts);
|
||||
$obj->setLastResponse($response);
|
||||
|
||||
return $obj;
|
||||
@@ -113,9 +114,9 @@ class PaymentMethodDomain extends ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return PaymentMethodDomain the validated payment method domain
|
||||
*
|
||||
* @return \Stripe\PaymentMethodDomain the validated payment method domain
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function validate($params = null, $opts = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user