Skip to content

Commit 70bc40a

Browse files
Merge pull request #2211 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 0b2da4c + de630ec commit 70bc40a

119 files changed

Lines changed: 7894 additions & 671 deletions

File tree

Some content is hidden

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

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
505d252427d8aaae5b38486880ba3550b08958ec
1+
3ac0dc357d86c95bbba40ca9818f5eacf4d0a405

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2253
1+
v2254
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.ApprovalRequest;
7+
import com.stripe.model.v2.core.Event;
8+
import com.stripe.model.v2.core.Event.RelatedObject;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CoreApprovalRequestCreatedEvent extends Event {
13+
@SerializedName("related_object")
14+
15+
/** Object containing the reference to API resource relevant to the event. */
16+
RelatedObject relatedObject;
17+
18+
/** Retrieves the related object from the API. Make an API request on every call. */
19+
public ApprovalRequest fetchRelatedObject() throws StripeException {
20+
return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.ApprovalRequest;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.core.EventNotification;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CoreApprovalRequestCreatedEventNotification extends EventNotification {
13+
@SerializedName("related_object")
14+
15+
/** Object containing the reference to API resource relevant to the event. */
16+
RelatedObject relatedObject;
17+
18+
/** Retrieves the related object from the API. Make an API request on every call. */
19+
public ApprovalRequest fetchRelatedObject() throws StripeException {
20+
return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2CoreApprovalRequestCreatedEvent fetchEvent() throws StripeException {
25+
return (V2CoreApprovalRequestCreatedEvent) super.fetchEvent();
26+
}
27+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.ApprovalRequest;
7+
import com.stripe.model.v2.core.Event;
8+
import com.stripe.model.v2.core.Event.RelatedObject;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CoreApprovalRequestExpiredEvent extends Event {
13+
@SerializedName("related_object")
14+
15+
/** Object containing the reference to API resource relevant to the event. */
16+
RelatedObject relatedObject;
17+
18+
/** Retrieves the related object from the API. Make an API request on every call. */
19+
public ApprovalRequest fetchRelatedObject() throws StripeException {
20+
return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.exception.StripeException;
6+
import com.stripe.model.v2.core.ApprovalRequest;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.core.EventNotification;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2CoreApprovalRequestExpiredEventNotification extends EventNotification {
13+
@SerializedName("related_object")
14+
15+
/** Object containing the reference to API resource relevant to the event. */
16+
RelatedObject relatedObject;
17+
18+
/** Retrieves the related object from the API. Make an API request on every call. */
19+
public ApprovalRequest fetchRelatedObject() throws StripeException {
20+
return (ApprovalRequest) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2CoreApprovalRequestExpiredEvent fetchEvent() throws StripeException {
25+
return (V2CoreApprovalRequestExpiredEvent) super.fetchEvent();
26+
}
27+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.google.gson.annotations.SerializedName;
5+
import com.stripe.model.v2.core.Event;
6+
import lombok.Getter;
7+
import lombok.Setter;
8+
9+
@Getter
10+
public final class V2ExtendExtensionRunFailedEvent extends Event {
11+
/** Data for the v2.extend.extension_run.failed event. */
12+
@SerializedName("data")
13+
V2ExtendExtensionRunFailedEvent.EventData data;
14+
15+
@Getter
16+
@Setter
17+
public static final class EventData {
18+
/** Details about the error that occurred. */
19+
@SerializedName("error")
20+
Errors error;
21+
/** Details about the extension that failed. */
22+
@SerializedName("extension")
23+
Extension extension;
24+
/** The ID of the extension run that failed. */
25+
@SerializedName("extension_run_id")
26+
String extensionRunId;
27+
28+
public static final class Errors {
29+
/** URL to the extension run in Workbench for deeper debugging. */
30+
@SerializedName("debug_url")
31+
String debugUrl;
32+
/** Detailed error message. */
33+
@SerializedName("message")
34+
String message;
35+
}
36+
37+
public static final class Extension {
38+
/** The extension's unique identifier. */
39+
@SerializedName("id")
40+
String id;
41+
/** The extension method called where the failure occurred. */
42+
@SerializedName("method")
43+
String method;
44+
/** Human-readable name of the extension. */
45+
@SerializedName("name")
46+
String name;
47+
/** Version of the extension that failed. */
48+
@SerializedName("version")
49+
String version;
50+
}
51+
}
52+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// File generated from our OpenAPI spec
2+
package com.stripe.events;
3+
4+
import com.stripe.exception.StripeException;
5+
import com.stripe.model.v2.core.EventNotification;
6+
7+
public final class V2ExtendExtensionRunFailedEventNotification extends EventNotification {
8+
/** Retrieve the corresponding full event from the Stripe API. */
9+
@Override
10+
public V2ExtendExtensionRunFailedEvent fetchEvent() throws StripeException {
11+
return (V2ExtendExtensionRunFailedEvent) super.fetchEvent();
12+
}
13+
}

src/main/java/com/stripe/model/Account.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,15 @@ public static class Capabilities extends StripeObject {
920920
@SerializedName("amazon_pay_payments")
921921
String amazonPayPayments;
922922

923+
/**
924+
* The status of the {@code app_distribution} capability of the account, or whether the platform
925+
* can distribute apps to other accounts.
926+
*
927+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
928+
*/
929+
@SerializedName("app_distribution")
930+
String appDistribution;
931+
923932
/**
924933
* The status of the BECS Direct Debit (AU) payments capability of the account, or whether the
925934
* account can directly process BECS Direct Debit (AU) charges.
@@ -1430,6 +1439,15 @@ public static class Capabilities extends StripeObject {
14301439
@SerializedName("stripe_balance_payments")
14311440
String stripeBalancePayments;
14321441

1442+
/**
1443+
* The status of the Sunbit capability of the account, or whether the account can directly
1444+
* process Sunbit payments.
1445+
*
1446+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
1447+
*/
1448+
@SerializedName("sunbit_payments")
1449+
String sunbitPayments;
1450+
14331451
/**
14341452
* The status of the Swish capability of the account, or whether the account can directly
14351453
* process Swish payments.

src/main/java/com/stripe/model/AccountSession.java

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public static class Components extends StripeObject {
140140
@SerializedName("agentic_commerce_settings")
141141
AgenticCommerceSettings agenticCommerceSettings;
142142

143+
@SerializedName("balance_report")
144+
BalanceReport balanceReport;
145+
143146
@SerializedName("balances")
144147
Balances balances;
145148

@@ -228,6 +231,9 @@ public static class Components extends StripeObject {
228231
@SerializedName("payout_details")
229232
PayoutDetails payoutDetails;
230233

234+
@SerializedName("payout_reconciliation_report")
235+
PayoutReconciliationReport payoutReconciliationReport;
236+
231237
@SerializedName("payouts")
232238
Payouts payouts;
233239

@@ -369,6 +375,31 @@ public static class AgenticCommerceSettings extends StripeObject {
369375
public static class Features extends StripeObject {}
370376
}
371377

378+
/**
379+
* For more details about BalanceReport, please refer to the <a
380+
* href="https://docs.stripe.com/api">API Reference.</a>
381+
*/
382+
@Getter
383+
@Setter
384+
@EqualsAndHashCode(callSuper = false)
385+
public static class BalanceReport extends StripeObject {
386+
/** Whether the embedded component is enabled. */
387+
@SerializedName("enabled")
388+
Boolean enabled;
389+
390+
@SerializedName("features")
391+
Features features;
392+
393+
/**
394+
* For more details about Features, please refer to the <a
395+
* href="https://docs.stripe.com/api">API Reference.</a>
396+
*/
397+
@Getter
398+
@Setter
399+
@EqualsAndHashCode(callSuper = false)
400+
public static class Features extends StripeObject {}
401+
}
402+
372403
/**
373404
* For more details about Balances, please refer to the <a
374405
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -1162,6 +1193,31 @@ public static class PayoutDetails extends StripeObject {
11621193
public static class Features extends StripeObject {}
11631194
}
11641195

1196+
/**
1197+
* For more details about PayoutReconciliationReport, please refer to the <a
1198+
* href="https://docs.stripe.com/api">API Reference.</a>
1199+
*/
1200+
@Getter
1201+
@Setter
1202+
@EqualsAndHashCode(callSuper = false)
1203+
public static class PayoutReconciliationReport extends StripeObject {
1204+
/** Whether the embedded component is enabled. */
1205+
@SerializedName("enabled")
1206+
Boolean enabled;
1207+
1208+
@SerializedName("features")
1209+
Features features;
1210+
1211+
/**
1212+
* For more details about Features, please refer to the <a
1213+
* href="https://docs.stripe.com/api">API Reference.</a>
1214+
*/
1215+
@Getter
1216+
@Setter
1217+
@EqualsAndHashCode(callSuper = false)
1218+
public static class Features extends StripeObject {}
1219+
}
1220+
11651221
/**
11661222
* For more details about Payouts, please refer to the <a href="https://docs.stripe.com/api">API
11671223
* Reference.</a>

0 commit comments

Comments
 (0)