Skip to content

Commit b0dab08

Browse files
Merge pull request #2107 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 88e9ba2 + 977c35a commit b0dab08

32 files changed

+7211
-1447
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6d15a7f20cb77c2c22091a30e499cb89d7e3248c
1+
441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2111
1+
v2116

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ Stripe has features in the [private preview phase](https://docs.stripe.com/relea
272272

273273
### Custom requests
274274

275+
> This feature is only available from version 27 of this SDK.
276+
275277
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on `StripeClient`.
276278

277279
```java

src/main/java/com/stripe/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
package com.stripe;
33

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-09-30.preview";
5+
public static final String CURRENT = "2025-10-29.preview";
66
}

src/main/java/com/stripe/model/Person.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ public class Person extends ApiResource implements HasId, MetadataStore<Person>
214214
@SerializedName("requirements")
215215
Requirements requirements;
216216

217+
@SerializedName("self_reported_income")
218+
SelfReportedIncome selfReportedIncome;
219+
220+
@SerializedName("self_reported_monthly_housing_payment")
221+
SelfReportedMonthlyHousingPayment selfReportedMonthlyHousingPayment;
222+
217223
/**
218224
* Whether the last four digits of the person's Social Security number have been provided (U.S.
219225
* only).
@@ -836,6 +842,48 @@ public static class Errors extends StripeObject {
836842
}
837843
}
838844

845+
/**
846+
* For more details about SelfReportedIncome, please refer to the <a
847+
* href="https://docs.stripe.com/api">API Reference.</a>
848+
*/
849+
@Getter
850+
@Setter
851+
@EqualsAndHashCode(callSuper = false)
852+
public static class SelfReportedIncome extends StripeObject {
853+
/** Amount in the minor currency unit (e.g., cents for USD). */
854+
@SerializedName("amount")
855+
Long amount;
856+
857+
/**
858+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
859+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
860+
* currency</a>.
861+
*/
862+
@SerializedName("currency")
863+
String currency;
864+
}
865+
866+
/**
867+
* For more details about SelfReportedMonthlyHousingPayment, please refer to the <a
868+
* href="https://docs.stripe.com/api">API Reference.</a>
869+
*/
870+
@Getter
871+
@Setter
872+
@EqualsAndHashCode(callSuper = false)
873+
public static class SelfReportedMonthlyHousingPayment extends StripeObject {
874+
/** Amount in the minor currency unit (e.g., cents for USD). */
875+
@SerializedName("amount")
876+
Long amount;
877+
878+
/**
879+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
880+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
881+
* currency</a>.
882+
*/
883+
@SerializedName("currency")
884+
String currency;
885+
}
886+
839887
/**
840888
* For more details about UsCfpbData, please refer to the <a
841889
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -1116,6 +1164,8 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
11161164
trySetResponseGetter(registeredAddress, responseGetter);
11171165
trySetResponseGetter(relationship, responseGetter);
11181166
trySetResponseGetter(requirements, responseGetter);
1167+
trySetResponseGetter(selfReportedIncome, responseGetter);
1168+
trySetResponseGetter(selfReportedMonthlyHousingPayment, responseGetter);
11191169
trySetResponseGetter(usCfpbData, responseGetter);
11201170
trySetResponseGetter(verification, responseGetter);
11211171
}

0 commit comments

Comments
 (0)