Skip to content

Commit 43f4838

Browse files
Merge pull request #2146 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 45c2717 + b874e62 commit 43f4838

File tree

6 files changed

+8
-358
lines changed

6 files changed

+8
-358
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 31.2.0 - 2026-01-16
4+
* [#2144](https://github.com/stripe/stripe-java/pull/2144) Update generated code
5+
* Add support for event notifications `V2CoreAccountClosedEvent`, `V2CoreAccountCreatedEvent`, `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingDefaultsUpdatedEvent`, `V2CoreAccountIncludingFutureRequirementsUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, `V2CoreAccountIncludingRequirementsUpdatedEvent`, and `V2CoreAccountUpdatedEvent` with related object `v2.core.Account`
6+
* Add support for event notification `V2CoreAccountLinkReturnedEvent`
7+
* Add support for event notifications `V2CoreAccountPersonCreatedEvent`, `V2CoreAccountPersonDeletedEvent`, and `V2CoreAccountPersonUpdatedEvent` with related object `v2.core.AccountPerson`
8+
39
## 31.2.0-alpha.3 - 2026-01-14
410
* [#2143](https://github.com/stripe/stripe-java/pull/2143) Update generated code for private-preview
511
* Add support for `riskDetails` on `delegatedcheckout.RequestedSession`

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4ec19847e2d6cb16e17bd2ad2aee2bf48d86013c
1+
c250368ba89214c80bc8de3e4fc5d2094c5502cc

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2151
1+
v2153

src/main/java/com/stripe/model/Subscription.java

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import com.stripe.param.SubscriptionCreateParams;
1616
import com.stripe.param.SubscriptionListParams;
1717
import com.stripe.param.SubscriptionMigrateParams;
18-
import com.stripe.param.SubscriptionPauseParams;
1918
import com.stripe.param.SubscriptionResumeParams;
2019
import com.stripe.param.SubscriptionRetrieveParams;
2120
import com.stripe.param.SubscriptionSearchParams;
@@ -968,58 +967,6 @@ public Subscription migrate(SubscriptionMigrateParams params, RequestOptions opt
968967
return getResponseGetter().request(request, Subscription.class);
969968
}
970969

971-
/**
972-
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not
973-
* generate invoices and will not advance to new billing periods. The subscription can be resumed
974-
* later using the resume endpoint. Cannot pause subscriptions with attached schedules.
975-
*/
976-
public Subscription pause(Map<String, Object> params) throws StripeException {
977-
return pause(params, (RequestOptions) null);
978-
}
979-
980-
/**
981-
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not
982-
* generate invoices and will not advance to new billing periods. The subscription can be resumed
983-
* later using the resume endpoint. Cannot pause subscriptions with attached schedules.
984-
*/
985-
public Subscription pause(Map<String, Object> params, RequestOptions options)
986-
throws StripeException {
987-
String path =
988-
String.format("/v1/subscriptions/%s/pause", ApiResource.urlEncodeId(this.getId()));
989-
ApiRequest request =
990-
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
991-
return getResponseGetter().request(request, Subscription.class);
992-
}
993-
994-
/**
995-
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not
996-
* generate invoices and will not advance to new billing periods. The subscription can be resumed
997-
* later using the resume endpoint. Cannot pause subscriptions with attached schedules.
998-
*/
999-
public Subscription pause(SubscriptionPauseParams params) throws StripeException {
1000-
return pause(params, (RequestOptions) null);
1001-
}
1002-
1003-
/**
1004-
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not
1005-
* generate invoices and will not advance to new billing periods. The subscription can be resumed
1006-
* later using the resume endpoint. Cannot pause subscriptions with attached schedules.
1007-
*/
1008-
public Subscription pause(SubscriptionPauseParams params, RequestOptions options)
1009-
throws StripeException {
1010-
String path =
1011-
String.format("/v1/subscriptions/%s/pause", ApiResource.urlEncodeId(this.getId()));
1012-
ApiResource.checkNullTypedParams(path, params);
1013-
ApiRequest request =
1014-
new ApiRequest(
1015-
BaseAddress.API,
1016-
ApiResource.RequestMethod.POST,
1017-
path,
1018-
ApiRequestParams.paramsToMap(params),
1019-
options);
1020-
return getResponseGetter().request(request, Subscription.class);
1021-
}
1022-
1023970
/**
1024971
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor
1025972
* and creating prorations. If a resumption invoice is generated, it must be paid or marked

src/main/java/com/stripe/param/SubscriptionPauseParams.java

Lines changed: 0 additions & 274 deletions
This file was deleted.

0 commit comments

Comments
 (0)