From d1a9ec50f64fd21e852bae6edefbf45a181525b7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 03:44:19 +0000 Subject: [PATCH] Update generated code for v2459 and e2d3e8255ba431b6d05e4a423941a157e947e763 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../model/capital/FinancingSummary.java | 6 +---- .../com/stripe/model/checkout/Session.java | 4 ++++ .../stripe/model/issuing/Authorization.java | 8 +++++++ .../com/stripe/model/tax/Calculation.java | 7 ++++++ .../stripe/model/tax/CalculationLineItem.java | 7 ++++++ .../com/stripe/model/tax/Transaction.java | 7 ++++++ .../com/stripe/model/v2/core/Account.java | 24 +++++++++---------- .../stripe/param/CustomerCreateParams.java | 4 ++-- .../stripe/param/CustomerUpdateParams.java | 6 ++--- .../param/checkout/SessionCreateParams.java | 17 ++++++++++++- .../productcatalog/TrialOfferListParams.java | 21 ++++++++++++++++ 13 files changed, 90 insertions(+), 25 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 432193e4baf..635c5cd381b 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -01d1ea0975f54150dffdde2a2c3d21e609c3b89f \ No newline at end of file +e2d3e8255ba431b6d05e4a423941a157e947e763 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 02d7b361625..ef8e197a3ce 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2458 \ No newline at end of file +v2459 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/capital/FinancingSummary.java b/src/main/java/com/stripe/model/capital/FinancingSummary.java index 6b6d4d8b2ff..9c509069293 100644 --- a/src/main/java/com/stripe/model/capital/FinancingSummary.java +++ b/src/main/java/com/stripe/model/capital/FinancingSummary.java @@ -17,11 +17,7 @@ import lombok.Getter; import lombok.Setter; -/** - * A financing summary object describes a connected account's financing status in real time. A - * financing status is either {@code accepted}, {@code delivered}, or {@code none}. You can read the - * status of your connected accounts. - */ +/** A financing summary object describes a connected account's financing details in real time. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index ba5d207d724..df43615a321 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -2581,6 +2581,10 @@ public static class Item extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Subscription extends StripeObject { + /** The Unix timestamp marking the subscription's backdated start date. */ + @SerializedName("backdate_start_date") + Long backdateStartDate; + /** The description for the subscription. */ @SerializedName("description") String description; diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index e62294728e8..a707708da22 100644 --- a/src/main/java/com/stripe/model/issuing/Authorization.java +++ b/src/main/java/com/stripe/model/issuing/Authorization.java @@ -1949,6 +1949,14 @@ public static class RequestHistory extends StripeObject { @SerializedName("network_data") NetworkData networkData; + /** + * The network-specific response code associated with Stripe's decision for this authorization + * request. The value is a Visa or Mastercard response code depending on the network over which + * the authorization was routed. + */ + @SerializedName("network_response_code") + String networkResponseCode; + /** * The card network's estimate of the likelihood that an authorization is fraudulent. Takes on * values between 1 and 99. diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java index fe24c5dc3b3..17904d3e95b 100644 --- a/src/main/java/com/stripe/model/tax/Calculation.java +++ b/src/main/java/com/stripe/model/tax/Calculation.java @@ -473,6 +473,13 @@ public static class TaxBreakdown extends StripeObject { @SerializedName("amount") Long amount; + /** + * The ID of the customer tax exemption + * that was applied to this tax breakdown. + */ + @SerializedName("customer_tax_exemption") + String customerTaxExemption; + @SerializedName("jurisdiction") Jurisdiction jurisdiction; diff --git a/src/main/java/com/stripe/model/tax/CalculationLineItem.java b/src/main/java/com/stripe/model/tax/CalculationLineItem.java index 4a63f4e884e..bdc755a31a6 100644 --- a/src/main/java/com/stripe/model/tax/CalculationLineItem.java +++ b/src/main/java/com/stripe/model/tax/CalculationLineItem.java @@ -176,6 +176,13 @@ public static class TaxBreakdown extends StripeObject { @SerializedName("amount") Long amount; + /** + * The ID of the customer tax exemption that + * was applied to this tax breakdown. + */ + @SerializedName("customer_tax_exemption") + String customerTaxExemption; + @SerializedName("jurisdiction") Jurisdiction jurisdiction; diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java index 3de994d91de..d20295f38d6 100644 --- a/src/main/java/com/stripe/model/tax/Transaction.java +++ b/src/main/java/com/stripe/model/tax/Transaction.java @@ -534,6 +534,13 @@ public static class TaxBreakdown extends StripeObject { @SerializedName("amount") Long amount; + /** + * The ID of the customer tax exemption + * that was applied to this tax breakdown. + */ + @SerializedName("customer_tax_exemption") + String customerTaxExemption; + @SerializedName("jurisdiction") Jurisdiction jurisdiction; diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java index 5fd5d35fa5e..7bc9731a23b 100644 --- a/src/main/java/com/stripe/model/v2/core/Account.java +++ b/src/main/java/com/stripe/model/v2/core/Account.java @@ -12642,12 +12642,12 @@ public static class RestrictsCapability extends StripeObject { * {@code bank_accounts.npp}, {@code bank_accounts.rtp}, {@code * bank_accounts.sepa_credit}, {@code bank_accounts.sepa_instant}, {@code * bank_accounts.swift}, {@code bank_accounts.wire}, {@code blik_payments}, {@code - * boleto_payments}, {@code business_storage.inbound.eur}, {@code - * business_storage.inbound.gbp}, {@code business_storage.inbound.usd}, {@code - * business_storage.outbound.eur}, {@code business_storage.outbound.gbp}, {@code - * business_storage.outbound.usd}, {@code cards}, {@code card_payments}, {@code - * cartes_bancaires_payments}, {@code cashapp_payments}, {@code - * commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code + * blik_recurring_payments}, {@code boleto_payments}, {@code + * business_storage.inbound.eur}, {@code business_storage.inbound.gbp}, {@code + * business_storage.inbound.usd}, {@code business_storage.outbound.eur}, {@code + * business_storage.outbound.gbp}, {@code business_storage.outbound.usd}, {@code cards}, + * {@code card_payments}, {@code cartes_bancaires_payments}, {@code cashapp_payments}, + * {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code * commercial.cross_river_bank.charge_card}, {@code * commercial.cross_river_bank.prepaid_card}, {@code * commercial.cross_river_bank.spend_card}, {@code commercial.fifth_third.charge_card}, @@ -16662,12 +16662,12 @@ public static class RestrictsCapability extends StripeObject { * {@code bank_accounts.npp}, {@code bank_accounts.rtp}, {@code * bank_accounts.sepa_credit}, {@code bank_accounts.sepa_instant}, {@code * bank_accounts.swift}, {@code bank_accounts.wire}, {@code blik_payments}, {@code - * boleto_payments}, {@code business_storage.inbound.eur}, {@code - * business_storage.inbound.gbp}, {@code business_storage.inbound.usd}, {@code - * business_storage.outbound.eur}, {@code business_storage.outbound.gbp}, {@code - * business_storage.outbound.usd}, {@code cards}, {@code card_payments}, {@code - * cartes_bancaires_payments}, {@code cashapp_payments}, {@code - * commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code + * blik_recurring_payments}, {@code boleto_payments}, {@code + * business_storage.inbound.eur}, {@code business_storage.inbound.gbp}, {@code + * business_storage.inbound.usd}, {@code business_storage.outbound.eur}, {@code + * business_storage.outbound.gbp}, {@code business_storage.outbound.usd}, {@code cards}, + * {@code card_payments}, {@code cartes_bancaires_payments}, {@code cashapp_payments}, + * {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code * commercial.cross_river_bank.charge_card}, {@code * commercial.cross_river_bank.prepaid_card}, {@code * commercial.cross_river_bank.spend_card}, {@code commercial.fifth_third.charge_card}, diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index daed8d21f12..9062a153353 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -71,7 +71,7 @@ public class CustomerCreateParams extends ApiRequestParams { Object individualName; /** - * The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase + * The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase * letters or numbers. */ @SerializedName("invoice_prefix") @@ -400,7 +400,7 @@ public Builder setIndividualName(EmptyParam individualName) { } /** - * The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase + * The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase * letters or numbers. */ public Builder setInvoicePrefix(String invoicePrefix) { diff --git a/src/main/java/com/stripe/param/CustomerUpdateParams.java b/src/main/java/com/stripe/param/CustomerUpdateParams.java index a13789bca39..f97f5741f01 100644 --- a/src/main/java/com/stripe/param/CustomerUpdateParams.java +++ b/src/main/java/com/stripe/param/CustomerUpdateParams.java @@ -85,7 +85,7 @@ public class CustomerUpdateParams extends ApiRequestParams { Object individualName; /** - * The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase + * The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase * letters or numbers. */ @SerializedName("invoice_prefix") @@ -445,7 +445,7 @@ public Builder setIndividualName(EmptyParam individualName) { } /** - * The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase + * The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase * letters or numbers. */ public Builder setInvoicePrefix(String invoicePrefix) { @@ -454,7 +454,7 @@ public Builder setInvoicePrefix(String invoicePrefix) { } /** - * The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase + * The prefix for the customer used to generate unique invoice numbers. Must be 1–12 uppercase * letters or numbers. */ public Builder setInvoicePrefix(EmptyParam invoicePrefix) { diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index e20b7cb0702..50848209bd3 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -316,7 +316,7 @@ public class SessionCreateParams extends ApiRequestParams { *

For {@code subscription} mode, there is a maximum of 20 line items and optional items with * recurring Prices and 20 line items and optional items with one-time Prices. * - *

You can't set this parameter if {@code ui_mode} is {@code custom}. + *

You can't set this parameter if {@code ui_mode} is {@code elements} or {@code form}. */ @SerializedName("optional_items") List optionalItems; @@ -6134,6 +6134,10 @@ public Builder setType(SessionCreateParams.Item.Type type) { @Getter @EqualsAndHashCode(callSuper = false) public static class Subscription { + /** A past timestamp to backdate the subscription's start date to. */ + @SerializedName("backdate_start_date") + Long backdateStartDate; + /** * Configures when the subscription schedule's billing cycle anchors to a specific day of the * week or month. @@ -6201,6 +6205,7 @@ public static class Subscription { TrialSettings trialSettings; private Subscription( + Long backdateStartDate, BillingCycleAnchorConfig billingCycleAnchorConfig, BillingMode billingMode, String description, @@ -6212,6 +6217,7 @@ private Subscription( Long trialEnd, Long trialPeriodDays, TrialSettings trialSettings) { + this.backdateStartDate = backdateStartDate; this.billingCycleAnchorConfig = billingCycleAnchorConfig; this.billingMode = billingMode; this.description = description; @@ -6230,6 +6236,8 @@ public static Builder builder() { } public static class Builder { + private Long backdateStartDate; + private BillingCycleAnchorConfig billingCycleAnchorConfig; private BillingMode billingMode; @@ -6255,6 +6263,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.Item.Subscription build() { return new SessionCreateParams.Item.Subscription( + this.backdateStartDate, this.billingCycleAnchorConfig, this.billingMode, this.description, @@ -6268,6 +6277,12 @@ public SessionCreateParams.Item.Subscription build() { this.trialSettings); } + /** A past timestamp to backdate the subscription's start date to. */ + public Builder setBackdateStartDate(Long backdateStartDate) { + this.backdateStartDate = backdateStartDate; + return this; + } + /** * Configures when the subscription schedule's billing cycle anchors to a specific day of * the week or month. diff --git a/src/main/java/com/stripe/param/productcatalog/TrialOfferListParams.java b/src/main/java/com/stripe/param/productcatalog/TrialOfferListParams.java index 664462d9ef5..c1e7aabbaa1 100644 --- a/src/main/java/com/stripe/param/productcatalog/TrialOfferListParams.java +++ b/src/main/java/com/stripe/param/productcatalog/TrialOfferListParams.java @@ -13,6 +13,13 @@ @Getter @EqualsAndHashCode(callSuper = false) public class TrialOfferListParams extends ApiRequestParams { + /** + * Only return trial offers that are active ({@code true}) or archived ({@code false}). If + * omitted, both active and archived trial offers are returned. + */ + @SerializedName("active") + Boolean active; + /** Only return trial offers that were created during the given date interval. */ @SerializedName("created") Object created; @@ -60,6 +67,7 @@ public class TrialOfferListParams extends ApiRequestParams { String startingAfter; private TrialOfferListParams( + Boolean active, Object created, String endingBefore, List expand, @@ -67,6 +75,7 @@ private TrialOfferListParams( Long limit, List prices, String startingAfter) { + this.active = active; this.created = created; this.endingBefore = endingBefore; this.expand = expand; @@ -81,6 +90,8 @@ public static Builder builder() { } public static class Builder { + private Boolean active; + private Object created; private String endingBefore; @@ -98,6 +109,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public TrialOfferListParams build() { return new TrialOfferListParams( + this.active, this.created, this.endingBefore, this.expand, @@ -107,6 +119,15 @@ public TrialOfferListParams build() { this.startingAfter); } + /** + * Only return trial offers that are active ({@code true}) or archived ({@code false}). If + * omitted, both active and archived trial offers are returned. + */ + public Builder setActive(Boolean active) { + this.active = active; + return this; + } + /** Only return trial offers that were created during the given date interval. */ public Builder setCreated(TrialOfferListParams.Created created) { this.created = created;