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 API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-06-30.basil
2025-07-30.basil
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1819
v1868
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,6 +2,6 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2025-06-30.basil";
public static final String CURRENT = "2025-07-30.basil";
public static final String CURRENT_MAJOR = "basil";
}
34 changes: 17 additions & 17 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ public static Account create(AccountCreateParams params, RequestOptions options)
*
* <p>Test-mode accounts can be deleted at any time.
*
* <p>Live-mode accounts where Stripe is responsible for negative account balances cannot be
* deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
* negative account balances, which includes Custom and Express accounts, can be deleted when all
* <a href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
* <p>Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
* negative account balances cannot be deleted, which includes Standard accounts. All other
* Live-mode accounts, can be deleted when all <a
* href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
*
* <p>If you want to delete your own account, use the <a
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
Expand All @@ -330,10 +330,10 @@ public Account delete() throws StripeException {
*
* <p>Test-mode accounts can be deleted at any time.
*
* <p>Live-mode accounts where Stripe is responsible for negative account balances cannot be
* deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
* negative account balances, which includes Custom and Express accounts, can be deleted when all
* <a href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
* <p>Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
* negative account balances cannot be deleted, which includes Standard accounts. All other
* Live-mode accounts, can be deleted when all <a
* href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
*
* <p>If you want to delete your own account, use the <a
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
Expand All @@ -348,10 +348,10 @@ public Account delete(RequestOptions options) throws StripeException {
*
* <p>Test-mode accounts can be deleted at any time.
*
* <p>Live-mode accounts where Stripe is responsible for negative account balances cannot be
* deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
* negative account balances, which includes Custom and Express accounts, can be deleted when all
* <a href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
* <p>Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
* negative account balances cannot be deleted, which includes Standard accounts. All other
* Live-mode accounts, can be deleted when all <a
* href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
*
* <p>If you want to delete your own account, use the <a
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
Expand All @@ -366,10 +366,10 @@ public Account delete(Map<String, Object> params) throws StripeException {
*
* <p>Test-mode accounts can be deleted at any time.
*
* <p>Live-mode accounts where Stripe is responsible for negative account balances cannot be
* deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
* negative account balances, which includes Custom and Express accounts, can be deleted when all
* <a href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
* <p>Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
* negative account balances cannot be deleted, which includes Standard accounts. All other
* Live-mode accounts, can be deleted when all <a
* href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
*
* <p>If you want to delete your own account, use the <a
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
Expand Down Expand Up @@ -755,7 +755,7 @@ public static class BusinessProfile extends StripeObject {
@SerializedName("mcc")
String mcc;

/** Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. */
/** Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. */
@SerializedName("minority_owned_business_designation")
List<String> minorityOwnedBusinessDesignation;

Expand Down
55 changes: 55 additions & 0 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public static class Components extends StripeObject {
@SerializedName("financial_account_transactions")
FinancialAccountTransactions financialAccountTransactions;

@SerializedName("instant_payouts_promotion")
InstantPayoutsPromotion instantPayoutsPromotion;

@SerializedName("issuing_card")
IssuingCard issuingCard;

Expand Down Expand Up @@ -489,6 +492,58 @@ public static class Features extends StripeObject {
}
}

/**
* For more details about InstantPayoutsPromotion, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class InstantPayoutsPromotion extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Whether Stripe user authentication is disabled. This value can only be {@code true} for
* accounts where {@code controller.requirement_collection} is {@code application} for the
* account. The default value is the opposite of the {@code external_account_collection}
* value. For example, if you don't set {@code external_account_collection}, it defaults to
* {@code true} and {@code disable_stripe_user_authentication} defaults to {@code false}.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;

/**
* Whether external account collection is enabled. This feature can only be {@code false}
* for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like Custom accounts. The default value for this feature
* is {@code true}.
*/
@SerializedName("external_account_collection")
Boolean externalAccountCollection;

/**
* Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
* controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
* false}.
*/
@SerializedName("instant_payouts")
Boolean instantPayouts;
}
}

/**
* For more details about IssuingCard, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public class Capability extends ApiResource implements HasId {
/**
* The status of the capability.
*
* <p>One of {@code active}, {@code disabled}, {@code inactive}, {@code pending}, or {@code
* unrequested}.
* <p>One of {@code active}, {@code inactive}, {@code pending}, or {@code unrequested}.
*/
@SerializedName("status")
String status;
Expand Down
32 changes: 19 additions & 13 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1545,9 +1545,9 @@ public static class Funding extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
* unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -1786,9 +1786,9 @@ public static class Card extends StripeObject {
String authorizationCode;

/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
* unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -2351,9 +2351,9 @@ public static class CardPresent extends StripeObject {
Long amountAuthorized;

/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
* unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -2637,6 +2637,10 @@ public static class Cashapp extends StripeObject {
/** A public identifier for buyers using Cash App. */
@SerializedName("cashtag")
String cashtag;

/** A unique and immutable identifier of payments assigned by Cash App. */
@SerializedName("transaction_id")
String transactionId;
}

/**
Expand Down Expand Up @@ -3559,9 +3563,9 @@ public static class Funding extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
* unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -3953,7 +3957,9 @@ public static class Zip extends StripeObject {}
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PresentmentDetails extends StripeObject {
/** Amount intended to be collected by this payment, denominated in presentment_currency. */
/**
* Amount intended to be collected by this payment, denominated in {@code presentment_currency}.
*/
@SerializedName("presentment_amount")
Long presentmentAmount;

Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,9 @@ public static class Boleto extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
* unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -890,9 +890,9 @@ public static class CardPresent extends StripeObject {
Long amountAuthorized;

/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
* unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down Expand Up @@ -1380,9 +1380,9 @@ public static class VisaCheckout extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class CardPresent extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
* unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ public class Customer extends ApiResource implements HasId, MetadataStore<Custom
Address address;

/**
* The current balance, if any, that's stored on the customer. If negative, the customer has
* credit to apply to their next invoice. If positive, the customer has an amount owed that's
* added to their next invoice. The balance only considers amounts that Stripe hasn't successfully
* applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into
* account after invoices finalize.
* The current balance, if any, that's stored on the customer in their default currency. If
* negative, the customer has credit to apply to their next invoice. If positive, the customer has
* an amount owed that's added to their next invoice. The balance only considers amounts that
* Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This
* balance is only taken into account after invoices finalize. For multi-currency balances, see <a
* href="https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance">invoice_credit_balance</a>.
*/
@SerializedName("balance")
Long balance;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/model/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -1155,9 +1155,9 @@ public static class AmazonPay extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
* unknown}.
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
* unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
Expand Down
36 changes: 14 additions & 22 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,24 @@
import lombok.Setter;

/**
* Events are our way of letting you know when something interesting happens in your account. When
* an interesting event occurs, we create a new {@code Event} object. For example, when a charge
* succeeds, we create a {@code charge.succeeded} event, and when an invoice payment attempt fails,
* we create an {@code invoice.payment_failed} event. Certain API requests might create multiple
* events. For example, if you create a new subscription for a customer, you receive both a {@code
* Snapshot events allow you to track and react to activity in your Stripe integration. When the
* state of another API resource changes, Stripe creates an {@code Event} object that contains all
* the relevant information associated with that action, including the affected API resource. For
* example, a successful payment triggers a {@code charge.succeeded} event, which contains the
* {@code Charge} in the event's data property. Some actions trigger multiple events. For example,
* if you create a new subscription for a customer, it triggers both a {@code
* customer.subscription.created} event and a {@code charge.succeeded} event.
*
* <p>Events occur when the state of another API resource changes. The event's data field embeds the
* resource's state at the time of the change. For example, a {@code charge.succeeded} event
* contains a charge, and an {@code invoice.payment_failed} event contains an invoice.
* <p>Configure an event destination in your account to listen for events that represent actions
* your integration needs to respond to. Additionally, you can retrieve an individual event or a
* list of events from the API.
*
* <p>As with other API resources, you can use endpoints to retrieve an <a
* href="https://stripe.com/docs/api#retrieve_event">individual event</a> or a <a
* href="https://stripe.com/docs/api#list_events">list of events</a> from the API. We also have a
* separate <a href="http://en.wikipedia.org/wiki/Webhook">webhooks</a> system for sending the
* {@code Event} objects directly to an endpoint on your server. You can manage webhooks in your <a
* href="https://dashboard.stripe.com/account/webhooks">account settings</a>. Learn how to <a
* href="https://docs.stripe.com/webhooks">listen for events</a> so that your integration can
* automatically trigger reactions.
* <p><a href="https://docs.stripe.com/connect">Connect</a> platforms can also receive event
* notifications that occur in their connected accounts. These events include an account attribute
* that identifies the relevant connected account.
*
* <p>When using <a href="https://docs.stripe.com/connect">Connect</a>, you can also receive event
* notifications that occur in connected accounts. For these events, there's an additional {@code
* account} attribute in the received {@code Event} object.
*
* <p>We only guarantee access to events through the <a
* href="https://stripe.com/docs/api#retrieve_event">Retrieve Event API</a> for 30 days.
* <p>You can access events through the <a
* href="https://docs.stripe.com/api/events#retrieve_event">Retrieve Event API</a> for 30 days.
*/
@Getter
@Setter
Expand Down
Loading