Skip to content

Commit 032d672

Browse files
Update generated code (#1943)
* Update generated code for v1463 * Update generated code for v1494 * Update generated code for v1495 * Update generated code for v1501 * Update generated code for v1505 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>
1 parent 67ec448 commit 032d672

30 files changed

+1693
-187
lines changed

CONTRIBUTING.md

-25
This file was deleted.

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1455
1+
v1505

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

+1-1
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-01-27.acacia";
5+
public static final String CURRENT = "2025-02-24.acacia";
66
}

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

+72-18
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,24 @@ public static class Available extends StripeObject {
166166
@Setter
167167
@EqualsAndHashCode(callSuper = false)
168168
public static class SourceTypes extends StripeObject {
169-
/** Amount for bank account. */
169+
/**
170+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
171+
* payments</a>.
172+
*/
170173
@SerializedName("bank_account")
171174
Long bankAccount;
172175

173-
/** Amount for card. */
176+
/**
177+
* Amount coming from most payment methods, including cards as well as <a
178+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
179+
*/
174180
@SerializedName("card")
175181
Long card;
176182

177-
/** Amount for FPX. */
183+
/**
184+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
185+
* payment method.
186+
*/
178187
@SerializedName("fpx")
179188
Long fpx;
180189
}
@@ -211,15 +220,24 @@ public static class ConnectReserved extends StripeObject {
211220
@Setter
212221
@EqualsAndHashCode(callSuper = false)
213222
public static class SourceTypes extends StripeObject {
214-
/** Amount for bank account. */
223+
/**
224+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
225+
* payments</a>.
226+
*/
215227
@SerializedName("bank_account")
216228
Long bankAccount;
217229

218-
/** Amount for card. */
230+
/**
231+
* Amount coming from most payment methods, including cards as well as <a
232+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
233+
*/
219234
@SerializedName("card")
220235
Long card;
221236

222-
/** Amount for FPX. */
237+
/**
238+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
239+
* payment method.
240+
*/
223241
@SerializedName("fpx")
224242
Long fpx;
225243
}
@@ -279,15 +297,24 @@ public static class NetAvailable extends StripeObject {
279297
@Setter
280298
@EqualsAndHashCode(callSuper = false)
281299
public static class SourceTypes extends StripeObject {
282-
/** Amount for bank account. */
300+
/**
301+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
302+
* payments</a>.
303+
*/
283304
@SerializedName("bank_account")
284305
Long bankAccount;
285306

286-
/** Amount for card. */
307+
/**
308+
* Amount coming from most payment methods, including cards as well as <a
309+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
310+
*/
287311
@SerializedName("card")
288312
Long card;
289313

290-
/** Amount for FPX. */
314+
/**
315+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
316+
* payment method.
317+
*/
291318
@SerializedName("fpx")
292319
Long fpx;
293320
}
@@ -301,15 +328,24 @@ public static class SourceTypes extends StripeObject {
301328
@Setter
302329
@EqualsAndHashCode(callSuper = false)
303330
public static class SourceTypes extends StripeObject {
304-
/** Amount for bank account. */
331+
/**
332+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
333+
* payments</a>.
334+
*/
305335
@SerializedName("bank_account")
306336
Long bankAccount;
307337

308-
/** Amount for card. */
338+
/**
339+
* Amount coming from most payment methods, including cards as well as <a
340+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
341+
*/
309342
@SerializedName("card")
310343
Long card;
311344

312-
/** Amount for FPX. */
345+
/**
346+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
347+
* payment method.
348+
*/
313349
@SerializedName("fpx")
314350
Long fpx;
315351
}
@@ -358,15 +394,24 @@ public static class Available extends StripeObject {
358394
@Setter
359395
@EqualsAndHashCode(callSuper = false)
360396
public static class SourceTypes extends StripeObject {
361-
/** Amount for bank account. */
397+
/**
398+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
399+
* payments</a>.
400+
*/
362401
@SerializedName("bank_account")
363402
Long bankAccount;
364403

365-
/** Amount for card. */
404+
/**
405+
* Amount coming from most payment methods, including cards as well as <a
406+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
407+
*/
366408
@SerializedName("card")
367409
Long card;
368410

369-
/** Amount for FPX. */
411+
/**
412+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
413+
* payment method.
414+
*/
370415
@SerializedName("fpx")
371416
Long fpx;
372417
}
@@ -404,15 +449,24 @@ public static class Pending extends StripeObject {
404449
@Setter
405450
@EqualsAndHashCode(callSuper = false)
406451
public static class SourceTypes extends StripeObject {
407-
/** Amount for bank account. */
452+
/**
453+
* Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
454+
* payments</a>.
455+
*/
408456
@SerializedName("bank_account")
409457
Long bankAccount;
410458

411-
/** Amount for card. */
459+
/**
460+
* Amount coming from most payment methods, including cards as well as <a
461+
* href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
462+
*/
412463
@SerializedName("card")
413464
Long card;
414465

415-
/** Amount for FPX. */
466+
/**
467+
* Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
468+
* payment method.
469+
*/
416470
@SerializedName("fpx")
417471
Long fpx;
418472
}

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

+11-19
Original file line numberDiff line numberDiff line change
@@ -1305,13 +1305,11 @@ public static class PaymentMethodDetails extends StripeObject {
13051305
Twint twint;
13061306

13071307
/**
1308-
* The type of transaction-specific details of the payment method used in the payment, one of
1309-
* {@code ach_credit_transfer}, {@code ach_debit}, {@code acss_debit}, {@code alipay}, {@code
1310-
* au_becs_debit}, {@code bancontact}, {@code card}, {@code card_present}, {@code eps}, {@code
1311-
* giropay}, {@code ideal}, {@code klarna}, {@code multibanco}, {@code p24}, {@code sepa_debit},
1312-
* {@code sofort}, {@code stripe_account}, or {@code wechat}. An additional hash is included on
1313-
* {@code payment_method_details} with a name matching this value. It contains information
1314-
* specific to the payment method.
1308+
* The type of transaction-specific details of the payment method used in the payment. See <a
1309+
* href="https://stripe.com/docs/api/payment_methods/object#payment_method_object-type">PaymentMethod.type</a>
1310+
* for the full list of possible types. An additional hash is included on {@code
1311+
* payment_method_details} with a name matching this value. It contains information specific to
1312+
* the payment method.
13151313
*/
13161314
@SerializedName("type")
13171315
String type;
@@ -1889,10 +1887,8 @@ public static class Card extends StripeObject {
18891887
/**
18901888
* This is used by the financial networks to identify a transaction. Visa calls this the
18911889
* Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
1892-
* Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
1893-
* Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
1894-
* the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
1895-
* Express transactions and always null for other card brands.
1890+
* Acquirer Reference Data. This value will be present if it is returned by the financial
1891+
* network in the authorization response, and null otherwise.
18961892
*/
18971893
@SerializedName("network_transaction_id")
18981894
String networkTransactionId;
@@ -2454,10 +2450,8 @@ public static class CardPresent extends StripeObject {
24542450
/**
24552451
* This is used by the financial networks to identify a transaction. Visa calls this the
24562452
* Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
2457-
* Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
2458-
* Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
2459-
* the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
2460-
* Express transactions and always null for other card brands.
2453+
* Acquirer Reference Data. This value will be present if it is returned by the financial
2454+
* network in the authorization response, and null otherwise.
24612455
*/
24622456
@SerializedName("network_transaction_id")
24632457
String networkTransactionId;
@@ -2917,10 +2911,8 @@ public static class InteracPresent extends StripeObject {
29172911
/**
29182912
* This is used by the financial networks to identify a transaction. Visa calls this the
29192913
* Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
2920-
* Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
2921-
* Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
2922-
* the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
2923-
* Express transactions and always null for other card brands.
2914+
* Acquirer Reference Data. This value will be present if it is returned by the financial
2915+
* network in the authorization response, and null otherwise.
29242916
*/
29252917
@SerializedName("network_transaction_id")
29262918
String networkTransactionId;

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

+14-7
Original file line numberDiff line numberDiff line change
@@ -942,10 +942,8 @@ public static class CardPresent extends StripeObject {
942942
/**
943943
* This is used by the financial networks to identify a transaction. Visa calls this the
944944
* Transaction ID, Mastercard calls this the Trace ID, and American Express calls this
945-
* the Acquirer Reference Data. The first three digits of the Trace ID is the Financial
946-
* Network Code, the next 6 digits is the Banknet Reference Number, and the last 4
947-
* digits represent the date (MM/DD). This field will be available for successful Visa,
948-
* Mastercard, or American Express transactions and always null for other card brands.
945+
* the Acquirer Reference Data. This value will be present if it is returned by the
946+
* financial network in the authorization response, and null otherwise.
949947
*/
950948
@SerializedName("network_transaction_id")
951949
String networkTransactionId;
@@ -1087,7 +1085,10 @@ public static class Wallet extends StripeObject {
10871085
@Setter
10881086
@EqualsAndHashCode(callSuper = false)
10891087
public static class Networks extends StripeObject {
1090-
/** All available networks for the card. */
1088+
/**
1089+
* All networks available for selection via <a
1090+
* href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
1091+
*/
10911092
@SerializedName("available")
10921093
List<String> available;
10931094

@@ -1405,7 +1406,10 @@ public static class CardPresent extends StripeObject {
14051406
@Setter
14061407
@EqualsAndHashCode(callSuper = false)
14071408
public static class Networks extends StripeObject {
1408-
/** All available networks for the card. */
1409+
/**
1410+
* All networks available for selection via <a
1411+
* href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
1412+
*/
14091413
@SerializedName("available")
14101414
List<String> available;
14111415

@@ -1682,7 +1686,10 @@ public static class InteracPresent extends StripeObject {
16821686
@Setter
16831687
@EqualsAndHashCode(callSuper = false)
16841688
public static class Networks extends StripeObject {
1685-
/** All available networks for the card. */
1689+
/**
1690+
* All networks available for selection via <a
1691+
* href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
1692+
*/
16861693
@SerializedName("available")
16871694
List<String> available;
16881695

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -792,12 +792,12 @@ public static class Tax extends StripeObject {
792792

793793
/**
794794
* Tax rates can be applied to <a
795-
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
796-
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
797-
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
798-
* Sessions</a> to collect tax.
795+
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
796+
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
797+
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
798+
* collect tax.
799799
*
800-
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
800+
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
801801
*/
802802
@SerializedName("rate")
803803
TaxRate rate;

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -2800,12 +2800,12 @@ public static class Tax extends StripeObject {
28002800

28012801
/**
28022802
* Tax rates can be applied to <a
2803-
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
2804-
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
2805-
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
2806-
* Sessions</a> to collect tax.
2803+
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
2804+
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
2805+
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
2806+
* collect tax.
28072807
*
2808-
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
2808+
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
28092809
*/
28102810
@SerializedName("rate")
28112811
TaxRate rate;

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ public static class Tax extends StripeObject {
110110

111111
/**
112112
* Tax rates can be applied to <a
113-
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
114-
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
115-
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
116-
* Sessions</a> to collect tax.
113+
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
114+
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
115+
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
116+
* collect tax.
117117
*
118-
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
118+
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
119119
*/
120120
@SerializedName("rate")
121121
TaxRate rate;

0 commit comments

Comments
 (0)