Skip to content

Commit 30e13c7

Browse files
Merge pull request #2185 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 9d6f688 + 60e9872 commit 30e13c7

156 files changed

Lines changed: 6396 additions & 3883 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-
9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
1+
d70a4348dd46ca726ca64c856ce6bab15e87b470

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2203
1+
v2205
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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 java.math.BigDecimal;
7+
import java.time.Instant;
8+
import java.util.List;
9+
import lombok.Getter;
10+
import lombok.Setter;
11+
12+
@Getter
13+
public final class V1AccountSignalsIncludingDelinquencyCreatedEvent extends Event {
14+
/** Data for the v1.account_signals[delinquency].created event. */
15+
@SerializedName("data")
16+
V1AccountSignalsIncludingDelinquencyCreatedEvent.EventData data;
17+
18+
@Getter
19+
@Setter
20+
public static final class EventData {
21+
/** The account for which the signals belong to. */
22+
@SerializedName("account")
23+
String account;
24+
/** Time at which the signal was evaluated. */
25+
@SerializedName("evaluated_at")
26+
Instant evaluatedAt;
27+
/**
28+
* Array of objects representing individual factors that contributed to the calculated
29+
* probability of delinquency.
30+
*/
31+
@SerializedName("indicators")
32+
List<V1AccountSignalsIncludingDelinquencyCreatedEvent.EventData.Indicator> indicators;
33+
/** The probability of delinquency. Can be between 0.00 and 100.00. */
34+
@SerializedName("probability")
35+
BigDecimal probability;
36+
/**
37+
* Categorical assessment of the delinquency risk based on probability.
38+
*
39+
* <p>One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
40+
* not_assessed}, or {@code unknown}.
41+
*/
42+
@SerializedName("risk_level")
43+
String riskLevel;
44+
/** Unique identifier for the delinquency signal. */
45+
@SerializedName("signal_id")
46+
String signalId;
47+
48+
public static final class Indicator {
49+
/** A brief explanation of how this indicator contributed to the delinquency probability. */
50+
@SerializedName("description")
51+
String description;
52+
/**
53+
* The effect this indicator had on the overall risk level.
54+
*
55+
* <p>One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code
56+
* strong_increase}.
57+
*/
58+
@SerializedName("impact")
59+
String impact;
60+
/**
61+
* The name of the specific indicator used in the risk assessment.
62+
*
63+
* <p>One of {@code account_balance}, {@code aov}, {@code charge_concentration}, {@code
64+
* disputes}, {@code dispute_window}, {@code duplicates}, {@code exposure}, {@code
65+
* firmographic}, {@code lifetime_metrics}, {@code payment_processing}, {@code
66+
* payment_volume}, {@code payouts}, {@code refunds}, {@code tenure}, or {@code transfers}.
67+
*/
68+
@SerializedName("indicator")
69+
String indicator;
70+
}
71+
}
72+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 V1AccountSignalsIncludingDelinquencyCreatedEventNotification
8+
extends EventNotification {
9+
/** Retrieve the corresponding full event from the Stripe API. */
10+
@Override
11+
public V1AccountSignalsIncludingDelinquencyCreatedEvent fetchEvent() throws StripeException {
12+
return (V1AccountSignalsIncludingDelinquencyCreatedEvent) super.fetchEvent();
13+
}
14+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 java.time.Instant;
7+
import lombok.Getter;
8+
import lombok.Setter;
9+
10+
@Getter
11+
public final class V2CoreAccountSignalsFraudulentWebsiteReadyEvent extends Event {
12+
/** Data for the v2.core.account_signals.fraudulent_website_ready event. */
13+
@SerializedName("data")
14+
V2CoreAccountSignalsFraudulentWebsiteReadyEvent.EventData data;
15+
16+
@Getter
17+
@Setter
18+
public static final class EventData {
19+
/** The account for which the signals belong to. Empty if this was an entityless request. */
20+
@SerializedName("account")
21+
String account;
22+
/**
23+
* Human readable description of concerns found in the website, produced by LLM. If risk_level
24+
* is unknown, this explains why evaluation could not run.
25+
*/
26+
@SerializedName("details")
27+
String details;
28+
/** Time at which the signal was evaluated. */
29+
@SerializedName("evaluated_at")
30+
Instant evaluatedAt;
31+
/** Unique identifier for the fraudulent website evaluation request. */
32+
@SerializedName("evaluation_id")
33+
String evaluationId;
34+
/**
35+
* Risk level for the fraudulent website signal. If evaluation could not run (like invalid
36+
* website), we return unknown.
37+
*
38+
* <p>One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
39+
* not_assessed}, or {@code unknown}.
40+
*/
41+
@SerializedName("risk_level")
42+
String riskLevel;
43+
/** Unique identifier for the fraudulent website signal. */
44+
@SerializedName("signal_id")
45+
String signalId;
46+
}
47+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 V2CoreAccountSignalsFraudulentWebsiteReadyEventNotification
8+
extends EventNotification {
9+
/** Retrieve the corresponding full event from the Stripe API. */
10+
@Override
11+
public V2CoreAccountSignalsFraudulentWebsiteReadyEvent fetchEvent() throws StripeException {
12+
return (V2CoreAccountSignalsFraudulentWebsiteReadyEvent) super.fetchEvent();
13+
}
14+
}
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.BatchJob;
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 V2CoreBatchJobBatchFailedEvent 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 BatchJob fetchRelatedObject() throws StripeException {
20+
return (BatchJob) 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.BatchJob;
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 V2CoreBatchJobBatchFailedEventNotification 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 BatchJob fetchRelatedObject() throws StripeException {
20+
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2CoreBatchJobBatchFailedEvent fetchEvent() throws StripeException {
25+
return (V2CoreBatchJobBatchFailedEvent) 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.BatchJob;
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 V2CoreBatchJobCanceledEvent 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 BatchJob fetchRelatedObject() throws StripeException {
20+
return (BatchJob) 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.BatchJob;
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 V2CoreBatchJobCanceledEventNotification 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 BatchJob fetchRelatedObject() throws StripeException {
20+
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2CoreBatchJobCanceledEvent fetchEvent() throws StripeException {
25+
return (V2CoreBatchJobCanceledEvent) super.fetchEvent();
26+
}
27+
}

0 commit comments

Comments
 (0)