Skip to content

Commit

Permalink
Update generated code for v1450
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jan 15, 2025
1 parent ae99ec9 commit 5e2ea4e
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1449
v1450
121 changes: 119 additions & 2 deletions src/main/java/com/stripe/param/AccountCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -9772,6 +9772,10 @@ public static class Documents {
@SerializedName("proof_of_registration")
ProofOfRegistration proofOfRegistration;

/** One or more documents that demonstrate proof of ultimate beneficial ownership. */
@SerializedName("proof_of_ultimate_beneficial_ownership")
ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership;

private Documents(
BankAccountOwnershipVerification bankAccountOwnershipVerification,
CompanyLicense companyLicense,
Expand All @@ -9780,7 +9784,8 @@ private Documents(
CompanyRegistrationVerification companyRegistrationVerification,
CompanyTaxIdVerification companyTaxIdVerification,
Map<String, Object> extraParams,
ProofOfRegistration proofOfRegistration) {
ProofOfRegistration proofOfRegistration,
ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership) {
this.bankAccountOwnershipVerification = bankAccountOwnershipVerification;
this.companyLicense = companyLicense;
this.companyMemorandumOfAssociation = companyMemorandumOfAssociation;
Expand All @@ -9789,6 +9794,7 @@ private Documents(
this.companyTaxIdVerification = companyTaxIdVerification;
this.extraParams = extraParams;
this.proofOfRegistration = proofOfRegistration;
this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership;
}

public static Builder builder() {
Expand All @@ -9812,6 +9818,8 @@ public static class Builder {

private ProofOfRegistration proofOfRegistration;

private ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership;

/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Documents build() {
return new AccountCreateParams.Documents(
Expand All @@ -9822,7 +9830,8 @@ public AccountCreateParams.Documents build() {
this.companyRegistrationVerification,
this.companyTaxIdVerification,
this.extraParams,
this.proofOfRegistration);
this.proofOfRegistration,
this.proofOfUltimateBeneficialOwnership);
}

/**
Expand Down Expand Up @@ -9917,6 +9926,14 @@ public Builder setProofOfRegistration(
this.proofOfRegistration = proofOfRegistration;
return this;
}

/** One or more documents that demonstrate proof of ultimate beneficial ownership. */
public Builder setProofOfUltimateBeneficialOwnership(
AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership
proofOfUltimateBeneficialOwnership) {
this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership;
return this;
}
}

@Getter
Expand Down Expand Up @@ -10597,6 +10614,106 @@ public Builder addAllFile(List<String> elements) {
}
}
}

@Getter
public static class ProofOfUltimateBeneficialOwnership {
/**
* 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<String, Object> extraParams;

/**
* One or more document ids returned by a <a
* href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose} value
* of {@code account_requirement}.
*/
@SerializedName("files")
List<String> files;

private ProofOfUltimateBeneficialOwnership(
Map<String, Object> extraParams, List<String> files) {
this.extraParams = extraParams;
this.files = files;
}

public static Builder builder() {
return new Builder();
}

public static class Builder {
private Map<String, Object> extraParams;

private List<String> files;

/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership build() {
return new AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership(
this.extraParams, this.files);
}

/**
* 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
* AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership#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
* AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map<String, Object> map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}

/**
* Add an element to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership#files} for the field
* documentation.
*/
public Builder addFile(String element) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(element);
return this;
}

/**
* Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership#files} for the field
* documentation.
*/
public Builder addAllFile(List<String> elements) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.addAll(elements);
return this;
}
}
}
}

@Getter
Expand Down
121 changes: 119 additions & 2 deletions src/main/java/com/stripe/param/AccountUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -9461,6 +9461,10 @@ public static class Documents {
@SerializedName("proof_of_registration")
ProofOfRegistration proofOfRegistration;

/** One or more documents that demonstrate proof of ultimate beneficial ownership. */
@SerializedName("proof_of_ultimate_beneficial_ownership")
ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership;

private Documents(
BankAccountOwnershipVerification bankAccountOwnershipVerification,
CompanyLicense companyLicense,
Expand All @@ -9469,7 +9473,8 @@ private Documents(
CompanyRegistrationVerification companyRegistrationVerification,
CompanyTaxIdVerification companyTaxIdVerification,
Map<String, Object> extraParams,
ProofOfRegistration proofOfRegistration) {
ProofOfRegistration proofOfRegistration,
ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership) {
this.bankAccountOwnershipVerification = bankAccountOwnershipVerification;
this.companyLicense = companyLicense;
this.companyMemorandumOfAssociation = companyMemorandumOfAssociation;
Expand All @@ -9478,6 +9483,7 @@ private Documents(
this.companyTaxIdVerification = companyTaxIdVerification;
this.extraParams = extraParams;
this.proofOfRegistration = proofOfRegistration;
this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership;
}

public static Builder builder() {
Expand All @@ -9501,6 +9507,8 @@ public static class Builder {

private ProofOfRegistration proofOfRegistration;

private ProofOfUltimateBeneficialOwnership proofOfUltimateBeneficialOwnership;

/** Finalize and obtain parameter instance from this builder. */
public AccountUpdateParams.Documents build() {
return new AccountUpdateParams.Documents(
Expand All @@ -9511,7 +9519,8 @@ public AccountUpdateParams.Documents build() {
this.companyRegistrationVerification,
this.companyTaxIdVerification,
this.extraParams,
this.proofOfRegistration);
this.proofOfRegistration,
this.proofOfUltimateBeneficialOwnership);
}

/**
Expand Down Expand Up @@ -9606,6 +9615,14 @@ public Builder setProofOfRegistration(
this.proofOfRegistration = proofOfRegistration;
return this;
}

/** One or more documents that demonstrate proof of ultimate beneficial ownership. */
public Builder setProofOfUltimateBeneficialOwnership(
AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership
proofOfUltimateBeneficialOwnership) {
this.proofOfUltimateBeneficialOwnership = proofOfUltimateBeneficialOwnership;
return this;
}
}

@Getter
Expand Down Expand Up @@ -10286,6 +10303,106 @@ public Builder addAllFile(List<String> elements) {
}
}
}

@Getter
public static class ProofOfUltimateBeneficialOwnership {
/**
* 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<String, Object> extraParams;

/**
* One or more document ids returned by a <a
* href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose} value
* of {@code account_requirement}.
*/
@SerializedName("files")
List<String> files;

private ProofOfUltimateBeneficialOwnership(
Map<String, Object> extraParams, List<String> files) {
this.extraParams = extraParams;
this.files = files;
}

public static Builder builder() {
return new Builder();
}

public static class Builder {
private Map<String, Object> extraParams;

private List<String> files;

/** Finalize and obtain parameter instance from this builder. */
public AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership build() {
return new AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership(
this.extraParams, this.files);
}

/**
* 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
* AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership#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
* AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map<String, Object> map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}

/**
* Add an element to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership#files} for the field
* documentation.
*/
public Builder addFile(String element) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(element);
return this;
}

/**
* Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
* and subsequent calls adds additional elements to the original list. See {@link
* AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership#files} for the field
* documentation.
*/
public Builder addAllFile(List<String> elements) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.addAll(elements);
return this;
}
}
}
}

@Getter
Expand Down

0 comments on commit 5e2ea4e

Please sign in to comment.