Skip to content

Commit 483c92f

Browse files
Update generated code for v1501
1 parent 04ecbb0 commit 483c92f

File tree

6 files changed

+41
-100
lines changed

6 files changed

+41
-100
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1495
1+
v1501

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

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public class AccountPersonCreateParams extends ApiRequestParams {
148148
* any jurisdiction.
149149
*/
150150
@SerializedName("political_exposure")
151-
PoliticalExposure politicalExposure;
151+
String politicalExposure;
152152

153153
/** The person's registered address. */
154154
@SerializedName("registered_address")
@@ -191,7 +191,7 @@ private AccountPersonCreateParams(
191191
String nationality,
192192
String personToken,
193193
String phone,
194-
PoliticalExposure politicalExposure,
194+
String politicalExposure,
195195
RegisteredAddress registeredAddress,
196196
Relationship relationship,
197197
String ssnLast4,
@@ -280,7 +280,7 @@ public static class Builder {
280280

281281
private String phone;
282282

283-
private PoliticalExposure politicalExposure;
283+
private String politicalExposure;
284284

285285
private RegisteredAddress registeredAddress;
286286

@@ -621,8 +621,7 @@ public Builder setPhone(String phone) {
621621
* related persons, declares that they hold or have held an important public job or function, in
622622
* any jurisdiction.
623623
*/
624-
public Builder setPoliticalExposure(
625-
AccountPersonCreateParams.PoliticalExposure politicalExposure) {
624+
public Builder setPoliticalExposure(String politicalExposure) {
626625
this.politicalExposure = politicalExposure;
627626
return this;
628627
}
@@ -2482,19 +2481,4 @@ public Builder setFront(String front) {
24822481
}
24832482
}
24842483
}
2485-
2486-
public enum PoliticalExposure implements ApiRequestParams.EnumParam {
2487-
@SerializedName("existing")
2488-
EXISTING("existing"),
2489-
2490-
@SerializedName("none")
2491-
NONE("none");
2492-
2493-
@Getter(onMethod_ = {@Override})
2494-
private final String value;
2495-
2496-
PoliticalExposure(String value) {
2497-
this.value = value;
2498-
}
2499-
}
25002484
}

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

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public class AccountPersonUpdateParams extends ApiRequestParams {
148148
* any jurisdiction.
149149
*/
150150
@SerializedName("political_exposure")
151-
PoliticalExposure politicalExposure;
151+
Object politicalExposure;
152152

153153
/** The person's registered address. */
154154
@SerializedName("registered_address")
@@ -191,7 +191,7 @@ private AccountPersonUpdateParams(
191191
Object nationality,
192192
Object personToken,
193193
Object phone,
194-
PoliticalExposure politicalExposure,
194+
Object politicalExposure,
195195
RegisteredAddress registeredAddress,
196196
Relationship relationship,
197197
Object ssnLast4,
@@ -280,7 +280,7 @@ public static class Builder {
280280

281281
private Object phone;
282282

283-
private PoliticalExposure politicalExposure;
283+
private Object politicalExposure;
284284

285285
private RegisteredAddress registeredAddress;
286286

@@ -726,8 +726,17 @@ public Builder setPhone(EmptyParam phone) {
726726
* related persons, declares that they hold or have held an important public job or function, in
727727
* any jurisdiction.
728728
*/
729-
public Builder setPoliticalExposure(
730-
AccountPersonUpdateParams.PoliticalExposure politicalExposure) {
729+
public Builder setPoliticalExposure(String politicalExposure) {
730+
this.politicalExposure = politicalExposure;
731+
return this;
732+
}
733+
734+
/**
735+
* Indicates if the person or any of their representatives, family members, or other closely
736+
* related persons, declares that they hold or have held an important public job or function, in
737+
* any jurisdiction.
738+
*/
739+
public Builder setPoliticalExposure(EmptyParam politicalExposure) {
731740
this.politicalExposure = politicalExposure;
732741
return this;
733742
}
@@ -2817,19 +2826,4 @@ public Builder setFront(EmptyParam front) {
28172826
}
28182827
}
28192828
}
2820-
2821-
public enum PoliticalExposure implements ApiRequestParams.EnumParam {
2822-
@SerializedName("existing")
2823-
EXISTING("existing"),
2824-
2825-
@SerializedName("none")
2826-
NONE("none");
2827-
2828-
@Getter(onMethod_ = {@Override})
2829-
private final String value;
2830-
2831-
PoliticalExposure(String value) {
2832-
this.value = value;
2833-
}
2834-
}
28352829
}

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

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public class PersonCollectionCreateParams extends ApiRequestParams {
148148
* any jurisdiction.
149149
*/
150150
@SerializedName("political_exposure")
151-
PoliticalExposure politicalExposure;
151+
String politicalExposure;
152152

153153
/** The person's registered address. */
154154
@SerializedName("registered_address")
@@ -191,7 +191,7 @@ private PersonCollectionCreateParams(
191191
String nationality,
192192
String personToken,
193193
String phone,
194-
PoliticalExposure politicalExposure,
194+
String politicalExposure,
195195
RegisteredAddress registeredAddress,
196196
Relationship relationship,
197197
String ssnLast4,
@@ -280,7 +280,7 @@ public static class Builder {
280280

281281
private String phone;
282282

283-
private PoliticalExposure politicalExposure;
283+
private String politicalExposure;
284284

285285
private RegisteredAddress registeredAddress;
286286

@@ -621,8 +621,7 @@ public Builder setPhone(String phone) {
621621
* related persons, declares that they hold or have held an important public job or function, in
622622
* any jurisdiction.
623623
*/
624-
public Builder setPoliticalExposure(
625-
PersonCollectionCreateParams.PoliticalExposure politicalExposure) {
624+
public Builder setPoliticalExposure(String politicalExposure) {
626625
this.politicalExposure = politicalExposure;
627626
return this;
628627
}
@@ -2489,19 +2488,4 @@ public Builder setFront(String front) {
24892488
}
24902489
}
24912490
}
2492-
2493-
public enum PoliticalExposure implements ApiRequestParams.EnumParam {
2494-
@SerializedName("existing")
2495-
EXISTING("existing"),
2496-
2497-
@SerializedName("none")
2498-
NONE("none");
2499-
2500-
@Getter(onMethod_ = {@Override})
2501-
private final String value;
2502-
2503-
PoliticalExposure(String value) {
2504-
this.value = value;
2505-
}
2506-
}
25072491
}

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

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public class PersonUpdateParams extends ApiRequestParams {
148148
* any jurisdiction.
149149
*/
150150
@SerializedName("political_exposure")
151-
PoliticalExposure politicalExposure;
151+
Object politicalExposure;
152152

153153
/** The person's registered address. */
154154
@SerializedName("registered_address")
@@ -191,7 +191,7 @@ private PersonUpdateParams(
191191
Object nationality,
192192
Object personToken,
193193
Object phone,
194-
PoliticalExposure politicalExposure,
194+
Object politicalExposure,
195195
RegisteredAddress registeredAddress,
196196
Relationship relationship,
197197
Object ssnLast4,
@@ -280,7 +280,7 @@ public static class Builder {
280280

281281
private Object phone;
282282

283-
private PoliticalExposure politicalExposure;
283+
private Object politicalExposure;
284284

285285
private RegisteredAddress registeredAddress;
286286

@@ -726,7 +726,17 @@ public Builder setPhone(EmptyParam phone) {
726726
* related persons, declares that they hold or have held an important public job or function, in
727727
* any jurisdiction.
728728
*/
729-
public Builder setPoliticalExposure(PersonUpdateParams.PoliticalExposure politicalExposure) {
729+
public Builder setPoliticalExposure(String politicalExposure) {
730+
this.politicalExposure = politicalExposure;
731+
return this;
732+
}
733+
734+
/**
735+
* Indicates if the person or any of their representatives, family members, or other closely
736+
* related persons, declares that they hold or have held an important public job or function, in
737+
* any jurisdiction.
738+
*/
739+
public Builder setPoliticalExposure(EmptyParam politicalExposure) {
730740
this.politicalExposure = politicalExposure;
731741
return this;
732742
}
@@ -2809,19 +2819,4 @@ public Builder setFront(EmptyParam front) {
28092819
}
28102820
}
28112821
}
2812-
2813-
public enum PoliticalExposure implements ApiRequestParams.EnumParam {
2814-
@SerializedName("existing")
2815-
EXISTING("existing"),
2816-
2817-
@SerializedName("none")
2818-
NONE("none");
2819-
2820-
@Getter(onMethod_ = {@Override})
2821-
private final String value;
2822-
2823-
PoliticalExposure(String value) {
2824-
this.value = value;
2825-
}
2826-
}
28272822
}

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

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4454,7 +4454,7 @@ public static class Person {
44544454
* any jurisdiction.
44554455
*/
44564456
@SerializedName("political_exposure")
4457-
PoliticalExposure politicalExposure;
4457+
String politicalExposure;
44584458

44594459
/** The person's registered address. */
44604460
@SerializedName("registered_address")
@@ -4495,7 +4495,7 @@ private Person(
44954495
Object metadata,
44964496
String nationality,
44974497
String phone,
4498-
PoliticalExposure politicalExposure,
4498+
String politicalExposure,
44994499
RegisteredAddress registeredAddress,
45004500
Relationship relationship,
45014501
String ssnLast4,
@@ -4578,7 +4578,7 @@ public static class Builder {
45784578

45794579
private String phone;
45804580

4581-
private PoliticalExposure politicalExposure;
4581+
private String politicalExposure;
45824582

45834583
private RegisteredAddress registeredAddress;
45844584

@@ -4884,8 +4884,7 @@ public Builder setPhone(String phone) {
48844884
* related persons, declares that they hold or have held an important public job or function,
48854885
* in any jurisdiction.
48864886
*/
4887-
public Builder setPoliticalExposure(
4888-
TokenCreateParams.Person.PoliticalExposure politicalExposure) {
4887+
public Builder setPoliticalExposure(String politicalExposure) {
48894888
this.politicalExposure = politicalExposure;
48904889
return this;
48914890
}
@@ -6772,21 +6771,6 @@ public Builder setFront(String front) {
67726771
}
67736772
}
67746773
}
6775-
6776-
public enum PoliticalExposure implements ApiRequestParams.EnumParam {
6777-
@SerializedName("existing")
6778-
EXISTING("existing"),
6779-
6780-
@SerializedName("none")
6781-
NONE("none");
6782-
6783-
@Getter(onMethod_ = {@Override})
6784-
private final String value;
6785-
6786-
PoliticalExposure(String value) {
6787-
this.value = value;
6788-
}
6789-
}
67906774
}
67916775

67926776
@Getter

0 commit comments

Comments
 (0)