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 CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
d70a4348dd46ca726ca64c856ce6bab15e87b470
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2203
v2205
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.math.BigDecimal;
import java.time.Instant;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

@Getter
public final class V1AccountSignalsIncludingDelinquencyCreatedEvent extends Event {
/** Data for the v1.account_signals[delinquency].created event. */
@SerializedName("data")
V1AccountSignalsIncludingDelinquencyCreatedEvent.EventData data;

@Getter
@Setter
public static final class EventData {
/** The account for which the signals belong to. */
@SerializedName("account")
String account;
/** Time at which the signal was evaluated. */
@SerializedName("evaluated_at")
Instant evaluatedAt;
/**
* Array of objects representing individual factors that contributed to the calculated
* probability of delinquency.
*/
@SerializedName("indicators")
List<V1AccountSignalsIncludingDelinquencyCreatedEvent.EventData.Indicator> indicators;
/** The probability of delinquency. Can be between 0.00 and 100.00. */
@SerializedName("probability")
BigDecimal probability;
/**
* Categorical assessment of the delinquency risk based on probability.
*
* <p>One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
* not_assessed}, or {@code unknown}.
*/
@SerializedName("risk_level")
String riskLevel;
/** Unique identifier for the delinquency signal. */
@SerializedName("signal_id")
String signalId;

public static final class Indicator {
/** A brief explanation of how this indicator contributed to the delinquency probability. */
@SerializedName("description")
String description;
/**
* The effect this indicator had on the overall risk level.
*
* <p>One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code
* strong_increase}.
*/
@SerializedName("impact")
String impact;
/**
* The name of the specific indicator used in the risk assessment.
*
* <p>One of {@code account_balance}, {@code aov}, {@code charge_concentration}, {@code
* disputes}, {@code dispute_window}, {@code duplicates}, {@code exposure}, {@code
* firmographic}, {@code lifetime_metrics}, {@code payment_processing}, {@code
* payment_volume}, {@code payouts}, {@code refunds}, {@code tenure}, or {@code transfers}.
*/
@SerializedName("indicator")
String indicator;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 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 V1AccountSignalsIncludingDelinquencyCreatedEventNotification
extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V1AccountSignalsIncludingDelinquencyCreatedEvent fetchEvent() throws StripeException {
return (V1AccountSignalsIncludingDelinquencyCreatedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import lombok.Getter;
import lombok.Setter;

@Getter
public final class V2CoreAccountSignalsFraudulentWebsiteReadyEvent extends Event {
/** Data for the v2.core.account_signals.fraudulent_website_ready event. */
@SerializedName("data")
V2CoreAccountSignalsFraudulentWebsiteReadyEvent.EventData data;

@Getter
@Setter
public static final class EventData {
/** The account for which the signals belong to. Empty if this was an entityless request. */
@SerializedName("account")
String account;
/**
* Human readable description of concerns found in the website, produced by LLM. If risk_level
* is unknown, this explains why evaluation could not run.
*/
@SerializedName("details")
String details;
/** Time at which the signal was evaluated. */
@SerializedName("evaluated_at")
Instant evaluatedAt;
/** Unique identifier for the fraudulent website evaluation request. */
@SerializedName("evaluation_id")
String evaluationId;
/**
* Risk level for the fraudulent website signal. If evaluation could not run (like invalid
* website), we return unknown.
*
* <p>One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
* not_assessed}, or {@code unknown}.
*/
@SerializedName("risk_level")
String riskLevel;
/** Unique identifier for the fraudulent website signal. */
@SerializedName("signal_id")
String signalId;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 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 V2CoreAccountSignalsFraudulentWebsiteReadyEventNotification
extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreAccountSignalsFraudulentWebsiteReadyEvent fetchEvent() throws StripeException {
return (V2CoreAccountSignalsFraudulentWebsiteReadyEvent) super.fetchEvent();
}
}
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.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobBatchFailedEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobBatchFailedEventNotification extends EventNotification {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreBatchJobBatchFailedEvent fetchEvent() throws StripeException {
return (V2CoreBatchJobBatchFailedEvent) super.fetchEvent();
}
}
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.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobCanceledEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobCanceledEventNotification extends EventNotification {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreBatchJobCanceledEvent fetchEvent() throws StripeException {
return (V2CoreBatchJobCanceledEvent) super.fetchEvent();
}
}
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.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobCompletedEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobCompletedEventNotification extends EventNotification {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreBatchJobCompletedEvent fetchEvent() throws StripeException {
return (V2CoreBatchJobCompletedEvent) super.fetchEvent();
}
}
22 changes: 22 additions & 0 deletions src/main/java/com/stripe/events/V2CoreBatchJobCreatedEvent.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.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobCreatedEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobCreatedEventNotification extends EventNotification {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreBatchJobCreatedEvent fetchEvent() throws StripeException {
return (V2CoreBatchJobCreatedEvent) super.fetchEvent();
}
}
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.exception.StripeException;
import com.stripe.model.v2.core.BatchJob;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import lombok.Getter;

@Getter
public final class V2CoreBatchJobReadyForUploadEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public BatchJob fetchRelatedObject() throws StripeException {
return (BatchJob) super.fetchRelatedObject(this.relatedObject);
}
}
Loading
Loading