From 92a4445dfb20c2ffd82e58f4e8aa8cb7072fd61c Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Tue, 25 Aug 2020 18:29:07 +0100 Subject: [PATCH] Update Stripe library to v7.49.0 --- composer.lock | 10 +++++----- vendor/composer/installed.json | 12 ++++++------ vendor/stripe/stripe-php/CHANGELOG.md | 7 +++++++ vendor/stripe/stripe-php/VERSION | 2 +- vendor/stripe/stripe-php/lib/ApiRequestor.php | 6 ++++-- vendor/stripe/stripe-php/lib/Customer.php | 4 ++-- vendor/stripe/stripe-php/lib/File.php | 1 + .../stripe/stripe-php/lib/Issuing/Authorization.php | 1 + vendor/stripe/stripe-php/lib/Issuing/Transaction.php | 1 + vendor/stripe/stripe-php/lib/Stripe.php | 2 +- 10 files changed, 29 insertions(+), 17 deletions(-) diff --git a/composer.lock b/composer.lock index 43b7fe57..87442436 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "stripe/stripe-php", - "version": "v7.47.0", + "version": "v7.49.0", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "b51656cb398d081fcee53a76f6edb8fd5c1a5306" + "reference": "db6229bff448f7f3bf7f6aee112d5d9ba34ca4ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/b51656cb398d081fcee53a76f6edb8fd5c1a5306", - "reference": "b51656cb398d081fcee53a76f6edb8fd5c1a5306", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/db6229bff448f7f3bf7f6aee112d5d9ba34ca4ba", + "reference": "db6229bff448f7f3bf7f6aee112d5d9ba34ca4ba", "shasum": "" }, "require": { @@ -61,7 +61,7 @@ "payment processing", "stripe" ], - "time": "2020-08-13T22:35:56+00:00" + "time": "2020-08-19T22:48:20+00:00" } ], "packages-dev": [], diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 172443e9..7c379f17 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1,17 +1,17 @@ [ { "name": "stripe/stripe-php", - "version": "v7.47.0", - "version_normalized": "7.47.0.0", + "version": "v7.49.0", + "version_normalized": "7.49.0.0", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "b51656cb398d081fcee53a76f6edb8fd5c1a5306" + "reference": "db6229bff448f7f3bf7f6aee112d5d9ba34ca4ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/b51656cb398d081fcee53a76f6edb8fd5c1a5306", - "reference": "b51656cb398d081fcee53a76f6edb8fd5c1a5306", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/db6229bff448f7f3bf7f6aee112d5d9ba34ca4ba", + "reference": "db6229bff448f7f3bf7f6aee112d5d9ba34ca4ba", "shasum": "" }, "require": { @@ -27,7 +27,7 @@ "squizlabs/php_codesniffer": "^3.3", "symfony/process": "~3.4" }, - "time": "2020-08-13T22:35:56+00:00", + "time": "2020-08-19T22:48:20+00:00", "type": "library", "extra": { "branch-alias": { diff --git a/vendor/stripe/stripe-php/CHANGELOG.md b/vendor/stripe/stripe-php/CHANGELOG.md index 78e9a5c0..dc065f3a 100644 --- a/vendor/stripe/stripe-php/CHANGELOG.md +++ b/vendor/stripe/stripe-php/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 7.49.0 - 2020-08-19 +* [#998](https://github.com/stripe/stripe-php/pull/998) PHPDocs updated + +## 7.48.0 - 2020-08-17 +* [#997](https://github.com/stripe/stripe-php/pull/997) PHPDocs updated +* [#996](https://github.com/stripe/stripe-php/pull/996) Fixing telemetry + ## 7.47.0 - 2020-08-13 * [#994](https://github.com/stripe/stripe-php/pull/994) Nullable balance_transactions on issuing disputes * [#991](https://github.com/stripe/stripe-php/pull/991) Fix invalid return types in OAuthService diff --git a/vendor/stripe/stripe-php/VERSION b/vendor/stripe/stripe-php/VERSION index 3e8b8db1..747e3808 100644 --- a/vendor/stripe/stripe-php/VERSION +++ b/vendor/stripe/stripe-php/VERSION @@ -1 +1 @@ -7.47.0 +7.49.0 diff --git a/vendor/stripe/stripe-php/lib/ApiRequestor.php b/vendor/stripe/stripe-php/lib/ApiRequestor.php index d587b802..0328112b 100644 --- a/vendor/stripe/stripe-php/lib/ApiRequestor.php +++ b/vendor/stripe/stripe-php/lib/ApiRequestor.php @@ -377,9 +377,11 @@ class ApiRequestor $hasFile ); - if (isset($rheaders['request-id'], $rheaders['request-id'][0])) { + if (isset($rheaders['request-id']) + && \is_string($rheaders['request-id']) + && \strlen($rheaders['request-id']) > 0) { self::$requestTelemetry = new RequestTelemetry( - $rheaders['request-id'][0], + $rheaders['request-id'], Util\Util::currentTimeMillis() - $requestStartMs ); } diff --git a/vendor/stripe/stripe-php/lib/Customer.php b/vendor/stripe/stripe-php/lib/Customer.php index 3bef3fae..89fbae02 100644 --- a/vendor/stripe/stripe-php/lib/Customer.php +++ b/vendor/stripe/stripe-php/lib/Customer.php @@ -34,10 +34,10 @@ namespace Stripe; * @property null|string $phone The customer's phone number. * @property null|string[] $preferred_locales The customer's preferred locales (languages), ordered by preference. * @property null|\Stripe\StripeObject $shipping Mailing and shipping address for the customer. Appears on invoices emailed to this customer. - * @property \Stripe\Collection $sources The customer's payment sources, if any. + * @property null|\Stripe\Collection $sources The customer's payment sources, if any. * @property null|\Stripe\Collection $subscriptions The customer's current subscriptions, if any. * @property null|string $tax_exempt Describes the customer's tax exemption status. One of <code>none</code>, <code>exempt</code>, or <code>reverse</code>. When set to <code>reverse</code>, invoice and receipt PDFs include the text <strong>"Reverse charge"</strong>. - * @property \Stripe\Collection $tax_ids The customer's tax IDs. + * @property null|\Stripe\Collection $tax_ids The customer's tax IDs. */ class Customer extends ApiResource { diff --git a/vendor/stripe/stripe-php/lib/File.php b/vendor/stripe/stripe-php/lib/File.php index 8138641d..d73bed84 100644 --- a/vendor/stripe/stripe-php/lib/File.php +++ b/vendor/stripe/stripe-php/lib/File.php @@ -18,6 +18,7 @@ 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 int $created Time at which the object was created. Measured in seconds since the Unix epoch. + * @property null|int $expires_at The time at which the file expires and is no longer available in epoch seconds. * @property null|string $filename A filename for the file, suitable for saving to a filesystem. * @property null|\Stripe\Collection $links A list of <a href="https://stripe.com/docs/api#file_links">file links</a> that point at this file. * @property string $purpose The <a href="https://stripe.com/docs/file-upload#uploading-a-file">purpose</a> of the uploaded file. diff --git a/vendor/stripe/stripe-php/lib/Issuing/Authorization.php b/vendor/stripe/stripe-php/lib/Issuing/Authorization.php index a4269396..22e81275 100644 --- a/vendor/stripe/stripe-php/lib/Issuing/Authorization.php +++ b/vendor/stripe/stripe-php/lib/Issuing/Authorization.php @@ -17,6 +17,7 @@ namespace Stripe\Issuing; * @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 int $amount The total amount that was authorized or rejected. This amount is in the card's currency and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. + * @property null|\Stripe\StripeObject $amount_details Detailed breakdown of amount components. These amounts are denominated in <code>currency</code> and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. * @property bool $approved Whether the authorization has been approved. * @property string $authorization_method How the card details were provided. * @property \Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with this authorization. diff --git a/vendor/stripe/stripe-php/lib/Issuing/Transaction.php b/vendor/stripe/stripe-php/lib/Issuing/Transaction.php index 2e8c8d55..43df4d0f 100644 --- a/vendor/stripe/stripe-php/lib/Issuing/Transaction.php +++ b/vendor/stripe/stripe-php/lib/Issuing/Transaction.php @@ -17,6 +17,7 @@ namespace Stripe\Issuing; * @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 int $amount The transaction amount, which will be reflected in your balance. This amount is in your currency and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. + * @property null|\Stripe\StripeObject $amount_details Detailed breakdown of amount components. These amounts are denominated in <code>currency</code> and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. * @property null|string|\Stripe\Issuing\Authorization $authorization The <code>Authorization</code> object that led to this transaction. * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the <a href="https://stripe.com/docs/api/balance_transactions">balance transaction</a> associated with this transaction. * @property string|\Stripe\Issuing\Card $card The card used to make this transaction. diff --git a/vendor/stripe/stripe-php/lib/Stripe.php b/vendor/stripe/stripe-php/lib/Stripe.php index 44067749..02d372d9 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.47.0'; + const VERSION = '7.49.0'; /** * @return string the API key used for requests -- GitLab