Skip to content

Commit c875b1e

Browse files
Update generated code for v2134 and
1 parent 25ead7f commit c875b1e

File tree

363 files changed

+9047
-5156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

363 files changed

+9047
-5156
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7e1370137c5f73c912d0e5bc97e74c92234ef281
1+
6bb77d9eff2b7823591e32903b9e33b0ffe58c36

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2132
1+
v2134

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-11-17.preview";
5+
public static final String CURRENT = "2025-12-15.preview";
66
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.Event;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.moneymanagement.PayoutMethod;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2MoneyManagementPayoutMethodCreatedEvent extends Event {
13+
@SerializedName("related_object")
14+
15+
/** Object containing the reference to API resource relevant to the event. */
16+
RelatedObject relatedObject;
17+
18+
/** Retrieves the related object from the API. Make an API request on every call. */
19+
public PayoutMethod fetchRelatedObject() throws StripeException {
20+
return (PayoutMethod) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.Event.RelatedObject;
7+
import com.stripe.model.v2.core.EventNotification;
8+
import com.stripe.model.v2.moneymanagement.PayoutMethod;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2MoneyManagementPayoutMethodCreatedEventNotification extends EventNotification {
13+
@SerializedName("related_object")
14+
15+
/** Object containing the reference to API resource relevant to the event. */
16+
RelatedObject relatedObject;
17+
18+
/** Retrieves the related object from the API. Make an API request on every call. */
19+
public PayoutMethod fetchRelatedObject() throws StripeException {
20+
return (PayoutMethod) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2MoneyManagementPayoutMethodCreatedEvent fetchEvent() throws StripeException {
25+
return (V2MoneyManagementPayoutMethodCreatedEvent) super.fetchEvent();
26+
}
27+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.exception;
3+
4+
import com.google.gson.JsonObject;
5+
import com.stripe.model.StripeError;
6+
import com.stripe.model.StripeObject;
7+
import com.stripe.net.StripeResponseGetter;
8+
9+
/**
10+
* Returned when the PayoutMethod object is controlled by an alternate resource so cannot be
11+
* archived.
12+
*/
13+
public final class ControlledByAlternateResourceException extends ApiException {
14+
private static final long serialVersionUID = 2L;
15+
16+
private ControlledByAlternateResourceException(
17+
String message, String requestId, String code, Integer statusCode, Throwable e) {
18+
super(message, requestId, code, statusCode, e);
19+
}
20+
21+
static ControlledByAlternateResourceException parse(
22+
JsonObject body, int statusCode, String requestId, StripeResponseGetter responseGetter) {
23+
ControlledByAlternateResourceException.ControlledByAlternateResourceError error =
24+
(ControlledByAlternateResourceException.ControlledByAlternateResourceError)
25+
StripeObject.deserializeStripeObject(
26+
body,
27+
ControlledByAlternateResourceException.ControlledByAlternateResourceError.class,
28+
responseGetter);
29+
ControlledByAlternateResourceException exception =
30+
new ControlledByAlternateResourceException(
31+
error.getMessage(), requestId, error.getCode(), statusCode, null);
32+
exception.setStripeError(error);
33+
return exception;
34+
}
35+
36+
public static class ControlledByAlternateResourceError extends StripeError {}
37+
}

src/main/java/com/stripe/exception/StripeException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ public static StripeException parseV2Exception(
119119
case "blocked_by_stripe":
120120
return com.stripe.exception.BlockedByStripeException.parse(
121121
body, statusCode, requestId, responseGetter);
122+
case "controlled_by_alternate_resource":
123+
return com.stripe.exception.ControlledByAlternateResourceException.parse(
124+
body, statusCode, requestId, responseGetter);
122125
case "controlled_by_dashboard":
123126
return com.stripe.exception.ControlledByDashboardException.parse(
124127
body, statusCode, requestId, responseGetter);
@@ -146,9 +149,6 @@ public static StripeException parseV2Exception(
146149
case "quota_exceeded":
147150
return com.stripe.exception.QuotaExceededException.parse(
148151
body, statusCode, requestId, responseGetter);
149-
case "rate_limit":
150-
return com.stripe.exception.RateLimitException.parse(
151-
body, statusCode, requestId, responseGetter);
152152
case "recipient_not_notifiable":
153153
return com.stripe.exception.RecipientNotNotifiableException.parse(
154154
body, statusCode, requestId, responseGetter);

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

Lines changed: 53 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public class Account extends ApiResource implements MetadataStore<Account>, Paym
143143
Person individual;
144144

145145
/**
146-
* Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
146+
* Set of <a href="https://docs.stripe.com/api/metadata">key-value pairs</a> that you can attach
147147
* to an object. This can be useful for storing additional information about the object in a
148148
* structured format.
149149
*/
@@ -1547,7 +1547,7 @@ public static class Company extends StripeObject {
15471547
/**
15481548
* Whether the company's directors have been provided. This Boolean will be {@code true} if
15491549
* you've manually indicated that all directors are provided via <a
1550-
* href="https://stripe.com/docs/api/accounts/update#update_account-company-directors_provided">the
1550+
* href="https://docs.stripe.com/api/accounts/update#update_account-company-directors_provided">the
15511551
* {@code directors_provided} parameter</a>.
15521552
*/
15531553
@SerializedName("directors_provided")
@@ -1563,7 +1563,7 @@ public static class Company extends StripeObject {
15631563
/**
15641564
* Whether the company's executives have been provided. This Boolean will be {@code true} if
15651565
* you've manually indicated that all executives are provided via <a
1566-
* href="https://stripe.com/docs/api/accounts/update#update_account-company-executives_provided">the
1566+
* href="https://docs.stripe.com/api/accounts/update#update_account-company-executives_provided">the
15671567
* {@code executives_provided} parameter</a>, or if Stripe determined that sufficient executives
15681568
* were provided.
15691569
*/
@@ -1610,7 +1610,7 @@ public static class Company extends StripeObject {
16101610
/**
16111611
* Whether the company's owners have been provided. This Boolean will be {@code true} if you've
16121612
* manually indicated that all owners are provided via <a
1613-
* href="https://stripe.com/docs/api/accounts/update#update_account-company-owners_provided">the
1613+
* href="https://docs.stripe.com/api/accounts/update#update_account-company-owners_provided">the
16141614
* {@code owners_provided} parameter</a>, or if Stripe determined that sufficient owners were
16151615
* provided. Stripe determines ownership requirements using both the number of owners provided
16161616
* and their total percent ownership (calculated by adding the {@code percent_ownership} of each
@@ -1659,7 +1659,7 @@ public static class Company extends StripeObject {
16591659
* for accounts where <a
16601660
* href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
16611661
* is {@code stripe}. See <a
1662-
* href="https://stripe.com/docs/connect/identity-verification#business-structure">Business
1662+
* href="https://docs.stripe.com/connect/identity-verification#business-structure">Business
16631663
* structure</a> for more details.
16641664
*
16651665
* <p>One of {@code free_zone_establishment}, {@code free_zone_llc}, {@code
@@ -1883,10 +1883,10 @@ public static class Verification extends StripeObject {
18831883
@EqualsAndHashCode(callSuper = false)
18841884
public static class Document extends StripeObject {
18851885
/**
1886-
* The back of a document returned by a <a
1887-
* href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose}
1888-
* value of {@code additional_verification}. Note that {@code additional_verification} files
1889-
* are <a href="https://stripe.com/file-upload#uploading-a-file">not downloadable</a>.
1886+
* The back of a document returned by a <a href="https://api.stripe.com#create_file">file
1887+
* upload</a> with a {@code purpose} value of {@code additional_verification}. Note that
1888+
* {@code additional_verification} files are <a
1889+
* href="https://stripe.com/file-upload#uploading-a-file">not downloadable</a>.
18901890
*/
18911891
@SerializedName("back")
18921892
@Getter(lombok.AccessLevel.NONE)
@@ -1910,10 +1910,10 @@ public static class Document extends StripeObject {
19101910
String detailsCode;
19111911

19121912
/**
1913-
* The front of a document returned by a <a
1914-
* href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose}
1915-
* value of {@code additional_verification}. Note that {@code additional_verification} files
1916-
* are <a href="https://stripe.com/file-upload#uploading-a-file">not downloadable</a>.
1913+
* The front of a document returned by a <a href="https://api.stripe.com#create_file">file
1914+
* upload</a> with a {@code purpose} value of {@code additional_verification}. Note that
1915+
* {@code additional_verification} files are <a
1916+
* href="https://stripe.com/file-upload#uploading-a-file">not downloadable</a>.
19171917
*/
19181918
@SerializedName("front")
19191919
@Getter(lombok.AccessLevel.NONE)
@@ -1979,7 +1979,7 @@ public static class Controller extends StripeObject {
19791979
/**
19801980
* {@code true} if the Connect application retrieving the resource controls the account and can
19811981
* therefore exercise <a
1982-
* href="https://stripe.com/docs/connect/platform-controls-for-standard-accounts">platform
1982+
* href="https://docs.stripe.com/connect/platform-controls-for-standard-accounts">platform
19831983
* controls</a>. Otherwise, this field is null.
19841984
*/
19851985
@SerializedName("is_controller")
@@ -2119,8 +2119,11 @@ public static class StripeDashboard extends StripeObject {
21192119
@EqualsAndHashCode(callSuper = false)
21202120
public static class FutureRequirements extends StripeObject {
21212121
/**
2122-
* Fields that are due and can be satisfied by providing the corresponding alternative fields
2123-
* instead.
2122+
* Fields that are due and can be resolved by providing the corresponding alternative fields
2123+
* instead. Many alternatives can list the same {@code original_fields_due}, and any of these
2124+
* alternatives can serve as a pathway for attempting to resolve the fields again. Re-providing
2125+
* {@code original_fields_due} also serves as a pathway for attempting to resolve the fields
2126+
* again.
21242127
*/
21252128
@SerializedName("alternatives")
21262129
List<Account.FutureRequirements.Alternative> alternatives;
@@ -2135,7 +2138,7 @@ public static class FutureRequirements extends StripeObject {
21352138
Long currentDeadline;
21362139

21372140
/**
2138-
* Fields that need to be collected to keep the account enabled. If not collected by {@code
2141+
* Fields that need to be resolved to keep the account enabled. If not resolved by {@code
21392142
* future_requirements[current_deadline]}, these fields will transition to the main {@code
21402143
* requirements} hash.
21412144
*/
@@ -2156,8 +2159,8 @@ public static class FutureRequirements extends StripeObject {
21562159
String disabledReason;
21572160

21582161
/**
2159-
* Fields that are {@code currently_due} and need to be collected again because validation or
2160-
* verification failed.
2162+
* Details about validation and verification failures for {@code due} requirements that must be
2163+
* resolved.
21612164
*/
21622165
@SerializedName("errors")
21632166
List<Account.FutureRequirements.Errors> errors;
@@ -2170,20 +2173,19 @@ public static class FutureRequirements extends StripeObject {
21702173
List<String> eventuallyDue;
21712174

21722175
/**
2173-
* Fields that weren't collected by {@code requirements.current_deadline}. These fields need to
2174-
* be collected to enable the capability on the account. New fields will never appear here;
2175-
* {@code future_requirements.past_due} will always be a subset of {@code
2176-
* requirements.past_due}.
2176+
* Fields that haven't been resolved by {@code requirements.current_deadline}. These fields need
2177+
* to be resolved to enable the capability on the account. {@code future_requirements.past_due}
2178+
* is a subset of {@code requirements.past_due}.
21772179
*/
21782180
@SerializedName("past_due")
21792181
List<String> pastDue;
21802182

21812183
/**
2182-
* Fields that might become required depending on the results of verification or review. It's an
2183-
* empty array unless an asynchronous verification is pending. If verification fails, these
2184-
* fields move to {@code eventually_due} or {@code currently_due}. Fields might appear in {@code
2185-
* eventually_due} or {@code currently_due} and in {@code pending_verification} if verification
2186-
* fails but another verification is still pending.
2184+
* Fields that are being reviewed, or might become required depending on the results of a
2185+
* review. If the review fails, these fields can move to {@code eventually_due}, {@code
2186+
* currently_due}, {@code past_due} or {@code alternatives}. Fields might appear in {@code
2187+
* eventually_due}, {@code currently_due}, {@code past_due} or {@code alternatives} and in
2188+
* {@code pending_verification} if one verification fails but another is still pending.
21872189
*/
21882190
@SerializedName("pending_verification")
21892191
List<String> pendingVerification;
@@ -2196,12 +2198,12 @@ public static class FutureRequirements extends StripeObject {
21962198
@Setter
21972199
@EqualsAndHashCode(callSuper = false)
21982200
public static class Alternative extends StripeObject {
2199-
/** Fields that can be provided to satisfy all fields in {@code original_fields_due}. */
2201+
/** Fields that can be provided to resolve all fields in {@code original_fields_due}. */
22002202
@SerializedName("alternative_fields_due")
22012203
List<String> alternativeFieldsDue;
22022204

22032205
/**
2204-
* Fields that are due and can be satisfied by providing all fields in {@code
2206+
* Fields that are due and can be resolved by providing all fields in {@code
22052207
* alternative_fields_due}.
22062208
*/
22072209
@SerializedName("original_fields_due")
@@ -2307,7 +2309,7 @@ public static class Errors extends StripeObject {
23072309
public static class Groups extends StripeObject {
23082310
/**
23092311
* The group the account is in to determine their payments pricing, and null if the account is
2310-
* on customized pricing. <a href="https://stripe.com/docs/connect/platform-pricing-tools">See
2312+
* on customized pricing. <a href="https://docs.stripe.com/connect/platform-pricing-tools">See
23112313
* the Platform pricing tool documentation</a> for details.
23122314
*/
23132315
@SerializedName("payments_pricing")
@@ -2323,8 +2325,11 @@ public static class Groups extends StripeObject {
23232325
@EqualsAndHashCode(callSuper = false)
23242326
public static class Requirements extends StripeObject {
23252327
/**
2326-
* Fields that are due and can be satisfied by providing the corresponding alternative fields
2327-
* instead.
2328+
* Fields that are due and can be resolved by providing the corresponding alternative fields
2329+
* instead. Many alternatives can list the same {@code original_fields_due}, and any of these
2330+
* alternatives can serve as a pathway for attempting to resolve the fields again. Re-providing
2331+
* {@code original_fields_due} also serves as a pathway for attempting to resolve the fields
2332+
* again.
23282333
*/
23292334
@SerializedName("alternatives")
23302335
List<Account.Requirements.Alternative> alternatives;
@@ -2338,16 +2343,16 @@ public static class Requirements extends StripeObject {
23382343
Long currentDeadline;
23392344

23402345
/**
2341-
* Fields that need to be collected to keep the account enabled. If not collected by {@code
2342-
* current_deadline}, these fields appear in {@code past_due} as well, and the account is
2346+
* Fields that need to be resolved to keep the account enabled. If not resolved by {@code
2347+
* current_deadline}, these fields will appear in {@code past_due} as well, and the account is
23432348
* disabled.
23442349
*/
23452350
@SerializedName("currently_due")
23462351
List<String> currentlyDue;
23472352

23482353
/**
23492354
* If the account is disabled, this enum describes why. <a
2350-
* href="https://stripe.com/docs/connect/handling-api-verification">Learn more about handling
2355+
* href="https://docs.stripe.com/connect/handling-api-verification">Learn more about handling
23512356
* verification issues</a>.
23522357
*
23532358
* <p>One of {@code action_required.requested_capabilities}, {@code listed}, {@code other},
@@ -2361,8 +2366,8 @@ public static class Requirements extends StripeObject {
23612366
String disabledReason;
23622367

23632368
/**
2364-
* Fields that are {@code currently_due} and need to be collected again because validation or
2365-
* verification failed.
2369+
* Details about validation and verification failures for {@code due} requirements that must be
2370+
* resolved.
23662371
*/
23672372
@SerializedName("errors")
23682373
List<Account.Requirements.Errors> errors;
@@ -2375,18 +2380,18 @@ public static class Requirements extends StripeObject {
23752380
List<String> eventuallyDue;
23762381

23772382
/**
2378-
* Fields that weren't collected by {@code current_deadline}. These fields need to be collected
2379-
* to enable the account.
2383+
* Fields that haven't been resolved by {@code current_deadline}. These fields need to be
2384+
* resolved to enable the account.
23802385
*/
23812386
@SerializedName("past_due")
23822387
List<String> pastDue;
23832388

23842389
/**
2385-
* Fields that might become required depending on the results of verification or review. It's an
2386-
* empty array unless an asynchronous verification is pending. If verification fails, these
2387-
* fields move to {@code eventually_due}, {@code currently_due}, or {@code past_due}. Fields
2388-
* might appear in {@code eventually_due}, {@code currently_due}, or {@code past_due} and in
2389-
* {@code pending_verification} if verification fails but another verification is still pending.
2390+
* Fields that are being reviewed, or might become required depending on the results of a
2391+
* review. If the review fails, these fields can move to {@code eventually_due}, {@code
2392+
* currently_due}, {@code past_due} or {@code alternatives}. Fields might appear in {@code
2393+
* eventually_due}, {@code currently_due}, {@code past_due} or {@code alternatives} and in
2394+
* {@code pending_verification} if one verification fails but another is still pending.
23902395
*/
23912396
@SerializedName("pending_verification")
23922397
List<String> pendingVerification;
@@ -2399,12 +2404,12 @@ public static class Requirements extends StripeObject {
23992404
@Setter
24002405
@EqualsAndHashCode(callSuper = false)
24012406
public static class Alternative extends StripeObject {
2402-
/** Fields that can be provided to satisfy all fields in {@code original_fields_due}. */
2407+
/** Fields that can be provided to resolve all fields in {@code original_fields_due}. */
24032408
@SerializedName("alternative_fields_due")
24042409
List<String> alternativeFieldsDue;
24052410

24062411
/**
2407-
* Fields that are due and can be satisfied by providing all fields in {@code
2412+
* Fields that are due and can be resolved by providing all fields in {@code
24082413
* alternative_fields_due}.
24092414
*/
24102415
@SerializedName("original_fields_due")
@@ -2516,7 +2521,7 @@ public static class RiskControls extends StripeObject {
25162521

25172522
/**
25182523
* Represents the rejected reason of the account. Empty if account is not rejected, or rejected
2519-
* by Stripe. Please see <a href="https://stripe.com/docs/connect/">this page for more
2524+
* by Stripe. Please see <a href="https://docs.stripe.com/connect/">this page for more
25202525
* details</a>
25212526
*
25222527
* <p>One of {@code credit}, {@code fraud}, {@code fraud_no_intent_to_fulfill}, {@code

0 commit comments

Comments
 (0)