Skip to content

Commit 1cb9b9c

Browse files
Update generated code (#2203)
* Update generated code for v2240 and * Update generated code for v2249 and * Update generated code for v2252 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Michael Broshi <94012587+mbroshi-stripe@users.noreply.github.com>
1 parent 684d6ce commit 1cb9b9c

71 files changed

Lines changed: 8327 additions & 417 deletions

File tree

Some content is hidden

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

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
58595eed5a9dffbf0f297ecaf3ac45acf36c5de3
1+
9aa5ee4ed2b929f65b7fbf7c341f938682888500

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2205
1+
v2252

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 = "2026-03-25.dahlia";
5+
public static final String CURRENT = "2026-04-22.dahlia";
66
public static final String CURRENT_MAJOR = "dahlia";
77
}

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,15 @@ public static class Capabilities extends StripeObject {
906906
@SerializedName("amazon_pay_payments")
907907
String amazonPayPayments;
908908

909+
/**
910+
* The status of the {@code app_distribution} capability of the account, or whether the platform
911+
* can distribute apps to other accounts.
912+
*
913+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
914+
*/
915+
@SerializedName("app_distribution")
916+
String appDistribution;
917+
909918
/**
910919
* The status of the BECS Direct Debit (AU) payments capability of the account, or whether the
911920
* account can directly process BECS Direct Debit (AU) charges.
@@ -1328,6 +1337,15 @@ public static class Capabilities extends StripeObject {
13281337
@SerializedName("sofort_payments")
13291338
String sofortPayments;
13301339

1340+
/**
1341+
* The status of the Sunbit capability of the account, or whether the account can directly
1342+
* process Sunbit payments.
1343+
*
1344+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
1345+
*/
1346+
@SerializedName("sunbit_payments")
1347+
String sunbitPayments;
1348+
13311349
/**
13321350
* The status of the Swish capability of the account, or whether the account can directly
13331351
* process Swish payments.

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

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ public static class Components extends StripeObject {
132132
@SerializedName("account_onboarding")
133133
AccountOnboarding accountOnboarding;
134134

135+
@SerializedName("balance_report")
136+
BalanceReport balanceReport;
137+
135138
@SerializedName("balances")
136139
Balances balances;
137140

@@ -171,6 +174,9 @@ public static class Components extends StripeObject {
171174
@SerializedName("payout_details")
172175
PayoutDetails payoutDetails;
173176

177+
@SerializedName("payout_reconciliation_report")
178+
PayoutReconciliationReport payoutReconciliationReport;
179+
174180
@SerializedName("payouts")
175181
Payouts payouts;
176182

@@ -271,6 +277,31 @@ public static class Features extends StripeObject {
271277
}
272278
}
273279

280+
/**
281+
* For more details about BalanceReport, please refer to the <a
282+
* href="https://docs.stripe.com/api">API Reference.</a>
283+
*/
284+
@Getter
285+
@Setter
286+
@EqualsAndHashCode(callSuper = false)
287+
public static class BalanceReport extends StripeObject {
288+
/** Whether the embedded component is enabled. */
289+
@SerializedName("enabled")
290+
Boolean enabled;
291+
292+
@SerializedName("features")
293+
Features features;
294+
295+
/**
296+
* For more details about Features, please refer to the <a
297+
* href="https://docs.stripe.com/api">API Reference.</a>
298+
*/
299+
@Getter
300+
@Setter
301+
@EqualsAndHashCode(callSuper = false)
302+
public static class Features extends StripeObject {}
303+
}
304+
274305
/**
275306
* For more details about Balances, please refer to the <a
276307
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -851,6 +882,31 @@ public static class PayoutDetails extends StripeObject {
851882
public static class Features extends StripeObject {}
852883
}
853884

885+
/**
886+
* For more details about PayoutReconciliationReport, please refer to the <a
887+
* href="https://docs.stripe.com/api">API Reference.</a>
888+
*/
889+
@Getter
890+
@Setter
891+
@EqualsAndHashCode(callSuper = false)
892+
public static class PayoutReconciliationReport extends StripeObject {
893+
/** Whether the embedded component is enabled. */
894+
@SerializedName("enabled")
895+
Boolean enabled;
896+
897+
@SerializedName("features")
898+
Features features;
899+
900+
/**
901+
* For more details about Features, please refer to the <a
902+
* href="https://docs.stripe.com/api">API Reference.</a>
903+
*/
904+
@Getter
905+
@Setter
906+
@EqualsAndHashCode(callSuper = false)
907+
public static class Features extends StripeObject {}
908+
}
909+
854910
/**
855911
* For more details about Payouts, please refer to the <a href="https://docs.stripe.com/api">API
856912
* Reference.</a>

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
131131
* Transaction type: {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
132132
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
133133
* charge}, {@code climate_order_purchase}, {@code climate_order_refund}, {@code
134-
* connect_collection_transfer}, {@code contribution}, {@code issuing_authorization_hold}, {@code
134+
* connect_collection_transfer}, {@code contribution}, {@code inbound_transfer}, {@code
135+
* inbound_transfer_reversal}, {@code issuing_authorization_hold}, {@code
135136
* issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction}, {@code
136137
* obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
137138
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
@@ -142,17 +143,18 @@ public class BalanceTransaction extends ApiResource implements HasId {
142143
* {@code reserve_release}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
143144
* stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code tax_fee},
144145
* {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code
145-
* transfer_failure}, or {@code transfer_refund}. Learn more about <a
146+
* transfer_failure}, {@code transfer_refund}, or {@code fee_credit_funding}. Learn more about <a
146147
* href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction types and
147148
* what they represent</a>. To classify transactions for accounting purposes, consider {@code
148149
* reporting_category} instead.
149150
*
150151
* <p>One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
151152
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
152153
* charge}, {@code climate_order_purchase}, {@code climate_order_refund}, {@code
153-
* connect_collection_transfer}, {@code contribution}, {@code issuing_authorization_hold}, {@code
154-
* issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction}, {@code
155-
* obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
154+
* connect_collection_transfer}, {@code contribution}, {@code fee_credit_funding}, {@code
155+
* inbound_transfer}, {@code inbound_transfer_reversal}, {@code issuing_authorization_hold},
156+
* {@code issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction},
157+
* {@code obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
156158
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
157159
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
158160
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
@@ -331,7 +333,7 @@ public static class FeeDetail extends StripeObject {
331333

332334
/**
333335
* Type of the fee, one of: {@code application_fee}, {@code payment_method_passthrough_fee},
334-
* {@code stripe_fee} or {@code tax}.
336+
* {@code stripe_fee}, {@code tax}, or {@code withheld_tax}.
335337
*/
336338
@SerializedName("type")
337339
String type;

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

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,9 @@ public static class PaymentMethodDetails extends StripeObject {
13031303
@SerializedName("stripe_account")
13041304
StripeAccount stripeAccount;
13051305

1306+
@SerializedName("sunbit")
1307+
Sunbit sunbit;
1308+
13061309
@SerializedName("swish")
13071310
Swish swish;
13081311

@@ -1450,17 +1453,11 @@ public static class AcssDebit extends StripeObject {
14501453
@Setter
14511454
@EqualsAndHashCode(callSuper = false)
14521455
public static class Affirm extends StripeObject {
1453-
/**
1454-
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
1455-
* transaction's reader is assigned to.
1456-
*/
1456+
/** ID of the location that this reader is assigned to. */
14571457
@SerializedName("location")
14581458
String location;
14591459

1460-
/**
1461-
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
1462-
* transaction was made on.
1463-
*/
1460+
/** ID of the reader this transaction was made on. */
14641461
@SerializedName("reader")
14651462
String reader;
14661463

@@ -1481,7 +1478,7 @@ public static class AfterpayClearpay extends StripeObject {
14811478
@SerializedName("order_id")
14821479
String orderId;
14831480

1484-
/** Order identifier shown to the merchant in Afterpays online portal. */
1481+
/** Order identifier shown to the merchant in Afterpay's online portal. */
14851482
@SerializedName("reference")
14861483
String reference;
14871484
}
@@ -2737,7 +2734,7 @@ public static class Crypto extends StripeObject {
27372734
/**
27382735
* The token currency that the transaction was sent with.
27392736
*
2740-
* <p>One of {@code usdc}, {@code usdg}, or {@code usdp}.
2737+
* <p>One of {@code phantom_cash}, {@code usdc}, {@code usdg}, {@code usdp}, or {@code usdt}.
27412738
*/
27422739
@SerializedName("token_currency")
27432740
String tokenCurrency;
@@ -3206,6 +3203,13 @@ public static class KakaoPay extends StripeObject {
32063203
@Setter
32073204
@EqualsAndHashCode(callSuper = false)
32083205
public static class Klarna extends StripeObject {
3206+
/**
3207+
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
3208+
* transaction's reader is assigned to.
3209+
*/
3210+
@SerializedName("location")
3211+
String location;
3212+
32093213
/** The payer details for this transaction. */
32103214
@SerializedName("payer_details")
32113215
PayerDetails payerDetails;
@@ -3231,6 +3235,13 @@ public static class Klarna extends StripeObject {
32313235
@SerializedName("preferred_locale")
32323236
String preferredLocale;
32333237

3238+
/**
3239+
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
3240+
* transaction was made on.
3241+
*/
3242+
@SerializedName("reader")
3243+
String reader;
3244+
32343245
/**
32353246
* For more details about PayerDetails, please refer to the <a
32363247
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -3670,6 +3681,10 @@ public static class Pix extends StripeObject {
36703681
/** Unique transaction id generated by BCB. */
36713682
@SerializedName("bank_transaction_id")
36723683
String bankTransactionId;
3684+
3685+
/** ID of the multi use Mandate generated by the PaymentIntent. */
3686+
@SerializedName("mandate")
3687+
String mandate;
36733688
}
36743689

36753690
/**
@@ -3970,6 +3985,19 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
39703985
@EqualsAndHashCode(callSuper = false)
39713986
public static class StripeAccount extends StripeObject {}
39723987

3988+
/**
3989+
* For more details about Sunbit, please refer to the <a href="https://docs.stripe.com/api">API
3990+
* Reference.</a>
3991+
*/
3992+
@Getter
3993+
@Setter
3994+
@EqualsAndHashCode(callSuper = false)
3995+
public static class Sunbit extends StripeObject {
3996+
/** The Sunbit transaction ID associated with this payment. */
3997+
@SerializedName("transaction_id")
3998+
String transactionId;
3999+
}
4000+
39734001
/**
39744002
* For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
39754003
* Reference.</a>

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ public static class PaymentMethodPreview extends StripeObject {
434434
@SerializedName("sofort")
435435
Sofort sofort;
436436

437+
@SerializedName("sunbit")
438+
Sunbit sunbit;
439+
437440
@SerializedName("swish")
438441
Swish swish;
439442

@@ -454,8 +457,9 @@ public static class PaymentMethodPreview extends StripeObject {
454457
* link}, {@code mb_way}, {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code
455458
* nz_bank_account}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code
456459
* paynow}, {@code paypal}, {@code payto}, {@code pix}, {@code promptpay}, {@code revolut_pay},
457-
* {@code samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code sofort}, {@code swish},
458-
* {@code twint}, {@code upi}, {@code us_bank_account}, {@code wechat_pay}, or {@code zip}.
460+
* {@code samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code sofort}, {@code sunbit},
461+
* {@code swish}, {@code twint}, {@code upi}, {@code us_bank_account}, {@code wechat_pay}, or
462+
* {@code zip}.
459463
*/
460464
@SerializedName("type")
461465
String type;
@@ -2274,6 +2278,15 @@ public static class Sofort extends StripeObject {
22742278
String country;
22752279
}
22762280

2281+
/**
2282+
* For more details about Sunbit, please refer to the <a href="https://docs.stripe.com/api">API
2283+
* Reference.</a>
2284+
*/
2285+
@Getter
2286+
@Setter
2287+
@EqualsAndHashCode(callSuper = false)
2288+
public static class Sunbit extends StripeObject {}
2289+
22772290
/**
22782291
* For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
22792292
* Reference.</a>

0 commit comments

Comments
 (0)