diff --git a/admin/survey/SurveyAdmin.php b/admin/survey/SurveyAdmin.php index c49c0f7ae..14e3bacd9 100644 --- a/admin/survey/SurveyAdmin.php +++ b/admin/survey/SurveyAdmin.php @@ -897,16 +897,18 @@ class SurveyAdmin echo '
\$_SERVER['SUBDOMAIN_DOCUMENT_ROOT'] is set. " . "You may need to set \$min_documentRoot to this in config.php
"; } - + } -//*/ \ No newline at end of file +//*/ diff --git a/admin/survey/minify/composer.json b/admin/survey/minify/composer.json index 651f1f880..2fb1af242 100644 --- a/admin/survey/minify/composer.json +++ b/admin/survey/minify/composer.json @@ -1,7 +1,7 @@ { "name": "mrclay/minify", "type": "library", - "description": "Minify is a PHP5 app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers", + "description": "Minify is a PHP app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers", "homepage": "https://github.com/mrclay/minify", "license": "BSD-3-Clause", "authors": [ @@ -22,26 +22,31 @@ "autoload-dev": { "psr-4": {"Minify\\Test\\": "tests/"} }, + "config": { + "platform": { + "php": "5.3.29" + }, + "sort-packages": true + }, "require": { + "php": "^5.3.0 || ^7.0 || ^8.0", "ext-pcre": "*", - "intervention/httpauth": "~2.0", - "monolog/monolog": "~1.1", + "intervention/httpauth": "^2.0|^3.0", + "marcusschwarz/lesserphp": "^0.5.1", + "monolog/monolog": "~1.1|~2.0", "mrclay/jsmin-php": "~2", - "mrclay/props-dic": "^2.2", - "php": "^5.3.0 || ^7.0", + "mrclay/props-dic": "^2.2|^3.0", "tubalmartin/cssmin": "~4" }, "require-dev": { "firephp/firephp-core": "~0.4.0", "leafo/scssphp": "^0.3 || ^0.6 || ^0.7", - "marcusschwarz/lesserphp": "~0.5.1", "meenie/javascript-packer": "~1.1", "phpunit/phpunit": "^4.8.36", "tedivm/jshrink": "~1.1.0" }, "suggest": { "firephp/firephp-core": "Use FirePHP for Log messages", - "marcusschwarz/lesserphp": "LESS support", "meenie/javascript-packer": "Keep track of the Packer PHP port using Composer" }, "scripts": { diff --git a/admin/survey/minify/config-test.php b/admin/survey/minify/config-test.php index 7524a3d11..8b903a549 100644 --- a/admin/survey/minify/config-test.php +++ b/admin/survey/minify/config-test.php @@ -4,7 +4,6 @@ * * To test config options, place them in this file and add "&test" to your Minify URL. * Note that if this is on a public server, anyone can execute your test. - * + * * @package Minify */ - diff --git a/admin/survey/minify/index.php b/admin/survey/minify/index.php index 7b58bcc7e..e3fea30c1 100644 --- a/admin/survey/minify/index.php +++ b/admin/survey/minify/index.php @@ -1,9 +1,9 @@ _stripEtag = true; - $this->_headers['Vary'] = 'Accept-Encoding'; if ('' !== $spec['encoding']) { + $this->_headers['Vary'] = 'Accept-Encoding'; if (0 === strpos($spec['encoding'], 'x-')) { $spec['encoding'] = substr($spec['encoding'], 2); } @@ -317,7 +317,7 @@ class HTTP_ConditionalGet if (!isset($_SERVER['HTTP_IF_NONE_MATCH'])) { return false; } - $clientEtagList = get_magic_quotes_gpc() + $clientEtagList = PHP_VERSION_ID < 50400 && get_magic_quotes_gpc() ? stripslashes($_SERVER['HTTP_IF_NONE_MATCH']) : $_SERVER['HTTP_IF_NONE_MATCH']; $clientEtags = explode(',', $clientEtagList); diff --git a/admin/survey/minify/lib/HTTP/Encoder.php b/admin/survey/minify/lib/HTTP/Encoder.php index 3bd788cc7..46de1b688 100644 --- a/admin/survey/minify/lib/HTTP/Encoder.php +++ b/admin/survey/minify/lib/HTTP/Encoder.php @@ -204,9 +204,10 @@ class HTTP_Encoder } // gzip checks (slow) if (preg_match( - '@(?:^|,)\\s*((?:x-)?gzip)\\s*(?:$|,|;\\s*q=(?:0\\.|1))@' - ,$ae - ,$m)) { + '@(?:^|,)\\s*((?:x-)?gzip)\\s*(?:$|,|;\\s*q=(?:0\\.|1))@', + $ae, + $m + )) { return array('gzip', $m[1]); } if ($allowDeflate) { @@ -217,14 +218,17 @@ class HTTP_Encoder || 0 === strpos($ae, 'deflate,') // opera // slow parsing || preg_match( - '@(?:^|,)\\s*deflate\\s*(?:$|,|;\\s*q=(?:0\\.|1))@', $ae)) { + '@(?:^|,)\\s*deflate\\s*(?:$|,|;\\s*q=(?:0\\.|1))@', + $ae + )) { return array('deflate', 'deflate'); } } if ($allowCompress && preg_match( - '@(?:^|,)\\s*((?:x-)?compress)\\s*(?:$|,|;\\s*q=(?:0\\.|1))@' - ,$ae - ,$m)) { + '@(?:^|,)\\s*((?:x-)?compress)\\s*(?:$|,|;\\s*q=(?:0\\.|1))@', + $ae, + $m + )) { return array('compress', $m[1]); } diff --git a/admin/survey/minify/lib/Minify.php b/admin/survey/minify/lib/Minify.php index c41871dd3..d0aafda30 100644 --- a/admin/survey/minify/lib/Minify.php +++ b/admin/survey/minify/lib/Minify.php @@ -242,7 +242,7 @@ class Minify if (! $this->options['quiet']) { $this->errorExit($this->options['badRequestHeader'], self::URL_DEBUG); } else { - list(,$statusCode) = explode(' ', $this->options['badRequestHeader']); + list(, $statusCode) = explode(' ', $this->options['badRequestHeader']); return array( 'success' => false, @@ -470,7 +470,7 @@ class Minify public function errorExit($header, $url = '', $msgHtml = '') { $url = htmlspecialchars($url, ENT_QUOTES); - list(,$h1) = explode(' ', $header, 2); + list(, $h1) = explode(' ', $header, 2); $h1 = htmlspecialchars($h1); // FastCGI environments require 3rd arg to header() to be set list(, $code) = explode(' ', $header, 3); @@ -593,7 +593,8 @@ class Minify ! $source // yes, we ran out of sources || $type === self::TYPE_CSS // yes, to process CSS individually (avoiding PCRE bugs/limits) || $minifier !== $lastMinifier // yes, minifier changed - || $options !== $lastOptions)) { // yes, options changed + || $options !== $lastOptions // yes, options changed + )) { // minify previous sources with last settings $imploded = implode($implodeSeparator, $groupToProcessTogether); $groupToProcessTogether = array(); diff --git a/admin/survey/minify/lib/Minify/App.php b/admin/survey/minify/lib/Minify/App.php index 271444110..4ed15a60d 100644 --- a/admin/survey/minify/lib/Minify/App.php +++ b/admin/survey/minify/lib/Minify/App.php @@ -80,6 +80,12 @@ class App extends Container }; $varNames = array_map($prefixer, $propNames); + $varDefined = get_defined_vars(); + + $varNames = array_filter($varNames, function ($name) use ($varDefined) { + return array_key_exists($name, $varDefined); + }); + $vars = compact($varNames); foreach ($varNames as $varName) { diff --git a/admin/survey/minify/lib/Minify/CSSmin.php b/admin/survey/minify/lib/Minify/CSSmin.php index 753c51091..0003f735e 100644 --- a/admin/survey/minify/lib/Minify/CSSmin.php +++ b/admin/survey/minify/lib/Minify/CSSmin.php @@ -73,16 +73,16 @@ class Minify_CSSmin } if ($options['currentDir']) { return Minify_CSS_UriRewriter::rewrite( - $css - ,$options['currentDir'] - ,$options['docRoot'] - ,$options['symlinks'] + $css, + $options['currentDir'], + $options['docRoot'], + $options['symlinks'] ); } return Minify_CSS_UriRewriter::prepend( - $css - ,$options['prependRelativePath'] + $css, + $options['prependRelativePath'] ); } } diff --git a/admin/survey/minify/lib/Minify/Cache/Null.php b/admin/survey/minify/lib/Minify/Cache/Null.php index 4f654a6cd..165043ee3 100644 --- a/admin/survey/minify/lib/Minify/Cache/Null.php +++ b/admin/survey/minify/lib/Minify/Cache/Null.php @@ -64,4 +64,4 @@ class Minify_Cache_Null implements Minify_CacheInterface public function fetch($id) { } -} \ No newline at end of file +} diff --git a/admin/survey/minify/lib/Minify/Cache/WinCache.php b/admin/survey/minify/lib/Minify/Cache/WinCache.php index 46e285a72..3dd1c40f8 100644 --- a/admin/survey/minify/lib/Minify/Cache/WinCache.php +++ b/admin/survey/minify/lib/Minify/Cache/WinCache.php @@ -136,4 +136,4 @@ class Minify_Cache_WinCache implements Minify_CacheInterface return true; } -} \ No newline at end of file +} diff --git a/admin/survey/minify/lib/Minify/Controller/Files.php b/admin/survey/minify/lib/Minify/Controller/Files.php index 85a76d0eb..7d517f4df 100644 --- a/admin/survey/minify/lib/Minify/Controller/Files.php +++ b/admin/survey/minify/lib/Minify/Controller/Files.php @@ -68,4 +68,3 @@ class Minify_Controller_Files extends Minify_Controller_Base return new Minify_ServeConfiguration($options, $sources); } } - diff --git a/admin/survey/minify/lib/Minify/Controller/Groups.php b/admin/survey/minify/lib/Minify/Controller/Groups.php index af8af336d..d3813f2cd 100644 --- a/admin/survey/minify/lib/Minify/Controller/Groups.php +++ b/admin/survey/minify/lib/Minify/Controller/Groups.php @@ -73,4 +73,3 @@ class Minify_Controller_Groups extends Minify_Controller_Files return parent::createConfiguration($options); } } - diff --git a/admin/survey/minify/lib/Minify/Controller/Page.php b/admin/survey/minify/lib/Minify/Controller/Page.php index 7001fe0ef..ca2778c91 100644 --- a/admin/survey/minify/lib/Minify/Controller/Page.php +++ b/admin/survey/minify/lib/Minify/Controller/Page.php @@ -66,4 +66,3 @@ class Minify_Controller_Page extends Minify_Controller_Base return new Minify_ServeConfiguration($options, $sources, $selectionId); } } - diff --git a/admin/survey/minify/lib/Minify/ControllerInterface.php b/admin/survey/minify/lib/Minify/ControllerInterface.php index 35b4de3f4..1527ff6c8 100644 --- a/admin/survey/minify/lib/Minify/ControllerInterface.php +++ b/admin/survey/minify/lib/Minify/ControllerInterface.php @@ -19,4 +19,4 @@ interface Minify_ControllerInterface * @return Minify_Env */ public function getEnv(); -} \ No newline at end of file +} diff --git a/admin/survey/minify/lib/Minify/HTML.php b/admin/survey/minify/lib/Minify/HTML.php index df648e12f..ef98b3866 100644 --- a/admin/survey/minify/lib/Minify/HTML.php +++ b/admin/survey/minify/lib/Minify/HTML.php @@ -99,32 +99,34 @@ class Minify_HTML // replace SCRIPTs (and minify) with placeholders $this->_html = preg_replace_callback( - '/(\\s*){$ws2}" : "{$ws1}{$openScript}{$js}{$ws2}" ); diff --git a/admin/survey/minify/lib/Minify/ImportProcessor.php b/admin/survey/minify/lib/Minify/ImportProcessor.php index 85d9ff51e..00e413b31 100644 --- a/admin/survey/minify/lib/Minify/ImportProcessor.php +++ b/admin/survey/minify/lib/Minify/ImportProcessor.php @@ -66,7 +66,7 @@ class Minify_ImportProcessor $this->_currentDir = dirname($file); // remove UTF-8 BOM if present - if (pack("CCC",0xef,0xbb,0xbf) === substr($content, 0, 3)) { + if (pack("CCC", 0xef, 0xbb, 0xbf) === substr($content, 0, 3)) { $content = substr($content, 3); } // ensure uniform EOLs @@ -182,7 +182,7 @@ class Minify_ImportProcessor private function truepath($path) { // whether $path is unix or not - $unipath = ('' === $path) || ($path{0} !== '/'); + $unipath = ('' === $path) || ($path[0] !== '/'); // attempts to detect if path is relative in which case, add cwd if (strpos($path, ':') === false && $unipath) { diff --git a/admin/survey/minify/lib/Minify/JS/ClosureCompiler.php b/admin/survey/minify/lib/Minify/JS/ClosureCompiler.php index b84262208..191903518 100644 --- a/admin/survey/minify/lib/Minify/JS/ClosureCompiler.php +++ b/admin/survey/minify/lib/Minify/JS/ClosureCompiler.php @@ -195,13 +195,13 @@ class Minify_JS_ClosureCompiler curl_close($ch); } else { throw new Minify_JS_ClosureCompiler_Exception( - "Could not make HTTP request: allow_url_open is false and cURL not available" + "Could not make HTTP request: allow_url_open is false and cURL not available" ); } if (false === $contents) { throw new Minify_JS_ClosureCompiler_Exception( - "No HTTP response from server" + "No HTTP response from server" ); } diff --git a/admin/survey/minify/lib/Minify/NailgunClosureCompiler.php b/admin/survey/minify/lib/Minify/NailgunClosureCompiler.php index bdc49da8c..8ce45200c 100644 --- a/admin/survey/minify/lib/Minify/NailgunClosureCompiler.php +++ b/admin/survey/minify/lib/Minify/NailgunClosureCompiler.php @@ -110,4 +110,4 @@ class Minify_NailgunClosureCompiler extends Minify_ClosureCompiler $this->shell("$serverCommand /dev/null 2>/dev/null & sleep 10"); } -} \ No newline at end of file +} diff --git a/admin/survey/minify/lib/Minify/Source/Factory.php b/admin/survey/minify/lib/Minify/Source/Factory.php index f36d1b25c..3e6e378c0 100644 --- a/admin/survey/minify/lib/Minify/Source/Factory.php +++ b/admin/survey/minify/lib/Minify/Source/Factory.php @@ -170,7 +170,7 @@ class Minify_Source_Factory if ($this->options['noMinPattern'] && preg_match($this->options['noMinPattern'], $basename)) { if (preg_match('~\.(css|less)$~i', $basename)) { $spec['minifyOptions']['compress'] = false; - // we still want URI rewriting to work for CSS + // we still want URI rewriting to work for CSS } else { $spec['minifier'] = 'Minify::nullMinifier'; } diff --git a/admin/survey/minify/lib/Minify/YUICompressor.php b/admin/survey/minify/lib/Minify/YUICompressor.php index a45f57230..47723fc93 100644 --- a/admin/survey/minify/lib/Minify/YUICompressor.php +++ b/admin/survey/minify/lib/Minify/YUICompressor.php @@ -154,4 +154,3 @@ class Minify_YUICompressor } } } - diff --git a/admin/survey/minify/lib/MrClay/Cli.php b/admin/survey/minify/lib/MrClay/Cli.php index e9ef3b3bc..fc736abe2 100644 --- a/admin/survey/minify/lib/MrClay/Cli.php +++ b/admin/survey/minify/lib/MrClay/Cli.php @@ -390,4 +390,3 @@ class Cli $this->errors[$letter][] = sprintf($msg, $value); } } - diff --git a/admin/survey/minify/phpunit.xml b/admin/survey/minify/phpunit.xml index b6c77a566..3c54e248b 100644 --- a/admin/survey/minify/phpunit.xml +++ b/admin/survey/minify/phpunit.xml @@ -1,6 +1,6 @@ - +This is an object representing a person associated with a Stripe account.
A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps.
Related guide: Handling Identity Verification with the API.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property bool $payouts_enabled Whether Stripe can send payouts to this account. @@ -263,7 +264,6 @@ class Account extends ApiResource { return self::_updateNestedResource($id, static::PATH_CAPABILITIES, $capabilityId, $params, $opts); } - const PATH_EXTERNAL_ACCOUNTS = '/external_accounts'; /** @@ -338,7 +338,6 @@ class Account extends ApiResource { return self::_updateNestedResource($id, static::PATH_EXTERNAL_ACCOUNTS, $externalAccountId, $params, $opts); } - const PATH_LOGIN_LINKS = '/login_links'; /** @@ -354,7 +353,6 @@ class Account extends ApiResource { return self::_createNestedResource($id, static::PATH_LOGIN_LINKS, $params, $opts); } - const PATH_PERSONS = '/persons'; /** diff --git a/vendor/stripe/stripe-php/lib/ApiOperations/Request.php b/vendor/stripe/stripe-php/lib/ApiOperations/Request.php index 24c374156..a60ca796a 100644 --- a/vendor/stripe/stripe-php/lib/ApiOperations/Request.php +++ b/vendor/stripe/stripe-php/lib/ApiOperations/Request.php @@ -53,8 +53,6 @@ trait Request * @param null|array|string $options * * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return array tuple containing (the JSON response, $options) */ protected function _requestStream($method, $url, $readBodyChunk, $params = [], $options = null) { diff --git a/vendor/stripe/stripe-php/lib/ApiRequestor.php b/vendor/stripe/stripe-php/lib/ApiRequestor.php index 587cd46ef..b2fa19237 100644 --- a/vendor/stripe/stripe-php/lib/ApiRequestor.php +++ b/vendor/stripe/stripe-php/lib/ApiRequestor.php @@ -135,8 +135,6 @@ class ApiRequestor * @param null|array $headers * * @throws Exception\ApiErrorException - * - * @return array tuple containing (ApiReponse, API key) */ public function requestStream($method, $url, $readBodyChunkCallable, $params = null, $headers = null) { @@ -461,7 +459,7 @@ class ApiRequestor if (isset($rheaders['request-id']) && \is_string($rheaders['request-id']) - && \strlen($rheaders['request-id']) > 0) { + && '' !== $rheaders['request-id']) { self::$requestTelemetry = new RequestTelemetry( $rheaders['request-id'], Util\Util::currentTimeMillis() - $requestStartMs @@ -501,7 +499,7 @@ class ApiRequestor if (isset($rheaders['request-id']) && \is_string($rheaders['request-id']) - && \strlen($rheaders['request-id']) > 0) { + && '' !== $rheaders['request-id']) { self::$requestTelemetry = new RequestTelemetry( $rheaders['request-id'], Util\Util::currentTimeMillis() - $requestStartMs diff --git a/vendor/stripe/stripe-php/lib/ApiResource.php b/vendor/stripe/stripe-php/lib/ApiResource.php index 521010b3f..25c6b84a0 100644 --- a/vendor/stripe/stripe-php/lib/ApiResource.php +++ b/vendor/stripe/stripe-php/lib/ApiResource.php @@ -82,6 +82,8 @@ abstract class ApiResource extends StripeObject { // Replace dots with slashes for namespaced resources, e.g. if the object's name is // "foo.bar", then its URL will be "/v1/foo/bars". + + /** @phpstan-ignore-next-line */ $base = \str_replace('.', '/', static::OBJECT_NAME); return "/v1/{$base}s"; diff --git a/vendor/stripe/stripe-php/lib/BillingPortal/Session.php b/vendor/stripe/stripe-php/lib/BillingPortal/Session.php index d41335132..5cec9a400 100644 --- a/vendor/stripe/stripe-php/lib/BillingPortal/Session.php +++ b/vendor/stripe/stripe-php/lib/BillingPortal/Session.php @@ -19,8 +19,6 @@ namespace Stripe\BillingPortal; * billing details. * * Learn more in the product - * overview and integration * guide. * diff --git a/vendor/stripe/stripe-php/lib/Capability.php b/vendor/stripe/stripe-php/lib/Capability.php index 3580df60b..f675d719f 100644 --- a/vendor/stripe/stripe-php/lib/Capability.php +++ b/vendor/stripe/stripe-php/lib/Capability.php @@ -14,6 +14,7 @@ namespace Stripe; * @property string $id The identifier for the capability. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property string|\Stripe\Account $account The account for which the capability enables functionality. + * @property \Stripe\StripeObject $future_requirements * @property bool $requested Whether the capability has been requested. * @property null|int $requested_at Time at which the capability was requested. Measured in seconds since the Unix epoch. * @property \Stripe\StripeObject $requirements diff --git a/vendor/stripe/stripe-php/lib/Checkout/Session.php b/vendor/stripe/stripe-php/lib/Checkout/Session.php index e339bb537..9601dd8d4 100644 --- a/vendor/stripe/stripe-php/lib/Checkout/Session.php +++ b/vendor/stripe/stripe-php/lib/Checkout/Session.php @@ -7,8 +7,9 @@ namespace Stripe\Checkout; /** * A Checkout Session represents your customer's session as they pay for one-time * purchases or subscriptions through Checkout. We recommend - * creating a new Session each time your customer attempts to pay. + * href="https://stripe.com/docs/payments/checkout">CheckoutredirectToCheckout
in Stripe.js.
* @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $after_expiration When set, provides configuration for actions to take if this Checkout Session expires.
* @property null|bool $allow_promotion_codes Enables user redeemable promotion codes.
* @property null|int $amount_subtotal Total of all items before discounts or taxes are applied.
* @property null|int $amount_total Total of all items after discounts and taxes are applied.
@@ -31,10 +33,13 @@ namespace Stripe\Checkout;
* @property null|string $billing_address_collection Describes whether Checkout should collect the customer's billing address.
* @property string $cancel_url The URL the customer will be directed to if they decide to cancel payment and return to your website.
* @property null|string $client_reference_id A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the Session with your internal systems.
+ * @property null|\Stripe\StripeObject $consent Results of consent_collection
for this session.
+ * @property null|\Stripe\StripeObject $consent_collection When set, provides configuration for the Checkout Session to gather active consent from customers.
* @property null|string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
* @property null|string|\Stripe\Customer $customer The ID of the customer for this Session. For Checkout Sessions in payment
or subscription
mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.
* @property null|\Stripe\StripeObject $customer_details The customer details including the customer's tax exempt status and the customer's tax IDs. Only present on Sessions in payment
or subscription
mode.
* @property null|string $customer_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once the payment flow is complete, use the customer
attribute.
+ * @property int $expires_at The timestamp at which the Checkout Session will expire.
* @property \Stripe\Collection $line_items The line items purchased by the customer.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|string $locale The IETF language tag of the locale Checkout is displayed in. If blank or auto
, the browser's locale is used.
@@ -44,9 +49,14 @@ namespace Stripe\Checkout;
* @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
* @property string[] $payment_method_types A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept.
* @property string $payment_status The payment status of the Checkout Session, one of paid
, unpaid
, or no_payment_required
. You can use this value to decide when to fulfill your customer's order.
+ * @property \Stripe\StripeObject $phone_number_collection
+ * @property null|string $recovered_from The ID of the original expired Checkout Session that triggered the recovery flow.
* @property null|string|\Stripe\SetupIntent $setup_intent The ID of the SetupIntent for Checkout Sessions in setup
mode.
* @property null|\Stripe\StripeObject $shipping Shipping information for this Checkout Session.
* @property null|\Stripe\StripeObject $shipping_address_collection When set, provides configuration for Checkout to collect a shipping address from a customer.
+ * @property \Stripe\StripeObject[] $shipping_options The shipping rate options applied to this Session.
+ * @property null|string|\Stripe\ShippingRate $shipping_rate The ID of the ShippingRate for Checkout Sessions in payment
mode.
+ * @property null|string $status The status of the Checkout Session, one of open
, complete
, or expired
.
* @property null|string $submit_type Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. submit_type
can only be specified on Checkout Sessions in payment
mode, but not Checkout Sessions in subscription
or setup
mode.
* @property null|string|\Stripe\Subscription $subscription The ID of the subscription for Checkout Sessions in subscription
mode.
* @property string $success_url The URL the customer will be directed to after the payment or subscription creation is successful.
@@ -74,11 +84,32 @@ class Session extends \Stripe\ApiResource
const PAYMENT_STATUS_PAID = 'paid';
const PAYMENT_STATUS_UNPAID = 'unpaid';
+ const STATUS_COMPLETE = 'complete';
+ const STATUS_EXPIRED = 'expired';
+ const STATUS_OPEN = 'open';
+
const SUBMIT_TYPE_AUTO = 'auto';
const SUBMIT_TYPE_BOOK = 'book';
const SUBMIT_TYPE_DONATE = 'donate';
const SUBMIT_TYPE_PAY = 'pay';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Session the expired session
+ */
+ public function expire($params = null, $opts = null)
+ {
+ $url = $this->instanceUrl() . '/expire';
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
+ $this->refreshFrom($response, $opts);
+
+ return $this;
+ }
+
const PATH_LINE_ITEMS = '/line_items';
/**
diff --git a/vendor/stripe/stripe-php/lib/Collection.php b/vendor/stripe/stripe-php/lib/Collection.php
index 899299d3d..294ea9ddf 100644
--- a/vendor/stripe/stripe-php/lib/Collection.php
+++ b/vendor/stripe/stripe-php/lib/Collection.php
@@ -47,6 +47,7 @@ class Collection extends StripeObject implements \Countable, \IteratorAggregate
$this->filters = $filters;
}
+ #[\ReturnTypeWillChange]
public function offsetGet($k)
{
if (\is_string($k)) {
@@ -107,6 +108,7 @@ class Collection extends StripeObject implements \Countable, \IteratorAggregate
/**
* @return int the number of objects in the current page
*/
+ #[\ReturnTypeWillChange]
public function count()
{
return \count($this->data);
@@ -116,6 +118,7 @@ class Collection extends StripeObject implements \Countable, \IteratorAggregate
* @return \ArrayIterator an iterator that can be used to iterate
* across objects in the current page
*/
+ #[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->data);
diff --git a/vendor/stripe/stripe-php/lib/Customer.php b/vendor/stripe/stripe-php/lib/Customer.php
index 6cc983a72..c1b6ad72e 100644
--- a/vendor/stripe/stripe-php/lib/Customer.php
+++ b/vendor/stripe/stripe-php/lib/Customer.php
@@ -78,6 +78,27 @@ class Customer extends ApiResource
$url = $this->instanceUrl() . '/discount';
list($response, $opts) = $this->_request('delete', $url, $params, $opts);
$this->refreshFrom(['discount' => null], $opts, true);
+
+ return $this;
+ }
+
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ * @param mixed $id
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection list of PaymentMethods
+ */
+ public static function allPaymentMethods($id, $params = null, $opts = null)
+ {
+ $url = static::resourceUrl($id) . '/payment_methods';
+ list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
+ $obj->setLastResponse($response);
+
+ return $obj;
}
const PATH_BALANCE_TRANSACTIONS = '/balance_transactions';
@@ -139,7 +160,6 @@ class Customer extends ApiResource
{
return self::_updateNestedResource($id, static::PATH_BALANCE_TRANSACTIONS, $balanceTransactionId, $params, $opts);
}
-
const PATH_SOURCES = '/sources';
/**
@@ -214,7 +234,6 @@ class Customer extends ApiResource
{
return self::_updateNestedResource($id, static::PATH_SOURCES, $sourceId, $params, $opts);
}
-
const PATH_TAX_IDS = '/tax_ids';
/**
diff --git a/vendor/stripe/stripe-php/lib/PaymentIntent.php b/vendor/stripe/stripe-php/lib/PaymentIntent.php
index 7a02f1fef..70d068ec0 100644
--- a/vendor/stripe/stripe-php/lib/PaymentIntent.php
+++ b/vendor/stripe/stripe-php/lib/PaymentIntent.php
@@ -25,6 +25,7 @@ namespace Stripe;
* @property int $amount_received Amount that was collected by this PaymentIntent.
* @property null|string|\Stripe\StripeObject $application ID of the Connect application that created the PaymentIntent.
* @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents use case for connected accounts.
+ * @property null|\Stripe\StripeObject $automatic_payment_methods Settings to configure compatible payment methods from the Stripe Dashboard
* @property null|int $canceled_at Populated when status
is canceled
, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
* @property null|string $cancellation_reason Reason for cancellation of this PaymentIntent, either user-provided (duplicate
, fraudulent
, requested_by_customer
, or abandoned
) or generated by Stripe internally (failed_invoice
, void_invoice
, or automatic
).
* @property string $capture_method Controls when the funds will be captured from the customer's account.
diff --git a/vendor/stripe/stripe-php/lib/PaymentMethod.php b/vendor/stripe/stripe-php/lib/PaymentMethod.php
index 36a01d3b3..b4ecd0556 100644
--- a/vendor/stripe/stripe-php/lib/PaymentMethod.php
+++ b/vendor/stripe/stripe-php/lib/PaymentMethod.php
@@ -36,6 +36,7 @@ namespace Stripe;
* @property \Stripe\StripeObject $grabpay
* @property \Stripe\StripeObject $ideal
* @property \Stripe\StripeObject $interac_present
+ * @property \Stripe\StripeObject $klarna
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property \Stripe\StripeObject $oxxo
diff --git a/vendor/stripe/stripe-php/lib/Person.php b/vendor/stripe/stripe-php/lib/Person.php
index ad2b46f15..a1df01398 100644
--- a/vendor/stripe/stripe-php/lib/Person.php
+++ b/vendor/stripe/stripe-php/lib/Person.php
@@ -31,6 +31,8 @@ namespace Stripe;
* @property null|string $first_name The person's first name.
* @property null|string $first_name_kana The Kana variation of the person's first name (Japan only).
* @property null|string $first_name_kanji The Kanji variation of the person's first name (Japan only).
+ * @property string[] $full_name_aliases A list of alternate names or aliases that the person is known by.
+ * @property null|\Stripe\StripeObject $future_requirements Information about the upcoming new requirements for this person, including what information needs to be collected, and by when.
* @property null|string $gender The person's gender (International regulations require either "male" or "female").
* @property bool $id_number_provided Whether the person's id_number
was provided.
* @property null|string $last_name The person's last name.
diff --git a/vendor/stripe/stripe-php/lib/Price.php b/vendor/stripe/stripe-php/lib/Price.php
index 8f994d548..878a7a2c4 100644
--- a/vendor/stripe/stripe-php/lib/Price.php
+++ b/vendor/stripe/stripe-php/lib/Price.php
@@ -30,7 +30,7 @@ namespace Stripe;
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property null|string $lookup_key A lookup key used to retrieve prices dynamically from a static string.
+ * @property null|string $lookup_key A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property null|string $nickname A brief description of the price, hidden from customers.
* @property string|\Stripe\Product $product The ID of the product this price is associated with.
diff --git a/vendor/stripe/stripe-php/lib/Quote.php b/vendor/stripe/stripe-php/lib/Quote.php
index 14ed843fb..67fc62723 100644
--- a/vendor/stripe/stripe-php/lib/Quote.php
+++ b/vendor/stripe/stripe-php/lib/Quote.php
@@ -66,8 +66,6 @@ class Quote extends ApiResource
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\File the created file
*/
public function pdf($readBodyChunkCallable, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Radar/ValueList.php b/vendor/stripe/stripe-php/lib/Radar/ValueList.php
index bcbef74cd..ad374325d 100644
--- a/vendor/stripe/stripe-php/lib/Radar/ValueList.php
+++ b/vendor/stripe/stripe-php/lib/Radar/ValueList.php
@@ -17,7 +17,7 @@ namespace Stripe\Radar;
* @property string $alias The name of the value list for use in rules.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $created_by The name or email address of the user who created this value list.
- * @property string $item_type The type of items in the value list. One of card_fingerprint
, card_bin
, email
, ip_address
, country
, string
, or case_sensitive_string
.
+ * @property string $item_type The type of items in the value list. One of card_fingerprint
, card_bin
, email
, ip_address
, country
, string
, case_sensitive_string
, or customer_id
.
* @property \Stripe\Collection $list_items List of items contained within this value list.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
diff --git a/vendor/stripe/stripe-php/lib/Reporting/ReportType.php b/vendor/stripe/stripe-php/lib/Reporting/ReportType.php
index 3bb146029..4725656e4 100644
--- a/vendor/stripe/stripe-php/lib/Reporting/ReportType.php
+++ b/vendor/stripe/stripe-php/lib/Reporting/ReportType.php
@@ -21,6 +21,7 @@ namespace Stripe\Reporting;
* @property int $data_available_end Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch.
* @property int $data_available_start Earliest time for which this Report Type is available. Measured in seconds since the Unix epoch.
* @property null|string[] $default_columns List of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support the columns
parameter, this will be null.)
+ * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property string $name Human-readable name of the Report Type
* @property int $updated When this Report Type was latest updated. Measured in seconds since the Unix epoch.
* @property int $version Version of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas.
diff --git a/vendor/stripe/stripe-php/lib/Service/ChargeService.php b/vendor/stripe/stripe-php/lib/Service/ChargeService.php
index f5321b8ac..f8960edfb 100644
--- a/vendor/stripe/stripe-php/lib/Service/ChargeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ChargeService.php
@@ -27,9 +27,10 @@ class ChargeService extends \Stripe\Service\AbstractService
* of the two-step payment flow, where first you created a
* charge with the capture option set to false.
*
- * Uncaptured payments expire exactly seven days after they are created. If they
- * are not captured by that point in time, they will be marked as refunded and will
- * no longer be capturable.
+ * Uncaptured payments expire a set number of days after they are created (7 by default). If they are not captured
+ * by that point in time, they will be marked as refunded and will no longer be
+ * capturable.
*
* @param string $id
* @param null|array $params
diff --git a/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php b/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
index 9da378878..b42ab8a17 100644
--- a/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
@@ -55,6 +55,25 @@ class SessionService extends \Stripe\Service\AbstractService
return $this->request('post', '/v1/checkout/sessions', $params, $opts);
}
+ /**
+ * A Session can be expired when it is in one of these statuses: open
.
+ *
+ * After it expires, a customer can’t complete a Session and customers loading the
+ * Session see a message saying the Session is expired.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Checkout\Session
+ */
+ public function expire($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/checkout/sessions/%s/expire', $id), $params, $opts);
+ }
+
/**
* Retrieves a Session object.
*
diff --git a/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
index 2e0c00dad..540d24d50 100644
--- a/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
@@ -48,6 +48,7 @@ namespace Stripe\Service;
* @property ReviewService $reviews
* @property SetupAttemptService $setupAttempts
* @property SetupIntentService $setupIntents
+ * @property ShippingRateService $shippingRates
* @property Sigma\SigmaServiceFactory $sigma
* @property SkuService $skus
* @property SourceService $sources
@@ -109,6 +110,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'reviews' => ReviewService::class,
'setupAttempts' => SetupAttemptService::class,
'setupIntents' => SetupIntentService::class,
+ 'shippingRates' => ShippingRateService::class,
'sigma' => Sigma\SigmaServiceFactory::class,
'skus' => SkuService::class,
'sources' => SourceService::class,
diff --git a/vendor/stripe/stripe-php/lib/Service/CustomerService.php b/vendor/stripe/stripe-php/lib/Service/CustomerService.php
index fdc6a5960..50dddec49 100644
--- a/vendor/stripe/stripe-php/lib/Service/CustomerService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CustomerService.php
@@ -39,6 +39,22 @@ class CustomerService extends \Stripe\Service\AbstractService
return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/balance_transactions', $parentId), $params, $opts);
}
+ /**
+ * Returns a list of PaymentMethods for a given Customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection
+ */
+ public function allPaymentMethods($id, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/payment_methods', $id), $params, $opts);
+ }
+
/**
* List sources for a specified customer.
*
diff --git a/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php b/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
index 43aba46d8..912cec14d 100644
--- a/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
@@ -24,7 +24,8 @@ class PaymentIntentService extends \Stripe\Service\AbstractService
/**
* A PaymentIntent object can be canceled when it is in one of these statuses:
* requires_payment_method
, requires_capture
,
- * requires_confirmation
, or requires_action
.
+ * requires_confirmation
, requires_action
, or
+ * processing
.
*
* Once canceled, no additional charges will be made by the PaymentIntent and any
* operations on the PaymentIntent will fail with an error. For PaymentIntents with
@@ -48,8 +49,8 @@ class PaymentIntentService extends \Stripe\Service\AbstractService
* Capture the funds of an existing uncaptured PaymentIntent when its status is
* requires_capture
.
*
- * Uncaptured PaymentIntents will be canceled exactly seven days after they are
- * created.
+ * Uncaptured PaymentIntents will be canceled a set number of days after they are
+ * created (7 by default).
*
* Learn more about separate authorization
* and capture.
diff --git a/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php b/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
index 3bdebd971..e7f341a0b 100644
--- a/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
@@ -7,7 +7,9 @@ namespace Stripe\Service;
class PaymentMethodService extends \Stripe\Service\AbstractService
{
/**
- * Returns a list of PaymentMethods for a given Customer.
+ * Returns a list of PaymentMethods. For listing a customer’s payment methods, you
+ * should use List a Customer’s
+ * PaymentMethods.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
diff --git a/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php b/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php
new file mode 100644
index 000000000..d7b55a8b3
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php
@@ -0,0 +1,70 @@
+requestCollection('get', '/v1/shipping_rates', $params, $opts);
+ }
+
+ /**
+ * Creates a new shipping rate object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/shipping_rates', $params, $opts);
+ }
+
+ /**
+ * Returns the shipping rate object with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/shipping_rates/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates an existing shipping rate object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/shipping_rates/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/ShippingRate.php b/vendor/stripe/stripe-php/lib/ShippingRate.php
new file mode 100644
index 000000000..9091b688c
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/ShippingRate.php
@@ -0,0 +1,40 @@
+Checkout Sessionstrue
.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|\Stripe\StripeObject $delivery_estimate The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ * @property null|string $display_name The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ * @property \Stripe\StripeObject $fixed_amount
+ * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $tax_behavior Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive
, exclusive
, or unspecified
.
+ * @property null|string|\Stripe\TaxCode $tax_code A tax code ID. The Shipping tax code is txcd_92010001
.
+ * @property string $type The type of calculation to use on the shipping rate. Can only be fixed_amount
for now.
+ */
+class ShippingRate extends ApiResource
+{
+ const OBJECT_NAME = 'shipping_rate';
+
+ use ApiOperations\All;
+ use ApiOperations\Create;
+ use ApiOperations\Retrieve;
+ use ApiOperations\Update;
+
+ const TAX_BEHAVIOR_EXCLUSIVE = 'exclusive';
+ const TAX_BEHAVIOR_INCLUSIVE = 'inclusive';
+ const TAX_BEHAVIOR_UNSPECIFIED = 'unspecified';
+
+ const TYPE_FIXED_AMOUNT = 'fixed_amount';
+}
diff --git a/vendor/stripe/stripe-php/lib/SingletonApiResource.php b/vendor/stripe/stripe-php/lib/SingletonApiResource.php
index 704cff874..a182ca955 100644
--- a/vendor/stripe/stripe-php/lib/SingletonApiResource.php
+++ b/vendor/stripe/stripe-php/lib/SingletonApiResource.php
@@ -23,6 +23,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}";
diff --git a/vendor/stripe/stripe-php/lib/Stripe.php b/vendor/stripe/stripe-php/lib/Stripe.php
index f64dcedd2..54795c5fc 100644
--- a/vendor/stripe/stripe-php/lib/Stripe.php
+++ b/vendor/stripe/stripe-php/lib/Stripe.php
@@ -58,7 +58,7 @@ class Stripe
/** @var float Initial delay between retries, in seconds */
private static $initialNetworkRetryDelay = 0.5;
- const VERSION = '7.94.0';
+ const VERSION = '7.105.0';
/**
* @return string the API key used for requests
@@ -176,7 +176,7 @@ class Stripe
}
/**
- * @return string | null The Stripe account ID for connected account
+ * @return null|string The Stripe account ID for connected account
* requests
*/
public static function getAccountId()
@@ -194,7 +194,7 @@ class Stripe
}
/**
- * @return array | null The application's information
+ * @return null|array The application's information
*/
public static function getAppInfo()
{
diff --git a/vendor/stripe/stripe-php/lib/StripeClient.php b/vendor/stripe/stripe-php/lib/StripeClient.php
index 8eae9864e..10d324a94 100644
--- a/vendor/stripe/stripe-php/lib/StripeClient.php
+++ b/vendor/stripe/stripe-php/lib/StripeClient.php
@@ -48,6 +48,7 @@ namespace Stripe;
* @property \Stripe\Service\ReviewService $reviews
* @property \Stripe\Service\SetupAttemptService $setupAttempts
* @property \Stripe\Service\SetupIntentService $setupIntents
+ * @property \Stripe\Service\ShippingRateService $shippingRates
* @property \Stripe\Service\Sigma\SigmaServiceFactory $sigma
* @property \Stripe\Service\SkuService $skus
* @property \Stripe\Service\SourceService $sources
diff --git a/vendor/stripe/stripe-php/lib/StripeObject.php b/vendor/stripe/stripe-php/lib/StripeObject.php
index eca01a00e..9482a0e97 100644
--- a/vendor/stripe/stripe-php/lib/StripeObject.php
+++ b/vendor/stripe/stripe-php/lib/StripeObject.php
@@ -194,27 +194,32 @@ class StripeObject implements \ArrayAccess, \Countable, \JsonSerializable
}
// ArrayAccess methods
+ #[\ReturnTypeWillChange]
public function offsetSet($k, $v)
{
$this->{$k} = $v;
}
+ #[\ReturnTypeWillChange]
public function offsetExists($k)
{
return \array_key_exists($k, $this->_values);
}
+ #[\ReturnTypeWillChange]
public function offsetUnset($k)
{
unset($this->{$k});
}
+ #[\ReturnTypeWillChange]
public function offsetGet($k)
{
return \array_key_exists($k, $this->_values) ? $this->_values[$k] : null;
}
// Countable method
+ #[\ReturnTypeWillChange]
public function count()
{
return \count($this->_values);
@@ -419,6 +424,7 @@ class StripeObject implements \ArrayAccess, \Countable, \JsonSerializable
}
}
+ #[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->toArray();
diff --git a/vendor/stripe/stripe-php/lib/Subscription.php b/vendor/stripe/stripe-php/lib/Subscription.php
index 4d7a8a575..a96b53bce 100644
--- a/vendor/stripe/stripe-php/lib/Subscription.php
+++ b/vendor/stripe/stripe-php/lib/Subscription.php
@@ -114,5 +114,7 @@ class Subscription extends ApiResource
$url = $this->instanceUrl() . '/discount';
list($response, $opts) = $this->_request('delete', $url, $params, $opts);
$this->refreshFrom(['discount' => null], $opts, true);
+
+ return $this;
}
}
diff --git a/vendor/stripe/stripe-php/lib/TaxRate.php b/vendor/stripe/stripe-php/lib/TaxRate.php
index 903363893..5a456378a 100644
--- a/vendor/stripe/stripe-php/lib/TaxRate.php
+++ b/vendor/stripe/stripe-php/lib/TaxRate.php
@@ -41,8 +41,10 @@ class TaxRate extends ApiResource
const TAX_TYPE_GST = 'gst';
const TAX_TYPE_HST = 'hst';
+ const TAX_TYPE_JCT = 'jct';
const TAX_TYPE_PST = 'pst';
const TAX_TYPE_QST = 'qst';
+ const TAX_TYPE_RST = 'rst';
const TAX_TYPE_SALES_TAX = 'sales_tax';
const TAX_TYPE_VAT = 'vat';
}
diff --git a/vendor/stripe/stripe-php/lib/Terminal/ConnectionToken.php b/vendor/stripe/stripe-php/lib/Terminal/ConnectionToken.php
index c6405b019..e49a0b0ec 100644
--- a/vendor/stripe/stripe-php/lib/Terminal/ConnectionToken.php
+++ b/vendor/stripe/stripe-php/lib/Terminal/ConnectionToken.php
@@ -7,11 +7,11 @@ namespace Stripe\Terminal;
/**
* A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
*
- * Related guide: Fleet Management.
+ * Related guide: Fleet
+ * Management.
*
* @property string $object String representing the object's type. Objects of the same type share the same value.
- * @property string $location The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see the docs on scoping connection tokens.
+ * @property string $location The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see the docs on scoping connection tokens.
* @property string $secret Your application should pass this token to the Stripe Terminal SDK.
*/
class ConnectionToken extends \Stripe\ApiResource
diff --git a/vendor/stripe/stripe-php/lib/Terminal/Location.php b/vendor/stripe/stripe-php/lib/Terminal/Location.php
index 422cd756a..21a2c6352 100644
--- a/vendor/stripe/stripe-php/lib/Terminal/Location.php
+++ b/vendor/stripe/stripe-php/lib/Terminal/Location.php
@@ -7,8 +7,8 @@ namespace Stripe\Terminal;
/**
* A Location represents a grouping of readers.
*
- * Related guide: Fleet Management.
+ * Related guide: Fleet
+ * Management.
*
* @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.
diff --git a/vendor/stripe/stripe-php/lib/Terminal/Reader.php b/vendor/stripe/stripe-php/lib/Terminal/Reader.php
index 44fe035db..28edf434d 100644
--- a/vendor/stripe/stripe-php/lib/Terminal/Reader.php
+++ b/vendor/stripe/stripe-php/lib/Terminal/Reader.php
@@ -8,13 +8,13 @@ namespace Stripe\Terminal;
* A Reader represents a physical device for accepting payment details.
*
* Related guide: Connecting to a
+ * href="https://stripe.com/docs/terminal/payments/connect-reader">Connecting to a
* Reader.
*
* @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 null|string $device_sw_version The current software version of the reader.
- * @property string $device_type Type of reader, one of bbpos_chipper2x
or verifone_P400
.
+ * @property string $device_type Type of reader, one of bbpos_chipper2x
, bbpos_wisepos_e
, or verifone_P400
.
* @property null|string $ip_address The local IP address of the reader.
* @property string $label Custom label given to the reader for easier identification.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
diff --git a/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php b/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php
index 670ab0b6a..9f11dc69e 100644
--- a/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php
+++ b/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php
@@ -21,16 +21,19 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \IteratorAggrega
$this->container = \array_change_key_case($initial_array, \CASE_LOWER);
}
+ #[\ReturnTypeWillChange]
public function count()
{
return \count($this->container);
}
+ #[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->container);
}
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$offset = static::maybeLowercase($offset);
@@ -41,6 +44,7 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \IteratorAggrega
}
}
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
$offset = static::maybeLowercase($offset);
@@ -48,12 +52,14 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \IteratorAggrega
return isset($this->container[$offset]);
}
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
$offset = static::maybeLowercase($offset);
unset($this->container[$offset]);
}
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
$offset = static::maybeLowercase($offset);
diff --git a/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php b/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php
index c4fefc1b7..f60effdd1 100644
--- a/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php
+++ b/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php
@@ -79,6 +79,7 @@ class ObjectTypes
\Stripe\Review::OBJECT_NAME => \Stripe\Review::class,
\Stripe\SetupAttempt::OBJECT_NAME => \Stripe\SetupAttempt::class,
\Stripe\SetupIntent::OBJECT_NAME => \Stripe\SetupIntent::class,
+ \Stripe\ShippingRate::OBJECT_NAME => \Stripe\ShippingRate::class,
\Stripe\Sigma\ScheduledQueryRun::OBJECT_NAME => \Stripe\Sigma\ScheduledQueryRun::class,
\Stripe\SKU::OBJECT_NAME => \Stripe\SKU::class,
\Stripe\Source::OBJECT_NAME => \Stripe\Source::class,
diff --git a/vendor/stripe/stripe-php/lib/Util/RandomGenerator.php b/vendor/stripe/stripe-php/lib/Util/RandomGenerator.php
index b11e445d2..ccf023ac8 100644
--- a/vendor/stripe/stripe-php/lib/Util/RandomGenerator.php
+++ b/vendor/stripe/stripe-php/lib/Util/RandomGenerator.php
@@ -28,8 +28,8 @@ class RandomGenerator
public function uuid()
{
$arr = \array_values(\unpack('N1a/n4b/N1c', \openssl_random_pseudo_bytes(16)));
- $arr[2] = ($arr[2] & 0x0fff) | 0x4000;
- $arr[3] = ($arr[3] & 0x3fff) | 0x8000;
+ $arr[2] = ($arr[2] & 0x0FFF) | 0x4000;
+ $arr[3] = ($arr[3] & 0x3FFF) | 0x8000;
return \vsprintf('%08x-%04x-%04x-%04x-%04x%08x', $arr);
}
diff --git a/vendor/stripe/stripe-php/lib/Util/Set.php b/vendor/stripe/stripe-php/lib/Util/Set.php
index 017f92978..c39d813ca 100644
--- a/vendor/stripe/stripe-php/lib/Util/Set.php
+++ b/vendor/stripe/stripe-php/lib/Util/Set.php
@@ -37,6 +37,7 @@ class Set implements IteratorAggregate
return \array_keys($this->_elts);
}
+ #[\ReturnTypeWillChange]
public function getIterator()
{
return new ArrayIterator($this->toArray());
diff --git a/vendor/stripe/stripe-php/phpstan-baseline.neon b/vendor/stripe/stripe-php/phpstan-baseline.neon
index 882318a7a..e69de29bb 100644
--- a/vendor/stripe/stripe-php/phpstan-baseline.neon
+++ b/vendor/stripe/stripe-php/phpstan-baseline.neon
@@ -1,12 +0,0 @@
-parameters:
- ignoreErrors:
- -
- message: "#^Access to undefined constant Stripe\\\\ApiResource\\:\\:OBJECT_NAME\\.$#"
- count: 1
- path: lib/ApiResource.php
-
- -
- message: "#^Access to undefined constant Stripe\\\\SingletonApiResource\\:\\:OBJECT_NAME\\.$#"
- count: 1
- path: lib/SingletonApiResource.php
-
diff --git a/vendor/stripe/stripe-php/phpstan.neon.dist b/vendor/stripe/stripe-php/phpstan.neon.dist
index c99645a2b..fb066c682 100644
--- a/vendor/stripe/stripe-php/phpstan.neon.dist
+++ b/vendor/stripe/stripe-php/phpstan.neon.dist
@@ -9,3 +9,5 @@ parameters:
ignoreErrors:
- '#Unsafe usage of new static\(\).#'
+
+ reportUnmatchedIgnoredErrors: false