Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1307ab81356642fb1bf890524815d5cb6997a34d
ffe4efab9b5dec59fea6b69a94f4b024fa7cf992
Original file line number Diff line number Diff line change
@@ -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 {}
Original file line number Diff line number Diff line change
@@ -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();
}
}
Original file line number Diff line number Diff line change
@@ -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 {}
Original file line number Diff line number Diff line change
@@ -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();
}
}
Original file line number Diff line number Diff line change
@@ -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 {}
Original file line number Diff line number Diff line change
@@ -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();
}
}
Original file line number Diff line number Diff line change
@@ -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 {}
Original file line number Diff line number Diff line change
@@ -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();
}
}
22 changes: 22 additions & 0 deletions src/main/java/com/stripe/events/V2IamApiKeyRotatedEvent.java
Original file line number Diff line number Diff line change
@@ -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;
}
}
Original file line number Diff line number Diff line change
@@ -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();
}
}
Original file line number Diff line number Diff line change
@@ -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 {}
Original file line number Diff line number Diff line change
@@ -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();
}
}
10 changes: 10 additions & 0 deletions src/main/java/com/stripe/model/v2/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down