From 25157e36e49a05ea0d1f95dc6782ed8b38fca4ae Mon Sep 17 00:00:00 2001
From: Kamil Pajdzik <99290280+kamil-stripe@users.noreply.github.com>
Date: Wed, 2 Nov 2022 13:21:15 -0700
Subject: [PATCH 1/7] Codegen for openapi v204 (#1389)
---
OPENAPI_VERSION | 2 +-
lib/Refund.php | 5 +++++
lib/Service/Issuing/AuthorizationService.php | 8 ++++++--
lib/Subscription.php | 1 +
4 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index e394bcf08..fe802d3a4 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v203
\ No newline at end of file
+v204
\ No newline at end of file
diff --git a/lib/Refund.php b/lib/Refund.php
index 0ddabfc4e..fd7eef280 100644
--- a/lib/Refund.php
+++ b/lib/Refund.php
@@ -9,6 +9,11 @@
* 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 Credit Notes, which reduce
+ * overall tax liability because tax is correctly recalculated and apportioned to
+ * the related invoice.
+ *
* Related guide: Refunds.
*
* @property string $id Unique identifier for the object.
diff --git a/lib/Service/Issuing/AuthorizationService.php b/lib/Service/Issuing/AuthorizationService.php
index 6517688f6..d36f48ed9 100644
--- a/lib/Service/Issuing/AuthorizationService.php
+++ b/lib/Service/Issuing/AuthorizationService.php
@@ -27,7 +27,9 @@ public function all($params = null, $opts = null)
* Approves a pending Issuing Authorization
object. This request
* should be made within the timeout window of the real-time
- * authorization flow.
+ * authorization flow. You can also respond directly to the webhook request to
+ * approve an authorization (preferred). More details can be found here.
*
* @param string $id
* @param null|array $params
@@ -46,7 +48,9 @@ public function approve($id, $params = null, $opts = null)
* Declines a pending Issuing Authorization
object. This request
* should be made within the timeout window of the real time
- * authorization flow.
+ * authorization flow. You can also respond directly to the webhook request to
+ * decline an authorization (preferred). More details can be found here.
*
* @param string $id
* @param null|array $params
diff --git a/lib/Subscription.php b/lib/Subscription.php
index 6de61c0b5..0c7a8209b 100644
--- a/lib/Subscription.php
+++ b/lib/Subscription.php
@@ -39,6 +39,7 @@
* @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|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 pending_invoice_item_interval
.
+ * @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 Create an invoice for the given subscription at the specified interval.
From baf903c2e97ac3b2eb1b71176dfb484b3cb72794 Mon Sep 17 00:00:00 2001
From: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com>
Date: Mon, 7 Nov 2022 15:29:21 -0800
Subject: [PATCH 2/7] Codegen for openapi v206 (#1394)
---
OPENAPI_VERSION | 2 +-
lib/TaxId.php | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index fe802d3a4..993f410bc 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v204
\ No newline at end of file
+v206
\ No newline at end of file
diff --git a/lib/TaxId.php b/lib/TaxId.php
index 5ea4f27cb..0e2dd4acd 100644
--- a/lib/TaxId.php
+++ b/lib/TaxId.php
@@ -18,7 +18,7 @@
* @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 true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property string $type Type of the tax ID, one of ae_trn
, au_abn
, au_arn
, bg_uic
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, es_cif
, eu_oss_vat
, eu_vat
, gb_vat
, ge_vat
, hk_br
, hu_tin
, id_npwp
, il_vat
, in_gst
, is_vat
, jp_cn
, jp_rn
, jp_trn
, ke_pin
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, si_tin
, th_vat
, tw_vat
, ua_vat
, us_ein
, or za_vat
. Note that some legacy tax IDs have type unknown
+ * @property string $type Type of the tax ID, one of ae_trn
, au_abn
, au_arn
, bg_uic
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, eg_tin
, es_cif
, eu_oss_vat
, eu_vat
, gb_vat
, ge_vat
, hk_br
, hu_tin
, id_npwp
, il_vat
, in_gst
, is_vat
, jp_cn
, jp_rn
, jp_trn
, ke_pin
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
, ph_tin
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, si_tin
, th_vat
, tr_tin
, tw_vat
, ua_vat
, us_ein
, or za_vat
. Note that some legacy tax IDs have type unknown
* @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';
From 479b5c2136fde0debb93d290ceaf20dd161c358f Mon Sep 17 00:00:00 2001
From: Pavel Krymets
Date: Tue, 8 Nov 2022 12:25:52 -0800
Subject: [PATCH 3/7] Bump version to 9.9.0
---
CHANGELOG.md | 7 +++++++
VERSION | 2 +-
lib/Stripe.php | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dc40d2e82..76e9b39e2 100644
--- a/CHANGELOG.md
+++ b/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/VERSION b/VERSION
index 834eb3fa8..5ffe92ddd 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-9.8.0
+9.9.0
diff --git a/lib/Stripe.php b/lib/Stripe.php
index c03b3b671..21ff810da 100644
--- a/lib/Stripe.php
+++ b/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
From 464c6535d574c7c076fbe52d34119e93b7c79208 Mon Sep 17 00:00:00 2001
From: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com>
Date: Tue, 8 Nov 2022 13:13:35 -0800
Subject: [PATCH 4/7] Fix CurlClientTest header usage (#1393)
---
tests/Stripe/HttpClient/CurlClientTest.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/Stripe/HttpClient/CurlClientTest.php b/tests/Stripe/HttpClient/CurlClientTest.php
index 1d059e0f4..9554c4515 100644
--- a/tests/Stripe/HttpClient/CurlClientTest.php
+++ b/tests/Stripe/HttpClient/CurlClientTest.php
@@ -387,7 +387,7 @@ public function testExecuteStreamingRequestWithRetriesRetries()
$serverCode = <<<'EOF'
{}
EOF;
From 640468a1b8729340d034284234018bc1a76b15a5 Mon Sep 17 00:00:00 2001
From: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com>
Date: Thu, 10 Nov 2022 12:04:02 -0800
Subject: [PATCH 5/7] Codegen for openapi v207 (#1397)
---
OPENAPI_VERSION | 2 +-
lib/Service/PaymentMethodService.php | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 993f410bc..1f9307ddf 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v206
\ No newline at end of file
+v207
\ No newline at end of file
diff --git a/lib/Service/PaymentMethodService.php b/lib/Service/PaymentMethodService.php
index f21370083..70944daa9 100644
--- a/lib/Service/PaymentMethodService.php
+++ b/lib/Service/PaymentMethodService.php
@@ -7,10 +7,10 @@
class PaymentMethodService extends \Stripe\Service\AbstractService
{
/**
- * Returns a list of PaymentMethods attached to the StripeAccount. For listing a
- * customer’s payment methods, you should use List a Customer’s
- * PaymentMethods.
+ * PaymentMethods API instead.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
From 287ea54b3bee5f6ef5f2e6825442364a514639cf Mon Sep 17 00:00:00 2001
From: Annie Li
Date: Thu, 10 Nov 2022 12:11:14 -0800
Subject: [PATCH 6/7] Set version to 9.9.0 to simplify merge
---
VERSION | 2 +-
lib/Stripe.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/VERSION b/VERSION
index f2193229f..5ffe92ddd 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-9.9.0-beta.2
+9.9.0
diff --git a/lib/Stripe.php b/lib/Stripe.php
index 6a324b1a4..21ff810da 100644
--- a/lib/Stripe.php
+++ b/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.9.0-beta.2';
+ const VERSION = '9.9.0';
/**
* @return string the API key used for requests
From 65a595a549af6968d41a214945bcfa8eb9a9d30a Mon Sep 17 00:00:00 2001
From: Annie Li
Date: Thu, 10 Nov 2022 12:11:15 -0800
Subject: [PATCH 7/7] Reset version to 9.9.0-beta.2
---
VERSION | 2 +-
lib/Stripe.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/VERSION b/VERSION
index 5ffe92ddd..f2193229f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-9.9.0
+9.9.0-beta.2
diff --git a/lib/Stripe.php b/lib/Stripe.php
index 21ff810da..6a324b1a4 100644
--- a/lib/Stripe.php
+++ b/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.9.0';
+ const VERSION = '9.9.0-beta.2';
/**
* @return string the API key used for requests