diff --git a/CHANGELOG.md b/CHANGELOG.md
index c94aa34e0..83c03bbea 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,22 @@
# Changelog
+## 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 `swish` on `PaymentMethodConfiguration`
+
## 14.2.0-beta.1 - 2024-04-11
* [#1674](https://github.com/stripe/stripe-php/pull/1674) Merged from master
+## 14.1.0 - 2024-04-11
+* [#1677](https://github.com/stripe/stripe-php/pull/1677) Update generated code
+ * Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enum `StripeError.code`
+ * Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `nullable(BillingMeterResourceBillingMeterEventAdjustmentCancel)`
+ * Add support for `amazon_pay` on `PaymentMethodConfiguration` and `PaymentMethod`
+ * Add support for new value `amazon_pay` on enum `PaymentMethod.type`
+ * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enum `TaxId.type`
## 14.0.0 - 2024-04-10
* [#1673](https://github.com/stripe/stripe-php/pull/1673)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index a41158a2f..48f2a1a8e 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v949
\ No newline at end of file
+v970
\ No newline at end of file
diff --git a/lib/Billing/Meter.php b/lib/Billing/Meter.php
index 5200fba13..88c67a2c8 100644
--- a/lib/Billing/Meter.php
+++ b/lib/Billing/Meter.php
@@ -13,8 +13,8 @@
* @property \Stripe\StripeObject $customer_mapping
* @property \Stripe\StripeObject $default_aggregation
* @property string $display_name The meter's name.
- * @property string $event_name The name of the usage event to record usage for. Corresponds with the event_name
field on usage events.
- * @property null|string $event_time_window The time window to pre-aggregate usage events for, if any.
+ * @property string $event_name The name of the meter event to record usage for. Corresponds with the event_name
field on meter events.
+ * @property null|string $event_time_window The time window to pre-aggregate meter events for, if any.
* @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 $status The meter's status.
* @property \Stripe\StripeObject $status_transitions
diff --git a/lib/Billing/MeterEvent.php b/lib/Billing/MeterEvent.php
index e9de4d1c0..2d9f3f4da 100644
--- a/lib/Billing/MeterEvent.php
+++ b/lib/Billing/MeterEvent.php
@@ -13,7 +13,7 @@
* @property string $event_name The name of the meter event. Corresponds with the event_name
field on a meter.
* @property string $identifier A unique identifier for the event.
* @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 $payload The payload of the event.
+ * @property \Stripe\StripeObject $payload The payload of the event. This contains the fields corresponding to a meter's customer_mapping.event_payload_key
(default is stripe_customer_id
) and value_settings.event_payload_key
(default is value
). Read more about the payload.
* @property int $timestamp The timestamp passed in when creating the event. Measured in seconds since the Unix epoch.
*/
class MeterEvent extends \Stripe\ApiResource
diff --git a/lib/Billing/MeterEventSummary.php b/lib/Billing/MeterEventSummary.php
index 773512ebf..bac4e3b32 100644
--- a/lib/Billing/MeterEventSummary.php
+++ b/lib/Billing/MeterEventSummary.php
@@ -10,11 +10,11 @@
*
* @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 float $aggregated_value Aggregated value of all the events within start_time (inclusive) and end_time (inclusive). The aggregation strategy is defined on meter via `default_aggregation``.
- * @property int $end_time End timestamp for this usage summary (inclusive).
+ * @property float $aggregated_value Aggregated value of all the events within start_time
(inclusive) and end_time
(inclusive). The aggregation strategy is defined on meter via default_aggregation
.
+ * @property int $end_time End timestamp for this event summary (inclusive).
* @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 $meter The meter associated with this usage summary.
- * @property int $start_time Start timestamp for this usage summary (inclusive).
+ * @property string $meter The meter associated with this event summary.
+ * @property int $start_time Start timestamp for this event summary (inclusive).
*/
class MeterEventSummary extends \Stripe\ApiResource
{
diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php
index cf398ac34..539cadd4e 100644
--- a/lib/Checkout/Session.php
+++ b/lib/Checkout/Session.php
@@ -61,6 +61,7 @@
* @property null|string $recovered_from The ID of the original expired Checkout Session that triggered the recovery flow.
* @property null|string $redirect_on_completion This parameter applies to ui_mode: embedded
. Learn more about the redirect behavior of embedded sessions. Defaults to always
.
* @property null|string $return_url Applies to Checkout Sessions with ui_mode: embedded
. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
+ * @property null|\Stripe\StripeObject $saved_payment_method_options Controls saved payment method settings for the session. Only available in payment
and subscription
mode.
* @property null|string|\Stripe\SetupIntent $setup_intent The ID of the SetupIntent for Checkout Sessions in setup
mode.
* @property null|\Stripe\StripeObject $shipping_address_collection When set, provides configuration for Checkout to collect a shipping address from a customer.
* @property null|\Stripe\StripeObject $shipping_cost The details of the customer cost of shipping, including the customer chosen ShippingRate.
diff --git a/lib/Forwarding/Request.php b/lib/Forwarding/Request.php
index 02a6e0f49..0af5eb74e 100644
--- a/lib/Forwarding/Request.php
+++ b/lib/Forwarding/Request.php
@@ -5,9 +5,9 @@
namespace Stripe\Forwarding;
/**
- * Instructs Stripe to make a request on your behalf using the destination URL and HTTP method in the config.
- * A config is set up for each destination URL by Stripe at the time of onboarding. Stripe verifies requests with
- * your credentials in the config, and injects card details from the payment_method into the request.
+ * Instructs Stripe to make a request on your behalf using the destination URL. The destination URL
+ * is activated by Stripe at the time of onboarding. Stripe verifies requests with your credentials
+ * provided during onboarding, and injects card details from the payment_method into the request.
*
* Stripe redacts all sensitive fields and headers, including authentication credentials and card numbers,
* before storing the request and response data in the forwarding Request object, which are subject to a
@@ -24,7 +24,6 @@
*
* @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 string $config The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @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 $payment_method The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
diff --git a/lib/PaymentMethodConfiguration.php b/lib/PaymentMethodConfiguration.php
index 7eeaec81c..b8f64c661 100644
--- a/lib/PaymentMethodConfiguration.php
+++ b/lib/PaymentMethodConfiguration.php
@@ -62,6 +62,7 @@
* @property null|\Stripe\StripeObject $revolut_pay
* @property null|\Stripe\StripeObject $sepa_debit
* @property null|\Stripe\StripeObject $sofort
+ * @property null|\Stripe\StripeObject $swish
* @property null|\Stripe\StripeObject $us_bank_account
* @property null|\Stripe\StripeObject $wechat_pay
* @property null|\Stripe\StripeObject $zip
diff --git a/lib/Service/Issuing/AuthorizationService.php b/lib/Service/Issuing/AuthorizationService.php
index 0275a8907..376f7fbaf 100644
--- a/lib/Service/Issuing/AuthorizationService.php
+++ b/lib/Service/Issuing/AuthorizationService.php
@@ -37,6 +37,8 @@ public function all($params = null, $opts = null)
* href="/docs/issuing/controls/real-time-authorizations#authorization-handling">respond
* directly to the webhook request to approve an authorization.
*
+ * @deprecated this method is deprecated, please refer to the description for details
+ *
* @param string $id
* @param null|array $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
@@ -58,6 +60,8 @@ public function approve($id, $params = null, $opts = null)
* href="/docs/issuing/controls/real-time-authorizations#authorization-handling">respond
* directly to the webhook request to decline an authorization.
*
+ * @deprecated this method is deprecated, please refer to the description for details
+ *
* @param string $id
* @param null|array $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
diff --git a/lib/SetupIntent.php b/lib/SetupIntent.php
index a9762bbe7..d8d62a2ac 100644
--- a/lib/SetupIntent.php
+++ b/lib/SetupIntent.php
@@ -11,13 +11,13 @@
*
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
- * The SetupIntent transitions through multiple statuses as it guides
+ * The SetupIntent transitions through multiple statuses as it guides
* you through the setup process.
*
* Successful SetupIntents result in payment credentials that are optimized for future payments.
- * For example, cardholders in certain regions might need to be run through
- * Strong Customer Authentication during payment method collection
- * to streamline later off-session payments.
+ * For example, cardholders in certain regions might need to be run through
+ * Strong Customer Authentication during payment method collection
+ * to streamline later off-session payments.
* If you use the SetupIntent with a Customer,
* it automatically attaches the resulting payment method to that Customer after successful setup.
* We recommend using SetupIntents or setup_future_usage on
@@ -25,7 +25,7 @@
*
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
*
- * Related guide: Setup Intents API
+ * Related guide: Setup Intents API
*
* @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/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php
index 6aa87975f..df272af93 100644
--- a/lib/Util/ApiVersion.php
+++ b/lib/Util/ApiVersion.php
@@ -7,5 +7,5 @@
class ApiVersion
{
const CURRENT = '2024-04-10';
- const PREVIEW = '2024-03-20.preview-v2';
+ const PREVIEW = '2024-04-11.preview-v2';
}