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
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ This release changes the pinned API version to `2026-01-28.preview`.
* Add support for snapshot event `invoice_payment.detached` with resource `InvoicePayment`
* [#2129](https://github.com/stripe/stripe-java/pull/2129) Add EventNotificationHandler example

## 31.3.0 - 2026-01-28
This release changes the pinned API version to `2026-01-28.clover`.

* [#2147](https://github.com/stripe/stripe-java/pull/2147) Update generated code
* Add support for new resource `radar.PaymentEvaluation`
* Add support for `create` method on resource `radar.PaymentEvaluation`
* Add support for `adjustableQuantity` on `LineItem`
* Add support for new value `adyen` on enums `ConfirmationTokenCreateParams.payment_method_data.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank`
* Add support for new value `pl_nip` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type`
* Add support for `enforceArithmeticValidation` on `PaymentIntentCaptureParams.amount_details`, `PaymentIntentConfirmParams.amount_details`, `PaymentIntentCreateParams.amount_details`, `PaymentIntentIncrementAuthorizationParams.amount_details`, and `PaymentIntentUpdateParams.amount_details`
* Add support for new values `2.3.0` and `2.3.1` on enums `PaymentIntentConfirmParams.payment_method_options.card.three_d_secure.version`, `PaymentIntentCreateParams.payment_method_options.card.three_d_secure.version`, `PaymentIntentUpdateParams.payment_method_options.card.three_d_secure.version`, `SetupIntentConfirmParams.payment_method_options.card.three_d_secure.version`, `SetupIntentCreateParams.payment_method_options.card.three_d_secure.version`, and `SetupIntentUpdateParams.payment_method_options.card.three_d_secure.version`
* Add support for `error` on `PaymentIntent.amount_details`
* Remove support for `bgn` on `terminal.Configuration.tipping`, `terminal.ConfigurationCreateParams.tipping`, and `terminal.ConfigurationUpdateParams.tipping`
* Add support for `topup` on `treasury.ReceivedDebit.linked_flows`
* Add support for `contactPhone` on `v2.core.AccountCreateParams`, `v2.core.AccountTokenCreateParams`, `v2.core.AccountUpdateParams`, and `v2.core.Account`
* Add support for `registrationDate` on `v2.core.Account.identity.business_details`, `v2.core.AccountCreateParams.identity.business_details`, `v2.core.AccountTokenCreateParams.identity.business_details`, and `v2.core.AccountUpdateParams.identity.business_details`
* Add support for new value `gb_vat` on enums `v2.core.AccountCreateParams.identity.business_details.id_numbers[].type`, `v2.core.AccountTokenCreateParams.identity.business_details.id_numbers[].type`, and `v2.core.AccountUpdateParams.identity.business_details.id_numbers[].type`

## 31.2.0 - 2026-01-16
* [#2144](https://github.com/stripe/stripe-java/pull/2144) Update generated code
* Add support for event notifications `V2CoreAccountClosedEvent`, `V2CoreAccountCreatedEvent`, `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingDefaultsUpdatedEvent`, `V2CoreAccountIncludingFutureRequirementsUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, `V2CoreAccountIncludingRequirementsUpdatedEvent`, and `V2CoreAccountUpdatedEvent` with related object `v2.core.Account`
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
529796460735eb8ef64a29787291f1b4d4b29f1c
e65e48569f6dfad2d5f1b58018017856520c3ae6
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2160
v2186
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,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2026-01-28.preview";
public static final String CURRENT = "2026-02-25.preview";
}
39 changes: 39 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -2599,6 +2599,9 @@ public static class Settings extends StripeObject {
@SerializedName("sepa_debit_payments")
SepaDebitPayments sepaDebitPayments;

@SerializedName("smart_disputes")
SmartDisputes smartDisputes;

@SerializedName("tax_forms")
TaxForms taxForms;

Expand Down Expand Up @@ -2930,6 +2933,13 @@ public void setDefaultAccountTaxIdObjects(List<TaxId> objs) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Payments extends StripeObject {
/**
* When enabled, the customer of this Account will receive an email receipt when their payment
* is successful. If this parameter is not set, the default value is {@code false}.
*/
@SerializedName("email_customers_on_successful_payment")
Boolean emailCustomersOnSuccessfulPayment;

/**
* The default text that appears on credit card statements when a charge is made. This field
* prefixes any dynamic {@code statement_descriptor} specified on the charge.
Expand Down Expand Up @@ -3155,6 +3165,35 @@ public static class SepaDebitPayments extends StripeObject {
String creditorId;
}

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

/**
* For more details about AutoRespond, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutoRespond extends StripeObject {
/** The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'. */
@SerializedName("preference")
String preference;

/** The effective value for auto-respond. Can be 'on' or 'off'. */
@SerializedName("value")
String value;
}
}

/**
* For more details about TaxForms, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -2590,6 +2590,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("last4")
String last4;

/**
* 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;

/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
Expand Down Expand Up @@ -2632,6 +2639,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("read_method")
String readMethod;

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

/**
* A collection of fields required to be displayed on receipts. Only required for EMV
* transactions.
Expand Down Expand Up @@ -3157,6 +3171,13 @@ public static class InteracPresent extends StripeObject {
@SerializedName("last4")
String last4;

/**
* 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;

/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
Expand Down Expand Up @@ -3191,6 +3212,13 @@ public static class InteracPresent extends StripeObject {
@SerializedName("read_method")
String readMethod;

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

/**
* A collection of fields required to be displayed on receipts. Only required for EMV
* transactions.
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("last4")
String last4;

/**
* 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;

/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
Expand Down Expand Up @@ -1082,6 +1089,13 @@ public static class CardPresent extends StripeObject {
@SerializedName("read_method")
String readMethod;

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

/**
* A collection of fields required to be displayed on receipts. Only required for EMV
* transactions.
Expand Down
47 changes: 24 additions & 23 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ public class Event extends ApiResource implements HasId {
* {@code account_notice.updated}, {@code application_fee.created}, {@code
* application_fee.refund.updated}, {@code application_fee.refunded}, {@code balance.available},
* {@code balance_settings.updated}, {@code billing.alert.triggered}, {@code
* billing_portal.configuration.created}, {@code billing_portal.configuration.updated}, {@code
* billing_portal.session.created}, {@code capability.updated}, {@code
* capital.financing_offer.accepted}, {@code capital.financing_offer.accepted_other_offer}, {@code
* capital.financing_offer.canceled}, {@code capital.financing_offer.created}, {@code
* capital.financing_offer.expired}, {@code capital.financing_offer.fully_repaid}, {@code
* capital.financing_offer.paid_out}, {@code capital.financing_offer.rejected}, {@code
* capital.financing_offer.replacement_created}, {@code
* billing.credit_grant.created}, {@code billing_portal.configuration.created}, {@code
* billing_portal.configuration.updated}, {@code billing_portal.session.created}, {@code
* capability.updated}, {@code capital.financing_offer.accepted}, {@code
* capital.financing_offer.accepted_other_offer}, {@code capital.financing_offer.canceled}, {@code
* capital.financing_offer.created}, {@code capital.financing_offer.expired}, {@code
* capital.financing_offer.fully_repaid}, {@code capital.financing_offer.paid_out}, {@code
* capital.financing_offer.rejected}, {@code capital.financing_offer.replacement_created}, {@code
* capital.financing_summary.line_of_credit_update}, {@code
* capital.financing_transaction.created}, {@code cash_balance.funds_available}, {@code
* charge.captured}, {@code charge.dispute.closed}, {@code charge.dispute.created}, {@code
Expand Down Expand Up @@ -204,18 +204,20 @@ public class Event extends ApiResource implements HasId {
* radar.early_fraud_warning.created}, {@code radar.early_fraud_warning.updated}, {@code
* refund.created}, {@code refund.failed}, {@code refund.updated}, {@code
* reporting.report_run.failed}, {@code reporting.report_run.succeeded}, {@code
* reporting.report_type.updated}, {@code review.closed}, {@code review.opened}, {@code
* setup_intent.canceled}, {@code setup_intent.created}, {@code setup_intent.requires_action},
* {@code setup_intent.setup_failed}, {@code setup_intent.succeeded}, {@code
* sigma.scheduled_query_run.created}, {@code source.canceled}, {@code source.chargeable}, {@code
* source.failed}, {@code source.mandate_notification}, {@code source.refund_attributes_required},
* {@code source.transaction.created}, {@code source.transaction.updated}, {@code
* subscription_schedule.aborted}, {@code subscription_schedule.canceled}, {@code
* subscription_schedule.completed}, {@code subscription_schedule.created}, {@code
* subscription_schedule.expiring}, {@code subscription_schedule.price_migration_failed}, {@code
* subscription_schedule.released}, {@code subscription_schedule.updated}, {@code
* tax.form.updated}, {@code tax.settings.updated}, {@code tax_rate.created}, {@code
* tax_rate.updated}, {@code terminal.reader.action_failed}, {@code
* reporting.report_type.updated}, {@code reserve.hold.created}, {@code reserve.hold.updated},
* {@code reserve.plan.created}, {@code reserve.plan.disabled}, {@code reserve.plan.expired},
* {@code reserve.plan.updated}, {@code reserve.release.created}, {@code review.closed}, {@code
* review.opened}, {@code setup_intent.canceled}, {@code setup_intent.created}, {@code
* setup_intent.requires_action}, {@code setup_intent.setup_failed}, {@code
* setup_intent.succeeded}, {@code sigma.scheduled_query_run.created}, {@code source.canceled},
* {@code source.chargeable}, {@code source.failed}, {@code source.mandate_notification}, {@code
* source.refund_attributes_required}, {@code source.transaction.created}, {@code
* source.transaction.updated}, {@code subscription_schedule.aborted}, {@code
* subscription_schedule.canceled}, {@code subscription_schedule.completed}, {@code
* subscription_schedule.created}, {@code subscription_schedule.expiring}, {@code
* subscription_schedule.price_migration_failed}, {@code subscription_schedule.released}, {@code
* subscription_schedule.updated}, {@code tax.form.updated}, {@code tax.settings.updated}, {@code
* tax_rate.created}, {@code tax_rate.updated}, {@code terminal.reader.action_failed}, {@code
* terminal.reader.action_succeeded}, {@code terminal.reader.action_updated}, {@code
* test_helpers.test_clock.advancing}, {@code test_helpers.test_clock.created}, {@code
* test_helpers.test_clock.deleted}, {@code test_helpers.test_clock.internal_failure}, {@code
Expand All @@ -240,10 +242,9 @@ public class Event extends ApiResource implements HasId {
* treasury.outbound_transfer.tracking_details_updated}, {@code treasury.received_credit.created},
* {@code treasury.received_credit.failed}, {@code treasury.received_credit.succeeded}, {@code
* treasury.received_debit.created}, {@code invoice_payment.detached}, {@code
* billing.credit_balance_transaction.created}, {@code billing.credit_grant.created}, {@code
* billing.credit_grant.updated}, {@code billing.meter.created}, {@code
* billing.meter.deactivated}, {@code billing.meter.reactivated}, or {@code
* billing.meter.updated}.
* billing.credit_balance_transaction.created}, {@code billing.credit_grant.updated}, {@code
* billing.meter.created}, {@code billing.meter.deactivated}, {@code billing.meter.reactivated},
* or {@code billing.meter.updated}.
*/
@SerializedName("type")
String type;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/File.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public class File extends ApiResource implements HasId {
* financial_account_statement}, {@code identity_document}, {@code
* identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document},
* {@code platform_terms_of_service}, {@code selfie}, {@code sigma_scheduled_query}, {@code
* tax_document_user_upload}, {@code terminal_android_apk}, or {@code
* terminal_reader_splashscreen}.
* tax_document_user_upload}, {@code terminal_android_apk}, {@code terminal_reader_splashscreen},
* {@code terminal_wifi_certificate}, or {@code terminal_wifi_private_key}.
*/
@SerializedName("purpose")
String purpose;
Expand Down
Loading
Loading