Skip to content

Commit b205bc1

Browse files
Update generated code (#2027)
* Update generated code for v1868 and 2025-07-30.basil * Update generated code for v1868 and 2025-07-30.basil * Update generated code for v1868 and 2025-07-30.basil --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 5897e8f commit b205bc1

File tree

55 files changed

+8317
-1625
lines changed

Some content is hidden

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

55 files changed

+8317
-1625
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-06-30.basil
1+
2025-07-30.basil

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1819
1+
v1868

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

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

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-06-30.basil";
5+
public static final String CURRENT = "2025-07-30.basil";
66
public static final String CURRENT_MAJOR = "basil";
77
}

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,10 @@ public static Account create(AccountCreateParams params, RequestOptions options)
312312
*
313313
* <p>Test-mode accounts can be deleted at any time.
314314
*
315-
* <p>Live-mode accounts where Stripe is responsible for negative account balances cannot be
316-
* deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
317-
* negative account balances, which includes Custom and Express accounts, can be deleted when all
318-
* <a href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
315+
* <p>Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
316+
* negative account balances cannot be deleted, which includes Standard accounts. All other
317+
* Live-mode accounts, can be deleted when all <a
318+
* href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
319319
*
320320
* <p>If you want to delete your own account, use the <a
321321
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
@@ -330,10 +330,10 @@ public Account delete() throws StripeException {
330330
*
331331
* <p>Test-mode accounts can be deleted at any time.
332332
*
333-
* <p>Live-mode accounts where Stripe is responsible for negative account balances cannot be
334-
* deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
335-
* negative account balances, which includes Custom and Express accounts, can be deleted when all
336-
* <a href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
333+
* <p>Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
334+
* negative account balances cannot be deleted, which includes Standard accounts. All other
335+
* Live-mode accounts, can be deleted when all <a
336+
* href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
337337
*
338338
* <p>If you want to delete your own account, use the <a
339339
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
@@ -348,10 +348,10 @@ public Account delete(RequestOptions options) throws StripeException {
348348
*
349349
* <p>Test-mode accounts can be deleted at any time.
350350
*
351-
* <p>Live-mode accounts where Stripe is responsible for negative account balances cannot be
352-
* deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
353-
* negative account balances, which includes Custom and Express accounts, can be deleted when all
354-
* <a href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
351+
* <p>Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
352+
* negative account balances cannot be deleted, which includes Standard accounts. All other
353+
* Live-mode accounts, can be deleted when all <a
354+
* href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
355355
*
356356
* <p>If you want to delete your own account, use the <a
357357
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
@@ -366,10 +366,10 @@ public Account delete(Map<String, Object> params) throws StripeException {
366366
*
367367
* <p>Test-mode accounts can be deleted at any time.
368368
*
369-
* <p>Live-mode accounts where Stripe is responsible for negative account balances cannot be
370-
* deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
371-
* negative account balances, which includes Custom and Express accounts, can be deleted when all
372-
* <a href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
369+
* <p>Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
370+
* negative account balances cannot be deleted, which includes Standard accounts. All other
371+
* Live-mode accounts, can be deleted when all <a
372+
* href="https://stripe.com/api/balance/balance_object">balances</a> are zero.
373373
*
374374
* <p>If you want to delete your own account, use the <a
375375
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
@@ -755,7 +755,7 @@ public static class BusinessProfile extends StripeObject {
755755
@SerializedName("mcc")
756756
String mcc;
757757

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

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

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ public static class Components extends StripeObject {
147147
@SerializedName("financial_account_transactions")
148148
FinancialAccountTransactions financialAccountTransactions;
149149

150+
@SerializedName("instant_payouts_promotion")
151+
InstantPayoutsPromotion instantPayoutsPromotion;
152+
150153
@SerializedName("issuing_card")
151154
IssuingCard issuingCard;
152155

@@ -489,6 +492,58 @@ public static class Features extends StripeObject {
489492
}
490493
}
491494

495+
/**
496+
* For more details about InstantPayoutsPromotion, please refer to the <a
497+
* href="https://docs.stripe.com/api">API Reference.</a>
498+
*/
499+
@Getter
500+
@Setter
501+
@EqualsAndHashCode(callSuper = false)
502+
public static class InstantPayoutsPromotion extends StripeObject {
503+
/** Whether the embedded component is enabled. */
504+
@SerializedName("enabled")
505+
Boolean enabled;
506+
507+
@SerializedName("features")
508+
Features features;
509+
510+
/**
511+
* For more details about Features, please refer to the <a
512+
* href="https://docs.stripe.com/api">API Reference.</a>
513+
*/
514+
@Getter
515+
@Setter
516+
@EqualsAndHashCode(callSuper = false)
517+
public static class Features extends StripeObject {
518+
/**
519+
* Whether Stripe user authentication is disabled. This value can only be {@code true} for
520+
* accounts where {@code controller.requirement_collection} is {@code application} for the
521+
* account. The default value is the opposite of the {@code external_account_collection}
522+
* value. For example, if you don't set {@code external_account_collection}, it defaults to
523+
* {@code true} and {@code disable_stripe_user_authentication} defaults to {@code false}.
524+
*/
525+
@SerializedName("disable_stripe_user_authentication")
526+
Boolean disableStripeUserAuthentication;
527+
528+
/**
529+
* Whether external account collection is enabled. This feature can only be {@code false}
530+
* for accounts where you’re responsible for collecting updated information when
531+
* requirements are due or change, like Custom accounts. The default value for this feature
532+
* is {@code true}.
533+
*/
534+
@SerializedName("external_account_collection")
535+
Boolean externalAccountCollection;
536+
537+
/**
538+
* Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
539+
* controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
540+
* false}.
541+
*/
542+
@SerializedName("instant_payouts")
543+
Boolean instantPayouts;
544+
}
545+
}
546+
492547
/**
493548
* For more details about IssuingCard, please refer to the <a
494549
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public class Capability extends ApiResource implements HasId {
6262
/**
6363
* The status of the capability.
6464
*
65-
* <p>One of {@code active}, {@code disabled}, {@code inactive}, {@code pending}, or {@code
66-
* unrequested}.
65+
* <p>One of {@code active}, {@code inactive}, {@code pending}, or {@code unrequested}.
6766
*/
6867
@SerializedName("status")
6968
String status;

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

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,9 +1545,9 @@ public static class Funding extends StripeObject {
15451545
@EqualsAndHashCode(callSuper = false)
15461546
public static class Card extends StripeObject {
15471547
/**
1548-
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1549-
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
1550-
* {@code unknown}.
1548+
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
1549+
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
1550+
* unionpay}, {@code visa} or {@code unknown}.
15511551
*/
15521552
@SerializedName("brand")
15531553
String brand;
@@ -1786,9 +1786,9 @@ public static class Card extends StripeObject {
17861786
String authorizationCode;
17871787

17881788
/**
1789-
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1790-
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1791-
* unknown}.
1789+
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
1790+
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
1791+
* unionpay}, {@code visa} or {@code unknown}.
17921792
*/
17931793
@SerializedName("brand")
17941794
String brand;
@@ -2351,9 +2351,9 @@ public static class CardPresent extends StripeObject {
23512351
Long amountAuthorized;
23522352

23532353
/**
2354-
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
2355-
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
2356-
* unknown}.
2354+
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
2355+
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
2356+
* unionpay}, {@code visa} or {@code unknown}.
23572357
*/
23582358
@SerializedName("brand")
23592359
String brand;
@@ -2637,6 +2637,10 @@ public static class Cashapp extends StripeObject {
26372637
/** A public identifier for buyers using Cash App. */
26382638
@SerializedName("cashtag")
26392639
String cashtag;
2640+
2641+
/** A unique and immutable identifier of payments assigned by Cash App. */
2642+
@SerializedName("transaction_id")
2643+
String transactionId;
26402644
}
26412645

26422646
/**
@@ -3559,9 +3563,9 @@ public static class Funding extends StripeObject {
35593563
@EqualsAndHashCode(callSuper = false)
35603564
public static class Card extends StripeObject {
35613565
/**
3562-
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
3563-
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
3564-
* {@code unknown}.
3566+
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
3567+
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
3568+
* unionpay}, {@code visa} or {@code unknown}.
35653569
*/
35663570
@SerializedName("brand")
35673571
String brand;
@@ -3953,7 +3957,9 @@ public static class Zip extends StripeObject {}
39533957
@Setter
39543958
@EqualsAndHashCode(callSuper = false)
39553959
public static class PresentmentDetails extends StripeObject {
3956-
/** Amount intended to be collected by this payment, denominated in presentment_currency. */
3960+
/**
3961+
* Amount intended to be collected by this payment, denominated in {@code presentment_currency}.
3962+
*/
39573963
@SerializedName("presentment_amount")
39583964
Long presentmentAmount;
39593965

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,9 @@ public static class Boleto extends StripeObject {
684684
@EqualsAndHashCode(callSuper = false)
685685
public static class Card extends StripeObject {
686686
/**
687-
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
688-
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
689-
* unknown}.
687+
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
688+
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
689+
* unionpay}, {@code visa} or {@code unknown}.
690690
*/
691691
@SerializedName("brand")
692692
String brand;
@@ -890,9 +890,9 @@ public static class CardPresent extends StripeObject {
890890
Long amountAuthorized;
891891

892892
/**
893-
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
894-
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
895-
* {@code unknown}.
893+
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
894+
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
895+
* unionpay}, {@code visa} or {@code unknown}.
896896
*/
897897
@SerializedName("brand")
898898
String brand;
@@ -1380,9 +1380,9 @@ public static class VisaCheckout extends StripeObject {
13801380
@EqualsAndHashCode(callSuper = false)
13811381
public static class CardPresent extends StripeObject {
13821382
/**
1383-
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1384-
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1385-
* unknown}.
1383+
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
1384+
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
1385+
* unionpay}, {@code visa} or {@code unknown}.
13861386
*/
13871387
@SerializedName("brand")
13881388
String brand;

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ public class Customer extends ApiResource implements HasId, MetadataStore<Custom
4242
Address address;
4343

4444
/**
45-
* The current balance, if any, that's stored on the customer. If negative, the customer has
46-
* credit to apply to their next invoice. If positive, the customer has an amount owed that's
47-
* added to their next invoice. The balance only considers amounts that Stripe hasn't successfully
48-
* applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into
49-
* account after invoices finalize.
45+
* The current balance, if any, that's stored on the customer in their default currency. If
46+
* negative, the customer has credit to apply to their next invoice. If positive, the customer has
47+
* an amount owed that's added to their next invoice. The balance only considers amounts that
48+
* Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This
49+
* balance is only taken into account after invoices finalize. For multi-currency balances, see <a
50+
* href="https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance">invoice_credit_balance</a>.
5051
*/
5152
@SerializedName("balance")
5253
Long balance;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,9 +1155,9 @@ public static class AmazonPay extends StripeObject {
11551155
@EqualsAndHashCode(callSuper = false)
11561156
public static class Card extends StripeObject {
11571157
/**
1158-
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1159-
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1160-
* unknown}.
1158+
* Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
1159+
* discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
1160+
* unionpay}, {@code visa} or {@code unknown}.
11611161
*/
11621162
@SerializedName("brand")
11631163
String brand;

0 commit comments

Comments
 (0)