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 @@
58595eed5a9dffbf0f297ecaf3ac45acf36c5de3
9aa5ee4ed2b929f65b7fbf7c341f938682888500
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2205
v2252
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 = "2026-03-25.dahlia";
public static final String CURRENT = "2026-04-22.dahlia";
public static final String CURRENT_MAJOR = "dahlia";
}
18 changes: 18 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("amazon_pay_payments")
String amazonPayPayments;

/**
* The status of the {@code app_distribution} capability of the account, or whether the platform
* can distribute apps to other accounts.
*
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
*/
@SerializedName("app_distribution")
String appDistribution;

/**
* The status of the BECS Direct Debit (AU) payments capability of the account, or whether the
* account can directly process BECS Direct Debit (AU) charges.
Expand Down Expand Up @@ -1328,6 +1337,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("sofort_payments")
String sofortPayments;

/**
* The status of the Sunbit capability of the account, or whether the account can directly
* process Sunbit payments.
*
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
*/
@SerializedName("sunbit_payments")
String sunbitPayments;

/**
* The status of the Swish capability of the account, or whether the account can directly
* process Swish payments.
Expand Down
56 changes: 56 additions & 0 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ public static class Components extends StripeObject {
@SerializedName("account_onboarding")
AccountOnboarding accountOnboarding;

@SerializedName("balance_report")
BalanceReport balanceReport;

@SerializedName("balances")
Balances balances;

Expand Down Expand Up @@ -171,6 +174,9 @@ public static class Components extends StripeObject {
@SerializedName("payout_details")
PayoutDetails payoutDetails;

@SerializedName("payout_reconciliation_report")
PayoutReconciliationReport payoutReconciliationReport;

@SerializedName("payouts")
Payouts payouts;

Expand Down Expand Up @@ -271,6 +277,31 @@ public static class Features extends StripeObject {
}
}

/**
* For more details about BalanceReport, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class BalanceReport 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 {}
}

/**
* For more details about Balances, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -851,6 +882,31 @@ public static class PayoutDetails extends StripeObject {
public static class Features extends StripeObject {}
}

/**
* For more details about PayoutReconciliationReport, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PayoutReconciliationReport 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 {}
}

/**
* For more details about Payouts, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
14 changes: 8 additions & 6 deletions src/main/java/com/stripe/model/BalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
* Transaction type: {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
* charge}, {@code climate_order_purchase}, {@code climate_order_refund}, {@code
* connect_collection_transfer}, {@code contribution}, {@code issuing_authorization_hold}, {@code
* connect_collection_transfer}, {@code contribution}, {@code inbound_transfer}, {@code
* inbound_transfer_reversal}, {@code issuing_authorization_hold}, {@code
* issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction}, {@code
* obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
Expand All @@ -142,17 +143,18 @@ public class BalanceTransaction extends ApiResource implements HasId {
* {@code reserve_release}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
* stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code tax_fee},
* {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code
* transfer_failure}, or {@code transfer_refund}. Learn more about <a
* transfer_failure}, {@code transfer_refund}, or {@code fee_credit_funding}. Learn more about <a
* href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction types and
* what they represent</a>. To classify transactions for accounting purposes, consider {@code
* reporting_category} instead.
*
* <p>One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
* charge}, {@code climate_order_purchase}, {@code climate_order_refund}, {@code
* connect_collection_transfer}, {@code contribution}, {@code issuing_authorization_hold}, {@code
* issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction}, {@code
* obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
* connect_collection_transfer}, {@code contribution}, {@code fee_credit_funding}, {@code
* inbound_transfer}, {@code inbound_transfer_reversal}, {@code issuing_authorization_hold},
* {@code issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction},
* {@code obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
Expand Down Expand Up @@ -331,7 +333,7 @@ public static class FeeDetail extends StripeObject {

/**
* Type of the fee, one of: {@code application_fee}, {@code payment_method_passthrough_fee},
* {@code stripe_fee} or {@code tax}.
* {@code stripe_fee}, {@code tax}, or {@code withheld_tax}.
*/
@SerializedName("type")
String type;
Expand Down
48 changes: 38 additions & 10 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("stripe_account")
StripeAccount stripeAccount;

@SerializedName("sunbit")
Sunbit sunbit;

@SerializedName("swish")
Swish swish;

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

/**
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
* transaction was made on.
*/
/** ID of the reader this transaction was made on. */
@SerializedName("reader")
String reader;

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

/** Order identifier shown to the merchant in Afterpays online portal. */
/** Order identifier shown to the merchant in Afterpay's online portal. */
@SerializedName("reference")
String reference;
}
Expand Down Expand Up @@ -2737,7 +2734,7 @@ public static class Crypto extends StripeObject {
/**
* The token currency that the transaction was sent with.
*
* <p>One of {@code usdc}, {@code usdg}, or {@code usdp}.
* <p>One of {@code phantom_cash}, {@code usdc}, {@code usdg}, {@code usdp}, or {@code usdt}.
*/
@SerializedName("token_currency")
String tokenCurrency;
Expand Down Expand Up @@ -3206,6 +3203,13 @@ public static class KakaoPay extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Klarna extends StripeObject {
/**
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
* transaction's reader is assigned to.
*/
@SerializedName("location")
String location;

/** The payer details for this transaction. */
@SerializedName("payer_details")
PayerDetails payerDetails;
Expand All @@ -3231,6 +3235,13 @@ public static class Klarna extends StripeObject {
@SerializedName("preferred_locale")
String preferredLocale;

/**
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
* transaction was made on.
*/
@SerializedName("reader")
String reader;

/**
* For more details about PayerDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -3670,6 +3681,10 @@ public static class Pix extends StripeObject {
/** Unique transaction id generated by BCB. */
@SerializedName("bank_transaction_id")
String bankTransactionId;

/** ID of the multi use Mandate generated by the PaymentIntent. */
@SerializedName("mandate")
String mandate;
}

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

/**
* For more details about Sunbit, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Sunbit extends StripeObject {
/** The Sunbit transaction ID associated with this payment. */
@SerializedName("transaction_id")
String transactionId;
}

/**
* For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
17 changes: 15 additions & 2 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ public static class PaymentMethodPreview extends StripeObject {
@SerializedName("sofort")
Sofort sofort;

@SerializedName("sunbit")
Sunbit sunbit;

@SerializedName("swish")
Swish swish;

Expand All @@ -454,8 +457,9 @@ public static class PaymentMethodPreview extends StripeObject {
* link}, {@code mb_way}, {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code
* nz_bank_account}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code
* paynow}, {@code paypal}, {@code payto}, {@code pix}, {@code promptpay}, {@code revolut_pay},
* {@code samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code sofort}, {@code swish},
* {@code twint}, {@code upi}, {@code us_bank_account}, {@code wechat_pay}, or {@code zip}.
* {@code samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code sofort}, {@code sunbit},
* {@code swish}, {@code twint}, {@code upi}, {@code us_bank_account}, {@code wechat_pay}, or
* {@code zip}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -2274,6 +2278,15 @@ public static class Sofort extends StripeObject {
String country;
}

/**
* For more details about Sunbit, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Sunbit extends StripeObject {}

/**
* For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
Loading
Loading