Skip to content

Commit 1bb81fe

Browse files
Update generated code for v2113 and
1 parent d1ff347 commit 1bb81fe

29 files changed

+2362
-1743
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e9bd085efa60918c796676dc6348a3fed3cb2d90
1+
8eaa40b651a98fe0d3dd7057b309901166fc5698

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public static final class Impact {
5252
/** The number of impacted requests. */
5353
@SerializedName("impacted_requests")
5454
Long impactedRequests;
55+
/** The percentage of impacted requests. */
56+
@SerializedName("impacted_requests_percentage")
57+
String impactedRequestsPercentage;
5558
}
5659
}
5760
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public static final class Impact {
5252
/** The number of impacted requests. */
5353
@SerializedName("impacted_requests")
5454
Long impactedRequests;
55+
/** The percentage of impacted requests. */
56+
@SerializedName("impacted_requests_percentage")
57+
String impactedRequestsPercentage;
5558
}
5659
}
5760
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ public static final class Impact {
4949
/** The number of impacted requests. */
5050
@SerializedName("impacted_requests")
5151
Long impactedRequests;
52+
/** The percentage of impacted requests. */
53+
@SerializedName("impacted_requests_percentage")
54+
String impactedRequestsPercentage;
5255
}
5356
}
5457
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ public static final class Impact {
4949
/** The number of impacted requests. */
5050
@SerializedName("impacted_requests")
5151
Long impactedRequests;
52+
/** The percentage of impacted requests. */
53+
@SerializedName("impacted_requests_percentage")
54+
String impactedRequestsPercentage;
5255
}
5356
}
5457
}

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

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,31 @@ public static final class EventData {
3434

3535
public static final class Impact {
3636
/**
37-
* The account id the event should have been generated for. Only present when the account is a
37+
* The context the event should have been generated for. Only present when the account is a
3838
* connected account.
3939
*/
40-
@SerializedName("account")
41-
String account;
40+
@SerializedName("context")
41+
String context;
4242
/** The type of event that Stripe failed to generate. */
4343
@SerializedName("event_type")
4444
String eventType;
45-
/** Indicates if the event was for livemode or not. */
46-
@SerializedName("livemode")
47-
Boolean livemode;
48-
/** The number of webhooks that Stripe failed to create and deliver. */
49-
@SerializedName("missing_delivery_attempts")
50-
Long missingDeliveryAttempts;
51-
/** The related object id. */
52-
@SerializedName("related_object_id")
53-
String relatedObjectId;
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+
}
5462
}
5563
}
5664
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public static final class Impact {
3939
/** The number of impacted requests. */
4040
@SerializedName("impacted_requests")
4141
Long impactedRequests;
42+
/** The percentage of impacted requests. */
43+
@SerializedName("impacted_requests_percentage")
44+
String impactedRequestsPercentage;
4245
/**
4346
* The type of the payment method.
4447
*

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public static final class Impact {
3939
/** The number of impacted requests. */
4040
@SerializedName("impacted_requests")
4141
Long impactedRequests;
42+
/** The percentage of impacted requests. */
43+
@SerializedName("impacted_requests_percentage")
44+
String impactedRequestsPercentage;
4245
/**
4346
* The type of the payment method.
4447
*
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.Event;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.payments.OffSessionPayment;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2PaymentsOffSessionPaymentAttemptFailedEvent extends Event {
13+
@SerializedName("related_object")
14+
15+
/** Object containing the reference to API resource relevant to the event. */
16+
RelatedObject relatedObject;
17+
18+
/** Retrieves the related object from the API. Make an API request on every call. */
19+
public OffSessionPayment fetchRelatedObject() throws StripeException {
20+
return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.Event.RelatedObject;
7+
import com.stripe.model.v2.core.EventNotification;
8+
import com.stripe.model.v2.payments.OffSessionPayment;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2PaymentsOffSessionPaymentAttemptFailedEventNotification
13+
extends EventNotification {
14+
@SerializedName("related_object")
15+
16+
/** Object containing the reference to API resource relevant to the event. */
17+
RelatedObject relatedObject;
18+
19+
/** Retrieves the related object from the API. Make an API request on every call. */
20+
public OffSessionPayment fetchRelatedObject() throws StripeException {
21+
return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject);
22+
}
23+
/** Retrieve the corresponding full event from the Stripe API. */
24+
@Override
25+
public V2PaymentsOffSessionPaymentAttemptFailedEvent fetchEvent() throws StripeException {
26+
return (V2PaymentsOffSessionPaymentAttemptFailedEvent) super.fetchEvent();
27+
}
28+
}

0 commit comments

Comments
 (0)