diff --git a/API_VERSION b/API_VERSION index 0d5c06d24fb..33ba6981527 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -1307ab81356642fb1bf890524815d5cb6997a34d \ No newline at end of file +ffe4efab9b5dec59fea6b69a94f4b024fa7cf992 \ No newline at end of file diff --git a/src/main/java/com/stripe/events/V2IamApiKeyCreatedEvent.java b/src/main/java/com/stripe/events/V2IamApiKeyCreatedEvent.java new file mode 100644 index 00000000000..5cf9db5390d --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyCreatedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V2IamApiKeyCreatedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyCreatedEventNotification.java b/src/main/java/com/stripe/events/V2IamApiKeyCreatedEventNotification.java new file mode 100644 index 00000000000..3b6a781300f --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyCreatedEventNotification.java @@ -0,0 +1,13 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.core.EventNotification; + +public final class V2IamApiKeyCreatedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2IamApiKeyCreatedEvent fetchEvent() throws StripeException { + return (V2IamApiKeyCreatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyDefaultSecretRevealedEvent.java b/src/main/java/com/stripe/events/V2IamApiKeyDefaultSecretRevealedEvent.java new file mode 100644 index 00000000000..e684a9e517b --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyDefaultSecretRevealedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V2IamApiKeyDefaultSecretRevealedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyDefaultSecretRevealedEventNotification.java b/src/main/java/com/stripe/events/V2IamApiKeyDefaultSecretRevealedEventNotification.java new file mode 100644 index 00000000000..78ef8302768 --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyDefaultSecretRevealedEventNotification.java @@ -0,0 +1,13 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.core.EventNotification; + +public final class V2IamApiKeyDefaultSecretRevealedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2IamApiKeyDefaultSecretRevealedEvent fetchEvent() throws StripeException { + return (V2IamApiKeyDefaultSecretRevealedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyExpiredEvent.java b/src/main/java/com/stripe/events/V2IamApiKeyExpiredEvent.java new file mode 100644 index 00000000000..e07fb53cb6b --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyExpiredEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V2IamApiKeyExpiredEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyExpiredEventNotification.java b/src/main/java/com/stripe/events/V2IamApiKeyExpiredEventNotification.java new file mode 100644 index 00000000000..102b5dba935 --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyExpiredEventNotification.java @@ -0,0 +1,13 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.core.EventNotification; + +public final class V2IamApiKeyExpiredEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2IamApiKeyExpiredEvent fetchEvent() throws StripeException { + return (V2IamApiKeyExpiredEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyPermissionsUpdatedEvent.java b/src/main/java/com/stripe/events/V2IamApiKeyPermissionsUpdatedEvent.java new file mode 100644 index 00000000000..894ae8f5663 --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyPermissionsUpdatedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V2IamApiKeyPermissionsUpdatedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyPermissionsUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2IamApiKeyPermissionsUpdatedEventNotification.java new file mode 100644 index 00000000000..81afbbb4f0c --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyPermissionsUpdatedEventNotification.java @@ -0,0 +1,13 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.core.EventNotification; + +public final class V2IamApiKeyPermissionsUpdatedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2IamApiKeyPermissionsUpdatedEvent fetchEvent() throws StripeException { + return (V2IamApiKeyPermissionsUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyRotatedEvent.java b/src/main/java/com/stripe/events/V2IamApiKeyRotatedEvent.java new file mode 100644 index 00000000000..636d37e2e71 --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyRotatedEvent.java @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.google.gson.annotations.SerializedName; +import com.stripe.model.v2.core.Event; +import lombok.Getter; +import lombok.Setter; + +@Getter +public final class V2IamApiKeyRotatedEvent extends Event { + /** Data for the v2.iam.api_key.rotated event. */ + @SerializedName("data") + V2IamApiKeyRotatedEvent.EventData data; + + @Getter + @Setter + public static final class EventData { + /** ID of the new key that was created due to rotation. */ + @SerializedName("new_api_key") + String newApiKey; + } +} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyRotatedEventNotification.java b/src/main/java/com/stripe/events/V2IamApiKeyRotatedEventNotification.java new file mode 100644 index 00000000000..d7af1b08faa --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyRotatedEventNotification.java @@ -0,0 +1,13 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.core.EventNotification; + +public final class V2IamApiKeyRotatedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2IamApiKeyRotatedEvent fetchEvent() throws StripeException { + return (V2IamApiKeyRotatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyUpdatedEvent.java b/src/main/java/com/stripe/events/V2IamApiKeyUpdatedEvent.java new file mode 100644 index 00000000000..7a03e94e954 --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyUpdatedEvent.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.model.v2.core.Event; + +public final class V2IamApiKeyUpdatedEvent extends Event {} diff --git a/src/main/java/com/stripe/events/V2IamApiKeyUpdatedEventNotification.java b/src/main/java/com/stripe/events/V2IamApiKeyUpdatedEventNotification.java new file mode 100644 index 00000000000..d595c4c641f --- /dev/null +++ b/src/main/java/com/stripe/events/V2IamApiKeyUpdatedEventNotification.java @@ -0,0 +1,13 @@ +// File generated from our OpenAPI spec +package com.stripe.events; + +import com.stripe.exception.StripeException; +import com.stripe.model.v2.core.EventNotification; + +public final class V2IamApiKeyUpdatedEventNotification extends EventNotification { + /** Retrieve the corresponding full event from the Stripe API. */ + @Override + public V2IamApiKeyUpdatedEvent fetchEvent() throws StripeException { + return (V2IamApiKeyUpdatedEvent) super.fetchEvent(); + } +} diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java index a12c45d0cd9..1ab70aab922 100644 --- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java @@ -381,6 +381,16 @@ public final class EventDataClassLookup { eventClassLookup.put( "v2.core.health.webhook_latency.resolved", com.stripe.events.V2CoreHealthWebhookLatencyResolvedEvent.class); + eventClassLookup.put("v2.iam.api_key.created", com.stripe.events.V2IamApiKeyCreatedEvent.class); + eventClassLookup.put( + "v2.iam.api_key.default_secret_revealed", + com.stripe.events.V2IamApiKeyDefaultSecretRevealedEvent.class); + eventClassLookup.put("v2.iam.api_key.expired", com.stripe.events.V2IamApiKeyExpiredEvent.class); + eventClassLookup.put( + "v2.iam.api_key.permissions_updated", + com.stripe.events.V2IamApiKeyPermissionsUpdatedEvent.class); + eventClassLookup.put("v2.iam.api_key.rotated", com.stripe.events.V2IamApiKeyRotatedEvent.class); + eventClassLookup.put("v2.iam.api_key.updated", com.stripe.events.V2IamApiKeyUpdatedEvent.class); eventClassLookup.put( "v2.money_management.adjustment.created", com.stripe.events.V2MoneyManagementAdjustmentCreatedEvent.class); diff --git a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java index 6b0151b7f2b..60c7107a1b6 100644 --- a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java @@ -285,6 +285,20 @@ public final class EventNotificationClassLookup { eventClassLookup.put( "v2.core.health.webhook_latency.resolved", com.stripe.events.V2CoreHealthWebhookLatencyResolvedEventNotification.class); + eventClassLookup.put( + "v2.iam.api_key.created", com.stripe.events.V2IamApiKeyCreatedEventNotification.class); + eventClassLookup.put( + "v2.iam.api_key.default_secret_revealed", + com.stripe.events.V2IamApiKeyDefaultSecretRevealedEventNotification.class); + eventClassLookup.put( + "v2.iam.api_key.expired", com.stripe.events.V2IamApiKeyExpiredEventNotification.class); + eventClassLookup.put( + "v2.iam.api_key.permissions_updated", + com.stripe.events.V2IamApiKeyPermissionsUpdatedEventNotification.class); + eventClassLookup.put( + "v2.iam.api_key.rotated", com.stripe.events.V2IamApiKeyRotatedEventNotification.class); + eventClassLookup.put( + "v2.iam.api_key.updated", com.stripe.events.V2IamApiKeyUpdatedEventNotification.class); eventClassLookup.put( "v2.money_management.adjustment.created", com.stripe.events.V2MoneyManagementAdjustmentCreatedEventNotification.class);