Skip to content

Commit 1c30c69

Browse files
Merge pull request #2103 from stripe/latest-codegen-beta
Update generated code for beta
2 parents e4cc6c8 + 7ce0154 commit 1c30c69

File tree

111 files changed

+134764
-50190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+134764
-50190
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c5d9f47b11fbac901125e0621faadddc6ac6eb1e
1+
a4f6cd305e695abb9ca7cdf25b8828504e2854d7

CHANGELOG.md

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

3+
## 30.2.0 - 2025-11-05
4+
* [#2102](https://github.com/stripe/stripe-java/pull/2102) Update generated code
5+
* Add support for `captureMethod` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present`
6+
37
## 30.2.0-beta.1 - 2025-10-29
48

59
This release changes the pinned API version to `2025-10-29.preview`.

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2104
1+
v2125

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ Stripe has features in the [private preview phase](https://docs.stripe.com/relea
272272

273273
### Custom requests
274274

275+
> This feature is only available from version 27 of this SDK.
276+
275277
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on `StripeClient`.
276278

277279
```java

src/main/java/com/stripe/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
package com.stripe;
33

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-10-29.preview";
5+
public static final String CURRENT = "2025-11-17.preview";
66
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.model.v2.core.Event;
6+
import java.time.Instant;
7+
import lombok.Getter;
8+
import lombok.Setter;
9+
10+
@Getter
11+
public final class V2CoreHealthEventGenerationFailureResolvedEvent extends Event {
12+
/** Data for the v2.core.health.event_generation_failure.resolved event. */
13+
@SerializedName("data")
14+
V2CoreHealthEventGenerationFailureResolvedEvent.EventData data;
15+
16+
@Getter
17+
@Setter
18+
public static final class EventData {
19+
/** The alert ID. */
20+
@SerializedName("alert_id")
21+
String alertId;
22+
/** The grouping key for the alert. */
23+
@SerializedName("grouping_key")
24+
String groupingKey;
25+
/** The user impact. */
26+
@SerializedName("impact")
27+
Impact impact;
28+
/** The time when the user experience has returned to expected levels. */
29+
@SerializedName("resolved_at")
30+
Instant resolvedAt;
31+
/** A short description of the alert. */
32+
@SerializedName("summary")
33+
String summary;
34+
35+
public static final class Impact {
36+
/**
37+
* The context the event should have been generated for. Only present when the account is a
38+
* connected account.
39+
*/
40+
@SerializedName("context")
41+
String context;
42+
/** The type of event that Stripe failed to generate. */
43+
@SerializedName("event_type")
44+
String eventType;
45+
/** The related object details. */
46+
@SerializedName("related_object")
47+
com.stripe.events.V2CoreHealthEventGenerationFailureResolvedEvent.EventData.Impact
48+
.RelatedObject
49+
relatedObject;
50+
51+
public static final class RelatedObject {
52+
/** The ID of the related object (e.g., "pi_..."). */
53+
@SerializedName("id")
54+
String id;
55+
/** The type of the related object (e.g., "payment_intent"). */
56+
@SerializedName("type")
57+
String type;
58+
/** The API URL for the related object (e.g., "/v1/payment_intents/pi_..."). */
59+
@SerializedName("url")
60+
String url;
61+
}
62+
}
63+
}
64+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.exception.StripeException;
5+
import com.stripe.model.v2.core.EventNotification;
6+
7+
public final class V2CoreHealthEventGenerationFailureResolvedEventNotification
8+
extends EventNotification {
9+
/** Retrieve the corresponding full event from the Stripe API. */
10+
@Override
11+
public V2CoreHealthEventGenerationFailureResolvedEvent fetchEvent() throws StripeException {
12+
return (V2CoreHealthEventGenerationFailureResolvedEvent) super.fetchEvent();
13+
}
14+
}

src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.java

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

src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification.java

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

src/main/java/com/stripe/events/V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.java

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

0 commit comments

Comments
 (0)