Skip to content

Commit fb32f35

Browse files
Update generated code (#2220)
* Update generated code for v2276 and 9e9ef9ec9df30a59ccafb74c27b81311fa2896d5 * Update generated code for v2277 and d59a1f4bdea3032b8e282d40badc032cb021fc60 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Michael Broshi <94012587+mbroshi-stripe@users.noreply.github.com>
1 parent cb4d131 commit fb32f35

107 files changed

Lines changed: 11144 additions & 709 deletions

File tree

Some content is hidden

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

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9aa5ee4ed2b929f65b7fbf7c341f938682888500
1+
d59a1f4bdea3032b8e282d40badc032cb021fc60

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2252
1+
v2277

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

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

44
final class ApiVersion {
5-
public static final String CURRENT = "2026-04-22.dahlia";
5+
public static final String CURRENT = "2026-05-27.dahlia";
66
public static final String CURRENT_MAJOR = "dahlia";
77
}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ public static final class ErrorType {
4747
*
4848
* <p>One of {@code archived_meter}, {@code meter_event_customer_not_found}, {@code
4949
* meter_event_dimension_count_too_high}, {@code meter_event_invalid_value}, {@code
50-
* meter_event_no_customer_defined}, {@code missing_dimension_payload_keys}, {@code
51-
* no_meter}, {@code timestamp_in_future}, or {@code timestamp_too_far_in_past}.
50+
* meter_event_no_customer_defined}, {@code meter_event_value_too_many_digits}, {@code
51+
* missing_dimension_payload_keys}, {@code no_meter}, {@code timestamp_in_future}, or {@code
52+
* timestamp_too_far_in_past}.
5253
*/
5354
@SerializedName("code")
5455
String code;

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ public static final class ErrorType {
4444
*
4545
* <p>One of {@code archived_meter}, {@code meter_event_customer_not_found}, {@code
4646
* meter_event_dimension_count_too_high}, {@code meter_event_invalid_value}, {@code
47-
* meter_event_no_customer_defined}, {@code missing_dimension_payload_keys}, {@code
48-
* no_meter}, {@code timestamp_in_future}, or {@code timestamp_too_far_in_past}.
47+
* meter_event_no_customer_defined}, {@code meter_event_value_too_many_digits}, {@code
48+
* missing_dimension_payload_keys}, {@code no_meter}, {@code timestamp_in_future}, or {@code
49+
* timestamp_too_far_in_past}.
4950
*/
5051
@SerializedName("code")
5152
String code;
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.commerce.ProductCatalogImport;
7+
import com.stripe.model.v2.core.Event;
8+
import com.stripe.model.v2.core.Event.RelatedObject;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CommerceProductCatalogImportsFailedEvent 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 ProductCatalogImport fetchRelatedObject() throws StripeException {
20+
return (ProductCatalogImport) 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.commerce.ProductCatalogImport;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.core.EventNotification;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CommerceProductCatalogImportsFailedEventNotification
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 ProductCatalogImport fetchRelatedObject() throws StripeException {
21+
return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject);
22+
}
23+
/** Retrieve the corresponding full event from the Stripe API. */
24+
@Override
25+
public V2CommerceProductCatalogImportsFailedEvent fetchEvent() throws StripeException {
26+
return (V2CommerceProductCatalogImportsFailedEvent) super.fetchEvent();
27+
}
28+
}
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.commerce.ProductCatalogImport;
7+
import com.stripe.model.v2.core.Event;
8+
import com.stripe.model.v2.core.Event.RelatedObject;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CommerceProductCatalogImportsProcessingEvent 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 ProductCatalogImport fetchRelatedObject() throws StripeException {
20+
return (ProductCatalogImport) 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.commerce.ProductCatalogImport;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.core.EventNotification;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CommerceProductCatalogImportsProcessingEventNotification
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 ProductCatalogImport fetchRelatedObject() throws StripeException {
21+
return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject);
22+
}
23+
/** Retrieve the corresponding full event from the Stripe API. */
24+
@Override
25+
public V2CommerceProductCatalogImportsProcessingEvent fetchEvent() throws StripeException {
26+
return (V2CommerceProductCatalogImportsProcessingEvent) super.fetchEvent();
27+
}
28+
}
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.commerce.ProductCatalogImport;
7+
import com.stripe.model.v2.core.Event;
8+
import com.stripe.model.v2.core.Event.RelatedObject;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CommerceProductCatalogImportsSucceededEvent 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 ProductCatalogImport fetchRelatedObject() throws StripeException {
20+
return (ProductCatalogImport) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}

0 commit comments

Comments
 (0)