Skip to content

Commit f101f1e

Browse files
Update generated code for v2183 and
1 parent a07786f commit f101f1e

File tree

67 files changed

+2307
-615
lines changed

Some content is hidden

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

67 files changed

+2307
-615
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fdbf5e05015131c7993d2b4017103f0d94561b6a
1+
c41a73eebe469b45125a46e569713351f88e1e44

OPENAPI_VERSION

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

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-01-28.clover";
5+
public static final String CURRENT = "2026-02-25.clover";
66
public static final String CURRENT_MAJOR = "clover";
77
}

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

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

2518+
/**
2519+
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
2520+
* transaction's reader is assigned to.
2521+
*/
2522+
@SerializedName("location")
2523+
String location;
2524+
25182525
/**
25192526
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
25202527
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
@@ -2557,6 +2564,13 @@ public static class CardPresent extends StripeObject {
25572564
@SerializedName("read_method")
25582565
String readMethod;
25592566

2567+
/**
2568+
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
2569+
* transaction was made on.
2570+
*/
2571+
@SerializedName("reader")
2572+
String reader;
2573+
25602574
/**
25612575
* A collection of fields required to be displayed on receipts. Only required for EMV
25622576
* transactions.
@@ -3037,6 +3051,13 @@ public static class InteracPresent extends StripeObject {
30373051
@SerializedName("last4")
30383052
String last4;
30393053

3054+
/**
3055+
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
3056+
* transaction's reader is assigned to.
3057+
*/
3058+
@SerializedName("location")
3059+
String location;
3060+
30403061
/**
30413062
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
30423063
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
@@ -3071,6 +3092,13 @@ public static class InteracPresent extends StripeObject {
30713092
@SerializedName("read_method")
30723093
String readMethod;
30733094

3095+
/**
3096+
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
3097+
* transaction was made on.
3098+
*/
3099+
@SerializedName("reader")
3100+
String reader;
3101+
30743102
/**
30753103
* A collection of fields required to be displayed on receipts. Only required for EMV
30763104
* transactions.

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

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

1014+
/**
1015+
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that
1016+
* this transaction's reader is assigned to.
1017+
*/
1018+
@SerializedName("location")
1019+
String location;
1020+
10141021
/**
10151022
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
10161023
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code
@@ -1055,6 +1062,13 @@ public static class CardPresent extends StripeObject {
10551062
@SerializedName("read_method")
10561063
String readMethod;
10571064

1065+
/**
1066+
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
1067+
* transaction was made on.
1068+
*/
1069+
@SerializedName("reader")
1070+
String reader;
1071+
10581072
/**
10591073
* A collection of fields required to be displayed on receipts. Only required for EMV
10601074
* transactions.

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

Lines changed: 40 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,22 @@ public class Event extends ApiResource implements HasId {
105105
* account.external_account.updated}, {@code account.updated}, {@code application_fee.created},
106106
* {@code application_fee.refund.updated}, {@code application_fee.refunded}, {@code
107107
* balance.available}, {@code balance_settings.updated}, {@code billing.alert.triggered}, {@code
108-
* billing_portal.configuration.created}, {@code billing_portal.configuration.updated}, {@code
109-
* billing_portal.session.created}, {@code capability.updated}, {@code
110-
* cash_balance.funds_available}, {@code charge.captured}, {@code charge.dispute.closed}, {@code
111-
* charge.dispute.created}, {@code charge.dispute.funds_reinstated}, {@code
112-
* charge.dispute.funds_withdrawn}, {@code charge.dispute.updated}, {@code charge.expired}, {@code
113-
* charge.failed}, {@code charge.pending}, {@code charge.refund.updated}, {@code charge.refunded},
114-
* {@code charge.succeeded}, {@code charge.updated}, {@code
115-
* checkout.session.async_payment_failed}, {@code checkout.session.async_payment_succeeded},
116-
* {@code checkout.session.completed}, {@code checkout.session.expired}, {@code
117-
* climate.order.canceled}, {@code climate.order.created}, {@code climate.order.delayed}, {@code
118-
* climate.order.delivered}, {@code climate.order.product_substituted}, {@code
119-
* climate.product.created}, {@code climate.product.pricing_updated}, {@code coupon.created},
120-
* {@code coupon.deleted}, {@code coupon.updated}, {@code credit_note.created}, {@code
121-
* credit_note.updated}, {@code credit_note.voided}, {@code customer.created}, {@code
122-
* customer.deleted}, {@code customer.discount.created}, {@code customer.discount.deleted}, {@code
108+
* billing.credit_grant.created}, {@code billing_portal.configuration.created}, {@code
109+
* billing_portal.configuration.updated}, {@code billing_portal.session.created}, {@code
110+
* capability.updated}, {@code cash_balance.funds_available}, {@code charge.captured}, {@code
111+
* charge.dispute.closed}, {@code charge.dispute.created}, {@code
112+
* charge.dispute.funds_reinstated}, {@code charge.dispute.funds_withdrawn}, {@code
113+
* charge.dispute.updated}, {@code charge.expired}, {@code charge.failed}, {@code charge.pending},
114+
* {@code charge.refund.updated}, {@code charge.refunded}, {@code charge.succeeded}, {@code
115+
* charge.updated}, {@code checkout.session.async_payment_failed}, {@code
116+
* checkout.session.async_payment_succeeded}, {@code checkout.session.completed}, {@code
117+
* checkout.session.expired}, {@code climate.order.canceled}, {@code climate.order.created},
118+
* {@code climate.order.delayed}, {@code climate.order.delivered}, {@code
119+
* climate.order.product_substituted}, {@code climate.product.created}, {@code
120+
* climate.product.pricing_updated}, {@code coupon.created}, {@code coupon.deleted}, {@code
121+
* coupon.updated}, {@code credit_note.created}, {@code credit_note.updated}, {@code
122+
* credit_note.voided}, {@code customer.created}, {@code customer.deleted}, {@code
123+
* customer.discount.created}, {@code customer.discount.deleted}, {@code
123124
* customer.discount.updated}, {@code customer.source.created}, {@code customer.source.deleted},
124125
* {@code customer.source.expiring}, {@code customer.source.updated}, {@code
125126
* customer.subscription.created}, {@code customer.subscription.deleted}, {@code
@@ -176,24 +177,27 @@ public class Event extends ApiResource implements HasId {
176177
* radar.early_fraud_warning.created}, {@code radar.early_fraud_warning.updated}, {@code
177178
* refund.created}, {@code refund.failed}, {@code refund.updated}, {@code
178179
* reporting.report_run.failed}, {@code reporting.report_run.succeeded}, {@code
179-
* reporting.report_type.updated}, {@code review.closed}, {@code review.opened}, {@code
180-
* setup_intent.canceled}, {@code setup_intent.created}, {@code setup_intent.requires_action},
181-
* {@code setup_intent.setup_failed}, {@code setup_intent.succeeded}, {@code
182-
* sigma.scheduled_query_run.created}, {@code source.canceled}, {@code source.chargeable}, {@code
183-
* source.failed}, {@code source.mandate_notification}, {@code source.refund_attributes_required},
184-
* {@code source.transaction.created}, {@code source.transaction.updated}, {@code
185-
* subscription_schedule.aborted}, {@code subscription_schedule.canceled}, {@code
186-
* subscription_schedule.completed}, {@code subscription_schedule.created}, {@code
187-
* subscription_schedule.expiring}, {@code subscription_schedule.released}, {@code
188-
* subscription_schedule.updated}, {@code tax.settings.updated}, {@code tax_rate.created}, {@code
189-
* tax_rate.updated}, {@code terminal.reader.action_failed}, {@code
190-
* terminal.reader.action_succeeded}, {@code terminal.reader.action_updated}, {@code
191-
* test_helpers.test_clock.advancing}, {@code test_helpers.test_clock.created}, {@code
192-
* test_helpers.test_clock.deleted}, {@code test_helpers.test_clock.internal_failure}, {@code
193-
* test_helpers.test_clock.ready}, {@code topup.canceled}, {@code topup.created}, {@code
194-
* topup.failed}, {@code topup.reversed}, {@code topup.succeeded}, {@code transfer.created},
195-
* {@code transfer.reversed}, {@code transfer.updated}, {@code treasury.credit_reversal.created},
196-
* {@code treasury.credit_reversal.posted}, {@code treasury.debit_reversal.completed}, {@code
180+
* reporting.report_type.updated}, {@code reserve.hold.created}, {@code reserve.hold.updated},
181+
* {@code reserve.plan.created}, {@code reserve.plan.disabled}, {@code reserve.plan.expired},
182+
* {@code reserve.plan.updated}, {@code reserve.release.created}, {@code review.closed}, {@code
183+
* review.opened}, {@code setup_intent.canceled}, {@code setup_intent.created}, {@code
184+
* setup_intent.requires_action}, {@code setup_intent.setup_failed}, {@code
185+
* setup_intent.succeeded}, {@code sigma.scheduled_query_run.created}, {@code source.canceled},
186+
* {@code source.chargeable}, {@code source.failed}, {@code source.mandate_notification}, {@code
187+
* source.refund_attributes_required}, {@code source.transaction.created}, {@code
188+
* source.transaction.updated}, {@code subscription_schedule.aborted}, {@code
189+
* subscription_schedule.canceled}, {@code subscription_schedule.completed}, {@code
190+
* subscription_schedule.created}, {@code subscription_schedule.expiring}, {@code
191+
* subscription_schedule.released}, {@code subscription_schedule.updated}, {@code
192+
* tax.settings.updated}, {@code tax_rate.created}, {@code tax_rate.updated}, {@code
193+
* terminal.reader.action_failed}, {@code terminal.reader.action_succeeded}, {@code
194+
* terminal.reader.action_updated}, {@code test_helpers.test_clock.advancing}, {@code
195+
* test_helpers.test_clock.created}, {@code test_helpers.test_clock.deleted}, {@code
196+
* test_helpers.test_clock.internal_failure}, {@code test_helpers.test_clock.ready}, {@code
197+
* topup.canceled}, {@code topup.created}, {@code topup.failed}, {@code topup.reversed}, {@code
198+
* topup.succeeded}, {@code transfer.created}, {@code transfer.reversed}, {@code
199+
* transfer.updated}, {@code treasury.credit_reversal.created}, {@code
200+
* treasury.credit_reversal.posted}, {@code treasury.debit_reversal.completed}, {@code
197201
* treasury.debit_reversal.created}, {@code treasury.debit_reversal.initial_credit_granted},
198202
* {@code treasury.financial_account.closed}, {@code treasury.financial_account.created}, {@code
199203
* treasury.financial_account.features_status_updated}, {@code
@@ -211,9 +215,9 @@ public class Event extends ApiResource implements HasId {
211215
* treasury.outbound_transfer.tracking_details_updated}, {@code treasury.received_credit.created},
212216
* {@code treasury.received_credit.failed}, {@code treasury.received_credit.succeeded}, {@code
213217
* treasury.received_debit.created}, {@code billing.credit_balance_transaction.created}, {@code
214-
* billing.credit_grant.created}, {@code billing.credit_grant.updated}, {@code
215-
* billing.meter.created}, {@code billing.meter.deactivated}, {@code billing.meter.reactivated},
216-
* or {@code billing.meter.updated}.
218+
* billing.credit_grant.updated}, {@code billing.meter.created}, {@code
219+
* billing.meter.deactivated}, {@code billing.meter.reactivated}, or {@code
220+
* billing.meter.updated}.
217221
*/
218222
@SerializedName("type")
219223
String type;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ public final class EventDataClassLookup {
173173
classLookup.put("reporting.report_run", com.stripe.model.reporting.ReportRun.class);
174174
classLookup.put("reporting.report_type", com.stripe.model.reporting.ReportType.class);
175175

176+
classLookup.put("reserve.hold", com.stripe.model.reserve.Hold.class);
177+
classLookup.put("reserve.plan", com.stripe.model.reserve.Plan.class);
178+
classLookup.put("reserve.release", com.stripe.model.reserve.Release.class);
179+
176180
classLookup.put("scheduled_query_run", com.stripe.model.sigma.ScheduledQueryRun.class);
177181

178182
classLookup.put("tax.association", com.stripe.model.tax.Association.class);

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;

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

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
459459
@SerializedName("payment_settings")
460460
PaymentSettings paymentSettings;
461461

462-
/** Payments for this invoice. */
462+
/**
463+
* Payments for this invoice. Use <a href="https://stripe.com/api/invoice-payment">invoice
464+
* payment</a> to get more details.
465+
*/
463466
@SerializedName("payments")
464467
InvoicePaymentCollection payments;
465468

@@ -2107,19 +2110,19 @@ public static class CustomerTaxId extends StripeObject {
21072110
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
21082111
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code pl_nip},
21092112
* {@code tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid},
2110-
* {@code li_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code
2111-
* ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code
2112-
* sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp},
2113-
* {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code
2114-
* hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin},
2115-
* {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code
2116-
* de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat},
2117-
* {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code
2118-
* cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif},
2119-
* {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code
2120-
* tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin}, {@code az_tin},
2121-
* {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code la_tin}, {@code
2122-
* cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
2113+
* {@code li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code
2114+
* ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code
2115+
* my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp},
2116+
* {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code
2117+
* bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin},
2118+
* {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code
2119+
* om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin},
2120+
* {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code
2121+
* bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin},
2122+
* {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code
2123+
* np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin},
2124+
* {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code
2125+
* la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
21232126
*/
21242127
@SerializedName("type")
21252128
String type;
@@ -2532,7 +2535,7 @@ public static class BankTransfer extends StripeObject {
25322535
public static class EuBankTransfer extends StripeObject {
25332536
/**
25342537
* The desired country code of the bank account information. Permitted values include:
2535-
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
2538+
* {@code DE}, {@code FR}, {@code IE}, or {@code NL}.
25362539
*
25372540
* <p>One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
25382541
*/

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ public static class AuBecsDebit extends StripeObject {
334334
@Setter
335335
@EqualsAndHashCode(callSuper = false)
336336
public static class BacsDebit extends StripeObject {
337+
/** The display name for the account on this mandate. */
338+
@SerializedName("display_name")
339+
String displayName;
340+
337341
/**
338342
* The status of the mandate on the Bacs network. Can be one of {@code pending}, {@code
339343
* revoked}, {@code refused}, or {@code accepted}.
@@ -355,6 +359,10 @@ public static class BacsDebit extends StripeObject {
355359
@SerializedName("revocation_reason")
356360
String revocationReason;
357361

362+
/** The service user number for the account on this mandate. */
363+
@SerializedName("service_user_number")
364+
String serviceUserNumber;
365+
358366
/** The URL that will contain the mandate that the customer has signed. */
359367
@SerializedName("url")
360368
String url;

0 commit comments

Comments
 (0)