Skip to content

Commit 2453be3

Browse files
Merge pull request #2123 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 5f08bbf + 4a63baa commit 2453be3

15 files changed

+155
-1
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1307ab81356642fb1bf890524815d5cb6997a34d
1+
ffe4efab9b5dec59fea6b69a94f4b024fa7cf992
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.model.v2.core.Event;
5+
6+
public final class V2IamApiKeyCreatedEvent extends Event {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.exception.StripeException;
5+
import com.stripe.model.v2.core.EventNotification;
6+
7+
public final class V2IamApiKeyCreatedEventNotification extends EventNotification {
8+
/** Retrieve the corresponding full event from the Stripe API. */
9+
@Override
10+
public V2IamApiKeyCreatedEvent fetchEvent() throws StripeException {
11+
return (V2IamApiKeyCreatedEvent) super.fetchEvent();
12+
}
13+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.model.v2.core.Event;
5+
6+
public final class V2IamApiKeyDefaultSecretRevealedEvent extends Event {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.exception.StripeException;
5+
import com.stripe.model.v2.core.EventNotification;
6+
7+
public final class V2IamApiKeyDefaultSecretRevealedEventNotification extends EventNotification {
8+
/** Retrieve the corresponding full event from the Stripe API. */
9+
@Override
10+
public V2IamApiKeyDefaultSecretRevealedEvent fetchEvent() throws StripeException {
11+
return (V2IamApiKeyDefaultSecretRevealedEvent) super.fetchEvent();
12+
}
13+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.model.v2.core.Event;
5+
6+
public final class V2IamApiKeyExpiredEvent extends Event {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.exception.StripeException;
5+
import com.stripe.model.v2.core.EventNotification;
6+
7+
public final class V2IamApiKeyExpiredEventNotification extends EventNotification {
8+
/** Retrieve the corresponding full event from the Stripe API. */
9+
@Override
10+
public V2IamApiKeyExpiredEvent fetchEvent() throws StripeException {
11+
return (V2IamApiKeyExpiredEvent) super.fetchEvent();
12+
}
13+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.model.v2.core.Event;
5+
6+
public final class V2IamApiKeyPermissionsUpdatedEvent extends Event {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.exception.StripeException;
5+
import com.stripe.model.v2.core.EventNotification;
6+
7+
public final class V2IamApiKeyPermissionsUpdatedEventNotification extends EventNotification {
8+
/** Retrieve the corresponding full event from the Stripe API. */
9+
@Override
10+
public V2IamApiKeyPermissionsUpdatedEvent fetchEvent() throws StripeException {
11+
return (V2IamApiKeyPermissionsUpdatedEvent) super.fetchEvent();
12+
}
13+
}
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.model.v2.core.Event;
6+
import lombok.Getter;
7+
import lombok.Setter;
8+
9+
@Getter
10+
public final class V2IamApiKeyRotatedEvent extends Event {
11+
/** Data for the v2.iam.api_key.rotated event. */
12+
@SerializedName("data")
13+
V2IamApiKeyRotatedEvent.EventData data;
14+
15+
@Getter
16+
@Setter
17+
public static final class EventData {
18+
/** ID of the new key that was created due to rotation. */
19+
@SerializedName("new_api_key")
20+
String newApiKey;
21+
}
22+
}

0 commit comments

Comments
 (0)