diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b023caab70..f2df85f1a6c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,24 @@
# Changelog
+## 24.1.0-beta.2 - 2023-10-26
+* [#1675](https://github.com/stripe/stripe-java/pull/1675) Update generated code for beta
+ * Add support for new resource `Margin`
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
+ * Add support for `subsellers` on `Order.payment.settings.payment_method_options.paypal`, `OrderCreateParams.payment.settings.payment_method_options.paypal`, `OrderUpdateParams.payment.settings.payment_method_options.paypal`, `PaymentIntent.payment_method_options.paypal`, `PaymentIntentConfirmParams.payment_method_options.paypal`, `PaymentIntentCreateParams.payment_method_options.paypal`, `PaymentIntentUpdateParams.payment_method_options.paypal`, `SetupIntent.payment_method_options.paypal`, `SetupIntentConfirmParams.payment_method_options.paypal`, `SetupIntentCreateParams.payment_method_options.paypal`, `SetupIntentUpdateParams.payment_method_options.paypal`, and `checkout.SessionCreateParams.payment_method_options.paypal`
+ * Add support for `default_margins` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice`
+ * Add support for `total_margin_amounts` on `Invoice`
+ * Add support for `margins` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, and `InvoiceItem`
+ * Add support for new values `applicant_is_not_beneficial_owner`, `current_account_tier_ineligible`, `customer_requested_account_closure`, `dispute_rate_too_high`, and `invalid_business_license` on enums `issuing.CreditUnderwritingRecordCorrectParams.decision.credit_limit_decreased.reasons[]`, `issuing.CreditUnderwritingRecordCorrectParams.decision.credit_line_closed.reasons[]`, `issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams.decision.credit_limit_decreased.reasons[]`, and `issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams.decision.credit_line_closed.reasons[]`
+ * Add support for new values `applicant_is_not_beneficial_owner`, `current_account_tier_ineligible`, `customer_requested_account_closure`, `dispute_rate_too_high`, and `invalid_business_license` on enums `issuing.CreditUnderwritingRecordCorrectParams.decision.application_rejected.reasons[]` and `issuing.CreditUnderwritingRecordReportDecisionParams.decision.application_rejected.reasons[]`
+ * Remove support for values `change_in_financial_state`, `change_in_utilization_of_credit_line`, `decrease_in_income_to_expense_ratio`, `decrease_in_social_media_performance`, `exceeds_acceptable_platform_exposure`, `has_recent_credit_limit_increase`, `insufficient_credit_utilization`, `insufficient_usage_as_qualified_expenses`, and `poor_payment_history_with_platform` from enums `issuing.CreditUnderwritingRecordCorrectParams.decision.application_rejected.reasons[]` and `issuing.CreditUnderwritingRecordReportDecisionParams.decision.application_rejected.reasons[]`
+ * Add support for `is_default` on `Issuing.PersonalizationDesign.preferences`, `issuing.PersonalizationDesignCreateParams.preferences`, `issuing.PersonalizationDesignListParams.preferences`, and `issuing.PersonalizationDesignUpdateParams.preferences`
+ * Add support for `is_platform_default` on `Issuing.PersonalizationDesign.preferences` and `issuing.PersonalizationDesignListParams.preferences`
+ * Remove support for `account_default` on `Issuing.PersonalizationDesign.preferences`, `issuing.PersonalizationDesignCreateParams.preferences`, `issuing.PersonalizationDesignListParams.preferences`, and `issuing.PersonalizationDesignUpdateParams.preferences`
+ * Remove support for `platform_default` on `Issuing.PersonalizationDesign.preferences` and `issuing.PersonalizationDesignListParams.preferences`
+ * Add support for `liability` on `PaymentLink.automatic_tax`, `PaymentLinkCreateParams.automatic_tax`, and `PaymentLinkUpdateParams.automatic_tax`
+ * Add support for `issuer` on `PaymentLink.invoice_creation.invoice_data`, `PaymentLinkCreateParams.invoice_creation.invoice_data`, and `PaymentLinkUpdateParams.invoice_creation.invoice_data`
+ * Add support for `invoice_settings` on `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data`
+
## 24.1.0-beta.1 - 2023-10-17
* [#1673](https://github.com/stripe/stripe-java/pull/1673) Update generated code for beta
- Update pinned API version to `2023-10-16`
diff --git a/README.md b/README.md
index af6eb580936..245724036b5 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Stripe Java client library
-[![Maven Central](https://img.shields.io/badge/maven--central-v24.1.0-beta.1-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java)
+[![Maven Central](https://img.shields.io/badge/maven--central-v24.1.0-beta.2-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java)
[![JavaDoc](http://img.shields.io/badge/javadoc-reference-blue.svg)](https://stripe.dev/stripe-java)
[![Build Status](https://github.com/stripe/stripe-java/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-java/actions?query=branch%3Amaster)
[![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-java/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-java?branch=master)
@@ -18,7 +18,7 @@ The official [Stripe][stripe] Java client library.
Add this dependency to your project's build file:
```groovy
-implementation "com.stripe:stripe-java:24.1.0-beta.1"
+implementation "com.stripe:stripe-java:24.1.0-beta.2"
```
### Maven users
@@ -29,7 +29,7 @@ Add this dependency to your project's POM:
com.stripe
stripe-java
- 24.1.0-beta.1
+ 24.1.0-beta.2
```
@@ -37,7 +37,7 @@ Add this dependency to your project's POM:
You'll need to manually install the following JARs:
-- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/24.1.0-beta.1/stripe-java-24.1.0-beta.1.jar)
+- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/24.1.0-beta.2/stripe-java-24.1.0-beta.2.jar)
- [Google Gson][gson] from .
### [ProGuard][proguard]
diff --git a/VERSION b/VERSION
index eabcdef8e3d..7b2b0585fa2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-24.1.0-beta.1
+24.1.0-beta.2
diff --git a/gradle.properties b/gradle.properties
index 012ea6c308e..d36cb3ab109 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,5 +1,5 @@
GROUP=com.stripe
-VERSION_NAME=24.1.0-beta.1
+VERSION_NAME=24.1.0-beta.2
POM_URL=https://github.com/stripe/stripe-java
POM_SCM_URL=git@github.com:stripe/stripe-java.git
diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java
index 7b4b556793c..560b1389913 100644
--- a/src/main/java/com/stripe/Stripe.java
+++ b/src/main/java/com/stripe/Stripe.java
@@ -18,7 +18,7 @@ public abstract class Stripe {
public static final String CONNECT_API_BASE = "https://connect.stripe.com";
public static final String LIVE_API_BASE = "https://api.stripe.com";
public static final String UPLOAD_API_BASE = "https://files.stripe.com";
- public static final String VERSION = "24.1.0-beta.1";
+ public static final String VERSION = "24.1.0-beta.2";
public static volatile String apiKey;
public static volatile String clientId;