Skip to content

Commit b9d11c6

Browse files
Merge pull request #2125 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 5c2e8d6 + ab9497b commit b9d11c6

File tree

451 files changed

+20331
-6324
lines changed

Some content is hidden

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

451 files changed

+20331
-6324
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ffe4efab9b5dec59fea6b69a94f4b024fa7cf992
1+
3602014a6583f6c0fbfdde3c575839ac7d0b4e9c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2132
1+
v2141

src/main/java/com/stripe/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
package com.stripe;
33

44
final class ApiVersion {
5-
public static final String CURRENT = "2025-11-17.preview";
5+
public static final String CURRENT = "2025-12-15.preview";
66
}

src/main/java/com/stripe/StripeClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,18 @@ public com.stripe.service.SetupIntentService setupIntents() {
875875
return new com.stripe.service.SetupIntentService(this.getResponseGetter());
876876
}
877877

878+
/**
879+
* @deprecated StripeClient.sharedPayment() is deprecated, use StripeClient.v1().sharedPayment()
880+
* instead. All functionality under it has been copied over to
881+
* StripeClient.v1().sharedPayment(). See <a
882+
* href="https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient">migration
883+
* guide</a> for more on this and tips on migrating to the new v1 namespace.
884+
*/
885+
@Deprecated
886+
public com.stripe.service.SharedPaymentService sharedPayment() {
887+
return new com.stripe.service.SharedPaymentService(this.getResponseGetter());
888+
}
889+
878890
/**
879891
* @deprecated StripeClient.shippingRates() is deprecated, use StripeClient.v1().shippingRates()
880892
* instead. All functionality under it has been copied over to

src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ public static final class EventData {
2222
/**
2323
* Open Enum. The capability which had its status updated.
2424
*
25-
* <p>One of {@code bank_accounts.local}, {@code bank_accounts.wire}, {@code cards}, {@code
26-
* crypto_wallets_v2}, {@code stripe_balance.payouts}, {@code stripe_balance.stripe_transfers},
27-
* or {@code stripe.transfers}.
25+
* <p>One of {@code bank_accounts.instant}, {@code bank_accounts.local}, {@code
26+
* bank_accounts.wire}, {@code cards}, {@code crypto_wallets_v2}, {@code
27+
* stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, or {@code
28+
* stripe.transfers}.
2829
*/
2930
@SerializedName("updated_capability")
3031
String updatedCapability;

src/main/java/com/stripe/events/V2CoreHealthApiErrorFiringEvent.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
66
import java.time.Instant;
7+
import java.util.List;
78
import lombok.Getter;
89
import lombok.Setter;
910

@@ -55,6 +56,21 @@ public static final class Impact {
5556
/** The percentage of impacted requests. */
5657
@SerializedName("impacted_requests_percentage")
5758
String impactedRequestsPercentage;
59+
/** The top impacted connected accounts (only for platforms). */
60+
@SerializedName("top_impacted_accounts")
61+
List<V2CoreHealthApiErrorFiringEvent.EventData.Impact.TopImpactedAccount> topImpactedAccounts;
62+
63+
public static final class TopImpactedAccount {
64+
/** The account ID of the impacted connected account. */
65+
@SerializedName("account")
66+
String account;
67+
/** The number of impacted requests. */
68+
@SerializedName("impacted_requests")
69+
Long impactedRequests;
70+
/** The percentage of impacted requests. */
71+
@SerializedName("impacted_requests_percentage")
72+
String impactedRequestsPercentage;
73+
}
5874
}
5975
}
6076
}

src/main/java/com/stripe/events/V2CoreHealthApiErrorResolvedEvent.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
66
import java.time.Instant;
7+
import java.util.List;
78
import lombok.Getter;
89
import lombok.Setter;
910

@@ -55,6 +56,22 @@ public static final class Impact {
5556
/** The percentage of impacted requests. */
5657
@SerializedName("impacted_requests_percentage")
5758
String impactedRequestsPercentage;
59+
/** The top impacted connected accounts (only for platforms). */
60+
@SerializedName("top_impacted_accounts")
61+
List<V2CoreHealthApiErrorResolvedEvent.EventData.Impact.TopImpactedAccount>
62+
topImpactedAccounts;
63+
64+
public static final class TopImpactedAccount {
65+
/** The account ID of the impacted connected account. */
66+
@SerializedName("account")
67+
String account;
68+
/** The number of impacted requests. */
69+
@SerializedName("impacted_requests")
70+
Long impactedRequests;
71+
/** The percentage of impacted requests. */
72+
@SerializedName("impacted_requests_percentage")
73+
String impactedRequestsPercentage;
74+
}
5875
}
5976
}
6077
}

src/main/java/com/stripe/events/V2CoreHealthApiLatencyFiringEvent.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
66
import java.time.Instant;
7+
import java.util.List;
78
import lombok.Getter;
89
import lombok.Setter;
910

@@ -52,6 +53,22 @@ public static final class Impact {
5253
/** The percentage of impacted requests. */
5354
@SerializedName("impacted_requests_percentage")
5455
String impactedRequestsPercentage;
56+
/** The top impacted connected accounts (only for platforms). */
57+
@SerializedName("top_impacted_accounts")
58+
List<V2CoreHealthApiLatencyFiringEvent.EventData.Impact.TopImpactedAccount>
59+
topImpactedAccounts;
60+
61+
public static final class TopImpactedAccount {
62+
/** The account ID of the impacted connected account. */
63+
@SerializedName("account")
64+
String account;
65+
/** The number of impacted requests. */
66+
@SerializedName("impacted_requests")
67+
Long impactedRequests;
68+
/** The percentage of impacted requests. */
69+
@SerializedName("impacted_requests_percentage")
70+
String impactedRequestsPercentage;
71+
}
5572
}
5673
}
5774
}

src/main/java/com/stripe/events/V2CoreHealthApiLatencyResolvedEvent.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
66
import java.time.Instant;
7+
import java.util.List;
78
import lombok.Getter;
89
import lombok.Setter;
910

@@ -52,6 +53,22 @@ public static final class Impact {
5253
/** The percentage of impacted requests. */
5354
@SerializedName("impacted_requests_percentage")
5455
String impactedRequestsPercentage;
56+
/** The top impacted connected accounts (only for platforms). */
57+
@SerializedName("top_impacted_accounts")
58+
List<V2CoreHealthApiLatencyResolvedEvent.EventData.Impact.TopImpactedAccount>
59+
topImpactedAccounts;
60+
61+
public static final class TopImpactedAccount {
62+
/** The account ID of the impacted connected account. */
63+
@SerializedName("account")
64+
String account;
65+
/** The number of impacted requests. */
66+
@SerializedName("impacted_requests")
67+
Long impactedRequests;
68+
/** The percentage of impacted requests. */
69+
@SerializedName("impacted_requests_percentage")
70+
String impactedRequestsPercentage;
71+
}
5572
}
5673
}
5774
}

src/main/java/com/stripe/events/V2CoreHealthPaymentMethodErrorFiringEvent.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
66
import java.time.Instant;
7+
import java.util.List;
78
import lombok.Getter;
89
import lombok.Setter;
910

@@ -63,6 +64,22 @@ public static final class Impact {
6364
*/
6465
@SerializedName("payment_method_type")
6566
String paymentMethodType;
67+
/** The top impacted connected accounts (only for platforms). */
68+
@SerializedName("top_impacted_accounts")
69+
List<V2CoreHealthPaymentMethodErrorFiringEvent.EventData.Impact.TopImpactedAccount>
70+
topImpactedAccounts;
71+
72+
public static final class TopImpactedAccount {
73+
/** The account ID of the impacted connected account. */
74+
@SerializedName("account")
75+
String account;
76+
/** The number of impacted requests. */
77+
@SerializedName("impacted_requests")
78+
Long impactedRequests;
79+
/** The percentage of impacted requests. */
80+
@SerializedName("impacted_requests_percentage")
81+
String impactedRequestsPercentage;
82+
}
6683
}
6784
}
6885
}

0 commit comments

Comments
 (0)