Skip to content

Commit 999ca84

Browse files
Merge pull request #2150 from stripe/latest-codegen-beta
Update generated code for beta
2 parents 68ff7f8 + c5e588a commit 999ca84

96 files changed

Lines changed: 3466 additions & 904 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.

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@ This release changes the pinned API version to `2026-01-28.preview`.
2626
* Add support for snapshot event `invoice_payment.detached` with resource `InvoicePayment`
2727
* [#2129](https://github.com/stripe/stripe-java/pull/2129) Add EventNotificationHandler example
2828

29+
## 31.3.0 - 2026-01-28
30+
This release changes the pinned API version to `2026-01-28.clover`.
31+
32+
* [#2147](https://github.com/stripe/stripe-java/pull/2147) Update generated code
33+
* Add support for new resource `radar.PaymentEvaluation`
34+
* Add support for `create` method on resource `radar.PaymentEvaluation`
35+
* Add support for `adjustableQuantity` on `LineItem`
36+
* 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`
37+
* 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`
38+
* Add support for `enforceArithmeticValidation` on `PaymentIntentCaptureParams.amount_details`, `PaymentIntentConfirmParams.amount_details`, `PaymentIntentCreateParams.amount_details`, `PaymentIntentIncrementAuthorizationParams.amount_details`, and `PaymentIntentUpdateParams.amount_details`
39+
* 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`
40+
* Add support for `error` on `PaymentIntent.amount_details`
41+
* Remove support for `bgn` on `terminal.Configuration.tipping`, `terminal.ConfigurationCreateParams.tipping`, and `terminal.ConfigurationUpdateParams.tipping`
42+
* Add support for `topup` on `treasury.ReceivedDebit.linked_flows`
43+
* Add support for `contactPhone` on `v2.core.AccountCreateParams`, `v2.core.AccountTokenCreateParams`, `v2.core.AccountUpdateParams`, and `v2.core.Account`
44+
* 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`
45+
* 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`
46+
2947
## 31.2.0 - 2026-01-16
3048
* [#2144](https://github.com/stripe/stripe-java/pull/2144) Update generated code
3149
* 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`

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
529796460735eb8ef64a29787291f1b4d4b29f1c
1+
e65e48569f6dfad2d5f1b58018017856520c3ae6

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2160
1+
v2186

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

Lines changed: 1 addition & 1 deletion
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 = "2026-01-28.preview";
5+
public static final String CURRENT = "2026-02-25.preview";
66
}

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,6 +2599,9 @@ public static class Settings extends StripeObject {
25992599
@SerializedName("sepa_debit_payments")
26002600
SepaDebitPayments sepaDebitPayments;
26012601

2602+
@SerializedName("smart_disputes")
2603+
SmartDisputes smartDisputes;
2604+
26022605
@SerializedName("tax_forms")
26032606
TaxForms taxForms;
26042607

@@ -2930,6 +2933,13 @@ public void setDefaultAccountTaxIdObjects(List<TaxId> objs) {
29302933
@Setter
29312934
@EqualsAndHashCode(callSuper = false)
29322935
public static class Payments extends StripeObject {
2936+
/**
2937+
* When enabled, the customer of this Account will receive an email receipt when their payment
2938+
* is successful. If this parameter is not set, the default value is {@code false}.
2939+
*/
2940+
@SerializedName("email_customers_on_successful_payment")
2941+
Boolean emailCustomersOnSuccessfulPayment;
2942+
29332943
/**
29342944
* The default text that appears on credit card statements when a charge is made. This field
29352945
* prefixes any dynamic {@code statement_descriptor} specified on the charge.
@@ -3155,6 +3165,35 @@ public static class SepaDebitPayments extends StripeObject {
31553165
String creditorId;
31563166
}
31573167

3168+
/**
3169+
* For more details about SmartDisputes, please refer to the <a
3170+
* href="https://docs.stripe.com/api">API Reference.</a>
3171+
*/
3172+
@Getter
3173+
@Setter
3174+
@EqualsAndHashCode(callSuper = false)
3175+
public static class SmartDisputes extends StripeObject {
3176+
@SerializedName("auto_respond")
3177+
AutoRespond autoRespond;
3178+
3179+
/**
3180+
* For more details about AutoRespond, please refer to the <a
3181+
* href="https://docs.stripe.com/api">API Reference.</a>
3182+
*/
3183+
@Getter
3184+
@Setter
3185+
@EqualsAndHashCode(callSuper = false)
3186+
public static class AutoRespond extends StripeObject {
3187+
/** The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'. */
3188+
@SerializedName("preference")
3189+
String preference;
3190+
3191+
/** The effective value for auto-respond. Can be 'on' or 'off'. */
3192+
@SerializedName("value")
3193+
String value;
3194+
}
3195+
}
3196+
31583197
/**
31593198
* For more details about TaxForms, please refer to the <a
31603199
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2590,6 +2590,13 @@ public static class CardPresent extends StripeObject {
25902590
@SerializedName("last4")
25912591
String last4;
25922592

2593+
/**
2594+
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
2595+
* transaction's reader is assigned to.
2596+
*/
2597+
@SerializedName("location")
2598+
String location;
2599+
25932600
/**
25942601
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
25952602
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
@@ -2632,6 +2639,13 @@ public static class CardPresent extends StripeObject {
26322639
@SerializedName("read_method")
26332640
String readMethod;
26342641

2642+
/**
2643+
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
2644+
* transaction was made on.
2645+
*/
2646+
@SerializedName("reader")
2647+
String reader;
2648+
26352649
/**
26362650
* A collection of fields required to be displayed on receipts. Only required for EMV
26372651
* transactions.
@@ -3157,6 +3171,13 @@ public static class InteracPresent extends StripeObject {
31573171
@SerializedName("last4")
31583172
String last4;
31593173

3174+
/**
3175+
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
3176+
* transaction's reader is assigned to.
3177+
*/
3178+
@SerializedName("location")
3179+
String location;
3180+
31603181
/**
31613182
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
31623183
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
@@ -3191,6 +3212,13 @@ public static class InteracPresent extends StripeObject {
31913212
@SerializedName("read_method")
31923213
String readMethod;
31933214

3215+
/**
3216+
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
3217+
* transaction was made on.
3218+
*/
3219+
@SerializedName("reader")
3220+
String reader;
3221+
31943222
/**
31953223
* A collection of fields required to be displayed on receipts. Only required for EMV
31963224
* transactions.

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,13 @@ public static class CardPresent extends StripeObject {
10381038
@SerializedName("last4")
10391039
String last4;
10401040

1041+
/**
1042+
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that
1043+
* this transaction's reader is assigned to.
1044+
*/
1045+
@SerializedName("location")
1046+
String location;
1047+
10411048
/**
10421049
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
10431050
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
@@ -1082,6 +1089,13 @@ public static class CardPresent extends StripeObject {
10821089
@SerializedName("read_method")
10831090
String readMethod;
10841091

1092+
/**
1093+
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
1094+
* transaction was made on.
1095+
*/
1096+
@SerializedName("reader")
1097+
String reader;
1098+
10851099
/**
10861100
* A collection of fields required to be displayed on receipts. Only required for EMV
10871101
* transactions.

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

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ public class Event extends ApiResource implements HasId {
114114
* {@code account_notice.updated}, {@code application_fee.created}, {@code
115115
* application_fee.refund.updated}, {@code application_fee.refunded}, {@code balance.available},
116116
* {@code balance_settings.updated}, {@code billing.alert.triggered}, {@code
117-
* billing_portal.configuration.created}, {@code billing_portal.configuration.updated}, {@code
118-
* billing_portal.session.created}, {@code capability.updated}, {@code
119-
* capital.financing_offer.accepted}, {@code capital.financing_offer.accepted_other_offer}, {@code
120-
* capital.financing_offer.canceled}, {@code capital.financing_offer.created}, {@code
121-
* capital.financing_offer.expired}, {@code capital.financing_offer.fully_repaid}, {@code
122-
* capital.financing_offer.paid_out}, {@code capital.financing_offer.rejected}, {@code
123-
* capital.financing_offer.replacement_created}, {@code
117+
* billing.credit_grant.created}, {@code billing_portal.configuration.created}, {@code
118+
* billing_portal.configuration.updated}, {@code billing_portal.session.created}, {@code
119+
* capability.updated}, {@code capital.financing_offer.accepted}, {@code
120+
* capital.financing_offer.accepted_other_offer}, {@code capital.financing_offer.canceled}, {@code
121+
* capital.financing_offer.created}, {@code capital.financing_offer.expired}, {@code
122+
* capital.financing_offer.fully_repaid}, {@code capital.financing_offer.paid_out}, {@code
123+
* capital.financing_offer.rejected}, {@code capital.financing_offer.replacement_created}, {@code
124124
* capital.financing_summary.line_of_credit_update}, {@code
125125
* capital.financing_transaction.created}, {@code cash_balance.funds_available}, {@code
126126
* charge.captured}, {@code charge.dispute.closed}, {@code charge.dispute.created}, {@code
@@ -204,18 +204,20 @@ public class Event extends ApiResource implements HasId {
204204
* radar.early_fraud_warning.created}, {@code radar.early_fraud_warning.updated}, {@code
205205
* refund.created}, {@code refund.failed}, {@code refund.updated}, {@code
206206
* reporting.report_run.failed}, {@code reporting.report_run.succeeded}, {@code
207-
* reporting.report_type.updated}, {@code review.closed}, {@code review.opened}, {@code
208-
* setup_intent.canceled}, {@code setup_intent.created}, {@code setup_intent.requires_action},
209-
* {@code setup_intent.setup_failed}, {@code setup_intent.succeeded}, {@code
210-
* sigma.scheduled_query_run.created}, {@code source.canceled}, {@code source.chargeable}, {@code
211-
* source.failed}, {@code source.mandate_notification}, {@code source.refund_attributes_required},
212-
* {@code source.transaction.created}, {@code source.transaction.updated}, {@code
213-
* subscription_schedule.aborted}, {@code subscription_schedule.canceled}, {@code
214-
* subscription_schedule.completed}, {@code subscription_schedule.created}, {@code
215-
* subscription_schedule.expiring}, {@code subscription_schedule.price_migration_failed}, {@code
216-
* subscription_schedule.released}, {@code subscription_schedule.updated}, {@code
217-
* tax.form.updated}, {@code tax.settings.updated}, {@code tax_rate.created}, {@code
218-
* tax_rate.updated}, {@code terminal.reader.action_failed}, {@code
207+
* reporting.report_type.updated}, {@code reserve.hold.created}, {@code reserve.hold.updated},
208+
* {@code reserve.plan.created}, {@code reserve.plan.disabled}, {@code reserve.plan.expired},
209+
* {@code reserve.plan.updated}, {@code reserve.release.created}, {@code review.closed}, {@code
210+
* review.opened}, {@code setup_intent.canceled}, {@code setup_intent.created}, {@code
211+
* setup_intent.requires_action}, {@code setup_intent.setup_failed}, {@code
212+
* setup_intent.succeeded}, {@code sigma.scheduled_query_run.created}, {@code source.canceled},
213+
* {@code source.chargeable}, {@code source.failed}, {@code source.mandate_notification}, {@code
214+
* source.refund_attributes_required}, {@code source.transaction.created}, {@code
215+
* source.transaction.updated}, {@code subscription_schedule.aborted}, {@code
216+
* subscription_schedule.canceled}, {@code subscription_schedule.completed}, {@code
217+
* subscription_schedule.created}, {@code subscription_schedule.expiring}, {@code
218+
* subscription_schedule.price_migration_failed}, {@code subscription_schedule.released}, {@code
219+
* subscription_schedule.updated}, {@code tax.form.updated}, {@code tax.settings.updated}, {@code
220+
* tax_rate.created}, {@code tax_rate.updated}, {@code terminal.reader.action_failed}, {@code
219221
* terminal.reader.action_succeeded}, {@code terminal.reader.action_updated}, {@code
220222
* test_helpers.test_clock.advancing}, {@code test_helpers.test_clock.created}, {@code
221223
* test_helpers.test_clock.deleted}, {@code test_helpers.test_clock.internal_failure}, {@code
@@ -240,10 +242,9 @@ public class Event extends ApiResource implements HasId {
240242
* treasury.outbound_transfer.tracking_details_updated}, {@code treasury.received_credit.created},
241243
* {@code treasury.received_credit.failed}, {@code treasury.received_credit.succeeded}, {@code
242244
* treasury.received_debit.created}, {@code invoice_payment.detached}, {@code
243-
* billing.credit_balance_transaction.created}, {@code billing.credit_grant.created}, {@code
244-
* billing.credit_grant.updated}, {@code billing.meter.created}, {@code
245-
* billing.meter.deactivated}, {@code billing.meter.reactivated}, or {@code
246-
* billing.meter.updated}.
245+
* billing.credit_balance_transaction.created}, {@code billing.credit_grant.updated}, {@code
246+
* billing.meter.created}, {@code billing.meter.deactivated}, {@code billing.meter.reactivated},
247+
* or {@code billing.meter.updated}.
247248
*/
248249
@SerializedName("type")
249250
String type;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ public class File extends ApiResource implements HasId {
7070
* financial_account_statement}, {@code identity_document}, {@code
7171
* identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document},
7272
* {@code platform_terms_of_service}, {@code selfie}, {@code sigma_scheduled_query}, {@code
73-
* tax_document_user_upload}, {@code terminal_android_apk}, or {@code
74-
* terminal_reader_splashscreen}.
73+
* tax_document_user_upload}, {@code terminal_android_apk}, {@code terminal_reader_splashscreen},
74+
* {@code terminal_wifi_certificate}, or {@code terminal_wifi_private_key}.
7575
*/
7676
@SerializedName("purpose")
7777
String purpose;

0 commit comments

Comments
 (0)