Skip to content

Commit 2b0421a

Browse files
Update generated code for v2106 and
1 parent 83b2f0d commit 2b0421a

19 files changed

+963
-2
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
56689dcbcaa4c7ce6bf1b51a5add451972e0689c
1+
85f516560e557fcd787735d9603bd57c7abb3a91
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.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunCreatedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunCreatedEventNotification extends EventNotification {
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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2ReportingReportRunCreatedEvent fetchEvent() throws StripeException {
25+
return (V2ReportingReportRunCreatedEvent) super.fetchEvent();
26+
}
27+
}
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.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunFailedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunFailedEventNotification extends EventNotification {
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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2ReportingReportRunFailedEvent fetchEvent() throws StripeException {
25+
return (V2ReportingReportRunFailedEvent) super.fetchEvent();
26+
}
27+
}
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.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunSucceededEvent 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunSucceededEventNotification extends EventNotification {
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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2ReportingReportRunSucceededEvent fetchEvent() throws StripeException {
25+
return (V2ReportingReportRunSucceededEvent) super.fetchEvent();
26+
}
27+
}
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.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunUpdatedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunUpdatedEventNotification extends EventNotification {
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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2ReportingReportRunUpdatedEvent fetchEvent() throws StripeException {
25+
return (V2ReportingReportRunUpdatedEvent) super.fetchEvent();
26+
}
27+
}

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ public final class EventDataClassLookup {
199199
classLookup.put(
200200
"v2.payments.off_session_payment", com.stripe.model.v2.payments.OffSessionPayment.class);
201201

202+
classLookup.put("v2.reporting.report", com.stripe.model.v2.reporting.Report.class);
203+
classLookup.put("v2.reporting.report_run", com.stripe.model.v2.reporting.ReportRun.class);
204+
202205
classLookup.put("v2.tax.automatic_rule", com.stripe.model.v2.tax.AutomaticRule.class);
203206

204207
eventClassLookup.put("v1.account.updated", com.stripe.events.V1AccountUpdatedEvent.class);
@@ -942,5 +945,16 @@ public final class EventDataClassLookup {
942945
eventClassLookup.put(
943946
"v2.payments.off_session_payment.succeeded",
944947
com.stripe.events.V2PaymentsOffSessionPaymentSucceededEvent.class);
948+
eventClassLookup.put(
949+
"v2.reporting.report_run.created",
950+
com.stripe.events.V2ReportingReportRunCreatedEvent.class);
951+
eventClassLookup.put(
952+
"v2.reporting.report_run.failed", com.stripe.events.V2ReportingReportRunFailedEvent.class);
953+
eventClassLookup.put(
954+
"v2.reporting.report_run.succeeded",
955+
com.stripe.events.V2ReportingReportRunSucceededEvent.class);
956+
eventClassLookup.put(
957+
"v2.reporting.report_run.updated",
958+
com.stripe.events.V2ReportingReportRunUpdatedEvent.class);
945959
}
946960
}

0 commit comments

Comments
 (0)