Skip to content

Commit 5fad1d2

Browse files
Update generated code (#2144)
* Update generated code for v2151 and * Update generated code for v2152 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent c5d0f0f commit 5fad1d2

File tree

38 files changed

+1067
-2
lines changed

38 files changed

+1067
-2
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
88aa59022b32620f4d66d6196e3b42d5a0f86bbb
1+
c250368ba89214c80bc8de3e4fc5d2094c5502cc

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2140
1+
v2152
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.Account;
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 V2CoreAccountClosedEvent 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 Account fetchRelatedObject() throws StripeException {
20+
return (Account) 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.Account;
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 V2CoreAccountClosedEventNotification 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 Account fetchRelatedObject() throws StripeException {
20+
return (Account) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2CoreAccountClosedEvent fetchEvent() throws StripeException {
25+
return (V2CoreAccountClosedEvent) 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.Account;
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 V2CoreAccountCreatedEvent 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 Account fetchRelatedObject() throws StripeException {
20+
return (Account) 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.Account;
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 V2CoreAccountCreatedEventNotification 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 Account fetchRelatedObject() throws StripeException {
20+
return (Account) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2CoreAccountCreatedEvent fetchEvent() throws StripeException {
25+
return (V2CoreAccountCreatedEvent) super.fetchEvent();
26+
}
27+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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.Account;
7+
import com.stripe.model.v2.core.Event;
8+
import com.stripe.model.v2.core.Event.RelatedObject;
9+
import lombok.Getter;
10+
import lombok.Setter;
11+
12+
@Getter
13+
public final class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
14+
extends Event {
15+
/** Data for the v2.core.account[configuration.customer].capability_status_updated event. */
16+
@SerializedName("data")
17+
V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.EventData data;
18+
19+
@Getter
20+
@Setter
21+
public static final class EventData {
22+
/**
23+
* Open Enum. The capability which had its status updated.
24+
*
25+
* <p>Equal to {@code automatic_indirect_tax}.
26+
*/
27+
@SerializedName("updated_capability")
28+
String updatedCapability;
29+
}
30+
31+
@SerializedName("related_object")
32+
33+
/** Object containing the reference to API resource relevant to the event. */
34+
RelatedObject relatedObject;
35+
36+
/** Retrieves the related object from the API. Make an API request on every call. */
37+
public Account fetchRelatedObject() throws StripeException {
38+
return (Account) super.fetchRelatedObject(this.relatedObject);
39+
}
40+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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.Account;
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
13+
class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification
14+
extends EventNotification {
15+
@SerializedName("related_object")
16+
17+
/** Object containing the reference to API resource relevant to the event. */
18+
RelatedObject relatedObject;
19+
20+
/** Retrieves the related object from the API. Make an API request on every call. */
21+
public Account fetchRelatedObject() throws StripeException {
22+
return (Account) super.fetchRelatedObject(this.relatedObject);
23+
}
24+
/** Retrieve the corresponding full event from the Stripe API. */
25+
@Override
26+
public V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent fetchEvent()
27+
throws StripeException {
28+
return (V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent)
29+
super.fetchEvent();
30+
}
31+
}
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.Account;
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 V2CoreAccountIncludingConfigurationCustomerUpdatedEvent 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 Account fetchRelatedObject() throws StripeException {
20+
return (Account) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.Account;
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 V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification
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 Account fetchRelatedObject() throws StripeException {
21+
return (Account) super.fetchRelatedObject(this.relatedObject);
22+
}
23+
/** Retrieve the corresponding full event from the Stripe API. */
24+
@Override
25+
public V2CoreAccountIncludingConfigurationCustomerUpdatedEvent fetchEvent()
26+
throws StripeException {
27+
return (V2CoreAccountIncludingConfigurationCustomerUpdatedEvent) super.fetchEvent();
28+
}
29+
}

0 commit comments

Comments
 (0)