Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 31.2.0 - 2026-01-16
* [#2144](https://github.com/stripe/stripe-java/pull/2144) Update generated code
* 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`
* Add support for event notification `V2CoreAccountLinkReturnedEvent`
* Add support for event notifications `V2CoreAccountPersonCreatedEvent`, `V2CoreAccountPersonDeletedEvent`, and `V2CoreAccountPersonUpdatedEvent` with related object `v2.core.AccountPerson`

## 31.2.0-alpha.3 - 2026-01-14
* [#2143](https://github.com/stripe/stripe-java/pull/2143) Update generated code for private-preview
* Add support for `riskDetails` on `delegatedcheckout.RequestedSession`
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4ec19847e2d6cb16e17bd2ad2aee2bf48d86013c
c250368ba89214c80bc8de3e4fc5d2094c5502cc
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2151
v2153
53 changes: 0 additions & 53 deletions src/main/java/com/stripe/model/Subscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import com.stripe.param.SubscriptionCreateParams;
import com.stripe.param.SubscriptionListParams;
import com.stripe.param.SubscriptionMigrateParams;
import com.stripe.param.SubscriptionPauseParams;
import com.stripe.param.SubscriptionResumeParams;
import com.stripe.param.SubscriptionRetrieveParams;
import com.stripe.param.SubscriptionSearchParams;
Expand Down Expand Up @@ -968,58 +967,6 @@ public Subscription migrate(SubscriptionMigrateParams params, RequestOptions opt
return getResponseGetter().request(request, Subscription.class);
}

/**
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not
* generate invoices and will not advance to new billing periods. The subscription can be resumed
* later using the resume endpoint. Cannot pause subscriptions with attached schedules.
*/
public Subscription pause(Map<String, Object> params) throws StripeException {
return pause(params, (RequestOptions) null);
}

/**
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not
* generate invoices and will not advance to new billing periods. The subscription can be resumed
* later using the resume endpoint. Cannot pause subscriptions with attached schedules.
*/
public Subscription pause(Map<String, Object> params, RequestOptions options)
throws StripeException {
String path =
String.format("/v1/subscriptions/%s/pause", ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
return getResponseGetter().request(request, Subscription.class);
}

/**
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not
* generate invoices and will not advance to new billing periods. The subscription can be resumed
* later using the resume endpoint. Cannot pause subscriptions with attached schedules.
*/
public Subscription pause(SubscriptionPauseParams params) throws StripeException {
return pause(params, (RequestOptions) null);
}

/**
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not
* generate invoices and will not advance to new billing periods. The subscription can be resumed
* later using the resume endpoint. Cannot pause subscriptions with attached schedules.
*/
public Subscription pause(SubscriptionPauseParams params, RequestOptions options)
throws StripeException {
String path =
String.format("/v1/subscriptions/%s/pause", ApiResource.urlEncodeId(this.getId()));
ApiResource.checkNullTypedParams(path, params);
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
return getResponseGetter().request(request, Subscription.class);
}

/**
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor
* and creating prorations. If a resumption invoice is generated, it must be paid or marked
Expand Down
274 changes: 0 additions & 274 deletions src/main/java/com/stripe/param/SubscriptionPauseParams.java

This file was deleted.

Loading
Loading