diff --git a/API_VERSION b/API_VERSION
index f3751d6a1c0..65234144801 100644
--- a/API_VERSION
+++ b/API_VERSION
@@ -1 +1 @@
-7019a9a61be5a9cc3ffa998a36dbe33057249d39
\ No newline at end of file
+b3c36f1e05eaa7339c3d0d5e862e76cfff6c6bed
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index cf2a6fea300..d1d1d36216a 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2049
\ No newline at end of file
+v2080
\ No newline at end of file
diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java
index 8031aa125ef..b2b6815fa80 100644
--- a/src/main/java/com/stripe/StripeClient.java
+++ b/src/main/java/com/stripe/StripeClient.java
@@ -380,6 +380,18 @@ public com.stripe.service.CustomerService customers() {
return new com.stripe.service.CustomerService(this.getResponseGetter());
}
+ /**
+ * @deprecated StripeClient.delegatedCheckout() is deprecated, use
+ * StripeClient.v1().delegatedCheckout() instead. All functionality under it has been copied
+ * over to StripeClient.v1().delegatedCheckout(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
+ */
+ @Deprecated
+ public com.stripe.service.DelegatedCheckoutService delegatedCheckout() {
+ return new com.stripe.service.DelegatedCheckoutService(this.getResponseGetter());
+ }
+
/**
* @deprecated StripeClient.disputes() is deprecated, use StripeClient.v1().disputes() instead.
* All functionality under it has been copied over to StripeClient.v1().disputes(). See ISO currency code,
+ * in lowercase. Must be a supported currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ /** The customer for this requested session. */
+ @SerializedName("customer")
+ String customer;
+
+ @SerializedName("fulfillment_details")
+ FulfillmentDetails fulfillmentDetails;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ *
Equal to {@code delegated_checkout.requested_session}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** Confirms a requested session. */
+ public RequestedSession confirm() throws StripeException {
+ return confirm((Map) null, (RequestOptions) null);
+ }
+
+ /** Confirms a requested session. */
+ public RequestedSession confirm(RequestOptions options) throws StripeException {
+ return confirm((Map) null, options);
+ }
+
+ /** Confirms a requested session. */
+ public RequestedSession confirm(Map params) throws StripeException {
+ return confirm(params, (RequestOptions) null);
+ }
+
+ /** Confirms a requested session. */
+ public RequestedSession confirm(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s/confirm",
+ ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Confirms a requested session. */
+ public RequestedSession confirm(RequestedSessionConfirmParams params) throws StripeException {
+ return confirm(params, (RequestOptions) null);
+ }
+
+ /** Confirms a requested session. */
+ public RequestedSession confirm(RequestedSessionConfirmParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s/confirm",
+ ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Creates a requested session. */
+ public static RequestedSession create(Map params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /** Creates a requested session. */
+ public static RequestedSession create(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/delegated_checkout/requested_sessions";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getGlobalResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Creates a requested session. */
+ public static RequestedSession create(RequestedSessionCreateParams params)
+ throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /** Creates a requested session. */
+ public static RequestedSession create(RequestedSessionCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/delegated_checkout/requested_sessions";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Expires a requested session. */
+ public RequestedSession expire() throws StripeException {
+ return expire((Map) null, (RequestOptions) null);
+ }
+
+ /** Expires a requested session. */
+ public RequestedSession expire(RequestOptions options) throws StripeException {
+ return expire((Map) null, options);
+ }
+
+ /** Expires a requested session. */
+ public RequestedSession expire(Map params) throws StripeException {
+ return expire(params, (RequestOptions) null);
+ }
+
+ /** Expires a requested session. */
+ public RequestedSession expire(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s/expire",
+ ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Expires a requested session. */
+ public RequestedSession expire(RequestedSessionExpireParams params) throws StripeException {
+ return expire(params, (RequestOptions) null);
+ }
+
+ /** Expires a requested session. */
+ public RequestedSession expire(RequestedSessionExpireParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s/expire",
+ ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Retrieves a requested session. */
+ public static RequestedSession retrieve(String requestedSession) throws StripeException {
+ return retrieve(requestedSession, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieves a requested session. */
+ public static RequestedSession retrieve(String requestedSession, RequestOptions options)
+ throws StripeException {
+ return retrieve(requestedSession, (Map) null, options);
+ }
+
+ /** Retrieves a requested session. */
+ public static RequestedSession retrieve(
+ String requestedSession, Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s",
+ ApiResource.urlEncodeId(requestedSession));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Retrieves a requested session. */
+ public static RequestedSession retrieve(
+ String requestedSession, RequestedSessionRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s",
+ ApiResource.urlEncodeId(requestedSession));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Updates a requested session. */
+ public RequestedSession update(Map params) throws StripeException {
+ return update(params, (RequestOptions) null);
+ }
+
+ /** Updates a requested session. */
+ public RequestedSession update(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s", ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /** Updates a requested session. */
+ public RequestedSession update(RequestedSessionUpdateParams params) throws StripeException {
+ return update(params, (RequestOptions) null);
+ }
+
+ /** Updates a requested session. */
+ public RequestedSession update(RequestedSessionUpdateParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s", ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, RequestedSession.class);
+ }
+
+ /**
+ * For more details about FulfillmentDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FulfillmentDetails extends StripeObject {}
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(fulfillmentDetails, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/identity/BlocklistEntry.java b/src/main/java/com/stripe/model/identity/BlocklistEntry.java
new file mode 100644
index 00000000000..57c1cc6e80d
--- /dev/null
+++ b/src/main/java/com/stripe/model/identity/BlocklistEntry.java
@@ -0,0 +1,445 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.identity;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.ExpandableField;
+import com.stripe.model.HasId;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.identity.BlocklistEntryCreateParams;
+import com.stripe.param.identity.BlocklistEntryDisableParams;
+import com.stripe.param.identity.BlocklistEntryListParams;
+import com.stripe.param.identity.BlocklistEntryRetrieveParams;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * A BlocklistEntry represents an entry in our identity verification blocklist. It helps prevent
+ * fraudulent users from repeatedly attempting verification with similar information. When you
+ * create a BlocklistEntry, we store data from a specified VerificationReport, such as document
+ * details or facial biometrics. This allows us to compare future verification attempts against
+ * these entries. If a match is found, we categorize the new verification as unverified.
+ *
+ * To learn more, see Identity
+ * Verification Blocklist
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class BlocklistEntry extends ApiResource implements HasId {
+ /** Time at which the object was created. Measured in seconds since the Unix epoch. */
+ @SerializedName("created")
+ Long created;
+
+ /** Time at which you disabled the BlocklistEntry. Measured in seconds since the Unix epoch. */
+ @SerializedName("disabled_at")
+ Long disabledAt;
+
+ /** Time at which the BlocklistEntry expires. Measured in seconds since the Unix epoch. */
+ @SerializedName("expires_at")
+ Long expiresAt;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ *
Equal to {@code identity.blocklist_entry}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * The current status of the BlocklistEntry.
+ *
+ *
One of {@code active}, {@code disabled}, or {@code redacted}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * The type of BlocklistEntry.
+ *
+ *
One of {@code document}, or {@code selfie}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** The verification report the BlocklistEntry was created from. */
+ @SerializedName("verification_report")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField verificationReport;
+
+ /** The verification session the BlocklistEntry was created from. */
+ @SerializedName("verification_session")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField verificationSession;
+
+ /** Get ID of expandable {@code verificationReport} object. */
+ public String getVerificationReport() {
+ return (this.verificationReport != null) ? this.verificationReport.getId() : null;
+ }
+
+ public void setVerificationReport(String id) {
+ this.verificationReport = ApiResource.setExpandableFieldId(id, this.verificationReport);
+ }
+
+ /** Get expanded {@code verificationReport}. */
+ public VerificationReport getVerificationReportObject() {
+ return (this.verificationReport != null) ? this.verificationReport.getExpanded() : null;
+ }
+
+ public void setVerificationReportObject(VerificationReport expandableObject) {
+ this.verificationReport =
+ new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+
+ /** Get ID of expandable {@code verificationSession} object. */
+ public String getVerificationSession() {
+ return (this.verificationSession != null) ? this.verificationSession.getId() : null;
+ }
+
+ public void setVerificationSession(String id) {
+ this.verificationSession = ApiResource.setExpandableFieldId(id, this.verificationSession);
+ }
+
+ /** Get expanded {@code verificationSession}. */
+ public VerificationSession getVerificationSessionObject() {
+ return (this.verificationSession != null) ? this.verificationSession.getExpanded() : null;
+ }
+
+ public void setVerificationSessionObject(VerificationSession expandableObject) {
+ this.verificationSession =
+ new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+
+ /**
+ * Creates a BlocklistEntry object from a verification report.
+ *
+ * A blocklist entry prevents future identity verifications that match the same identity
+ * information. You can create blocklist entries from verification reports that contain document
+ * extracted data or a selfie.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public static BlocklistEntry create(Map params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /**
+ * Creates a BlocklistEntry object from a verification report.
+ *
+ * A blocklist entry prevents future identity verifications that match the same identity
+ * information. You can create blocklist entries from verification reports that contain document
+ * extracted data or a selfie.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public static BlocklistEntry create(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/identity/blocklist_entries";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getGlobalResponseGetter().request(request, BlocklistEntry.class);
+ }
+
+ /**
+ * Creates a BlocklistEntry object from a verification report.
+ *
+ * A blocklist entry prevents future identity verifications that match the same identity
+ * information. You can create blocklist entries from verification reports that contain document
+ * extracted data or a selfie.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public static BlocklistEntry create(BlocklistEntryCreateParams params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /**
+ * Creates a BlocklistEntry object from a verification report.
+ *
+ *
A blocklist entry prevents future identity verifications that match the same identity
+ * information. You can create blocklist entries from verification reports that contain document
+ * extracted data or a selfie.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public static BlocklistEntry create(BlocklistEntryCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/identity/blocklist_entries";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, BlocklistEntry.class);
+ }
+
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ *
After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable() throws StripeException {
+ return disable((Map) null, (RequestOptions) null);
+ }
+
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ * After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(RequestOptions options) throws StripeException {
+ return disable((Map) null, options);
+ }
+
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ * After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(Map params) throws StripeException {
+ return disable(params, (RequestOptions) null);
+ }
+
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ * After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/identity/blocklist_entries/%s/disable", ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, BlocklistEntry.class);
+ }
+
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ * After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(BlocklistEntryDisableParams params) throws StripeException {
+ return disable(params, (RequestOptions) null);
+ }
+
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ *
After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(BlocklistEntryDisableParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/identity/blocklist_entries/%s/disable", ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, BlocklistEntry.class);
+ }
+
+ /**
+ * Returns a list of BlocklistEntry objects associated with your account.
+ *
+ *
The blocklist entries are returned sorted by creation date, with the most recently created
+ * entries appearing first.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public static BlocklistEntryCollection list(Map params) throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+
+ /**
+ * Returns a list of BlocklistEntry objects associated with your account.
+ *
+ * The blocklist entries are returned sorted by creation date, with the most recently created
+ * entries appearing first.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public static BlocklistEntryCollection list(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/identity/blocklist_entries";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, BlocklistEntryCollection.class);
+ }
+
+ /**
+ * Returns a list of BlocklistEntry objects associated with your account.
+ *
+ * The blocklist entries are returned sorted by creation date, with the most recently created
+ * entries appearing first.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public static BlocklistEntryCollection list(BlocklistEntryListParams params)
+ throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+
+ /**
+ * Returns a list of BlocklistEntry objects associated with your account.
+ *
+ *
The blocklist entries are returned sorted by creation date, with the most recently created
+ * entries appearing first.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public static BlocklistEntryCollection list(
+ BlocklistEntryListParams params, RequestOptions options) throws StripeException {
+ String path = "/v1/identity/blocklist_entries";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, BlocklistEntryCollection.class);
+ }
+
+ /**
+ * Retrieves a BlocklistEntry object by its identifier.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public static BlocklistEntry retrieve(String id) throws StripeException {
+ return retrieve(id, (Map) null, (RequestOptions) null);
+ }
+
+ /**
+ * Retrieves a BlocklistEntry object by its identifier.
+ *
+ * Related guide: Identity
+ * Verification Blocklist.
+ */
+ public static BlocklistEntry retrieve(String id, RequestOptions options) throws StripeException {
+ return retrieve(id, (Map) null, options);
+ }
+
+ /**
+ * Retrieves a BlocklistEntry object by its identifier.
+ *
+ * Related guide: Identity
+ * Verification Blocklist.
+ */
+ public static BlocklistEntry retrieve(
+ String id, Map params, RequestOptions options) throws StripeException {
+ String path = String.format("/v1/identity/blocklist_entries/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, BlocklistEntry.class);
+ }
+
+ /**
+ * Retrieves a BlocklistEntry object by its identifier.
+ *
+ * Related guide: Identity
+ * Verification Blocklist.
+ */
+ public static BlocklistEntry retrieve(
+ String id, BlocklistEntryRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/identity/blocklist_entries/%s", ApiResource.urlEncodeId(id));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, BlocklistEntry.class);
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(verificationReport, responseGetter);
+ trySetResponseGetter(verificationSession, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/identity/BlocklistEntryCollection.java b/src/main/java/com/stripe/model/identity/BlocklistEntryCollection.java
new file mode 100644
index 00000000000..f5b7ae57688
--- /dev/null
+++ b/src/main/java/com/stripe/model/identity/BlocklistEntryCollection.java
@@ -0,0 +1,6 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.identity;
+
+import com.stripe.model.StripeCollection;
+
+public class BlocklistEntryCollection extends StripeCollection {}
diff --git a/src/main/java/com/stripe/model/identity/VerificationReport.java b/src/main/java/com/stripe/model/identity/VerificationReport.java
index e67fdcb1618..073ef205326 100644
--- a/src/main/java/com/stripe/model/identity/VerificationReport.java
+++ b/src/main/java/com/stripe/model/identity/VerificationReport.java
@@ -4,6 +4,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.Address;
+import com.stripe.model.ExpandableField;
import com.stripe.model.HasId;
import com.stripe.model.StripeObject;
import com.stripe.net.ApiRequest;
@@ -193,6 +194,15 @@ public static class Document extends StripeObject {
@SerializedName("address")
Address address;
+ /**
+ * If document was not verified due to extracted data being on the blocklist, this is the token
+ * of the BlocklistEntry that blocked it.
+ */
+ @SerializedName("blocked_by_entry")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField blockedByEntry;
+
/** Date of birth as it appears in the document. */
@SerializedName("dob")
Dob dob;
@@ -264,6 +274,25 @@ public static class Document extends StripeObject {
@SerializedName("unparsed_sex")
String unparsedSex;
+ /** Get ID of expandable {@code blockedByEntry} object. */
+ public String getBlockedByEntry() {
+ return (this.blockedByEntry != null) ? this.blockedByEntry.getId() : null;
+ }
+
+ public void setBlockedByEntry(String id) {
+ this.blockedByEntry = ApiResource.setExpandableFieldId(id, this.blockedByEntry);
+ }
+
+ /** Get expanded {@code blockedByEntry}. */
+ public BlocklistEntry getBlockedByEntryObject() {
+ return (this.blockedByEntry != null) ? this.blockedByEntry.getExpanded() : null;
+ }
+
+ public void setBlockedByEntryObject(BlocklistEntry expandableObject) {
+ this.blockedByEntry =
+ new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+
/** Point in Time. */
@Getter
@Setter
@@ -593,6 +622,15 @@ public static class Errors extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Selfie extends StripeObject {
+ /**
+ * If selfie was not verified due to being on the blocklist, this is the token of the
+ * BlocklistEntry that blocked it.
+ */
+ @SerializedName("blocked_by_entry")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField blockedByEntry;
+
/**
* ID of the File holding the image of the
* identity document used in this check.
@@ -619,6 +657,25 @@ public static class Selfie extends StripeObject {
@SerializedName("status")
String status;
+ /** Get ID of expandable {@code blockedByEntry} object. */
+ public String getBlockedByEntry() {
+ return (this.blockedByEntry != null) ? this.blockedByEntry.getId() : null;
+ }
+
+ public void setBlockedByEntry(String id) {
+ this.blockedByEntry = ApiResource.setExpandableFieldId(id, this.blockedByEntry);
+ }
+
+ /** Get expanded {@code blockedByEntry}. */
+ public BlocklistEntry getBlockedByEntryObject() {
+ return (this.blockedByEntry != null) ? this.blockedByEntry.getExpanded() : null;
+ }
+
+ public void setBlockedByEntryObject(BlocklistEntry expandableObject) {
+ this.blockedByEntry =
+ new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+
/**
* For more details about Errors, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java
new file mode 100644
index 00000000000..a478ab33f54
--- /dev/null
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java
@@ -0,0 +1,114 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.delegatedcheckout;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class RequestedSessionConfirmParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The PaymentMethod to use with the requested session. */
+ @SerializedName("payment_method")
+ String paymentMethod;
+
+ private RequestedSessionConfirmParams(
+ List expand, Map extraParams, String paymentMethod) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.paymentMethod = paymentMethod;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ private String paymentMethod;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public RequestedSessionConfirmParams build() {
+ return new RequestedSessionConfirmParams(this.expand, this.extraParams, this.paymentMethod);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionConfirmParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionConfirmParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * RequestedSessionConfirmParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link RequestedSessionConfirmParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The PaymentMethod to use with the requested session. */
+ public Builder setPaymentMethod(String paymentMethod) {
+ this.paymentMethod = paymentMethod;
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java
new file mode 100644
index 00000000000..7128e78ed87
--- /dev/null
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java
@@ -0,0 +1,100 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.delegatedcheckout;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class RequestedSessionCreateParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private RequestedSessionCreateParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public RequestedSessionCreateParams build() {
+ return new RequestedSessionCreateParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionCreateParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionCreateParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * RequestedSessionCreateParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link RequestedSessionCreateParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionExpireParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionExpireParams.java
new file mode 100644
index 00000000000..fdffce88a6c
--- /dev/null
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionExpireParams.java
@@ -0,0 +1,100 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.delegatedcheckout;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class RequestedSessionExpireParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private RequestedSessionExpireParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public RequestedSessionExpireParams build() {
+ return new RequestedSessionExpireParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionExpireParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionExpireParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * RequestedSessionExpireParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link RequestedSessionExpireParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionRetrieveParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionRetrieveParams.java
new file mode 100644
index 00000000000..8467c96c68d
--- /dev/null
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionRetrieveParams.java
@@ -0,0 +1,100 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.delegatedcheckout;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class RequestedSessionRetrieveParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private RequestedSessionRetrieveParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public RequestedSessionRetrieveParams build() {
+ return new RequestedSessionRetrieveParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionRetrieveParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionRetrieveParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * RequestedSessionRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link RequestedSessionRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java
new file mode 100644
index 00000000000..c28f67a46a8
--- /dev/null
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionUpdateParams.java
@@ -0,0 +1,100 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.delegatedcheckout;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class RequestedSessionUpdateParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private RequestedSessionUpdateParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public RequestedSessionUpdateParams build() {
+ return new RequestedSessionUpdateParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionUpdateParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * RequestedSessionUpdateParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * RequestedSessionUpdateParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link RequestedSessionUpdateParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/identity/BlocklistEntryCreateParams.java b/src/main/java/com/stripe/param/identity/BlocklistEntryCreateParams.java
new file mode 100644
index 00000000000..ce2ca8faad1
--- /dev/null
+++ b/src/main/java/com/stripe/param/identity/BlocklistEntryCreateParams.java
@@ -0,0 +1,176 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.identity;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class BlocklistEntryCreateParams extends ApiRequestParams {
+ /**
+ * When true, the created BlocklistEntry will be used to retroactively unverify matching
+ * verifications.
+ */
+ @SerializedName("check_existing_verifications")
+ Boolean checkExistingVerifications;
+
+ /** Required. The type of blocklist entry to be created. */
+ @SerializedName("entry_type")
+ EntryType entryType;
+
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Required. The identifier of the VerificationReport to create the
+ * BlocklistEntry from.
+ */
+ @SerializedName("verification_report")
+ String verificationReport;
+
+ private BlocklistEntryCreateParams(
+ Boolean checkExistingVerifications,
+ EntryType entryType,
+ List expand,
+ Map extraParams,
+ String verificationReport) {
+ this.checkExistingVerifications = checkExistingVerifications;
+ this.entryType = entryType;
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.verificationReport = verificationReport;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Boolean checkExistingVerifications;
+
+ private EntryType entryType;
+
+ private List expand;
+
+ private Map extraParams;
+
+ private String verificationReport;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BlocklistEntryCreateParams build() {
+ return new BlocklistEntryCreateParams(
+ this.checkExistingVerifications,
+ this.entryType,
+ this.expand,
+ this.extraParams,
+ this.verificationReport);
+ }
+
+ /**
+ * When true, the created BlocklistEntry will be used to retroactively unverify matching
+ * verifications.
+ */
+ public Builder setCheckExistingVerifications(Boolean checkExistingVerifications) {
+ this.checkExistingVerifications = checkExistingVerifications;
+ return this;
+ }
+
+ /** Required. The type of blocklist entry to be created. */
+ public Builder setEntryType(BlocklistEntryCreateParams.EntryType entryType) {
+ this.entryType = entryType;
+ return this;
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BlocklistEntryCreateParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BlocklistEntryCreateParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * BlocklistEntryCreateParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link BlocklistEntryCreateParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. The identifier of the VerificationReport to create the
+ * BlocklistEntry from.
+ */
+ public Builder setVerificationReport(String verificationReport) {
+ this.verificationReport = verificationReport;
+ return this;
+ }
+ }
+
+ public enum EntryType implements ApiRequestParams.EnumParam {
+ @SerializedName("document")
+ DOCUMENT("document"),
+
+ @SerializedName("selfie")
+ SELFIE("selfie");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ EntryType(String value) {
+ this.value = value;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/identity/BlocklistEntryDisableParams.java b/src/main/java/com/stripe/param/identity/BlocklistEntryDisableParams.java
new file mode 100644
index 00000000000..b3b6c910556
--- /dev/null
+++ b/src/main/java/com/stripe/param/identity/BlocklistEntryDisableParams.java
@@ -0,0 +1,100 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.identity;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class BlocklistEntryDisableParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private BlocklistEntryDisableParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BlocklistEntryDisableParams build() {
+ return new BlocklistEntryDisableParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BlocklistEntryDisableParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BlocklistEntryDisableParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * BlocklistEntryDisableParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link BlocklistEntryDisableParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/identity/BlocklistEntryListParams.java b/src/main/java/com/stripe/param/identity/BlocklistEntryListParams.java
new file mode 100644
index 00000000000..ba66dbbc74d
--- /dev/null
+++ b/src/main/java/com/stripe/param/identity/BlocklistEntryListParams.java
@@ -0,0 +1,383 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.identity;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class BlocklistEntryListParams extends ApiRequestParams {
+ /** Only return BlocklistEntries that were created during the given date interval. */
+ @SerializedName("created")
+ Object created;
+
+ /**
+ * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
+ * in the list. For instance, if you make a list request and receive 100 objects, starting with
+ * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to
+ * fetch the previous page of the list.
+ */
+ @SerializedName("ending_before")
+ String endingBefore;
+
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
+ * default is 10.
+ */
+ @SerializedName("limit")
+ Long limit;
+
+ /**
+ * A cursor for use in pagination. {@code starting_after} is an object ID that defines your place
+ * in the list. For instance, if you make a list request and receive 100 objects, ending with
+ * {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in order to
+ * fetch the next page of the list.
+ */
+ @SerializedName("starting_after")
+ String startingAfter;
+
+ /** Only return blocklist entries with the specified status. */
+ @SerializedName("status")
+ Status status;
+
+ /** Only return blocklist entries of the specified type. */
+ @SerializedName("type")
+ Type type;
+
+ /** Only return blocklist entries created from this verification report. */
+ @SerializedName("verification_report")
+ String verificationReport;
+
+ private BlocklistEntryListParams(
+ Object created,
+ String endingBefore,
+ List expand,
+ Map extraParams,
+ Long limit,
+ String startingAfter,
+ Status status,
+ Type type,
+ String verificationReport) {
+ this.created = created;
+ this.endingBefore = endingBefore;
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.limit = limit;
+ this.startingAfter = startingAfter;
+ this.status = status;
+ this.type = type;
+ this.verificationReport = verificationReport;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Object created;
+
+ private String endingBefore;
+
+ private List expand;
+
+ private Map extraParams;
+
+ private Long limit;
+
+ private String startingAfter;
+
+ private Status status;
+
+ private Type type;
+
+ private String verificationReport;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BlocklistEntryListParams build() {
+ return new BlocklistEntryListParams(
+ this.created,
+ this.endingBefore,
+ this.expand,
+ this.extraParams,
+ this.limit,
+ this.startingAfter,
+ this.status,
+ this.type,
+ this.verificationReport);
+ }
+
+ /** Only return BlocklistEntries that were created during the given date interval. */
+ public Builder setCreated(BlocklistEntryListParams.Created created) {
+ this.created = created;
+ return this;
+ }
+
+ /** Only return BlocklistEntries that were created during the given date interval. */
+ public Builder setCreated(Long created) {
+ this.created = created;
+ return this;
+ }
+
+ /**
+ * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
+ * in the list. For instance, if you make a list request and receive 100 objects, starting with
+ * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to
+ * fetch the previous page of the list.
+ */
+ public Builder setEndingBefore(String endingBefore) {
+ this.endingBefore = endingBefore;
+ return this;
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BlocklistEntryListParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BlocklistEntryListParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * BlocklistEntryListParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link BlocklistEntryListParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
+ * default is 10.
+ */
+ public Builder setLimit(Long limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * A cursor for use in pagination. {@code starting_after} is an object ID that defines your
+ * place in the list. For instance, if you make a list request and receive 100 objects, ending
+ * with {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in
+ * order to fetch the next page of the list.
+ */
+ public Builder setStartingAfter(String startingAfter) {
+ this.startingAfter = startingAfter;
+ return this;
+ }
+
+ /** Only return blocklist entries with the specified status. */
+ public Builder setStatus(BlocklistEntryListParams.Status status) {
+ this.status = status;
+ return this;
+ }
+
+ /** Only return blocklist entries of the specified type. */
+ public Builder setType(BlocklistEntryListParams.Type type) {
+ this.type = type;
+ return this;
+ }
+
+ /** Only return blocklist entries created from this verification report. */
+ public Builder setVerificationReport(String verificationReport) {
+ this.verificationReport = verificationReport;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Created {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Minimum value to filter by (exclusive). */
+ @SerializedName("gt")
+ Long gt;
+
+ /** Minimum value to filter by (inclusive). */
+ @SerializedName("gte")
+ Long gte;
+
+ /** Maximum value to filter by (exclusive). */
+ @SerializedName("lt")
+ Long lt;
+
+ /** Maximum value to filter by (inclusive). */
+ @SerializedName("lte")
+ Long lte;
+
+ private Created(Map extraParams, Long gt, Long gte, Long lt, Long lte) {
+ this.extraParams = extraParams;
+ this.gt = gt;
+ this.gte = gte;
+ this.lt = lt;
+ this.lte = lte;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Long gt;
+
+ private Long gte;
+
+ private Long lt;
+
+ private Long lte;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BlocklistEntryListParams.Created build() {
+ return new BlocklistEntryListParams.Created(
+ this.extraParams, this.gt, this.gte, this.lt, this.lte);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * BlocklistEntryListParams.Created#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link BlocklistEntryListParams.Created#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Minimum value to filter by (exclusive). */
+ public Builder setGt(Long gt) {
+ this.gt = gt;
+ return this;
+ }
+
+ /** Minimum value to filter by (inclusive). */
+ public Builder setGte(Long gte) {
+ this.gte = gte;
+ return this;
+ }
+
+ /** Maximum value to filter by (exclusive). */
+ public Builder setLt(Long lt) {
+ this.lt = lt;
+ return this;
+ }
+
+ /** Maximum value to filter by (inclusive). */
+ public Builder setLte(Long lte) {
+ this.lte = lte;
+ return this;
+ }
+ }
+ }
+
+ public enum Status implements ApiRequestParams.EnumParam {
+ @SerializedName("active")
+ ACTIVE("active"),
+
+ @SerializedName("disabled")
+ DISABLED("disabled"),
+
+ @SerializedName("redacted")
+ REDACTED("redacted");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Status(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("document")
+ DOCUMENT("document"),
+
+ @SerializedName("selfie")
+ SELFIE("selfie");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/identity/BlocklistEntryRetrieveParams.java b/src/main/java/com/stripe/param/identity/BlocklistEntryRetrieveParams.java
new file mode 100644
index 00000000000..e541ab27f5e
--- /dev/null
+++ b/src/main/java/com/stripe/param/identity/BlocklistEntryRetrieveParams.java
@@ -0,0 +1,100 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.identity;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class BlocklistEntryRetrieveParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private BlocklistEntryRetrieveParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public BlocklistEntryRetrieveParams build() {
+ return new BlocklistEntryRetrieveParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BlocklistEntryRetrieveParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * BlocklistEntryRetrieveParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * BlocklistEntryRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link BlocklistEntryRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/identity/VerificationReportListParams.java b/src/main/java/com/stripe/param/identity/VerificationReportListParams.java
index 478002caa05..3b63f09e4ac 100644
--- a/src/main/java/com/stripe/param/identity/VerificationReportListParams.java
+++ b/src/main/java/com/stripe/param/identity/VerificationReportListParams.java
@@ -13,6 +13,10 @@
@Getter
@EqualsAndHashCode(callSuper = false)
public class VerificationReportListParams extends ApiRequestParams {
+ /** Only return VerificationReports that were blocked by this BlocklistEntry id. */
+ @SerializedName("blocked_by_entry")
+ String blockedByEntry;
+
/**
* A string to reference this user. This can be a customer ID, a session ID, or similar, and can
* be used to reconcile this verification with your internal systems.
@@ -74,6 +78,7 @@ public class VerificationReportListParams extends ApiRequestParams {
String verificationSession;
private VerificationReportListParams(
+ String blockedByEntry,
String clientReferenceId,
Object created,
String endingBefore,
@@ -83,6 +88,7 @@ private VerificationReportListParams(
String startingAfter,
Type type,
String verificationSession) {
+ this.blockedByEntry = blockedByEntry;
this.clientReferenceId = clientReferenceId;
this.created = created;
this.endingBefore = endingBefore;
@@ -99,6 +105,8 @@ public static Builder builder() {
}
public static class Builder {
+ private String blockedByEntry;
+
private String clientReferenceId;
private Object created;
@@ -120,6 +128,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public VerificationReportListParams build() {
return new VerificationReportListParams(
+ this.blockedByEntry,
this.clientReferenceId,
this.created,
this.endingBefore,
@@ -131,6 +140,12 @@ public VerificationReportListParams build() {
this.verificationSession);
}
+ /** Only return VerificationReports that were blocked by this BlocklistEntry id. */
+ public Builder setBlockedByEntry(String blockedByEntry) {
+ this.blockedByEntry = blockedByEntry;
+ return this;
+ }
+
/**
* A string to reference this user. This can be a customer ID, a session ID, or similar, and can
* be used to reconcile this verification with your internal systems.
diff --git a/src/main/java/com/stripe/service/DelegatedCheckoutService.java b/src/main/java/com/stripe/service/DelegatedCheckoutService.java
new file mode 100644
index 00000000000..3fef1e1a845
--- /dev/null
+++ b/src/main/java/com/stripe/service/DelegatedCheckoutService.java
@@ -0,0 +1,16 @@
+// File generated from our OpenAPI spec
+package com.stripe.service;
+
+import com.stripe.net.ApiService;
+import com.stripe.net.StripeResponseGetter;
+
+public final class DelegatedCheckoutService extends ApiService {
+ public DelegatedCheckoutService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ public com.stripe.service.delegatedcheckout.RequestedSessionService requestedSessions() {
+ return new com.stripe.service.delegatedcheckout.RequestedSessionService(
+ this.getResponseGetter());
+ }
+}
diff --git a/src/main/java/com/stripe/service/IdentityService.java b/src/main/java/com/stripe/service/IdentityService.java
index 5c90fa14ea5..dad39331bcd 100644
--- a/src/main/java/com/stripe/service/IdentityService.java
+++ b/src/main/java/com/stripe/service/IdentityService.java
@@ -9,6 +9,10 @@ public IdentityService(StripeResponseGetter responseGetter) {
super(responseGetter);
}
+ public com.stripe.service.identity.BlocklistEntryService blocklistEntries() {
+ return new com.stripe.service.identity.BlocklistEntryService(this.getResponseGetter());
+ }
+
public com.stripe.service.identity.VerificationReportService verificationReports() {
return new com.stripe.service.identity.VerificationReportService(this.getResponseGetter());
}
diff --git a/src/main/java/com/stripe/service/V1Services.java b/src/main/java/com/stripe/service/V1Services.java
index 4252cc95b59..c00f9e72bc9 100644
--- a/src/main/java/com/stripe/service/V1Services.java
+++ b/src/main/java/com/stripe/service/V1Services.java
@@ -97,6 +97,10 @@ public com.stripe.service.CustomerService customers() {
return new com.stripe.service.CustomerService(this.getResponseGetter());
}
+ public com.stripe.service.DelegatedCheckoutService delegatedCheckout() {
+ return new com.stripe.service.DelegatedCheckoutService(this.getResponseGetter());
+ }
+
public com.stripe.service.DisputeService disputes() {
return new com.stripe.service.DisputeService(this.getResponseGetter());
}
diff --git a/src/main/java/com/stripe/service/delegatedcheckout/RequestedSessionService.java b/src/main/java/com/stripe/service/delegatedcheckout/RequestedSessionService.java
new file mode 100644
index 00000000000..4179cbcb993
--- /dev/null
+++ b/src/main/java/com/stripe/service/delegatedcheckout/RequestedSessionService.java
@@ -0,0 +1,173 @@
+// File generated from our OpenAPI spec
+package com.stripe.service.delegatedcheckout;
+
+import com.stripe.exception.StripeException;
+import com.stripe.model.delegatedcheckout.RequestedSession;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.ApiService;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.delegatedcheckout.RequestedSessionConfirmParams;
+import com.stripe.param.delegatedcheckout.RequestedSessionCreateParams;
+import com.stripe.param.delegatedcheckout.RequestedSessionExpireParams;
+import com.stripe.param.delegatedcheckout.RequestedSessionRetrieveParams;
+import com.stripe.param.delegatedcheckout.RequestedSessionUpdateParams;
+
+public final class RequestedSessionService extends ApiService {
+ public RequestedSessionService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ /** Retrieves a requested session. */
+ public RequestedSession retrieve(String requestedSession, RequestedSessionRetrieveParams params)
+ throws StripeException {
+ return retrieve(requestedSession, params, (RequestOptions) null);
+ }
+ /** Retrieves a requested session. */
+ public RequestedSession retrieve(String requestedSession, RequestOptions options)
+ throws StripeException {
+ return retrieve(requestedSession, (RequestedSessionRetrieveParams) null, options);
+ }
+ /** Retrieves a requested session. */
+ public RequestedSession retrieve(String requestedSession) throws StripeException {
+ return retrieve(requestedSession, (RequestedSessionRetrieveParams) null, (RequestOptions) null);
+ }
+ /** Retrieves a requested session. */
+ public RequestedSession retrieve(
+ String requestedSession, RequestedSessionRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s",
+ ApiResource.urlEncodeId(requestedSession));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, RequestedSession.class);
+ }
+ /** Updates a requested session. */
+ public RequestedSession update(String requestedSession, RequestedSessionUpdateParams params)
+ throws StripeException {
+ return update(requestedSession, params, (RequestOptions) null);
+ }
+ /** Updates a requested session. */
+ public RequestedSession update(String requestedSession, RequestOptions options)
+ throws StripeException {
+ return update(requestedSession, (RequestedSessionUpdateParams) null, options);
+ }
+ /** Updates a requested session. */
+ public RequestedSession update(String requestedSession) throws StripeException {
+ return update(requestedSession, (RequestedSessionUpdateParams) null, (RequestOptions) null);
+ }
+ /** Updates a requested session. */
+ public RequestedSession update(
+ String requestedSession, RequestedSessionUpdateParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s",
+ ApiResource.urlEncodeId(requestedSession));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, RequestedSession.class);
+ }
+ /** Creates a requested session. */
+ public RequestedSession create(RequestedSessionCreateParams params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+ /** Creates a requested session. */
+ public RequestedSession create(RequestOptions options) throws StripeException {
+ return create((RequestedSessionCreateParams) null, options);
+ }
+ /** Creates a requested session. */
+ public RequestedSession create() throws StripeException {
+ return create((RequestedSessionCreateParams) null, (RequestOptions) null);
+ }
+ /** Creates a requested session. */
+ public RequestedSession create(RequestedSessionCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/delegated_checkout/requested_sessions";
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, RequestedSession.class);
+ }
+ /** Confirms a requested session. */
+ public RequestedSession confirm(String requestedSession, RequestedSessionConfirmParams params)
+ throws StripeException {
+ return confirm(requestedSession, params, (RequestOptions) null);
+ }
+ /** Confirms a requested session. */
+ public RequestedSession confirm(String requestedSession, RequestOptions options)
+ throws StripeException {
+ return confirm(requestedSession, (RequestedSessionConfirmParams) null, options);
+ }
+ /** Confirms a requested session. */
+ public RequestedSession confirm(String requestedSession) throws StripeException {
+ return confirm(requestedSession, (RequestedSessionConfirmParams) null, (RequestOptions) null);
+ }
+ /** Confirms a requested session. */
+ public RequestedSession confirm(
+ String requestedSession, RequestedSessionConfirmParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s/confirm",
+ ApiResource.urlEncodeId(requestedSession));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, RequestedSession.class);
+ }
+ /** Expires a requested session. */
+ public RequestedSession expire(String requestedSession, RequestedSessionExpireParams params)
+ throws StripeException {
+ return expire(requestedSession, params, (RequestOptions) null);
+ }
+ /** Expires a requested session. */
+ public RequestedSession expire(String requestedSession, RequestOptions options)
+ throws StripeException {
+ return expire(requestedSession, (RequestedSessionExpireParams) null, options);
+ }
+ /** Expires a requested session. */
+ public RequestedSession expire(String requestedSession) throws StripeException {
+ return expire(requestedSession, (RequestedSessionExpireParams) null, (RequestOptions) null);
+ }
+ /** Expires a requested session. */
+ public RequestedSession expire(
+ String requestedSession, RequestedSessionExpireParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/delegated_checkout/requested_sessions/%s/expire",
+ ApiResource.urlEncodeId(requestedSession));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, RequestedSession.class);
+ }
+}
diff --git a/src/main/java/com/stripe/service/identity/BlocklistEntryService.java b/src/main/java/com/stripe/service/identity/BlocklistEntryService.java
new file mode 100644
index 00000000000..fed41f6cc10
--- /dev/null
+++ b/src/main/java/com/stripe/service/identity/BlocklistEntryService.java
@@ -0,0 +1,235 @@
+// File generated from our OpenAPI spec
+package com.stripe.service.identity;
+
+import com.google.gson.reflect.TypeToken;
+import com.stripe.exception.StripeException;
+import com.stripe.model.StripeCollection;
+import com.stripe.model.identity.BlocklistEntry;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.ApiService;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.identity.BlocklistEntryCreateParams;
+import com.stripe.param.identity.BlocklistEntryDisableParams;
+import com.stripe.param.identity.BlocklistEntryListParams;
+import com.stripe.param.identity.BlocklistEntryRetrieveParams;
+
+public final class BlocklistEntryService extends ApiService {
+ public BlocklistEntryService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ /**
+ * Returns a list of BlocklistEntry objects associated with your account.
+ *
+ * The blocklist entries are returned sorted by creation date, with the most recently created
+ * entries appearing first.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public StripeCollection list(BlocklistEntryListParams params)
+ throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+ /**
+ * Returns a list of BlocklistEntry objects associated with your account.
+ *
+ * The blocklist entries are returned sorted by creation date, with the most recently created
+ * entries appearing first.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public StripeCollection list(RequestOptions options) throws StripeException {
+ return list((BlocklistEntryListParams) null, options);
+ }
+ /**
+ * Returns a list of BlocklistEntry objects associated with your account.
+ *
+ * The blocklist entries are returned sorted by creation date, with the most recently created
+ * entries appearing first.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public StripeCollection list() throws StripeException {
+ return list((BlocklistEntryListParams) null, (RequestOptions) null);
+ }
+ /**
+ * Returns a list of BlocklistEntry objects associated with your account.
+ *
+ * The blocklist entries are returned sorted by creation date, with the most recently created
+ * entries appearing first.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public StripeCollection list(
+ BlocklistEntryListParams params, RequestOptions options) throws StripeException {
+ String path = "/v1/identity/blocklist_entries";
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, new TypeToken>() {}.getType());
+ }
+ /**
+ * Creates a BlocklistEntry object from a verification report.
+ *
+ * A blocklist entry prevents future identity verifications that match the same identity
+ * information. You can create blocklist entries from verification reports that contain document
+ * extracted data or a selfie.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry create(BlocklistEntryCreateParams params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+ /**
+ * Creates a BlocklistEntry object from a verification report.
+ *
+ *
A blocklist entry prevents future identity verifications that match the same identity
+ * information. You can create blocklist entries from verification reports that contain document
+ * extracted data or a selfie.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry create(BlocklistEntryCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/identity/blocklist_entries";
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, BlocklistEntry.class);
+ }
+ /**
+ * Retrieves a BlocklistEntry object by its identifier.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public BlocklistEntry retrieve(String id, BlocklistEntryRetrieveParams params)
+ throws StripeException {
+ return retrieve(id, params, (RequestOptions) null);
+ }
+ /**
+ * Retrieves a BlocklistEntry object by its identifier.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public BlocklistEntry retrieve(String id, RequestOptions options) throws StripeException {
+ return retrieve(id, (BlocklistEntryRetrieveParams) null, options);
+ }
+ /**
+ * Retrieves a BlocklistEntry object by its identifier.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public BlocklistEntry retrieve(String id) throws StripeException {
+ return retrieve(id, (BlocklistEntryRetrieveParams) null, (RequestOptions) null);
+ }
+ /**
+ * Retrieves a BlocklistEntry object by its identifier.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist.
+ */
+ public BlocklistEntry retrieve(
+ String id, BlocklistEntryRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/identity/blocklist_entries/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, BlocklistEntry.class);
+ }
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ *
After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(String id, BlocklistEntryDisableParams params)
+ throws StripeException {
+ return disable(id, params, (RequestOptions) null);
+ }
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ *
After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(String id, RequestOptions options) throws StripeException {
+ return disable(id, (BlocklistEntryDisableParams) null, options);
+ }
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ *
After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(String id) throws StripeException {
+ return disable(id, (BlocklistEntryDisableParams) null, (RequestOptions) null);
+ }
+ /**
+ * Disables a BlocklistEntry object.
+ *
+ *
After a BlocklistEntry is disabled, it will no longer block future verifications that match
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry must
+ * be created using the same verification report.
+ *
+ *
Related guide: Identity
+ * Verification Blocklist
+ */
+ public BlocklistEntry disable(
+ String id, BlocklistEntryDisableParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format("/v1/identity/blocklist_entries/%s/disable", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, BlocklistEntry.class);
+ }
+}