Skip to content

Commit

Permalink
Update generated code for v1501
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Feb 21, 2025
1 parent 04ecbb0 commit 483c92f
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 100 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1495
v1501
24 changes: 4 additions & 20 deletions src/main/java/com/stripe/param/AccountPersonCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class AccountPersonCreateParams extends ApiRequestParams {
* any jurisdiction.
*/
@SerializedName("political_exposure")
PoliticalExposure politicalExposure;
String politicalExposure;

/** The person's registered address. */
@SerializedName("registered_address")
Expand Down Expand Up @@ -191,7 +191,7 @@ private AccountPersonCreateParams(
String nationality,
String personToken,
String phone,
PoliticalExposure politicalExposure,
String politicalExposure,
RegisteredAddress registeredAddress,
Relationship relationship,
String ssnLast4,
Expand Down Expand Up @@ -280,7 +280,7 @@ public static class Builder {

private String phone;

private PoliticalExposure politicalExposure;
private String politicalExposure;

private RegisteredAddress registeredAddress;

Expand Down Expand Up @@ -621,8 +621,7 @@ public Builder setPhone(String phone) {
* related persons, declares that they hold or have held an important public job or function, in
* any jurisdiction.
*/
public Builder setPoliticalExposure(
AccountPersonCreateParams.PoliticalExposure politicalExposure) {
public Builder setPoliticalExposure(String politicalExposure) {
this.politicalExposure = politicalExposure;
return this;
}
Expand Down Expand Up @@ -2482,19 +2481,4 @@ public Builder setFront(String front) {
}
}
}

public enum PoliticalExposure implements ApiRequestParams.EnumParam {
@SerializedName("existing")
EXISTING("existing"),

@SerializedName("none")
NONE("none");

@Getter(onMethod_ = {@Override})
private final String value;

PoliticalExposure(String value) {
this.value = value;
}
}
}
34 changes: 14 additions & 20 deletions src/main/java/com/stripe/param/AccountPersonUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class AccountPersonUpdateParams extends ApiRequestParams {
* any jurisdiction.
*/
@SerializedName("political_exposure")
PoliticalExposure politicalExposure;
Object politicalExposure;

/** The person's registered address. */
@SerializedName("registered_address")
Expand Down Expand Up @@ -191,7 +191,7 @@ private AccountPersonUpdateParams(
Object nationality,
Object personToken,
Object phone,
PoliticalExposure politicalExposure,
Object politicalExposure,
RegisteredAddress registeredAddress,
Relationship relationship,
Object ssnLast4,
Expand Down Expand Up @@ -280,7 +280,7 @@ public static class Builder {

private Object phone;

private PoliticalExposure politicalExposure;
private Object politicalExposure;

private RegisteredAddress registeredAddress;

Expand Down Expand Up @@ -726,8 +726,17 @@ public Builder setPhone(EmptyParam phone) {
* related persons, declares that they hold or have held an important public job or function, in
* any jurisdiction.
*/
public Builder setPoliticalExposure(
AccountPersonUpdateParams.PoliticalExposure politicalExposure) {
public Builder setPoliticalExposure(String politicalExposure) {
this.politicalExposure = politicalExposure;
return this;
}

/**
* Indicates if the person or any of their representatives, family members, or other closely
* related persons, declares that they hold or have held an important public job or function, in
* any jurisdiction.
*/
public Builder setPoliticalExposure(EmptyParam politicalExposure) {
this.politicalExposure = politicalExposure;
return this;
}
Expand Down Expand Up @@ -2817,19 +2826,4 @@ public Builder setFront(EmptyParam front) {
}
}
}

public enum PoliticalExposure implements ApiRequestParams.EnumParam {
@SerializedName("existing")
EXISTING("existing"),

@SerializedName("none")
NONE("none");

@Getter(onMethod_ = {@Override})
private final String value;

PoliticalExposure(String value) {
this.value = value;
}
}
}
24 changes: 4 additions & 20 deletions src/main/java/com/stripe/param/PersonCollectionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class PersonCollectionCreateParams extends ApiRequestParams {
* any jurisdiction.
*/
@SerializedName("political_exposure")
PoliticalExposure politicalExposure;
String politicalExposure;

/** The person's registered address. */
@SerializedName("registered_address")
Expand Down Expand Up @@ -191,7 +191,7 @@ private PersonCollectionCreateParams(
String nationality,
String personToken,
String phone,
PoliticalExposure politicalExposure,
String politicalExposure,
RegisteredAddress registeredAddress,
Relationship relationship,
String ssnLast4,
Expand Down Expand Up @@ -280,7 +280,7 @@ public static class Builder {

private String phone;

private PoliticalExposure politicalExposure;
private String politicalExposure;

private RegisteredAddress registeredAddress;

Expand Down Expand Up @@ -621,8 +621,7 @@ public Builder setPhone(String phone) {
* related persons, declares that they hold or have held an important public job or function, in
* any jurisdiction.
*/
public Builder setPoliticalExposure(
PersonCollectionCreateParams.PoliticalExposure politicalExposure) {
public Builder setPoliticalExposure(String politicalExposure) {
this.politicalExposure = politicalExposure;
return this;
}
Expand Down Expand Up @@ -2489,19 +2488,4 @@ public Builder setFront(String front) {
}
}
}

public enum PoliticalExposure implements ApiRequestParams.EnumParam {
@SerializedName("existing")
EXISTING("existing"),

@SerializedName("none")
NONE("none");

@Getter(onMethod_ = {@Override})
private final String value;

PoliticalExposure(String value) {
this.value = value;
}
}
}
33 changes: 14 additions & 19 deletions src/main/java/com/stripe/param/PersonUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class PersonUpdateParams extends ApiRequestParams {
* any jurisdiction.
*/
@SerializedName("political_exposure")
PoliticalExposure politicalExposure;
Object politicalExposure;

/** The person's registered address. */
@SerializedName("registered_address")
Expand Down Expand Up @@ -191,7 +191,7 @@ private PersonUpdateParams(
Object nationality,
Object personToken,
Object phone,
PoliticalExposure politicalExposure,
Object politicalExposure,
RegisteredAddress registeredAddress,
Relationship relationship,
Object ssnLast4,
Expand Down Expand Up @@ -280,7 +280,7 @@ public static class Builder {

private Object phone;

private PoliticalExposure politicalExposure;
private Object politicalExposure;

private RegisteredAddress registeredAddress;

Expand Down Expand Up @@ -726,7 +726,17 @@ public Builder setPhone(EmptyParam phone) {
* related persons, declares that they hold or have held an important public job or function, in
* any jurisdiction.
*/
public Builder setPoliticalExposure(PersonUpdateParams.PoliticalExposure politicalExposure) {
public Builder setPoliticalExposure(String politicalExposure) {
this.politicalExposure = politicalExposure;
return this;
}

/**
* Indicates if the person or any of their representatives, family members, or other closely
* related persons, declares that they hold or have held an important public job or function, in
* any jurisdiction.
*/
public Builder setPoliticalExposure(EmptyParam politicalExposure) {
this.politicalExposure = politicalExposure;
return this;
}
Expand Down Expand Up @@ -2809,19 +2819,4 @@ public Builder setFront(EmptyParam front) {
}
}
}

public enum PoliticalExposure implements ApiRequestParams.EnumParam {
@SerializedName("existing")
EXISTING("existing"),

@SerializedName("none")
NONE("none");

@Getter(onMethod_ = {@Override})
private final String value;

PoliticalExposure(String value) {
this.value = value;
}
}
}
24 changes: 4 additions & 20 deletions src/main/java/com/stripe/param/TokenCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -4454,7 +4454,7 @@ public static class Person {
* any jurisdiction.
*/
@SerializedName("political_exposure")
PoliticalExposure politicalExposure;
String politicalExposure;

/** The person's registered address. */
@SerializedName("registered_address")
Expand Down Expand Up @@ -4495,7 +4495,7 @@ private Person(
Object metadata,
String nationality,
String phone,
PoliticalExposure politicalExposure,
String politicalExposure,
RegisteredAddress registeredAddress,
Relationship relationship,
String ssnLast4,
Expand Down Expand Up @@ -4578,7 +4578,7 @@ public static class Builder {

private String phone;

private PoliticalExposure politicalExposure;
private String politicalExposure;

private RegisteredAddress registeredAddress;

Expand Down Expand Up @@ -4884,8 +4884,7 @@ public Builder setPhone(String phone) {
* related persons, declares that they hold or have held an important public job or function,
* in any jurisdiction.
*/
public Builder setPoliticalExposure(
TokenCreateParams.Person.PoliticalExposure politicalExposure) {
public Builder setPoliticalExposure(String politicalExposure) {
this.politicalExposure = politicalExposure;
return this;
}
Expand Down Expand Up @@ -6772,21 +6771,6 @@ public Builder setFront(String front) {
}
}
}

public enum PoliticalExposure implements ApiRequestParams.EnumParam {
@SerializedName("existing")
EXISTING("existing"),

@SerializedName("none")
NONE("none");

@Getter(onMethod_ = {@Override})
private final String value;

PoliticalExposure(String value) {
this.value = value;
}
}
}

@Getter
Expand Down

0 comments on commit 483c92f

Please sign in to comment.