Skip to content
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16e50491e9d896cb53da4a46080b4333741b76cb
2c60f902831f969f228cecd1f52a81ca240c433c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2217
v2229
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2026-04-01.preview";
public static final String CURRENT = "2026-04-08.preview";
}
45 changes: 45 additions & 0 deletions src/main/java/com/stripe/exception/CannotProceedException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// File generated from our OpenAPI spec
package com.stripe.exception;

import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.stripe.model.StripeError;
import com.stripe.model.StripeObject;
import com.stripe.net.StripeResponseGetter;
import lombok.Getter;

/** Returned when the PayoutMethod object is set as default_for_currency and cannot be archived. */
public final class CannotProceedException extends ApiException {
private static final long serialVersionUID = 2L;
@Getter String reason;

private CannotProceedException(
String message,
String requestId,
String code,
Integer statusCode,
Throwable e,
String reason) {
super(message, requestId, code, statusCode, e);
this.reason = reason;
}

static CannotProceedException parse(
JsonObject body, int statusCode, String requestId, StripeResponseGetter responseGetter) {
CannotProceedException.CannotProceedError error =
(CannotProceedException.CannotProceedError)
StripeObject.deserializeStripeObject(
body, CannotProceedException.CannotProceedError.class, responseGetter);
CannotProceedException exception =
new CannotProceedException(
error.getMessage(), requestId, error.getCode(), statusCode, null, error.getReason());
exception.setStripeError(error);
return exception;
}

public static class CannotProceedError extends StripeError {
@Getter
@SerializedName("reason")
String reason;
}
}
3 changes: 3 additions & 0 deletions src/main/java/com/stripe/exception/StripeException.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ public static StripeException parseV2Exception(
case "blocked_by_stripe":
return com.stripe.exception.BlockedByStripeException.parse(
body, statusCode, requestId, responseGetter);
case "cannot_proceed":
return com.stripe.exception.CannotProceedException.parse(
body, statusCode, requestId, responseGetter);
case "controlled_by_alternate_resource":
return com.stripe.exception.ControlledByAlternateResourceException.parse(
body, statusCode, requestId, responseGetter);
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/ApplicationFee.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ public static class FeeSource extends StripeObject {
@SerializedName("charge")
String charge;

/** PaymentRecord ID that created this application fee. */
@SerializedName("payment_record")
String paymentRecord;

/** Payout ID that created this application fee. */
@SerializedName("payout")
String payout;
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2591,6 +2591,13 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("bancontact")
Bancontact bancontact;

/**
* If paying by {@code bizum}, this sub-hash contains details about the Bizum payment method
* options to pass to the invoice’s PaymentIntent.
*/
@SerializedName("bizum")
Bizum bizum;

/**
* If paying by {@code card}, this sub-hash contains details about the Card payment method
* options to pass to the invoice’s PaymentIntent.
Expand Down Expand Up @@ -2716,6 +2723,15 @@ public static class Bancontact extends StripeObject {
String preferredLanguage;
}

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

/**
* For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
80 changes: 80 additions & 0 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -3293,6 +3293,10 @@ public static class PaymentDetails extends StripeObject {
@SerializedName("event_details")
EventDetails eventDetails;

/** Fleet data for this PaymentIntent. */
@SerializedName("fleet_data")
List<PaymentIntent.PaymentDetails.FleetDatum> fleetData;

@SerializedName("flight_data")
List<PaymentIntent.PaymentDetails.FlightDatum> flightData;

Expand Down Expand Up @@ -4014,6 +4018,82 @@ public static class Recipient extends StripeObject {
}
}

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

@SerializedName("station")
Station station;

@SerializedName("vat")
Vat vat;

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

/**
* For more details about Station, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Station extends StripeObject {
/** Additional contact information for the station. */
@SerializedName("additional_contact_info")
String additionalContactInfo;

/** The customer service phone number of the station. */
@SerializedName("customer_service_phone_number")
String customerServicePhoneNumber;

/** The partner ID code of the station. */
@SerializedName("partner_id_code")
String partnerIdCode;

/** The phone number of the station. */
@SerializedName("phone_number")
String phoneNumber;

@SerializedName("service_location")
com.stripe.model.Address serviceLocation;

/** The URL of the station. */
@SerializedName("url")
String url;
}

/**
* For more details about Vat, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Vat extends StripeObject {
/** Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. */
@SerializedName("iob_indicator")
String iobIndicator;
}
}

/**
* For more details about FlightDatum, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ public class PaymentIntentAmountDetailsLineItem extends ApiResource implements H
@SerializedName("quantity")
Long quantity;

/**
* The number of decimal places implied in the quantity. For example, if quantity is 10000 and
* quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided.
*/
@SerializedName("quantity_precision")
Long quantityPrecision;

/** Contains information about the tax on the item. */
@SerializedName("tax")
Tax tax;
Expand Down Expand Up @@ -158,6 +165,26 @@ public static class PaymentMethodOptions extends StripeObject {
public static class Card extends StripeObject {
@SerializedName("commodity_code")
String commodityCode;

@SerializedName("fleet_data")
FleetData fleetData;

/**
* For more details about FleetData, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FleetData extends StripeObject {
/** The type of product being purchased at this line item. */
@SerializedName("product_type")
String productType;

/** The type of service received at the acceptor location. */
@SerializedName("service_type")
String serviceType;
}
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore<P
@SerializedName("sepa_debit")
SepaDebit sepaDebit;

/** ID of the shared payment granted token used in the creation of this PaymentMethod. */
@SerializedName("shared_payment_granted_token")
String sharedPaymentGrantedToken;

@SerializedName("shopeepay")
Shopeepay shopeepay;

Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/stripe/model/QuotePreviewInvoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,13 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("bancontact")
Bancontact bancontact;

/**
* If paying by {@code bizum}, this sub-hash contains details about the Bizum payment method
* options to pass to the invoice’s PaymentIntent.
*/
@SerializedName("bizum")
Bizum bizum;

/**
* If paying by {@code card}, this sub-hash contains details about the Card payment method
* options to pass to the invoice’s PaymentIntent.
Expand Down Expand Up @@ -1537,6 +1544,15 @@ public static class Bancontact extends StripeObject {
String preferredLanguage;
}

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

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

/**
* This sub-hash contains details about the Bizum payment method options to pass to invoices
* created by the subscription.
*/
@SerializedName("bizum")
Bizum bizum;

/**
* This sub-hash contains details about the Card payment method options to pass to invoices
* created by the subscription.
Expand Down Expand Up @@ -2105,6 +2112,39 @@ public static class Bancontact extends StripeObject {
String preferredLanguage;
}

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

/**
* For more details about MandateOptions, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class MandateOptions extends StripeObject {
/** Amount to be charged for future payments. Required when {@code amount_type=fixed}. */
@SerializedName("amount")
Long amount;

/**
* Indicates the mandate amount type.
*
* <p>Equal to {@code fixed}.
*/
@SerializedName("amount_type")
String amountType;
}
}

/**
* For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public class RequestedSession extends ApiResource
/**
* The status of the requested session.
*
* <p>One of {@code completed}, {@code expired}, or {@code open}.
* <p>One of {@code completed}, {@code expired}, {@code open}, or {@code requires_action}.
*/
@SerializedName("status")
String status;
Expand Down
Loading
Loading