Skip to content

Commit

Permalink
Merge upstream and update generated code for v972
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 19, 2024
2 parents bcf45dd + 4825e7f commit 9e49470
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Expand Up @@ -3,12 +3,17 @@
## 14.4.0-beta.1 - 2024-04-18
* [#1679](https://github.com/stripe/stripe-php/pull/1679) Update generated code for beta

## 14.3.0 - 2024-04-18
* [#1681](https://github.com/stripe/stripe-php/pull/1681) Update generated code
* Add support for `create_preview` method on resource `Invoice`
* Add support for `saved_payment_method_options` on `Checkout.Session`
* [#1682](https://github.com/stripe/stripe-php/pull/1682) Added @throws to autoPagingIterator. Fixes [#1678](https://github.com/stripe/stripe-php/issues/1678)

## 14.2.0 - 2024-04-16
* [#1680](https://github.com/stripe/stripe-php/pull/1680) Update generated code
* Add support for new resource `Entitlements.ActiveEntitlementSummary`
* Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type`
* Remove support for `config` on `Forwarding.Request`. This field is no longer used by the Forwarding Request API.
* Add support for new resource `Entitlements.ActiveEntitlementSummary`
* Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type`
* Remove support for `config` on `Forwarding.Request`. This field is no longer used by the Forwarding Request API.
* Add support for `swish` on `PaymentMethodConfiguration`

## 14.2.0-beta.1 - 2024-04-11
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v970
v972
6 changes: 6 additions & 0 deletions lib/Collection.php
Expand Up @@ -165,6 +165,8 @@ public function getReverseIterator()
}

/**
* @throws Exception\ApiErrorException
*
* @return \Generator|TStripeObject[] A generator that can be used to
* iterate across all objects across all pages. As page boundaries are
* encountered, the next page will be fetched automatically for
Expand Down Expand Up @@ -228,6 +230,8 @@ public function isEmpty()
* @param null|array $params
* @param null|array|string $opts
*
* @throws Exception\ApiErrorException
*
* @return Collection<TStripeObject>
*/
public function nextPage($params = null, $opts = null)
Expand Down Expand Up @@ -256,6 +260,8 @@ public function nextPage($params = null, $opts = null)
* @param null|array $params
* @param null|array|string $opts
*
* @throws Exception\ApiErrorException
*
* @return Collection<TStripeObject>
*/
public function previousPage($params = null, $opts = null)
Expand Down
4 changes: 4 additions & 0 deletions lib/SearchResult.php
Expand Up @@ -124,6 +124,8 @@ public function getIterator()
}

/**
* @throws Exception\ApiErrorException
*
* @return \Generator|TStripeObject[] A generator that can be used to
* iterate across all objects across all pages. As page boundaries are
* encountered, the next page will be fetched automatically for
Expand Down Expand Up @@ -179,6 +181,8 @@ public function isEmpty()
* @param null|array $params
* @param null|array|string $opts
*
* @throws Exception\ApiErrorException
*
* @return SearchResult<TStripeObject>
*/
public function nextPage($params = null, $opts = null)
Expand Down

0 comments on commit 9e49470

Please sign in to comment.