Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ffe4efab9b5dec59fea6b69a94f4b024fa7cf992
3602014a6583f6c0fbfdde3c575839ac7d0b4e9c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2132
v2141
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 = "2025-11-17.preview";
public static final String CURRENT = "2025-12-15.preview";
}
12 changes: 12 additions & 0 deletions src/main/java/com/stripe/StripeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,18 @@ public com.stripe.service.SetupIntentService setupIntents() {
return new com.stripe.service.SetupIntentService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.sharedPayment() is deprecated, use StripeClient.v1().sharedPayment()
* instead. All functionality under it has been copied over to
* StripeClient.v1().sharedPayment(). See <a
* href="https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient">migration
* guide</a> for more on this and tips on migrating to the new v1 namespace.
*/
@Deprecated
public com.stripe.service.SharedPaymentService sharedPayment() {
return new com.stripe.service.SharedPaymentService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.shippingRates() is deprecated, use StripeClient.v1().shippingRates()
* instead. All functionality under it has been copied over to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ public static final class EventData {
/**
* Open Enum. The capability which had its status updated.
*
* <p>One of {@code bank_accounts.local}, {@code bank_accounts.wire}, {@code cards}, {@code
* crypto_wallets_v2}, {@code stripe_balance.payouts}, {@code stripe_balance.stripe_transfers},
* or {@code stripe.transfers}.
* <p>One of {@code bank_accounts.instant}, {@code bank_accounts.local}, {@code
* bank_accounts.wire}, {@code cards}, {@code crypto_wallets_v2}, {@code
* stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, or {@code
* stripe.transfers}.
*/
@SerializedName("updated_capability")
String updatedCapability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

Expand Down Expand Up @@ -55,6 +56,21 @@ public static final class Impact {
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
/** The top impacted connected accounts (only for platforms). */
@SerializedName("top_impacted_accounts")
List<V2CoreHealthApiErrorFiringEvent.EventData.Impact.TopImpactedAccount> topImpactedAccounts;

public static final class TopImpactedAccount {
/** The account ID of the impacted connected account. */
@SerializedName("account")
String account;
/** The number of impacted requests. */
@SerializedName("impacted_requests")
Long impactedRequests;
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

Expand Down Expand Up @@ -55,6 +56,22 @@ public static final class Impact {
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
/** The top impacted connected accounts (only for platforms). */
@SerializedName("top_impacted_accounts")
List<V2CoreHealthApiErrorResolvedEvent.EventData.Impact.TopImpactedAccount>
topImpactedAccounts;

public static final class TopImpactedAccount {
/** The account ID of the impacted connected account. */
@SerializedName("account")
String account;
/** The number of impacted requests. */
@SerializedName("impacted_requests")
Long impactedRequests;
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

Expand Down Expand Up @@ -52,6 +53,22 @@ public static final class Impact {
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
/** The top impacted connected accounts (only for platforms). */
@SerializedName("top_impacted_accounts")
List<V2CoreHealthApiLatencyFiringEvent.EventData.Impact.TopImpactedAccount>
topImpactedAccounts;

public static final class TopImpactedAccount {
/** The account ID of the impacted connected account. */
@SerializedName("account")
String account;
/** The number of impacted requests. */
@SerializedName("impacted_requests")
Long impactedRequests;
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

Expand Down Expand Up @@ -52,6 +53,22 @@ public static final class Impact {
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
/** The top impacted connected accounts (only for platforms). */
@SerializedName("top_impacted_accounts")
List<V2CoreHealthApiLatencyResolvedEvent.EventData.Impact.TopImpactedAccount>
topImpactedAccounts;

public static final class TopImpactedAccount {
/** The account ID of the impacted connected account. */
@SerializedName("account")
String account;
/** The number of impacted requests. */
@SerializedName("impacted_requests")
Long impactedRequests;
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

Expand Down Expand Up @@ -63,6 +64,22 @@ public static final class Impact {
*/
@SerializedName("payment_method_type")
String paymentMethodType;
/** The top impacted connected accounts (only for platforms). */
@SerializedName("top_impacted_accounts")
List<V2CoreHealthPaymentMethodErrorFiringEvent.EventData.Impact.TopImpactedAccount>
topImpactedAccounts;

public static final class TopImpactedAccount {
/** The account ID of the impacted connected account. */
@SerializedName("account")
String account;
/** The number of impacted requests. */
@SerializedName("impacted_requests")
Long impactedRequests;
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

Expand Down Expand Up @@ -63,6 +64,22 @@ public static final class Impact {
*/
@SerializedName("payment_method_type")
String paymentMethodType;
/** The top impacted connected accounts (only for platforms). */
@SerializedName("top_impacted_accounts")
List<V2CoreHealthPaymentMethodErrorResolvedEvent.EventData.Impact.TopImpactedAccount>
topImpactedAccounts;

public static final class TopImpactedAccount {
/** The account ID of the impacted connected account. */
@SerializedName("account")
String account;
/** The number of impacted requests. */
@SerializedName("impacted_requests")
Long impactedRequests;
/** The percentage of impacted requests. */
@SerializedName("impacted_requests_percentage")
String impactedRequestsPercentage;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import lombok.Getter;
import lombok.Setter;

@Getter
public final class V2CoreHealthSepaDebitDelayedFiringEvent extends Event {
/** Data for the v2.core.health.sepa_debit_delayed.firing event. */
@SerializedName("data")
V2CoreHealthSepaDebitDelayedFiringEvent.EventData data;

@Getter
@Setter
public static final class EventData {
/** The grouping key for the alert. */
@SerializedName("grouping_key")
String groupingKey;
/** The user impact. */
@SerializedName("impact")
Impact impact;
/** The time when impact on the user experience was first detected. */
@SerializedName("started_at")
Instant startedAt;
/** A short description of the alert. */
@SerializedName("summary")
String summary;

public static final class Impact {
/** The number of impacted payments. */
@SerializedName("impacted_payments")
Long impactedPayments;
/** The percentage of impacted payments. */
@SerializedName("impacted_payments_percentage")
String impactedPaymentsPercentage;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.EventNotification;

public final class V2CoreHealthSepaDebitDelayedFiringEventNotification extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreHealthSepaDebitDelayedFiringEvent fetchEvent() throws StripeException {
return (V2CoreHealthSepaDebitDelayedFiringEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.model.v2.core.Event;
import java.time.Instant;
import lombok.Getter;
import lombok.Setter;

@Getter
public final class V2CoreHealthSepaDebitDelayedResolvedEvent extends Event {
/** Data for the v2.core.health.sepa_debit_delayed.resolved event. */
@SerializedName("data")
V2CoreHealthSepaDebitDelayedResolvedEvent.EventData data;

@Getter
@Setter
public static final class EventData {
/** The grouping key for the alert. */
@SerializedName("grouping_key")
String groupingKey;
/** The user impact. */
@SerializedName("impact")
Impact impact;
/** The time when the user experience has returned to expected levels. */
@SerializedName("resolved_at")
Instant resolvedAt;
/** The time when impact on the user experience was first detected. */
@SerializedName("started_at")
Instant startedAt;
/** A short description of the alert. */
@SerializedName("summary")
String summary;

public static final class Impact {
/** The number of impacted payments. */
@SerializedName("impacted_payments")
Long impactedPayments;
/** The percentage of impacted payments. */
@SerializedName("impacted_payments_percentage")
String impactedPaymentsPercentage;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.EventNotification;

public final class V2CoreHealthSepaDebitDelayedResolvedEventNotification extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2CoreHealthSepaDebitDelayedResolvedEvent fetchEvent() throws StripeException {
return (V2CoreHealthSepaDebitDelayedResolvedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.moneymanagement.PayoutMethod;
import lombok.Getter;

@Getter
public final class V2MoneyManagementPayoutMethodCreatedEvent extends Event {
@SerializedName("related_object")

/** Object containing the reference to API resource relevant to the event. */
RelatedObject relatedObject;

/** Retrieves the related object from the API. Make an API request on every call. */
public PayoutMethod fetchRelatedObject() throws StripeException {
return (PayoutMethod) super.fetchRelatedObject(this.relatedObject);
}
}
Loading
Loading