Skip to content

Commit 1de4aa0

Browse files
Merge pull request #2105 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents d3bc019 + b4896e1 commit 1de4aa0

34 files changed

Lines changed: 1961 additions & 34 deletions

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
56689dcbcaa4c7ce6bf1b51a5add451972e0689c
1+
6d15a7f20cb77c2c22091a30e499cb89d7e3248c

CHANGELOG.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,37 @@
33
## 30.2.1-alpha.1 - 2025-11-05
44
* Updated publishing configuration. No changes to SDK content.
55

6+
## 30.2.0 - 2025-11-05
7+
* [#2102](https://github.com/stripe/stripe-java/pull/2102) Update generated code
8+
* Add support for `captureMethod` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present`
9+
10+
## 30.2.0-beta.1 - 2025-10-29
11+
12+
This release changes the pinned API version to `2025-10-29.preview`.
13+
14+
* [#2092](https://github.com/stripe/stripe-java/pull/2092) Update generated code for beta
15+
* Add support for `cryptoStorer` on `v2.core.AccountUpdateParams.identity.attestations.terms_of_service`
16+
* [#2081](https://github.com/stripe/stripe-java/pull/2081) Update generated code for beta
17+
* Add support for `update` method on resource `v2.moneymanagement.FinancialAccount`
18+
* Add support for `confirm_microdeposits`, `list`, and `send_microdeposits` methods on resource `v2.core.vault.UsBankAccount`
19+
* Add support for `list` method on resource `v2.core.vault.GbBankAccount`
20+
* Add support for `paymentPortalUrl` on `Charge.payment_method_details.rechnung`, `PaymentAttemptRecord.payment_method_details.rechnung`, and `PaymentRecord.payment_method_details.rechnung`
21+
* Add support for `taxIdElement` on `CustomerSession.components` and `CustomerSessionCreateParams.components`
22+
* Add support for `startingAfter` on `PaymentAttemptRecordListParams`
23+
* Add support for `reference` on `PaymentIntentAmountDetailsLineItem.payment_method_options.klarna`, `PaymentIntentCaptureParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentConfirmParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentCreateParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentIncrementAuthorizationParams.amount_details.line_items[].payment_method_options.klarna`, and `PaymentIntentUpdateParams.amount_details.line_items[].payment_method_options.klarna`
24+
* Add support for `subscriptionReference` on `PaymentIntentAmountDetailsLineItem.payment_method_options.klarna`
25+
* Add support for `closed` on `v2.core.AccountListParams` and `v2.core.Account`
26+
* Add support for `usd` on `v2.core.Account.configuration.storer.capabilities.holds_currencies`, `v2.core.AccountCreateParams.configuration.storer.capabilities.holds_currencies`, and `v2.core.AccountUpdateParams.configuration.storer.capabilities.holds_currencies`
27+
* Add support for `representativeDeclaration` on `v2.core.Account.identity.attestations`, `v2.core.AccountCreateParams.identity.attestations`, and `v2.core.AccountUpdateParams.identity.attestations`
28+
* Add support for `verification` on `v2.core.vault.UsBankAccount`
29+
* Add support for new value `payment_method` on enums `v2.core.AccountCreateParams.configuration.customer.automatic_indirect_tax.locationSource` and `v2.core.AccountUpdateParams.configuration.customer.automatic_indirect_tax.locationSource`
30+
* Add support for new values `application_custom` and `application_express` on enums `v2.core.AccountCreateParams.defaults.responsibilities.feesCollector` and `v2.core.AccountUpdateParams.defaults.responsibilities.feesCollector`
31+
* Add support for `v1Id` on `EventsV2MoneyManagementTransactionCreatedEvent`
32+
* Remove support for thin event `V2BillingBillSettingUpdatedEvent` with related object `v2.billing.BillSetting`
33+
* [#2080](https://github.com/stripe/stripe-java/pull/2080) Update generated code for beta
34+
* Add support for `lastSeenAt` on `terminal.Reader`
35+
* Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.apiVersion`
36+
637
## 30.2.0-alpha.2 - 2025-10-30
738
* [#2099](https://github.com/stripe/stripe-java/pull/2099) Update generated code for private-preview
839
* Change `delegatedcheckout.RequestedSessionUpdateParams.line_item_details[].quantity` to be required
@@ -54,33 +85,6 @@
5485
* Add support for `complianceScreeningDescription` on `v2.core.Account.identity.business_details`, `v2.core.AccountCreateParams.identity.business_details`, and `v2.core.AccountUpdateParams.identity.business_details`
5586
* Add support for `externalAmount` on `v2.moneymanagement.ReceivedCredit` and `v2.moneymanagement.ReceivedDebit`
5687

57-
## 30.2.0-beta.1 - 2025-10-29
58-
59-
This release changes the pinned API version to `2025-10-29.preview`.
60-
61-
* [#2092](https://github.com/stripe/stripe-java/pull/2092) Update generated code for beta
62-
* Add support for `cryptoStorer` on `v2.core.AccountUpdateParams.identity.attestations.terms_of_service`
63-
* [#2081](https://github.com/stripe/stripe-java/pull/2081) Update generated code for beta
64-
* Add support for `update` method on resource `v2.moneymanagement.FinancialAccount`
65-
* Add support for `confirm_microdeposits`, `list`, and `send_microdeposits` methods on resource `v2.core.vault.UsBankAccount`
66-
* Add support for `list` method on resource `v2.core.vault.GbBankAccount`
67-
* Add support for `paymentPortalUrl` on `Charge.payment_method_details.rechnung`, `PaymentAttemptRecord.payment_method_details.rechnung`, and `PaymentRecord.payment_method_details.rechnung`
68-
* Add support for `taxIdElement` on `CustomerSession.components` and `CustomerSessionCreateParams.components`
69-
* Add support for `startingAfter` on `PaymentAttemptRecordListParams`
70-
* Add support for `reference` on `PaymentIntentAmountDetailsLineItem.payment_method_options.klarna`, `PaymentIntentCaptureParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentConfirmParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentCreateParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentIncrementAuthorizationParams.amount_details.line_items[].payment_method_options.klarna`, and `PaymentIntentUpdateParams.amount_details.line_items[].payment_method_options.klarna`
71-
* Add support for `subscriptionReference` on `PaymentIntentAmountDetailsLineItem.payment_method_options.klarna`
72-
* Add support for `closed` on `v2.core.AccountListParams` and `v2.core.Account`
73-
* Add support for `usd` on `v2.core.Account.configuration.storer.capabilities.holds_currencies`, `v2.core.AccountCreateParams.configuration.storer.capabilities.holds_currencies`, and `v2.core.AccountUpdateParams.configuration.storer.capabilities.holds_currencies`
74-
* Add support for `representativeDeclaration` on `v2.core.Account.identity.attestations`, `v2.core.AccountCreateParams.identity.attestations`, and `v2.core.AccountUpdateParams.identity.attestations`
75-
* Add support for `verification` on `v2.core.vault.UsBankAccount`
76-
* Add support for new value `payment_method` on enums `v2.core.AccountCreateParams.configuration.customer.automatic_indirect_tax.locationSource` and `v2.core.AccountUpdateParams.configuration.customer.automatic_indirect_tax.locationSource`
77-
* Add support for new values `application_custom` and `application_express` on enums `v2.core.AccountCreateParams.defaults.responsibilities.feesCollector` and `v2.core.AccountUpdateParams.defaults.responsibilities.feesCollector`
78-
* Add support for `v1Id` on `EventsV2MoneyManagementTransactionCreatedEvent`
79-
* Remove support for thin event `V2BillingBillSettingUpdatedEvent` with related object `v2.billing.BillSetting`
80-
* [#2080](https://github.com/stripe/stripe-java/pull/2080) Update generated code for beta
81-
* Add support for `lastSeenAt` on `terminal.Reader`
82-
* Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.apiVersion`
83-
8488
## 30.1.0 - 2025-10-29
8589

8690
This release changes the pinned API version to `2025-10-29.clover`.

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2106
1+
v2111
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.Event;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunCreatedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) 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.Event.RelatedObject;
7+
import com.stripe.model.v2.core.EventNotification;
8+
import com.stripe.model.v2.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunCreatedEventNotification 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2ReportingReportRunCreatedEvent fetchEvent() throws StripeException {
25+
return (V2ReportingReportRunCreatedEvent) 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.Event;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunFailedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) 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.Event.RelatedObject;
7+
import com.stripe.model.v2.core.EventNotification;
8+
import com.stripe.model.v2.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunFailedEventNotification 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2ReportingReportRunFailedEvent fetchEvent() throws StripeException {
25+
return (V2ReportingReportRunFailedEvent) 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.Event;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunSucceededEvent 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) 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.Event.RelatedObject;
7+
import com.stripe.model.v2.core.EventNotification;
8+
import com.stripe.model.v2.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunSucceededEventNotification 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
/** Retrieve the corresponding full event from the Stripe API. */
23+
@Override
24+
public V2ReportingReportRunSucceededEvent fetchEvent() throws StripeException {
25+
return (V2ReportingReportRunSucceededEvent) 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.Event;
7+
import com.stripe.model.v2.core.Event.RelatedObject;
8+
import com.stripe.model.v2.reporting.ReportRun;
9+
import lombok.Getter;
10+
11+
@Getter
12+
public final class V2ReportingReportRunUpdatedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
20+
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
21+
}
22+
}

0 commit comments

Comments
 (0)