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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
56689dcbcaa4c7ce6bf1b51a5add451972e0689c
6d15a7f20cb77c2c22091a30e499cb89d7e3248c
58 changes: 31 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,37 @@
## 30.2.1-alpha.1 - 2025-11-05
* Updated publishing configuration. No changes to SDK content.

## 30.2.0 - 2025-11-05
* [#2102](https://github.com/stripe/stripe-java/pull/2102) Update generated code
* 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`

## 30.2.0-beta.1 - 2025-10-29

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

* [#2092](https://github.com/stripe/stripe-java/pull/2092) Update generated code for beta
* Add support for `cryptoStorer` on `v2.core.AccountUpdateParams.identity.attestations.terms_of_service`
* [#2081](https://github.com/stripe/stripe-java/pull/2081) Update generated code for beta
* Add support for `update` method on resource `v2.moneymanagement.FinancialAccount`
* Add support for `confirm_microdeposits`, `list`, and `send_microdeposits` methods on resource `v2.core.vault.UsBankAccount`
* Add support for `list` method on resource `v2.core.vault.GbBankAccount`
* Add support for `paymentPortalUrl` on `Charge.payment_method_details.rechnung`, `PaymentAttemptRecord.payment_method_details.rechnung`, and `PaymentRecord.payment_method_details.rechnung`
* Add support for `taxIdElement` on `CustomerSession.components` and `CustomerSessionCreateParams.components`
* Add support for `startingAfter` on `PaymentAttemptRecordListParams`
* 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`
* Add support for `subscriptionReference` on `PaymentIntentAmountDetailsLineItem.payment_method_options.klarna`
* Add support for `closed` on `v2.core.AccountListParams` and `v2.core.Account`
* 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`
* Add support for `representativeDeclaration` on `v2.core.Account.identity.attestations`, `v2.core.AccountCreateParams.identity.attestations`, and `v2.core.AccountUpdateParams.identity.attestations`
* Add support for `verification` on `v2.core.vault.UsBankAccount`
* 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`
* 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`
* Add support for `v1Id` on `EventsV2MoneyManagementTransactionCreatedEvent`
* Remove support for thin event `V2BillingBillSettingUpdatedEvent` with related object `v2.billing.BillSetting`
* [#2080](https://github.com/stripe/stripe-java/pull/2080) Update generated code for beta
* Add support for `lastSeenAt` on `terminal.Reader`
* Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.apiVersion`

## 30.2.0-alpha.2 - 2025-10-30
* [#2099](https://github.com/stripe/stripe-java/pull/2099) Update generated code for private-preview
* Change `delegatedcheckout.RequestedSessionUpdateParams.line_item_details[].quantity` to be required
Expand Down Expand Up @@ -54,33 +85,6 @@
* Add support for `complianceScreeningDescription` on `v2.core.Account.identity.business_details`, `v2.core.AccountCreateParams.identity.business_details`, and `v2.core.AccountUpdateParams.identity.business_details`
* Add support for `externalAmount` on `v2.moneymanagement.ReceivedCredit` and `v2.moneymanagement.ReceivedDebit`

## 30.2.0-beta.1 - 2025-10-29

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

* [#2092](https://github.com/stripe/stripe-java/pull/2092) Update generated code for beta
* Add support for `cryptoStorer` on `v2.core.AccountUpdateParams.identity.attestations.terms_of_service`
* [#2081](https://github.com/stripe/stripe-java/pull/2081) Update generated code for beta
* Add support for `update` method on resource `v2.moneymanagement.FinancialAccount`
* Add support for `confirm_microdeposits`, `list`, and `send_microdeposits` methods on resource `v2.core.vault.UsBankAccount`
* Add support for `list` method on resource `v2.core.vault.GbBankAccount`
* Add support for `paymentPortalUrl` on `Charge.payment_method_details.rechnung`, `PaymentAttemptRecord.payment_method_details.rechnung`, and `PaymentRecord.payment_method_details.rechnung`
* Add support for `taxIdElement` on `CustomerSession.components` and `CustomerSessionCreateParams.components`
* Add support for `startingAfter` on `PaymentAttemptRecordListParams`
* 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`
* Add support for `subscriptionReference` on `PaymentIntentAmountDetailsLineItem.payment_method_options.klarna`
* Add support for `closed` on `v2.core.AccountListParams` and `v2.core.Account`
* 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`
* Add support for `representativeDeclaration` on `v2.core.Account.identity.attestations`, `v2.core.AccountCreateParams.identity.attestations`, and `v2.core.AccountUpdateParams.identity.attestations`
* Add support for `verification` on `v2.core.vault.UsBankAccount`
* 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`
* 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`
* Add support for `v1Id` on `EventsV2MoneyManagementTransactionCreatedEvent`
* Remove support for thin event `V2BillingBillSettingUpdatedEvent` with related object `v2.billing.BillSetting`
* [#2080](https://github.com/stripe/stripe-java/pull/2080) Update generated code for beta
* Add support for `lastSeenAt` on `terminal.Reader`
* Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.apiVersion`

## 30.1.0 - 2025-10-29

This release changes the pinned API version to `2025-10-29.clover`.
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2106
v2111
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.reporting.ReportRun;
import lombok.Getter;

@Getter
public final class V2ReportingReportRunCreatedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import com.stripe.model.v2.reporting.ReportRun;
import lombok.Getter;

@Getter
public final class V2ReportingReportRunCreatedEventNotification extends EventNotification {
@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 ReportRun fetchRelatedObject() throws StripeException {
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2ReportingReportRunCreatedEvent fetchEvent() throws StripeException {
return (V2ReportingReportRunCreatedEvent) 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.reporting.ReportRun;
import lombok.Getter;

@Getter
public final class V2ReportingReportRunFailedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import com.stripe.model.v2.reporting.ReportRun;
import lombok.Getter;

@Getter
public final class V2ReportingReportRunFailedEventNotification extends EventNotification {
@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 ReportRun fetchRelatedObject() throws StripeException {
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2ReportingReportRunFailedEvent fetchEvent() throws StripeException {
return (V2ReportingReportRunFailedEvent) 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.reporting.ReportRun;
import lombok.Getter;

@Getter
public final class V2ReportingReportRunSucceededEvent 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 ReportRun fetchRelatedObject() throws StripeException {
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import com.stripe.model.v2.reporting.ReportRun;
import lombok.Getter;

@Getter
public final class V2ReportingReportRunSucceededEventNotification extends EventNotification {
@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 ReportRun fetchRelatedObject() throws StripeException {
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2ReportingReportRunSucceededEvent fetchEvent() throws StripeException {
return (V2ReportingReportRunSucceededEvent) 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.reporting.ReportRun;
import lombok.Getter;

@Getter
public final class V2ReportingReportRunUpdatedEvent 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 ReportRun fetchRelatedObject() throws StripeException {
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import com.stripe.model.v2.reporting.ReportRun;
import lombok.Getter;

@Getter
public final class V2ReportingReportRunUpdatedEventNotification extends EventNotification {
@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 ReportRun fetchRelatedObject() throws StripeException {
return (ReportRun) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2ReportingReportRunUpdatedEvent fetchEvent() throws StripeException {
return (V2ReportingReportRunUpdatedEvent) super.fetchEvent();
}
}
5 changes: 5 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class Charge extends ApiResource implements MetadataStore<Charge>, BalanceTransactionSource {
/** Funds that are in transit and destined for another balance or another connected account. */
@SerializedName("allocated_funds")
TransitBalance allocatedFunds;

/**
* Amount intended to be collected by this payment. A positive integer representing how much to
* charge in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency
Expand Down Expand Up @@ -4383,6 +4387,7 @@ public void setDestinationObject(Account expandableObject) {
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(allocatedFunds, responseGetter);
trySetResponseGetter(application, responseGetter);
trySetResponseGetter(applicationFee, responseGetter);
trySetResponseGetter(balanceTransaction, responseGetter);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/stripe/model/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public final class EventDataClassLookup {
classLookup.put("topup", com.stripe.model.Topup.class);
classLookup.put("transfer", com.stripe.model.Transfer.class);
classLookup.put("transfer_reversal", com.stripe.model.TransferReversal.class);
classLookup.put("transit_balance", com.stripe.model.TransitBalance.class);
classLookup.put("webhook_endpoint", com.stripe.model.WebhookEndpoint.class);

classLookup.put("apps.secret", com.stripe.model.apps.Secret.class);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/InvoicePayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public static class Payment extends StripeObject {
/**
* Type of payment object associated with this invoice payment.
*
* <p>One of {@code charge}, or {@code payment_intent}.
* <p>One of {@code charge}, {@code payment_intent}, or {@code payment_record}.
*/
@SerializedName("type")
String type;
Expand Down
57 changes: 57 additions & 0 deletions src/main/java/com/stripe/model/TransitBalance.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// File generated from our OpenAPI spec
package com.stripe.model;

import com.google.gson.annotations.SerializedName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/** Funds that are in transit and destined for another balance or another connected account. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public class TransitBalance extends StripeObject {
@SerializedName("balance")
Balance balance;

/** Time at which the object was created. Measured in seconds since the Unix epoch. */
@SerializedName("created")
Long created;

/**
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>,
* in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
*/
@SerializedName("currency")
String currency;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
*/
@SerializedName("livemode")
Boolean livemode;

/**
* String representing the object's type. Objects of the same type share the same value.
*
* <p>Equal to {@code transit_balance}.
*/
@SerializedName("object")
String object;

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

@SerializedName("pending")
Long pending;
}
}
Loading