From aeab3139d1a0e2731982e90c892b9775196e2bad Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 06:55:23 +0000 Subject: [PATCH] Update generated code for v2468 and 8c4f5245c3c9e5b8d0a4c7cdbe9f895f312c464a --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 4 +- src/main/java/com/stripe/model/Invoice.java | 20 +- .../stripe/model/PaymentAttemptRecord.java | 4 +- .../java/com/stripe/model/PaymentIntent.java | 8 +- .../PaymentIntentAmountDetailsLineItem.java | 7 + .../java/com/stripe/model/PaymentRecord.java | 4 +- .../java/com/stripe/model/SetupAttempt.java | 4 +- .../model/capital/FinancingSummary.java | 6 +- .../com/stripe/model/checkout/Session.java | 4 + .../model/identity/VerificationReport.java | 192 ++++++++++++++++++ .../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/PaymentIntentCaptureParams.java | 23 +++ .../param/PaymentIntentConfirmParams.java | 23 +++ .../param/PaymentIntentCreateParams.java | 23 +++ ...entIntentDecrementAuthorizationParams.java | 23 +++ ...entIntentIncrementAuthorizationParams.java | 23 +++ .../param/PaymentIntentUpdateParams.java | 23 +++ .../param/checkout/SessionCreateParams.java | 20 +- .../productcatalog/TrialOfferListParams.java | 21 ++ .../com/stripe/service/InvoiceService.java | 20 +- .../stripe/service/PaymentIntentService.java | 8 +- 29 files changed, 470 insertions(+), 57 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 432193e4baf9..8a4e0eb806b5 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -01d1ea0975f54150dffdde2a2c3d21e609c3b89f \ No newline at end of file +8c4f5245c3c9e5b8d0a4c7cdbe9f895f312c464a \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 02d7b3616257..53e00d3557f1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2458 \ No newline at end of file +v2468 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index b188cd2e468c..14aa1f26a89f 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -2404,8 +2404,8 @@ public static class ThreeDSecure extends StripeObject { /** * Indicates the outcome of 3D Secure authentication. * - *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code - * failed}, {@code not_supported}, or {@code processing_error}. + *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only}, + * {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}. */ @SerializedName("result") String result; diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 81bd9c946a3b..e92d36b8e8cc 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -1893,8 +1893,9 @@ public Invoice sendInvoice(InvoiceSendInvoiceParams params, RequestOptions optio /** * Draft invoices are fully editable. Once an invoice is finalized, monetary - * values, as well as {@code collection_method}, become uneditable. + * href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized, you can no + * longer change most of its details, including monetary values and {@code collection_method}. For + * most invoices, this also includes {@code description}. * *

If you would like to stop the Stripe Billing engine from automatically finalizing, * reattempting payments on, sending reminders for, or params) throws StripeException { /** * Draft invoices are fully editable. Once an invoice is finalized, monetary - * values, as well as {@code collection_method}, become uneditable. + * href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized, you can no + * longer change most of its details, including monetary values and {@code collection_method}. For + * most invoices, this also includes {@code description}. * *

If you would like to stop the Stripe Billing engine from automatically finalizing, * reattempting payments on, sending reminders for, or params, RequestOptions options) throws /** * Draft invoices are fully editable. Once an invoice is finalized, monetary - * values, as well as {@code collection_method}, become uneditable. + * href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized, you can no + * longer change most of its details, including monetary values and {@code collection_method}. For + * most invoices, this also includes {@code description}. * *

If you would like to stop the Stripe Billing engine from automatically finalizing, * reattempting payments on, sending reminders for, or finalized, monetary - * values, as well as {@code collection_method}, become uneditable. + * href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized, you can no + * longer change most of its details, including monetary values and {@code collection_method}. For + * most invoices, this also includes {@code description}. * *

If you would like to stop the Stripe Billing engine from automatically finalizing, * reattempting payments on, sending reminders for, or One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code - * failed}, {@code not_supported}, or {@code processing_error}. + *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only}, + * {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}. */ @SerializedName("result") String result; diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index c38e0e134f6b..7ec3cae97280 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -1614,7 +1614,7 @@ public PaymentIntent reauthorize(PaymentIntentReauthorizeParams params, RequestO * client_secret} is in the query string. * *

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of - * properties. Refer to the payment + * properties. Refer to the payment * intent object reference for more details. */ public static PaymentIntent retrieve(String intent) throws StripeException { @@ -1628,7 +1628,7 @@ public static PaymentIntent retrieve(String intent) throws StripeException { * client_secret} is in the query string. * *

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of - * properties. Refer to the payment + * properties. Refer to the payment * intent object reference for more details. */ public static PaymentIntent retrieve(String intent, RequestOptions options) @@ -1643,7 +1643,7 @@ public static PaymentIntent retrieve(String intent, RequestOptions options) * client_secret} is in the query string. * *

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of - * properties. Refer to the payment + * properties. Refer to the payment * intent object reference for more details. */ public static PaymentIntent retrieve( @@ -1661,7 +1661,7 @@ public static PaymentIntent retrieve( * client_secret} is in the query string. * *

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of - * properties. Refer to the payment + * properties. Refer to the payment * intent object reference for more details. */ public static PaymentIntent retrieve( diff --git a/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java b/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java index aaa19c6a9089..05778f51c34e 100644 --- a/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java +++ b/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java @@ -85,6 +85,13 @@ public class PaymentIntentAmountDetailsLineItem extends ApiResource implements H @SerializedName("unit_cost") Long unitCost; + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 and + * unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not provided. + */ + @SerializedName("unit_cost_precision") + Long unitCostPrecision; + /** * A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. * At most 12 alphanumeric characters long. diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java index c53711744626..6dc14b555baa 100644 --- a/src/main/java/com/stripe/model/PaymentRecord.java +++ b/src/main/java/com/stripe/model/PaymentRecord.java @@ -1931,8 +1931,8 @@ public static class ThreeDSecure extends StripeObject { /** * Indicates the outcome of 3D Secure authentication. * - *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code - * failed}, {@code not_supported}, or {@code processing_error}. + *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only}, + * {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}. */ @SerializedName("result") String result; diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java index db9df2e57ba0..31877a52ecf4 100644 --- a/src/main/java/com/stripe/model/SetupAttempt.java +++ b/src/main/java/com/stripe/model/SetupAttempt.java @@ -671,8 +671,8 @@ public static class ThreeDSecure extends StripeObject { /** * Indicates the outcome of 3D Secure authentication. * - *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code - * failed}, {@code not_supported}, or {@code processing_error}. + *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only}, + * {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}. */ @SerializedName("result") String result; diff --git a/src/main/java/com/stripe/model/capital/FinancingSummary.java b/src/main/java/com/stripe/model/capital/FinancingSummary.java index 6b6d4d8b2ffa..9c5090692939 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 ba5d207d724b..df43615a3210 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/identity/VerificationReport.java b/src/main/java/com/stripe/model/identity/VerificationReport.java index 71afc14a15dc..46021caadf41 100644 --- a/src/main/java/com/stripe/model/identity/VerificationReport.java +++ b/src/main/java/com/stripe/model/identity/VerificationReport.java @@ -96,6 +96,9 @@ public class VerificationReport extends ApiResource implements HasId { @SerializedName("selfie") Selfie selfie; + @SerializedName("signals") + Signals signals; + /** * Type of report. * @@ -812,6 +815,194 @@ public static class Errors extends StripeObject { } } + /** + * For more details about Signals, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Signals extends StripeObject { + @SerializedName("fraudulent_email") + FraudulentEmail fraudulentEmail; + + @SerializedName("fraudulent_person") + FraudulentPerson fraudulentPerson; + + @SerializedName("fraudulent_phone") + FraudulentPhone fraudulentPhone; + + /** + * For more details about FraudulentEmail, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FraudulentEmail extends StripeObject { + /** + * Array of objects representing individual factors that contributed to the calculated risk + * level. + */ + @SerializedName("indicators") + List indicators; + + /** + * Categorical assessment of the email risk. + * + *

One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code + * not_assessed}, or {@code unknown}. + */ + @SerializedName("risk_level") + String riskLevel; + + /** + * For more details about Indicator, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Indicator extends StripeObject { + /** A brief explanation of how this indicator contributed to the risk level. */ + @SerializedName("explanation") + String explanation; + + /** + * The effect this indicator had on the overall risk level. + * + *

One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code + * strong_increase}. + */ + @SerializedName("impact") + String impact; + + /** + * The name of the specific indicator used in the risk assessment. + * + *

One of {@code address_mismatch}, {@code domain_reputation}, {@code domain_tenure}, + * {@code email_reputation}, {@code email_tenure}, {@code gibberish_email}, {@code + * invalid_email}, {@code name_mismatch}, {@code other}, or {@code phone_mismatch}. + */ + @SerializedName("indicator") + String indicator; + } + } + + /** + * For more details about FraudulentPerson, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FraudulentPerson extends StripeObject { + /** + * Array of objects representing individual factors that contributed to the calculated risk + * level. + */ + @SerializedName("indicators") + List indicators; + + /** + * Categorical assessment of the fraudulent person risk. + * + *

One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code + * not_assessed}, or {@code unknown}. + */ + @SerializedName("risk_level") + String riskLevel; + + /** + * For more details about Indicator, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Indicator extends StripeObject { + /** A brief explanation of how this indicator contributed to the risk level. */ + @SerializedName("explanation") + String explanation; + + /** + * The effect this indicator had on the overall risk level. + * + *

One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code + * strong_increase}. + */ + @SerializedName("impact") + String impact; + + /** + * The name of the specific indicator used in the risk assessment. + * + *

One of {@code fraudulent_person_match}, {@code no_transaction_match}, or {@code + * other}. + */ + @SerializedName("indicator") + String indicator; + } + } + + /** + * For more details about FraudulentPhone, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FraudulentPhone extends StripeObject { + /** + * Array of objects representing individual factors that contributed to the calculated risk + * level. + */ + @SerializedName("indicators") + List indicators; + + /** + * Categorical assessment of the phone risk. + * + *

One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code + * not_assessed}, or {@code unknown}. + */ + @SerializedName("risk_level") + String riskLevel; + + /** + * For more details about Indicator, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Indicator extends StripeObject { + /** A brief explanation of how this indicator contributed to the risk level. */ + @SerializedName("explanation") + String explanation; + + /** + * The effect this indicator had on the overall risk level. + * + *

One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code + * strong_increase}. + */ + @SerializedName("impact") + String impact; + + /** + * The name of the specific indicator used in the risk assessment. + * + *

One of {@code address_mismatch}, {@code carrier_reputation}, {@code line_type}, {@code + * name_mismatch}, {@code other}, {@code phone_reputation}, {@code phone_tenure}, or {@code + * phone_velocity}. + */ + @SerializedName("indicator") + String indicator; + } + } + } + @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); @@ -821,5 +1012,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(options, responseGetter); trySetResponseGetter(phone, responseGetter); trySetResponseGetter(selfie, responseGetter); + trySetResponseGetter(signals, responseGetter); } } diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index e62294728e8b..a707708da22e 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 fe24c5dc3b3d..17904d3e95be 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 4a63f4e884e9..bdc755a31a6f 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 3de994d91de6..d20295f38d61 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 5fd5d35fa5e4..7bc9731a23be 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 daed8d21f123..9062a153353c 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 a13789bca393..f97f5741f017 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/PaymentIntentCaptureParams.java b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java index ae5b38befde5..5ba9c2332fc6 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java @@ -727,6 +727,14 @@ public static class LineItem { @SerializedName("unit_cost") Long unitCost; + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + @SerializedName("unit_cost_precision") + Long unitCostPrecision; + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ @SerializedName("unit_of_measure") String unitOfMeasure; @@ -741,6 +749,7 @@ private LineItem( Long quantityPrecision, Tax tax, Long unitCost, + Long unitCostPrecision, String unitOfMeasure) { this.discountAmount = discountAmount; this.extraParams = extraParams; @@ -751,6 +760,7 @@ private LineItem( this.quantityPrecision = quantityPrecision; this.tax = tax; this.unitCost = unitCost; + this.unitCostPrecision = unitCostPrecision; this.unitOfMeasure = unitOfMeasure; } @@ -777,6 +787,8 @@ public static class Builder { private Long unitCost; + private Long unitCostPrecision; + private String unitOfMeasure; /** Finalize and obtain parameter instance from this builder. */ @@ -791,6 +803,7 @@ public PaymentIntentCaptureParams.AmountDetails.LineItem build() { this.quantityPrecision, this.tax, this.unitCost, + this.unitCostPrecision, this.unitOfMeasure); } @@ -899,6 +912,16 @@ public Builder setUnitCost(Long unitCost) { return this; } + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + public Builder setUnitCostPrecision(Long unitCostPrecision) { + this.unitCostPrecision = unitCostPrecision; + return this; + } + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ public Builder setUnitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index dfbcb47ab79e..6609513709e6 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -1186,6 +1186,14 @@ public static class LineItem { @SerializedName("unit_cost") Long unitCost; + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + @SerializedName("unit_cost_precision") + Long unitCostPrecision; + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ @SerializedName("unit_of_measure") String unitOfMeasure; @@ -1200,6 +1208,7 @@ private LineItem( Long quantityPrecision, Tax tax, Long unitCost, + Long unitCostPrecision, String unitOfMeasure) { this.discountAmount = discountAmount; this.extraParams = extraParams; @@ -1210,6 +1219,7 @@ private LineItem( this.quantityPrecision = quantityPrecision; this.tax = tax; this.unitCost = unitCost; + this.unitCostPrecision = unitCostPrecision; this.unitOfMeasure = unitOfMeasure; } @@ -1236,6 +1246,8 @@ public static class Builder { private Long unitCost; + private Long unitCostPrecision; + private String unitOfMeasure; /** Finalize and obtain parameter instance from this builder. */ @@ -1250,6 +1262,7 @@ public PaymentIntentConfirmParams.AmountDetails.LineItem build() { this.quantityPrecision, this.tax, this.unitCost, + this.unitCostPrecision, this.unitOfMeasure); } @@ -1358,6 +1371,16 @@ public Builder setUnitCost(Long unitCost) { return this; } + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + public Builder setUnitCostPrecision(Long unitCostPrecision) { + this.unitCostPrecision = unitCostPrecision; + return this; + } + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ public Builder setUnitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 558e29823fef..2845cfd1cdb8 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -1582,6 +1582,14 @@ public static class LineItem { @SerializedName("unit_cost") Long unitCost; + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + @SerializedName("unit_cost_precision") + Long unitCostPrecision; + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ @SerializedName("unit_of_measure") String unitOfMeasure; @@ -1596,6 +1604,7 @@ private LineItem( Long quantityPrecision, Tax tax, Long unitCost, + Long unitCostPrecision, String unitOfMeasure) { this.discountAmount = discountAmount; this.extraParams = extraParams; @@ -1606,6 +1615,7 @@ private LineItem( this.quantityPrecision = quantityPrecision; this.tax = tax; this.unitCost = unitCost; + this.unitCostPrecision = unitCostPrecision; this.unitOfMeasure = unitOfMeasure; } @@ -1632,6 +1642,8 @@ public static class Builder { private Long unitCost; + private Long unitCostPrecision; + private String unitOfMeasure; /** Finalize and obtain parameter instance from this builder. */ @@ -1646,6 +1658,7 @@ public PaymentIntentCreateParams.AmountDetails.LineItem build() { this.quantityPrecision, this.tax, this.unitCost, + this.unitCostPrecision, this.unitOfMeasure); } @@ -1754,6 +1767,16 @@ public Builder setUnitCost(Long unitCost) { return this; } + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + public Builder setUnitCostPrecision(Long unitCostPrecision) { + this.unitCostPrecision = unitCostPrecision; + return this; + } + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ public Builder setUnitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; diff --git a/src/main/java/com/stripe/param/PaymentIntentDecrementAuthorizationParams.java b/src/main/java/com/stripe/param/PaymentIntentDecrementAuthorizationParams.java index d36001009579..e4fc95ed1919 100644 --- a/src/main/java/com/stripe/param/PaymentIntentDecrementAuthorizationParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentDecrementAuthorizationParams.java @@ -640,6 +640,14 @@ public static class LineItem { @SerializedName("unit_cost") Long unitCost; + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + @SerializedName("unit_cost_precision") + Long unitCostPrecision; + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ @SerializedName("unit_of_measure") String unitOfMeasure; @@ -654,6 +662,7 @@ private LineItem( Long quantityPrecision, Tax tax, Long unitCost, + Long unitCostPrecision, String unitOfMeasure) { this.discountAmount = discountAmount; this.extraParams = extraParams; @@ -664,6 +673,7 @@ private LineItem( this.quantityPrecision = quantityPrecision; this.tax = tax; this.unitCost = unitCost; + this.unitCostPrecision = unitCostPrecision; this.unitOfMeasure = unitOfMeasure; } @@ -690,6 +700,8 @@ public static class Builder { private Long unitCost; + private Long unitCostPrecision; + private String unitOfMeasure; /** Finalize and obtain parameter instance from this builder. */ @@ -704,6 +716,7 @@ public PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem build() this.quantityPrecision, this.tax, this.unitCost, + this.unitCostPrecision, this.unitOfMeasure); } @@ -815,6 +828,16 @@ public Builder setUnitCost(Long unitCost) { return this; } + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + public Builder setUnitCostPrecision(Long unitCostPrecision) { + this.unitCostPrecision = unitCostPrecision; + return this; + } + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ public Builder setUnitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; diff --git a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java index 485a5f1d117a..dc4896311cb6 100644 --- a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java @@ -681,6 +681,14 @@ public static class LineItem { @SerializedName("unit_cost") Long unitCost; + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + @SerializedName("unit_cost_precision") + Long unitCostPrecision; + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ @SerializedName("unit_of_measure") String unitOfMeasure; @@ -695,6 +703,7 @@ private LineItem( Long quantityPrecision, Tax tax, Long unitCost, + Long unitCostPrecision, String unitOfMeasure) { this.discountAmount = discountAmount; this.extraParams = extraParams; @@ -705,6 +714,7 @@ private LineItem( this.quantityPrecision = quantityPrecision; this.tax = tax; this.unitCost = unitCost; + this.unitCostPrecision = unitCostPrecision; this.unitOfMeasure = unitOfMeasure; } @@ -731,6 +741,8 @@ public static class Builder { private Long unitCost; + private Long unitCostPrecision; + private String unitOfMeasure; /** Finalize and obtain parameter instance from this builder. */ @@ -745,6 +757,7 @@ public PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem build() this.quantityPrecision, this.tax, this.unitCost, + this.unitCostPrecision, this.unitOfMeasure); } @@ -856,6 +869,16 @@ public Builder setUnitCost(Long unitCost) { return this; } + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + public Builder setUnitCostPrecision(Long unitCostPrecision) { + this.unitCostPrecision = unitCostPrecision; + return this; + } + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ public Builder setUnitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 75e678d39022..2ca204e7cb3b 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -1440,6 +1440,14 @@ public static class LineItem { @SerializedName("unit_cost") Long unitCost; + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + @SerializedName("unit_cost_precision") + Long unitCostPrecision; + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ @SerializedName("unit_of_measure") Object unitOfMeasure; @@ -1454,6 +1462,7 @@ private LineItem( Long quantityPrecision, Tax tax, Long unitCost, + Long unitCostPrecision, Object unitOfMeasure) { this.discountAmount = discountAmount; this.extraParams = extraParams; @@ -1464,6 +1473,7 @@ private LineItem( this.quantityPrecision = quantityPrecision; this.tax = tax; this.unitCost = unitCost; + this.unitCostPrecision = unitCostPrecision; this.unitOfMeasure = unitOfMeasure; } @@ -1490,6 +1500,8 @@ public static class Builder { private Long unitCost; + private Long unitCostPrecision; + private Object unitOfMeasure; /** Finalize and obtain parameter instance from this builder. */ @@ -1504,6 +1516,7 @@ public PaymentIntentUpdateParams.AmountDetails.LineItem build() { this.quantityPrecision, this.tax, this.unitCost, + this.unitCostPrecision, this.unitOfMeasure); } @@ -1633,6 +1646,16 @@ public Builder setUnitCost(Long unitCost) { return this; } + /** + * The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 + * and unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not + * provided. + */ + public Builder setUnitCostPrecision(Long unitCostPrecision) { + this.unitCostPrecision = unitCostPrecision; + return this; + } + /** A unit of measure for the line item, such as gallons, feet, meters, etc. */ public Builder setUnitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index e20b7cb07020..4c2692fb974f 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. @@ -26159,6 +26174,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), + @SerializedName("sequra") + SEQURA("sequra"), + @SerializedName("shopeepay") SHOPEEPAY("shopeepay"), diff --git a/src/main/java/com/stripe/param/productcatalog/TrialOfferListParams.java b/src/main/java/com/stripe/param/productcatalog/TrialOfferListParams.java index 664462d9ef56..c1e7aabbaa1f 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; diff --git a/src/main/java/com/stripe/service/InvoiceService.java b/src/main/java/com/stripe/service/InvoiceService.java index 976ccdcd486e..a3e0dc62d004 100644 --- a/src/main/java/com/stripe/service/InvoiceService.java +++ b/src/main/java/com/stripe/service/InvoiceService.java @@ -84,8 +84,9 @@ public Invoice retrieve(String invoice, InvoiceRetrieveParams params, RequestOpt } /** * Draft invoices are fully editable. Once an invoice is finalized, monetary - * values, as well as {@code collection_method}, become uneditable. + * href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized, you can no + * longer change most of its details, including monetary values and {@code collection_method}. For + * most invoices, this also includes {@code description}. * *

If you would like to stop the Stripe Billing engine from automatically finalizing, * reattempting payments on, sending reminders for, or finalized, monetary - * values, as well as {@code collection_method}, become uneditable. + * href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized, you can no + * longer change most of its details, including monetary values and {@code collection_method}. For + * most invoices, this also includes {@code description}. * *

If you would like to stop the Stripe Billing engine from automatically finalizing, * reattempting payments on, sending reminders for, or finalized, monetary - * values, as well as {@code collection_method}, become uneditable. + * href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized, you can no + * longer change most of its details, including monetary values and {@code collection_method}. For + * most invoices, this also includes {@code description}. * *

If you would like to stop the Stripe Billing engine from automatically finalizing, * reattempting payments on, sending reminders for, or finalized, monetary - * values, as well as {@code collection_method}, become uneditable. + * href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized, you can no + * longer change most of its details, including monetary values and {@code collection_method}. For + * most invoices, this also includes {@code description}. * *

If you would like to stop the Stripe Billing engine from automatically finalizing, * reattempting payments on, sending reminders for, or If you retrieve a PaymentIntent with a publishable key, it only returns a subset of - * properties. Refer to the payment + * properties. Refer to the payment * intent object reference for more details. */ public PaymentIntent retrieve(String intent, PaymentIntentRetrieveParams params) @@ -122,7 +122,7 @@ public PaymentIntent retrieve(String intent, PaymentIntentRetrieveParams params) * client_secret} is in the query string. * *

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of - * properties. Refer to the payment + * properties. Refer to the payment * intent object reference for more details. */ public PaymentIntent retrieve(String intent, RequestOptions options) throws StripeException { @@ -135,7 +135,7 @@ public PaymentIntent retrieve(String intent, RequestOptions options) throws Stri * client_secret} is in the query string. * *

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of - * properties. Refer to the payment + * properties. Refer to the payment * intent object reference for more details. */ public PaymentIntent retrieve(String intent) throws StripeException { @@ -148,7 +148,7 @@ public PaymentIntent retrieve(String intent) throws StripeException { * client_secret} is in the query string. * *

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of - * properties. Refer to the payment + * properties. Refer to the payment * intent object reference for more details. */ public PaymentIntent retrieve(