From 6207f498dd445f5bb507c3ea0bad77a544773e30 Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Mon, 27 Feb 2023 13:51:47 +0000 Subject: [PATCH] Upgrade stripe library from 9.8.0 to 9.9.0 --- CRM/Core/Payment/StripeIPNEvent.php | 1 + composer.lock | 12 ++++++------ vendor/composer/InstalledVersions.php | 18 +++++++++--------- vendor/composer/installed.json | 14 +++++++------- vendor/composer/installed.php | 18 +++++++++--------- vendor/stripe/stripe-php/CHANGELOG.md | 7 +++++++ vendor/stripe/stripe-php/OPENAPI_VERSION | 2 +- vendor/stripe/stripe-php/VERSION | 2 +- vendor/stripe/stripe-php/lib/Refund.php | 5 +++++ .../Service/Issuing/AuthorizationService.php | 8 ++++++-- vendor/stripe/stripe-php/lib/Stripe.php | 2 +- vendor/stripe/stripe-php/lib/Subscription.php | 1 + vendor/stripe/stripe-php/lib/TaxId.php | 5 ++++- 13 files changed, 58 insertions(+), 37 deletions(-) create mode 100644 CRM/Core/Payment/StripeIPNEvent.php diff --git a/CRM/Core/Payment/StripeIPNEvent.php b/CRM/Core/Payment/StripeIPNEvent.php new file mode 100644 index 00000000..b3d9bbc7 --- /dev/null +++ b/CRM/Core/Payment/StripeIPNEvent.php @@ -0,0 +1 @@ +<?php diff --git a/composer.lock b/composer.lock index 58b9b91e..51bd9310 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "stripe/stripe-php", - "version": "v9.8.0", + "version": "v9.9.0", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "5a55767326e77dac8a0f57022d27533beeafc197" + "reference": "479b5c2136fde0debb93d290ceaf20dd161c358f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/5a55767326e77dac8a0f57022d27533beeafc197", - "reference": "5a55767326e77dac8a0f57022d27533beeafc197", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/479b5c2136fde0debb93d290ceaf20dd161c358f", + "reference": "479b5c2136fde0debb93d290ceaf20dd161c358f", "shasum": "" }, "require": { @@ -63,9 +63,9 @@ ], "support": { "issues": "https://github.com/stripe/stripe-php/issues", - "source": "https://github.com/stripe/stripe-php/tree/v9.8.0" + "source": "https://github.com/stripe/stripe-php/tree/v9.9.0" }, - "time": "2022-10-20T23:29:24+00:00" + "time": "2022-11-08T20:25:52+00:00" } ], "packages-dev": [], diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php index a89035d6..a32c5a5b 100644 --- a/vendor/composer/InstalledVersions.php +++ b/vendor/composer/InstalledVersions.php @@ -25,33 +25,33 @@ class InstalledVersions private static $installed = array ( 'root' => array ( - 'pretty_version' => '6.8.x-dev', - 'version' => '6.8.9999999.9999999-dev', + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', 'aliases' => array ( ), - 'reference' => 'dfa91b55d5f8b94ef3247c96ba99402d622e0f9e', + 'reference' => 'b9b8fdaea5e0876d35a29274c9261a6a4c60f160', 'name' => 'civicrm/stripe', ), 'versions' => array ( 'civicrm/stripe' => array ( - 'pretty_version' => '6.8.x-dev', - 'version' => '6.8.9999999.9999999-dev', + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', 'aliases' => array ( ), - 'reference' => 'dfa91b55d5f8b94ef3247c96ba99402d622e0f9e', + 'reference' => 'b9b8fdaea5e0876d35a29274c9261a6a4c60f160', ), 'stripe/stripe-php' => array ( - 'pretty_version' => 'v9.8.0', - 'version' => '9.8.0.0', + 'pretty_version' => 'v9.9.0', + 'version' => '9.9.0.0', 'aliases' => array ( ), - 'reference' => '5a55767326e77dac8a0f57022d27533beeafc197', + 'reference' => '479b5c2136fde0debb93d290ceaf20dd161c358f', ), ), ); diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 3f14604a..5b89aebf 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2,17 +2,17 @@ "packages": [ { "name": "stripe/stripe-php", - "version": "v9.8.0", - "version_normalized": "9.8.0.0", + "version": "v9.9.0", + "version_normalized": "9.9.0.0", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "5a55767326e77dac8a0f57022d27533beeafc197" + "reference": "479b5c2136fde0debb93d290ceaf20dd161c358f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/5a55767326e77dac8a0f57022d27533beeafc197", - "reference": "5a55767326e77dac8a0f57022d27533beeafc197", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/479b5c2136fde0debb93d290ceaf20dd161c358f", + "reference": "479b5c2136fde0debb93d290ceaf20dd161c358f", "shasum": "" }, "require": { @@ -28,7 +28,7 @@ "phpunit/phpunit": "^5.7 || ^9.0", "squizlabs/php_codesniffer": "^3.3" }, - "time": "2022-10-20T23:29:24+00:00", + "time": "2022-11-08T20:25:52+00:00", "type": "library", "extra": { "branch-alias": { @@ -60,7 +60,7 @@ ], "support": { "issues": "https://github.com/stripe/stripe-php/issues", - "source": "https://github.com/stripe/stripe-php/tree/v9.8.0" + "source": "https://github.com/stripe/stripe-php/tree/v9.9.0" }, "install-path": "../stripe/stripe-php" } diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 6707cea4..41e3334a 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,33 +1,33 @@ <?php return array ( 'root' => array ( - 'pretty_version' => '6.8.x-dev', - 'version' => '6.8.9999999.9999999-dev', + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', 'aliases' => array ( ), - 'reference' => 'dfa91b55d5f8b94ef3247c96ba99402d622e0f9e', + 'reference' => 'b9b8fdaea5e0876d35a29274c9261a6a4c60f160', 'name' => 'civicrm/stripe', ), 'versions' => array ( 'civicrm/stripe' => array ( - 'pretty_version' => '6.8.x-dev', - 'version' => '6.8.9999999.9999999-dev', + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', 'aliases' => array ( ), - 'reference' => 'dfa91b55d5f8b94ef3247c96ba99402d622e0f9e', + 'reference' => 'b9b8fdaea5e0876d35a29274c9261a6a4c60f160', ), 'stripe/stripe-php' => array ( - 'pretty_version' => 'v9.8.0', - 'version' => '9.8.0.0', + 'pretty_version' => 'v9.9.0', + 'version' => '9.9.0.0', 'aliases' => array ( ), - 'reference' => '5a55767326e77dac8a0f57022d27533beeafc197', + 'reference' => '479b5c2136fde0debb93d290ceaf20dd161c358f', ), ), ); diff --git a/vendor/stripe/stripe-php/CHANGELOG.md b/vendor/stripe/stripe-php/CHANGELOG.md index dc40d2e8..76e9b39e 100644 --- a/vendor/stripe/stripe-php/CHANGELOG.md +++ b/vendor/stripe/stripe-php/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 9.9.0 - 2022-11-08 +* [#1394](https://github.com/stripe/stripe-php/pull/1394) API Updates + * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enum `TaxId.type` +* [#1389](https://github.com/stripe/stripe-php/pull/1389) API Updates + * Add support for `on_behalf_of` on `Subscription` +* [#1379](https://github.com/stripe/stripe-php/pull/1379) Do not run Coveralls in PR-s + ## 9.8.0 - 2022-10-20 * [#1383](https://github.com/stripe/stripe-php/pull/1383) API Updates * Add support for new values `jp_trn` and `ke_pin` on enum `TaxId.type` diff --git a/vendor/stripe/stripe-php/OPENAPI_VERSION b/vendor/stripe/stripe-php/OPENAPI_VERSION index e394bcf0..993f410b 100644 --- a/vendor/stripe/stripe-php/OPENAPI_VERSION +++ b/vendor/stripe/stripe-php/OPENAPI_VERSION @@ -1 +1 @@ -v203 \ No newline at end of file +v206 \ No newline at end of file diff --git a/vendor/stripe/stripe-php/VERSION b/vendor/stripe/stripe-php/VERSION index 834eb3fa..5ffe92dd 100644 --- a/vendor/stripe/stripe-php/VERSION +++ b/vendor/stripe/stripe-php/VERSION @@ -1 +1 @@ -9.8.0 +9.9.0 diff --git a/vendor/stripe/stripe-php/lib/Refund.php b/vendor/stripe/stripe-php/lib/Refund.php index 0ddabfc4..fd7eef28 100644 --- a/vendor/stripe/stripe-php/lib/Refund.php +++ b/vendor/stripe/stripe-php/lib/Refund.php @@ -9,6 +9,11 @@ namespace Stripe; * been created but not yet refunded. Funds will be refunded to the credit or debit * card that was originally charged. * + * Stripe Tax users with recurring payments and invoices can create <a + * href="https://stripe.com/docs/api/credit_notes">Credit Notes</a>, which reduce + * overall tax liability because tax is correctly recalculated and apportioned to + * the related invoice. + * * Related guide: <a href="https://stripe.com/docs/refunds">Refunds</a>. * * @property string $id Unique identifier for the object. diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php index 6517688f..d36f48ed 100644 --- a/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php +++ b/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php @@ -27,7 +27,9 @@ class AuthorizationService extends \Stripe\Service\AbstractService * Approves a pending Issuing <code>Authorization</code> object. This request * should be made within the timeout window of the <a * href="/docs/issuing/controls/real-time-authorizations">real-time - * authorization</a> flow. + * authorization</a> flow. You can also respond directly to the webhook request to + * approve an authorization (preferred). More details can be found <a + * href="https://site-admin.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling">here</a>. * * @param string $id * @param null|array $params @@ -46,7 +48,9 @@ class AuthorizationService extends \Stripe\Service\AbstractService * Declines a pending Issuing <code>Authorization</code> object. This request * should be made within the timeout window of the <a * href="/docs/issuing/controls/real-time-authorizations">real time - * authorization</a> flow. + * authorization</a> flow. You can also respond directly to the webhook request to + * decline an authorization (preferred). More details can be found <a + * href="https://site-admin.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling">here</a>. * * @param string $id * @param null|array $params diff --git a/vendor/stripe/stripe-php/lib/Stripe.php b/vendor/stripe/stripe-php/lib/Stripe.php index c03b3b67..21ff810d 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 = '9.8.0'; + const VERSION = '9.9.0'; /** * @return string the API key used for requests diff --git a/vendor/stripe/stripe-php/lib/Subscription.php b/vendor/stripe/stripe-php/lib/Subscription.php index 6de61c0b..0c7a8209 100644 --- a/vendor/stripe/stripe-php/lib/Subscription.php +++ b/vendor/stripe/stripe-php/lib/Subscription.php @@ -39,6 +39,7 @@ namespace Stripe; * @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 $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|int $next_pending_invoice_item_invoice Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at <code>pending_invoice_item_interval</code>. + * @property null|string|\Stripe\Account $on_behalf_of The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details. * @property null|\Stripe\StripeObject $pause_collection If specified, payment collection for this subscription will be paused. * @property null|\Stripe\StripeObject $payment_settings Payment settings passed on to invoices created by the subscription. * @property null|\Stripe\StripeObject $pending_invoice_item_interval Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling <a href="https://stripe.com/docs/api#create_invoice">Create an invoice</a> for the given subscription at the specified interval. diff --git a/vendor/stripe/stripe-php/lib/TaxId.php b/vendor/stripe/stripe-php/lib/TaxId.php index 5ea4f27c..0e2dd4ac 100644 --- a/vendor/stripe/stripe-php/lib/TaxId.php +++ b/vendor/stripe/stripe-php/lib/TaxId.php @@ -18,7 +18,7 @@ namespace Stripe; * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string|\Stripe\Customer $customer ID of the customer. * @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 string $type Type of the tax ID, one of <code>ae_trn</code>, <code>au_abn</code>, <code>au_arn</code>, <code>bg_uic</code>, <code>br_cnpj</code>, <code>br_cpf</code>, <code>ca_bn</code>, <code>ca_gst_hst</code>, <code>ca_pst_bc</code>, <code>ca_pst_mb</code>, <code>ca_pst_sk</code>, <code>ca_qst</code>, <code>ch_vat</code>, <code>cl_tin</code>, <code>es_cif</code>, <code>eu_oss_vat</code>, <code>eu_vat</code>, <code>gb_vat</code>, <code>ge_vat</code>, <code>hk_br</code>, <code>hu_tin</code>, <code>id_npwp</code>, <code>il_vat</code>, <code>in_gst</code>, <code>is_vat</code>, <code>jp_cn</code>, <code>jp_rn</code>, <code>jp_trn</code>, <code>ke_pin</code>, <code>kr_brn</code>, <code>li_uid</code>, <code>mx_rfc</code>, <code>my_frp</code>, <code>my_itn</code>, <code>my_sst</code>, <code>no_vat</code>, <code>nz_gst</code>, <code>ru_inn</code>, <code>ru_kpp</code>, <code>sa_vat</code>, <code>sg_gst</code>, <code>sg_uen</code>, <code>si_tin</code>, <code>th_vat</code>, <code>tw_vat</code>, <code>ua_vat</code>, <code>us_ein</code>, or <code>za_vat</code>. Note that some legacy tax IDs have type <code>unknown</code> + * @property string $type Type of the tax ID, one of <code>ae_trn</code>, <code>au_abn</code>, <code>au_arn</code>, <code>bg_uic</code>, <code>br_cnpj</code>, <code>br_cpf</code>, <code>ca_bn</code>, <code>ca_gst_hst</code>, <code>ca_pst_bc</code>, <code>ca_pst_mb</code>, <code>ca_pst_sk</code>, <code>ca_qst</code>, <code>ch_vat</code>, <code>cl_tin</code>, <code>eg_tin</code>, <code>es_cif</code>, <code>eu_oss_vat</code>, <code>eu_vat</code>, <code>gb_vat</code>, <code>ge_vat</code>, <code>hk_br</code>, <code>hu_tin</code>, <code>id_npwp</code>, <code>il_vat</code>, <code>in_gst</code>, <code>is_vat</code>, <code>jp_cn</code>, <code>jp_rn</code>, <code>jp_trn</code>, <code>ke_pin</code>, <code>kr_brn</code>, <code>li_uid</code>, <code>mx_rfc</code>, <code>my_frp</code>, <code>my_itn</code>, <code>my_sst</code>, <code>no_vat</code>, <code>nz_gst</code>, <code>ph_tin</code>, <code>ru_inn</code>, <code>ru_kpp</code>, <code>sa_vat</code>, <code>sg_gst</code>, <code>sg_uen</code>, <code>si_tin</code>, <code>th_vat</code>, <code>tr_tin</code>, <code>tw_vat</code>, <code>ua_vat</code>, <code>us_ein</code>, or <code>za_vat</code>. Note that some legacy tax IDs have type <code>unknown</code> * @property string $value Value of the tax ID. * @property null|\Stripe\StripeObject $verification Tax ID verification information. */ @@ -42,6 +42,7 @@ class TaxId extends ApiResource const TYPE_CA_QST = 'ca_qst'; const TYPE_CH_VAT = 'ch_vat'; const TYPE_CL_TIN = 'cl_tin'; + const TYPE_EG_TIN = 'eg_tin'; const TYPE_ES_CIF = 'es_cif'; const TYPE_EU_OSS_VAT = 'eu_oss_vat'; const TYPE_EU_VAT = 'eu_vat'; @@ -65,6 +66,7 @@ class TaxId extends ApiResource const TYPE_MY_SST = 'my_sst'; const TYPE_NO_VAT = 'no_vat'; const TYPE_NZ_GST = 'nz_gst'; + const TYPE_PH_TIN = 'ph_tin'; const TYPE_RU_INN = 'ru_inn'; const TYPE_RU_KPP = 'ru_kpp'; const TYPE_SA_VAT = 'sa_vat'; @@ -72,6 +74,7 @@ class TaxId extends ApiResource const TYPE_SG_UEN = 'sg_uen'; const TYPE_SI_TIN = 'si_tin'; const TYPE_TH_VAT = 'th_vat'; + const TYPE_TR_TIN = 'tr_tin'; const TYPE_TW_VAT = 'tw_vat'; const TYPE_UA_VAT = 'ua_vat'; const TYPE_UNKNOWN = 'unknown'; -- GitLab