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 @@
2025-09-30.clover
577fcb57736b925392ea563c0284df9002c75ac9
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2028
v2099
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,6 +2,6 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2025-09-30.clover";
public static final String CURRENT = "2025-10-29.clover";
public static final String CURRENT_MAJOR = "clover";
}
24 changes: 24 additions & 0 deletions src/main/java/com/stripe/StripeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,18 @@ public com.stripe.service.MandateService mandates() {
return new com.stripe.service.MandateService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.paymentAttemptRecords() is deprecated, use
* StripeClient.v1().paymentAttemptRecords() instead. All functionality under it has been
* copied over to StripeClient.v1().paymentAttemptRecords(). 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.PaymentAttemptRecordService paymentAttemptRecords() {
return new com.stripe.service.PaymentAttemptRecordService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.paymentIntents() is deprecated, use StripeClient.v1().paymentIntents()
* instead. All functionality under it has been copied over to
Expand Down Expand Up @@ -601,6 +613,18 @@ public com.stripe.service.PaymentMethodService paymentMethods() {
return new com.stripe.service.PaymentMethodService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.paymentRecords() is deprecated, use StripeClient.v1().paymentRecords()
* instead. All functionality under it has been copied over to
* StripeClient.v1().paymentRecords(). 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.PaymentRecordService paymentRecords() {
return new com.stripe.service.PaymentRecordService(this.getResponseGetter());
}

/**
* @deprecated StripeClient.payouts() is deprecated, use StripeClient.v1().payouts() instead. All
* functionality under it has been copied over to StripeClient.v1().payouts(). See <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.stripe.model.StripeObject;
import com.stripe.net.StripeResponseGetter;

/** Information about the error that occurred. */
/** The temporary session token has expired. */
public final class TemporarySessionExpiredException extends ApiException {
private static final long serialVersionUID = 2L;

Expand Down
31 changes: 31 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,13 @@ public static class Company extends StripeObject {
@SerializedName("registration_date")
RegistrationDate registrationDate;

/**
* This hash is used to attest that the representative is authorized to act as the
* representative of their legal entity.
*/
@SerializedName("representative_declaration")
RepresentativeDeclaration representativeDeclaration;

/**
* The category identifying the legal structure of the company or legal entity. Also available
* for accounts where <a
Expand Down Expand Up @@ -1701,6 +1708,30 @@ public static class RegistrationDate extends StripeObject {
Long year;
}

/**
* For more details about RepresentativeDeclaration, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RepresentativeDeclaration extends StripeObject {
/** The Unix timestamp marking when the representative declaration attestation was made. */
@SerializedName("date")
Long date;

/** The IP address from which the representative declaration attestation was made. */
@SerializedName("ip")
String ip;

/**
* The user-agent string from the browser where the representative declaration attestation was
* made.
*/
@SerializedName("user_agent")
String userAgent;
}

/**
* For more details about Verification, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -2690,7 +2690,7 @@ public static class Crypto extends StripeObject {
/**
* The blockchain network that the transaction was sent on.
*
* <p>One of {@code base}, {@code ethereum}, or {@code polygon}.
* <p>One of {@code base}, {@code ethereum}, {@code polygon}, or {@code solana}.
*/
@SerializedName("network")
String network;
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,14 @@ public static class PaymentMethodPreview extends StripeObject {
* <p>One of {@code acss_debit}, {@code affirm}, {@code afterpay_clearpay}, {@code alipay},
* {@code alma}, {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code
* bancontact}, {@code billie}, {@code blik}, {@code boleto}, {@code card}, {@code
* card_present}, {@code cashapp}, {@code crypto}, {@code customer_balance}, {@code eps}, {@code
* fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, {@code interac_present}, {@code
* kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way},
* {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code
* oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal},
* {@code pix}, {@code promptpay}, {@code revolut_pay}, {@code samsung_pay}, {@code satispay},
* {@code sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account},
* {@code wechat_pay}, or {@code zip}.
* card_present}, {@code cashapp}, {@code crypto}, {@code custom}, {@code customer_balance},
* {@code eps}, {@code fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, {@code
* interac_present}, {@code kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code
* link}, {@code mb_way}, {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code
* nz_bank_account}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code
* paynow}, {@code paypal}, {@code pix}, {@code promptpay}, {@code revolut_pay}, {@code
* samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code sofort}, {@code swish}, {@code
* twint}, {@code us_bank_account}, {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/stripe/model/CreditNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -739,12 +739,20 @@ public static class Refund extends StripeObject {
@SerializedName("amount_refunded")
Long amountRefunded;

/** The PaymentRecord refund details associated with this credit note refund. */
@SerializedName("payment_record_refund")
PaymentRecordRefund paymentRecordRefund;

/** ID of the refund. */
@SerializedName("refund")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
ExpandableField<com.stripe.model.Refund> refund;

/** Type of the refund, one of {@code refund} or {@code payment_record_refund}. */
@SerializedName("type")
String type;

/** Get ID of expandable {@code refund} object. */
public String getRefund() {
return (this.refund != null) ? this.refund.getId() : null;
Expand All @@ -763,6 +771,23 @@ public void setRefundObject(com.stripe.model.Refund expandableObject) {
this.refund =
new ExpandableField<com.stripe.model.Refund>(expandableObject.getId(), expandableObject);
}

/**
* For more details about PaymentRecordRefund, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PaymentRecordRefund extends StripeObject {
/** ID of the payment record. */
@SerializedName("payment_record")
String paymentRecord;

/** ID of the refund group. */
@SerializedName("refund_group")
String refundGroup;
}
}

/**
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,15 @@ public static class Tax extends StripeObject {
@SerializedName("location")
Location location;

/**
* The tax calculation provider used for location resolution. Defaults to {@code stripe} when
* not using a <a href="https://stripe.com/tax/third-party-apps">third-party provider</a>.
*
* <p>One of {@code anrok}, {@code avalara}, {@code sphere}, or {@code stripe}.
*/
@SerializedName("provider")
String provider;

/**
* For more details about Location, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
149 changes: 149 additions & 0 deletions src/main/java/com/stripe/model/CustomerSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,17 @@ public static class Components extends StripeObject {
@SerializedName("buy_button")
BuyButton buyButton;

/** This hash contains whether the customer sheet is enabled and the features it supports. */
@SerializedName("customer_sheet")
CustomerSheet customerSheet;

/**
* This hash contains whether the mobile payment element is enabled and the features it
* supports.
*/
@SerializedName("mobile_payment_element")
MobilePaymentElement mobilePaymentElement;

/** This hash contains whether the Payment Element is enabled and the features it supports. */
@SerializedName("payment_element")
PaymentElement paymentElement;
Expand All @@ -167,6 +178,144 @@ public static class BuyButton extends StripeObject {
Boolean enabled;
}

/** This hash contains whether the customer sheet is enabled and the features it supports. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class CustomerSheet extends StripeObject {
/** Whether the customer sheet is enabled. */
@SerializedName("enabled")
Boolean enabled;

/** This hash defines whether the customer sheet supports certain features. */
@SerializedName("features")
Features features;

/** This hash contains the features the customer sheet supports. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* A list of <a
* href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay">{@code
* allow_redisplay}</a> values that controls which saved payment methods the customer sheet
* displays by filtering to only show payment methods with an {@code allow_redisplay} value
* that is present in this list.
*
* <p>If not specified, defaults to [&quot;always&quot;]. In order to display all saved
* payment methods, specify [&quot;always&quot;, &quot;limited&quot;,
* &quot;unspecified&quot;].
*/
@SerializedName("payment_method_allow_redisplay_filters")
List<String> paymentMethodAllowRedisplayFilters;

/**
* Controls whether the customer sheet displays the option to remove a saved payment
* method.&quot;
*
* <p>Allowing buyers to remove their saved payment methods impacts subscriptions that
* depend on that payment method. Removing the payment method detaches the <a
* href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer">{@code
* customer} object</a> from that <a
* href="https://docs.stripe.com/api/payment_methods">PaymentMethod</a>.
*
* <p>One of {@code disabled}, or {@code enabled}.
*/
@SerializedName("payment_method_remove")
String paymentMethodRemove;
}
}

/**
* This hash contains whether the mobile payment element is enabled and the features it
* supports.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class MobilePaymentElement extends StripeObject {
/** Whether the mobile payment element is enabled. */
@SerializedName("enabled")
Boolean enabled;

/** This hash defines whether the mobile payment element supports certain features. */
@SerializedName("features")
Features features;

/** This hash contains the features the mobile payment element supports. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* A list of <a
* href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay">{@code
* allow_redisplay}</a> values that controls which saved payment methods the mobile payment
* element displays by filtering to only show payment methods with an {@code
* allow_redisplay} value that is present in this list.
*
* <p>If not specified, defaults to [&quot;always&quot;]. In order to display all saved
* payment methods, specify [&quot;always&quot;, &quot;limited&quot;,
* &quot;unspecified&quot;].
*/
@SerializedName("payment_method_allow_redisplay_filters")
List<String> paymentMethodAllowRedisplayFilters;

/**
* Controls whether or not the mobile payment element shows saved payment methods.
*
* <p>One of {@code disabled}, or {@code enabled}.
*/
@SerializedName("payment_method_redisplay")
String paymentMethodRedisplay;

/**
* Controls whether the mobile payment element displays the option to remove a saved payment
* method.&quot;
*
* <p>Allowing buyers to remove their saved payment methods impacts subscriptions that
* depend on that payment method. Removing the payment method detaches the <a
* href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer">{@code
* customer} object</a> from that <a
* href="https://docs.stripe.com/api/payment_methods">PaymentMethod</a>.
*
* <p>One of {@code disabled}, or {@code enabled}.
*/
@SerializedName("payment_method_remove")
String paymentMethodRemove;

/**
* Controls whether the mobile payment element displays a checkbox offering to save a new
* payment method.
*
* <p>If a customer checks the box, the <a
* href="https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay">{@code
* allow_redisplay}</a> value on the PaymentMethod is set to {@code 'always'} at
* confirmation time. For PaymentIntents, the <a
* href="https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage">{@code
* setup_future_usage}</a> value is also set to the value defined in {@code
* payment_method_save_usage}.
*
* <p>One of {@code disabled}, or {@code enabled}.
*/
@SerializedName("payment_method_save")
String paymentMethodSave;

/**
* Allows overriding the value of allow_override when saving a new payment method when
* payment_method_save is set to disabled. Use values: &quot;always&quot;,
* &quot;limited&quot;, or &quot;unspecified&quot;.
*
* <p>If not specified, defaults to {@code nil} (no override value).
*
* <p>One of {@code always}, {@code limited}, or {@code unspecified}.
*/
@SerializedName("payment_method_save_allow_redisplay_override")
String paymentMethodSaveAllowRedisplayOverride;
}
}

/** This hash contains whether the Payment Element is enabled and the features it supports. */
@Getter
@Setter
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class Event extends ApiResource implements HasId {
* {@code account.external_account.created}, {@code account.external_account.deleted}, {@code
* account.external_account.updated}, {@code account.updated}, {@code application_fee.created},
* {@code application_fee.refund.updated}, {@code application_fee.refunded}, {@code
* balance.available}, {@code billing.alert.triggered}, {@code
* balance.available}, {@code balance_settings.updated}, {@code billing.alert.triggered}, {@code
* billing_portal.configuration.created}, {@code billing_portal.configuration.updated}, {@code
* billing_portal.session.created}, {@code capability.updated}, {@code
* cash_balance.funds_available}, {@code charge.captured}, {@code charge.dispute.closed}, {@code
Expand Down Expand Up @@ -141,7 +141,8 @@ public class Event extends ApiResource implements HasId {
* identity.verification_session.verified}, {@code invoice.created}, {@code invoice.deleted},
* {@code invoice.finalization_failed}, {@code invoice.finalized}, {@code
* invoice.marked_uncollectible}, {@code invoice.overdue}, {@code invoice.overpaid}, {@code
* invoice.paid}, {@code invoice.payment_action_required}, {@code invoice.payment_failed}, {@code
* invoice.paid}, {@code invoice.payment_action_required}, {@code
* invoice.payment_attempt_required}, {@code invoice.payment_failed}, {@code
* invoice.payment_succeeded}, {@code invoice.sent}, {@code invoice.upcoming}, {@code
* invoice.updated}, {@code invoice.voided}, {@code invoice.will_be_due}, {@code
* invoice_payment.paid}, {@code invoiceitem.created}, {@code invoiceitem.deleted}, {@code
Expand Down
Loading
Loading