@@ -7745,6 +7745,13 @@ public static class Company {
77457745 @SerializedName("directors_provided")
77467746 Boolean directorsProvided;
77477747
7748+ /**
7749+ * This hash is used to attest that the directors information provided to Stripe is both current
7750+ * and correct.
7751+ */
7752+ @SerializedName("directorship_declaration")
7753+ DirectorshipDeclaration directorshipDeclaration;
7754+
77487755 /**
77497756 * Whether the company's executives have been provided. Set this Boolean to {@code true} after
77507757 * creating all the company's executives with <a href="https://stripe.com/api/persons">the
@@ -7851,6 +7858,7 @@ private Company(
78517858 AddressKana addressKana,
78527859 AddressKanji addressKanji,
78537860 Boolean directorsProvided,
7861+ DirectorshipDeclaration directorshipDeclaration,
78547862 Boolean executivesProvided,
78557863 Object exportLicenseId,
78567864 Object exportPurposeCode,
@@ -7872,6 +7880,7 @@ private Company(
78727880 this.addressKana = addressKana;
78737881 this.addressKanji = addressKanji;
78747882 this.directorsProvided = directorsProvided;
7883+ this.directorshipDeclaration = directorshipDeclaration;
78757884 this.executivesProvided = executivesProvided;
78767885 this.exportLicenseId = exportLicenseId;
78777886 this.exportPurposeCode = exportPurposeCode;
@@ -7904,6 +7913,8 @@ public static class Builder {
79047913
79057914 private Boolean directorsProvided;
79067915
7916+ private DirectorshipDeclaration directorshipDeclaration;
7917+
79077918 private Boolean executivesProvided;
79087919
79097920 private Object exportLicenseId;
@@ -7945,6 +7956,7 @@ public AccountUpdateParams.Company build() {
79457956 this.addressKana,
79467957 this.addressKanji,
79477958 this.directorsProvided,
7959+ this.directorshipDeclaration,
79487960 this.executivesProvided,
79497961 this.exportLicenseId,
79507962 this.exportPurposeCode,
@@ -7994,6 +8006,16 @@ public Builder setDirectorsProvided(Boolean directorsProvided) {
79948006 return this;
79958007 }
79968008
8009+ /**
8010+ * This hash is used to attest that the directors information provided to Stripe is both
8011+ * current and correct.
8012+ */
8013+ public Builder setDirectorshipDeclaration(
8014+ AccountUpdateParams.Company.DirectorshipDeclaration directorshipDeclaration) {
8015+ this.directorshipDeclaration = directorshipDeclaration;
8016+ return this;
8017+ }
8018+
79978019 /**
79988020 * Whether the company's executives have been provided. Set this Boolean to {@code true} after
79998021 * creating all the company's executives with <a href="https://stripe.com/api/persons">the
@@ -8860,6 +8882,124 @@ public Builder setTown(EmptyParam town) {
88608882 }
88618883 }
88628884
8885+ @Getter
8886+ public static class DirectorshipDeclaration {
8887+ /** The Unix timestamp marking when the directorship declaration attestation was made. */
8888+ @SerializedName("date")
8889+ Long date;
8890+
8891+ /**
8892+ * Map of extra parameters for custom features not available in this client library. The
8893+ * content in this map is not serialized under this field's {@code @SerializedName} value.
8894+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
8895+ * name in this param object. Effectively, this map is flattened to its parent instance.
8896+ */
8897+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
8898+ Map<String, Object> extraParams;
8899+
8900+ /** The IP address from which the directorship declaration attestation was made. */
8901+ @SerializedName("ip")
8902+ Object ip;
8903+
8904+ /**
8905+ * The user agent of the browser from which the directorship declaration attestation was made.
8906+ */
8907+ @SerializedName("user_agent")
8908+ Object userAgent;
8909+
8910+ private DirectorshipDeclaration(
8911+ Long date, Map<String, Object> extraParams, Object ip, Object userAgent) {
8912+ this.date = date;
8913+ this.extraParams = extraParams;
8914+ this.ip = ip;
8915+ this.userAgent = userAgent;
8916+ }
8917+
8918+ public static Builder builder() {
8919+ return new Builder();
8920+ }
8921+
8922+ public static class Builder {
8923+ private Long date;
8924+
8925+ private Map<String, Object> extraParams;
8926+
8927+ private Object ip;
8928+
8929+ private Object userAgent;
8930+
8931+ /** Finalize and obtain parameter instance from this builder. */
8932+ public AccountUpdateParams.Company.DirectorshipDeclaration build() {
8933+ return new AccountUpdateParams.Company.DirectorshipDeclaration(
8934+ this.date, this.extraParams, this.ip, this.userAgent);
8935+ }
8936+
8937+ /** The Unix timestamp marking when the directorship declaration attestation was made. */
8938+ public Builder setDate(Long date) {
8939+ this.date = date;
8940+ return this;
8941+ }
8942+
8943+ /**
8944+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
8945+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
8946+ * map. See {@link AccountUpdateParams.Company.DirectorshipDeclaration#extraParams} for the
8947+ * field documentation.
8948+ */
8949+ public Builder putExtraParam(String key, Object value) {
8950+ if (this.extraParams == null) {
8951+ this.extraParams = new HashMap<>();
8952+ }
8953+ this.extraParams.put(key, value);
8954+ return this;
8955+ }
8956+
8957+ /**
8958+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
8959+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
8960+ * map. See {@link AccountUpdateParams.Company.DirectorshipDeclaration#extraParams} for the
8961+ * field documentation.
8962+ */
8963+ public Builder putAllExtraParam(Map<String, Object> map) {
8964+ if (this.extraParams == null) {
8965+ this.extraParams = new HashMap<>();
8966+ }
8967+ this.extraParams.putAll(map);
8968+ return this;
8969+ }
8970+
8971+ /** The IP address from which the directorship declaration attestation was made. */
8972+ public Builder setIp(String ip) {
8973+ this.ip = ip;
8974+ return this;
8975+ }
8976+
8977+ /** The IP address from which the directorship declaration attestation was made. */
8978+ public Builder setIp(EmptyParam ip) {
8979+ this.ip = ip;
8980+ return this;
8981+ }
8982+
8983+ /**
8984+ * The user agent of the browser from which the directorship declaration attestation was
8985+ * made.
8986+ */
8987+ public Builder setUserAgent(String userAgent) {
8988+ this.userAgent = userAgent;
8989+ return this;
8990+ }
8991+
8992+ /**
8993+ * The user agent of the browser from which the directorship declaration attestation was
8994+ * made.
8995+ */
8996+ public Builder setUserAgent(EmptyParam userAgent) {
8997+ this.userAgent = userAgent;
8998+ return this;
8999+ }
9000+ }
9001+ }
9002+
88639003 @Getter
88649004 public static class OwnershipDeclaration {
88659005 /** The Unix timestamp marking when the beneficial owner attestation was made. */
0 commit comments