Skip to content

Commit cbdf093

Browse files
Update generated code for v2113 and
1 parent eeec996 commit cbdf093

File tree

5 files changed

+85
-1
lines changed

5 files changed

+85
-1
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
125d391b75519fa8a44e8fdd6c482ca583fe8294
1+
30548eb63bda9b0c49c54b3ff449525f9d83b761
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/model/v2/EventDataClassLookup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ public final class EventDataClassLookup {
156156
"v2.core.account_person.updated", com.stripe.events.V2CoreAccountPersonUpdatedEvent.class);
157157
eventClassLookup.put(
158158
"v2.core.event_destination.ping", com.stripe.events.V2CoreEventDestinationPingEvent.class);
159+
eventClassLookup.put(
160+
"v2.core.health.event_generation_failure.resolved",
161+
com.stripe.events.V2CoreHealthEventGenerationFailureResolvedEvent.class);
159162
eventClassLookup.put(
160163
"v2.money_management.adjustment.created",
161164
com.stripe.events.V2MoneyManagementAdjustmentCreatedEvent.class);

src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ public final class EventNotificationClassLookup {
8787
eventClassLookup.put(
8888
"v2.core.event_destination.ping",
8989
com.stripe.events.V2CoreEventDestinationPingEventNotification.class);
90+
eventClassLookup.put(
91+
"v2.core.health.event_generation_failure.resolved",
92+
com.stripe.events.V2CoreHealthEventGenerationFailureResolvedEventNotification.class);
9093
eventClassLookup.put(
9194
"v2.money_management.adjustment.created",
9295
com.stripe.events.V2MoneyManagementAdjustmentCreatedEventNotification.class);

0 commit comments

Comments
 (0)