Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2bacf30ea7a096640a42760f6973fee486bcf126
44014016ec56efb57a8cf6d0ee0771c2e6b4eebe
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2324
v2349
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2026-06-24.preview";
public static final String CURRENT = "2026-07-29.preview";
}
157 changes: 131 additions & 26 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.stripe.param.AccountPersonsParams;
import com.stripe.param.AccountRejectParams;
import com.stripe.param.AccountRetrieveParams;
import com.stripe.param.AccountUnrejectParams;
import com.stripe.param.AccountUpdateParams;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -250,9 +251,10 @@ public CapabilityCollection capabilities(AccountCapabilitiesParams params, Reque
* href="https://dashboard.stripe.com/account/applications/settings">register your platform</a>.
*
* <p>If you’ve already collected information for your connected accounts, you <a
* href="https://stripe.com/docs/connect/best-practices#onboarding">can prefill that
* information</a> when creating the account. Connect Onboarding won’t ask for the prefilled
* information during account onboarding. You can prefill any information on the account.
* href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can
* prefill that information</a> when creating the account. Connect Onboarding won’t ask for the
* prefilled information during account onboarding. You can prefill any information on the
* account.
*/
public static Account create(Map<String, Object> params) throws StripeException {
return create(params, (RequestOptions) null);
Expand All @@ -264,9 +266,10 @@ public static Account create(Map<String, Object> params) throws StripeException
* href="https://dashboard.stripe.com/account/applications/settings">register your platform</a>.
*
* <p>If you’ve already collected information for your connected accounts, you <a
* href="https://stripe.com/docs/connect/best-practices#onboarding">can prefill that
* information</a> when creating the account. Connect Onboarding won’t ask for the prefilled
* information during account onboarding. You can prefill any information on the account.
* href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can
* prefill that information</a> when creating the account. Connect Onboarding won’t ask for the
* prefilled information during account onboarding. You can prefill any information on the
* account.
*/
public static Account create(Map<String, Object> params, RequestOptions options)
throws StripeException {
Expand All @@ -282,9 +285,10 @@ public static Account create(Map<String, Object> params, RequestOptions options)
* href="https://dashboard.stripe.com/account/applications/settings">register your platform</a>.
*
* <p>If you’ve already collected information for your connected accounts, you <a
* href="https://stripe.com/docs/connect/best-practices#onboarding">can prefill that
* information</a> when creating the account. Connect Onboarding won’t ask for the prefilled
* information during account onboarding. You can prefill any information on the account.
* href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can
* prefill that information</a> when creating the account. Connect Onboarding won’t ask for the
* prefilled information during account onboarding. You can prefill any information on the
* account.
*/
public static Account create(AccountCreateParams params) throws StripeException {
return create(params, (RequestOptions) null);
Expand All @@ -296,9 +300,10 @@ public static Account create(AccountCreateParams params) throws StripeException
* href="https://dashboard.stripe.com/account/applications/settings">register your platform</a>.
*
* <p>If you’ve already collected information for your connected accounts, you <a
* href="https://stripe.com/docs/connect/best-practices#onboarding">can prefill that
* information</a> when creating the account. Connect Onboarding won’t ask for the prefilled
* information during account onboarding. You can prefill any information on the account.
* href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can
* prefill that information</a> when creating the account. Connect Onboarding won’t ask for the
* prefilled information during account onboarding. You can prefill any information on the
* account.
*/
public static Account create(AccountCreateParams params, RequestOptions options)
throws StripeException {
Expand Down Expand Up @@ -498,8 +503,7 @@ public PersonCollection persons(AccountPersonsParams params, RequestOptions opti
* flagged as suspicious.
*
* <p>Only accounts where your platform is liable for negative account balances, which includes
* Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time.
* Live-mode accounts can only be rejected after all balances are zero.
* Custom and Express accounts, can be rejected.
*/
public Account reject(Map<String, Object> params) throws StripeException {
return reject(params, (RequestOptions) null);
Expand All @@ -510,8 +514,7 @@ public Account reject(Map<String, Object> params) throws StripeException {
* flagged as suspicious.
*
* <p>Only accounts where your platform is liable for negative account balances, which includes
* Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time.
* Live-mode accounts can only be rejected after all balances are zero.
* Custom and Express accounts, can be rejected.
*/
public Account reject(Map<String, Object> params, RequestOptions options) throws StripeException {
String path = String.format("/v1/accounts/%s/reject", ApiResource.urlEncodeId(this.getId()));
Expand All @@ -525,8 +528,7 @@ public Account reject(Map<String, Object> params, RequestOptions options) throws
* flagged as suspicious.
*
* <p>Only accounts where your platform is liable for negative account balances, which includes
* Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time.
* Live-mode accounts can only be rejected after all balances are zero.
* Custom and Express accounts, can be rejected.
*/
public Account reject(AccountRejectParams params) throws StripeException {
return reject(params, (RequestOptions) null);
Expand All @@ -537,8 +539,7 @@ public Account reject(AccountRejectParams params) throws StripeException {
* flagged as suspicious.
*
* <p>Only accounts where your platform is liable for negative account balances, which includes
* Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time.
* Live-mode accounts can only be rejected after all balances are zero.
* Custom and Express accounts, can be rejected.
*/
public Account reject(AccountRejectParams params, RequestOptions options) throws StripeException {
String path = String.format("/v1/accounts/%s/reject", ApiResource.urlEncodeId(this.getId()));
Expand Down Expand Up @@ -621,6 +622,104 @@ public static Account retrieve(AccountRetrieveParams params, RequestOptions opti
return getGlobalResponseGetter().request(request, Account.class);
}

/**
* With Connect, you can unreject accounts that you have previously rejected.
*
* <p>Only accounts that were rejected by your platform can be unrejected. This API cannot be used
* to unreject accounts that were rejected by Stripe.
*
* <p>Unreject will only enable charges and/or payouts if there are no other restrictions other
* than those placed by a previous rejection. If you have separately paused charges and/or payouts
* outside of rejection, those pauses will remain in place after unrejection.
*/
public Account unreject() throws StripeException {
return unreject((Map<String, Object>) null, (RequestOptions) null);
}

/**
* With Connect, you can unreject accounts that you have previously rejected.
*
* <p>Only accounts that were rejected by your platform can be unrejected. This API cannot be used
* to unreject accounts that were rejected by Stripe.
*
* <p>Unreject will only enable charges and/or payouts if there are no other restrictions other
* than those placed by a previous rejection. If you have separately paused charges and/or payouts
* outside of rejection, those pauses will remain in place after unrejection.
*/
public Account unreject(RequestOptions options) throws StripeException {
return unreject((Map<String, Object>) null, options);
}

/**
* With Connect, you can unreject accounts that you have previously rejected.
*
* <p>Only accounts that were rejected by your platform can be unrejected. This API cannot be used
* to unreject accounts that were rejected by Stripe.
*
* <p>Unreject will only enable charges and/or payouts if there are no other restrictions other
* than those placed by a previous rejection. If you have separately paused charges and/or payouts
* outside of rejection, those pauses will remain in place after unrejection.
*/
public Account unreject(Map<String, Object> params) throws StripeException {
return unreject(params, (RequestOptions) null);
}

/**
* With Connect, you can unreject accounts that you have previously rejected.
*
* <p>Only accounts that were rejected by your platform can be unrejected. This API cannot be used
* to unreject accounts that were rejected by Stripe.
*
* <p>Unreject will only enable charges and/or payouts if there are no other restrictions other
* than those placed by a previous rejection. If you have separately paused charges and/or payouts
* outside of rejection, those pauses will remain in place after unrejection.
*/
public Account unreject(Map<String, Object> params, RequestOptions options)
throws StripeException {
String path = String.format("/v1/accounts/%s/unreject", ApiResource.urlEncodeId(this.getId()));
ApiRequest request =
new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
return getResponseGetter().request(request, Account.class);
}

/**
* With Connect, you can unreject accounts that you have previously rejected.
*
* <p>Only accounts that were rejected by your platform can be unrejected. This API cannot be used
* to unreject accounts that were rejected by Stripe.
*
* <p>Unreject will only enable charges and/or payouts if there are no other restrictions other
* than those placed by a previous rejection. If you have separately paused charges and/or payouts
* outside of rejection, those pauses will remain in place after unrejection.
*/
public Account unreject(AccountUnrejectParams params) throws StripeException {
return unreject(params, (RequestOptions) null);
}

/**
* With Connect, you can unreject accounts that you have previously rejected.
*
* <p>Only accounts that were rejected by your platform can be unrejected. This API cannot be used
* to unreject accounts that were rejected by Stripe.
*
* <p>Unreject will only enable charges and/or payouts if there are no other restrictions other
* than those placed by a previous rejection. If you have separately paused charges and/or payouts
* outside of rejection, those pauses will remain in place after unrejection.
*/
public Account unreject(AccountUnrejectParams params, RequestOptions options)
throws StripeException {
String path = String.format("/v1/accounts/%s/unreject", ApiResource.urlEncodeId(this.getId()));
ApiResource.checkNullTypedParams(path, params);
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options);
return getResponseGetter().request(request, Account.class);
}

/**
* Updates a <a href="https://stripe.com/connect/accounts">connected account</a> by setting the
* values of the parameters passed. Any parameters not provided are left unchanged.
Expand Down Expand Up @@ -1593,6 +1692,9 @@ public static class Company extends StripeObject {
@SerializedName("address_kanji")
AddressKanji addressKanji;

@SerializedName("administrative_address")
Address administrativeAddress;

/**
* Whether the company's directors have been provided. This Boolean will be {@code true} if
* you've manually indicated that all directors are provided via <a
Expand Down Expand Up @@ -1693,6 +1795,9 @@ public static class Company extends StripeObject {
@SerializedName("phone")
String phone;

@SerializedName("principal_place_of_business")
Address principalPlaceOfBusiness;

@SerializedName("registration_date")
RegistrationDate registrationDate;

Expand Down Expand Up @@ -2208,8 +2313,8 @@ public static class FutureRequirements extends StripeObject {
String disabledReason;

/**
* Details about validation and verification failures for {@code due} requirements that must be
* resolved.
* Fields that are {@code currently_due} and need to be collected again because validation or
* verification failed.
*/
@SerializedName("errors")
List<Account.FutureRequirements.Errors> errors;
Expand Down Expand Up @@ -2393,8 +2498,8 @@ public static class Requirements extends StripeObject {

/**
* Fields that need to be resolved to keep the account enabled. If not resolved by {@code
* current_deadline}, these fields will appear in {@code past_due} as well, and the account is
* disabled.
* current_deadline}, these fields will appear in {@code past_due} as well, and the account will
* be disabled.
*/
@SerializedName("currently_due")
List<String> currentlyDue;
Expand All @@ -2415,8 +2520,8 @@ public static class Requirements extends StripeObject {
String disabledReason;

/**
* Details about validation and verification failures for {@code due} requirements that must be
* resolved.
* Fields that are {@code currently_due} and need to be collected again because validation or
* verification failed.
*/
@SerializedName("errors")
List<Account.Requirements.Errors> errors;
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,13 @@ public static class Features extends StripeObject {
/** Whether sending refunds is enabled. This is {@code true} by default. */
@SerializedName("refund_management")
Boolean refundManagement;

/**
* Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to
* the value of {@code dispute_management}.
*/
@SerializedName("smart_disputes_management")
Boolean smartDisputesManagement;
}
}

Expand Down Expand Up @@ -845,6 +852,13 @@ public static class Features extends StripeObject {
/** Whether sending refunds is enabled. This is {@code true} by default. */
@SerializedName("refund_management")
Boolean refundManagement;

/**
* Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to
* the value of {@code dispute_management}.
*/
@SerializedName("smart_disputes_management")
Boolean smartDisputesManagement;
}
}

Expand Down Expand Up @@ -888,6 +902,13 @@ public static class Features extends StripeObject {
/** Whether sending refunds is enabled. This is {@code true} by default. */
@SerializedName("refund_management")
Boolean refundManagement;

/**
* Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to
* the value of {@code dispute_management}.
*/
@SerializedName("smart_disputes_management")
Boolean smartDisputesManagement;
}
}

Expand Down Expand Up @@ -938,6 +959,13 @@ public static class Features extends StripeObject {
/** Whether sending refunds is enabled. This is {@code true} by default. */
@SerializedName("refund_management")
Boolean refundManagement;

/**
* Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to
* the value of {@code dispute_management}.
*/
@SerializedName("smart_disputes_management")
Boolean smartDisputesManagement;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/BalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class BalanceTransaction extends ApiResource implements HasId {

/**
* If applicable, this transaction uses an exchange rate. If money converts from currency A to
* currency B, then the {@code amount} in currency A, multipled by the {@code exchange_rate},
* currency B, then the {@code amount} in currency A, multiplied by the {@code exchange_rate},
* equals the {@code amount} in currency B. For example, if you charge a customer 10.00 EUR, the
* PaymentIntent's {@code amount} is {@code 1000} and {@code currency} is {@code eur}. If this
* converts to 12.34 USD in your Stripe account, the BalanceTransaction's {@code amount} is {@code
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/BankAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ public static class FutureRequirements extends StripeObject {
List<String> currentlyDue;

/**
* Details about validation and verification failures for {@code due} requirements that must be
* resolved.
* Fields that are {@code currently_due} and need to be collected again because validation or
* verification failed.
*/
@SerializedName("errors")
List<BankAccount.FutureRequirements.Errors> errors;
Expand Down Expand Up @@ -651,8 +651,8 @@ public static class Requirements extends StripeObject {
List<String> currentlyDue;

/**
* Details about validation and verification failures for {@code due} requirements that must be
* resolved.
* Fields that are {@code currently_due} and need to be collected again because validation or
* verification failed.
*/
@SerializedName("errors")
List<BankAccount.Requirements.Errors> errors;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ public static class FutureRequirements extends StripeObject {
String disabledReason;

/**
* Details about validation and verification failures for {@code due} requirements that must be
* resolved.
* Fields that are {@code currently_due} and need to be collected again because validation or
* verification failed.
*/
@SerializedName("errors")
List<Capability.FutureRequirements.Errors> errors;
Expand Down Expand Up @@ -376,8 +376,8 @@ public static class Requirements extends StripeObject {
String disabledReason;

/**
* Details about validation and verification failures for {@code due} requirements that must be
* resolved.
* Fields that are {@code currently_due} and need to be collected again because validation or
* verification failed.
*/
@SerializedName("errors")
List<Capability.Requirements.Errors> errors;
Expand Down
Loading
Loading