Skip to content

Commit ae99ec9

Browse files
Update generated code for v1449
1 parent c7fa283 commit ae99ec9

File tree

4 files changed

+393
-1
lines changed

4 files changed

+393
-1
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1448
1+
v1449

src/main/java/com/stripe/param/AccountCreateParams.java

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7647,6 +7647,13 @@ public static class Company {
76477647
@SerializedName("directors_provided")
76487648
Boolean directorsProvided;
76497649

7650+
/**
7651+
* This hash is used to attest that the directors information provided to Stripe is both current
7652+
* and correct.
7653+
*/
7654+
@SerializedName("directorship_declaration")
7655+
DirectorshipDeclaration directorshipDeclaration;
7656+
76507657
/**
76517658
* Whether the company's executives have been provided. Set this Boolean to {@code true} after
76527659
* creating all the company's executives with <a href="https://stripe.com/api/persons">the
@@ -7753,6 +7760,7 @@ private Company(
77537760
AddressKana addressKana,
77547761
AddressKanji addressKanji,
77557762
Boolean directorsProvided,
7763+
DirectorshipDeclaration directorshipDeclaration,
77567764
Boolean executivesProvided,
77577765
String exportLicenseId,
77587766
String exportPurposeCode,
@@ -7774,6 +7782,7 @@ private Company(
77747782
this.addressKana = addressKana;
77757783
this.addressKanji = addressKanji;
77767784
this.directorsProvided = directorsProvided;
7785+
this.directorshipDeclaration = directorshipDeclaration;
77777786
this.executivesProvided = executivesProvided;
77787787
this.exportLicenseId = exportLicenseId;
77797788
this.exportPurposeCode = exportPurposeCode;
@@ -7806,6 +7815,8 @@ public static class Builder {
78067815

78077816
private Boolean directorsProvided;
78087817

7818+
private DirectorshipDeclaration directorshipDeclaration;
7819+
78097820
private Boolean executivesProvided;
78107821

78117822
private String exportLicenseId;
@@ -7847,6 +7858,7 @@ public AccountCreateParams.Company build() {
78477858
this.addressKana,
78487859
this.addressKanji,
78497860
this.directorsProvided,
7861+
this.directorshipDeclaration,
78507862
this.executivesProvided,
78517863
this.exportLicenseId,
78527864
this.exportPurposeCode,
@@ -7896,6 +7908,16 @@ public Builder setDirectorsProvided(Boolean directorsProvided) {
78967908
return this;
78977909
}
78987910

7911+
/**
7912+
* This hash is used to attest that the directors information provided to Stripe is both
7913+
* current and correct.
7914+
*/
7915+
public Builder setDirectorshipDeclaration(
7916+
AccountCreateParams.Company.DirectorshipDeclaration directorshipDeclaration) {
7917+
this.directorshipDeclaration = directorshipDeclaration;
7918+
return this;
7919+
}
7920+
78997921
/**
79007922
* Whether the company's executives have been provided. Set this Boolean to {@code true} after
79017923
* creating all the company's executives with <a href="https://stripe.com/api/persons">the
@@ -8559,6 +8581,109 @@ public Builder setTown(String town) {
85598581
}
85608582
}
85618583

8584+
@Getter
8585+
public static class DirectorshipDeclaration {
8586+
/** The Unix timestamp marking when the directorship declaration attestation was made. */
8587+
@SerializedName("date")
8588+
Long date;
8589+
8590+
/**
8591+
* Map of extra parameters for custom features not available in this client library. The
8592+
* content in this map is not serialized under this field's {@code @SerializedName} value.
8593+
* Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
8594+
* name in this param object. Effectively, this map is flattened to its parent instance.
8595+
*/
8596+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
8597+
Map<String, Object> extraParams;
8598+
8599+
/** The IP address from which the directorship declaration attestation was made. */
8600+
@SerializedName("ip")
8601+
String ip;
8602+
8603+
/**
8604+
* The user agent of the browser from which the directorship declaration attestation was made.
8605+
*/
8606+
@SerializedName("user_agent")
8607+
String userAgent;
8608+
8609+
private DirectorshipDeclaration(
8610+
Long date, Map<String, Object> extraParams, String ip, String userAgent) {
8611+
this.date = date;
8612+
this.extraParams = extraParams;
8613+
this.ip = ip;
8614+
this.userAgent = userAgent;
8615+
}
8616+
8617+
public static Builder builder() {
8618+
return new Builder();
8619+
}
8620+
8621+
public static class Builder {
8622+
private Long date;
8623+
8624+
private Map<String, Object> extraParams;
8625+
8626+
private String ip;
8627+
8628+
private String userAgent;
8629+
8630+
/** Finalize and obtain parameter instance from this builder. */
8631+
public AccountCreateParams.Company.DirectorshipDeclaration build() {
8632+
return new AccountCreateParams.Company.DirectorshipDeclaration(
8633+
this.date, this.extraParams, this.ip, this.userAgent);
8634+
}
8635+
8636+
/** The Unix timestamp marking when the directorship declaration attestation was made. */
8637+
public Builder setDate(Long date) {
8638+
this.date = date;
8639+
return this;
8640+
}
8641+
8642+
/**
8643+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
8644+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
8645+
* map. See {@link AccountCreateParams.Company.DirectorshipDeclaration#extraParams} for the
8646+
* field documentation.
8647+
*/
8648+
public Builder putExtraParam(String key, Object value) {
8649+
if (this.extraParams == null) {
8650+
this.extraParams = new HashMap<>();
8651+
}
8652+
this.extraParams.put(key, value);
8653+
return this;
8654+
}
8655+
8656+
/**
8657+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
8658+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
8659+
* map. See {@link AccountCreateParams.Company.DirectorshipDeclaration#extraParams} for the
8660+
* field documentation.
8661+
*/
8662+
public Builder putAllExtraParam(Map<String, Object> map) {
8663+
if (this.extraParams == null) {
8664+
this.extraParams = new HashMap<>();
8665+
}
8666+
this.extraParams.putAll(map);
8667+
return this;
8668+
}
8669+
8670+
/** The IP address from which the directorship declaration attestation was made. */
8671+
public Builder setIp(String ip) {
8672+
this.ip = ip;
8673+
return this;
8674+
}
8675+
8676+
/**
8677+
* The user agent of the browser from which the directorship declaration attestation was
8678+
* made.
8679+
*/
8680+
public Builder setUserAgent(String userAgent) {
8681+
this.userAgent = userAgent;
8682+
return this;
8683+
}
8684+
}
8685+
}
8686+
85628687
@Getter
85638688
public static class OwnershipDeclaration {
85648689
/** The Unix timestamp marking when the beneficial owner attestation was made. */

src/main/java/com/stripe/param/AccountUpdateParams.java

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)