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 CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e65e48569f6dfad2d5f1b58018017856520c3ae6
273184f052dd3c191b1993098365d0c2437d2cb4
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2186
v2204
4 changes: 2 additions & 2 deletions 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 = "2026-02-25.clover";
public static final String CURRENT_MAJOR = "clover";
public static final String CURRENT = "2026-03-25.dahlia";
public static final String CURRENT_MAJOR = "dahlia";
}
3 changes: 3 additions & 0 deletions src/main/java/com/stripe/exception/StripeException.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ public static StripeException parseV2Exception(
StripeResponseGetter responseGetter) {
switch (type) {
// The beginning of the section generated from our OpenAPI spec
case "rate_limit":
return com.stripe.exception.RateLimitException.parse(
body, statusCode, requestId, responseGetter);
case "temporary_session_expired":
return com.stripe.exception.TemporarySessionExpiredException.parse(
body, statusCode, requestId, responseGetter);
Expand Down
15 changes: 14 additions & 1 deletion src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
import lombok.Setter;

/**
* This is an object representing a Stripe account. You can retrieve it to see properties on the
* For new integrations, we recommend using the <a
* href="https://stripe.com/api/v2/core/accounts">Accounts v2 API</a>, in place of /v1/accounts and
* /v1/customers to represent a user.
*
* <p>This is an object representing a Stripe account. You can retrieve it to see properties on the
* account like its current requirements or if the account is enabled to make live charges or
* receive payouts.
*
Expand Down Expand Up @@ -1375,6 +1379,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("twint_payments")
String twintPayments;

/**
* The status of the upi payments capability of the account, or whether the account can directly
* process upi charges.
*
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
*/
@SerializedName("upi_payments")
String upiPayments;

/**
* The status of the US bank account ACH payments capability of the account, or whether the
* account can directly process US bank account charges.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public class AccountSession extends ApiResource {
Long expiresAt;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/ApplePayDomain.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public class ApplePayDomain extends ApiResource implements HasId {
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/ApplicationFee.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public class ApplicationFee extends ApiResource implements BalanceTransactionSou
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public class Balance extends ApiResource {
Issuing issuing;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/CashBalance.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class CashBalance extends ApiResource {
String customerAccount;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
23 changes: 20 additions & 3 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public class Charge extends ApiResource implements MetadataStore<Charge>, Balanc
Level3 level3;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down Expand Up @@ -1319,6 +1319,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("type")
String type;

@SerializedName("upi")
Upi upi;

@SerializedName("us_bank_account")
UsBankAccount usBankAccount;

Expand Down Expand Up @@ -2725,7 +2728,8 @@ public static class Crypto extends StripeObject {
/**
* The blockchain network that the transaction was sent on.
*
* <p>One of {@code base}, {@code ethereum}, {@code polygon}, or {@code solana}.
* <p>One of {@code base}, {@code ethereum}, {@code polygon}, {@code solana}, or {@code
* tempo}.
*/
@SerializedName("network")
String network;
Expand Down Expand Up @@ -3999,6 +4003,19 @@ public static class Swish extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Twint extends StripeObject {}

/**
* For more details about Upi, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Upi extends StripeObject {
/** Customer's unique Virtual Payment Address. */
@SerializedName("vpa")
String vpa;
}

/**
* For more details about UsBankAccount, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
22 changes: 19 additions & 3 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public class ConfirmationToken extends ApiResource implements HasId {
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down Expand Up @@ -455,11 +455,14 @@ public static class PaymentMethodPreview extends StripeObject {
* nz_bank_account}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code
* paynow}, {@code paypal}, {@code payto}, {@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}.
* {@code twint}, {@code upi}, {@code us_bank_account}, {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;

@SerializedName("upi")
Upi upi;

@SerializedName("us_bank_account")
UsBankAccount usBankAccount;

Expand Down Expand Up @@ -2289,6 +2292,19 @@ public static class Swish extends StripeObject {}
@EqualsAndHashCode(callSuper = false)
public static class Twint extends StripeObject {}

/**
* For more details about Upi, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Upi extends StripeObject {
/** Customer's unique Virtual Payment Address. */
@SerializedName("vpa")
String vpa;
}

/**
* For more details about UsBankAccount, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public class ConnectCollectionTransfer extends StripeObject implements BalanceTr
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/model/Coupon.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* href="https://api.stripe.com#invoices">invoices</a>, <a
* href="https://docs.stripe.com/api/checkout/sessions">checkout sessions</a>, <a
* href="https://api.stripe.com#quotes">quotes</a>, and more. Coupons do not work with conventional
* one-off <a href="https://api.stripe.com#create_charge">charges</a> or <a
* one-off <a href="https://stripe.com/api/charges/create">charges</a> or <a
* href="https://docs.stripe.com/api/payment_intents">payment intents</a>.
*/
@Getter
Expand Down Expand Up @@ -88,8 +88,8 @@ public class Coupon extends ApiResource implements HasId, MetadataStore<Coupon>
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/CreditNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore<Cred
CreditNoteLineItemCollection lines;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
13 changes: 11 additions & 2 deletions src/main/java/com/stripe/model/CreditNoteLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.stripe.net.ApiResource;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
Expand Down Expand Up @@ -47,12 +48,20 @@ public class CreditNoteLineItem extends StripeObject implements HasId {
String invoiceLineItem;

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

/**
* Set of <a href="https://docs.stripe.com/api/metadata">key-value pairs</a> that you can attach
* to an object. This can be useful for storing additional information about the object in a
* structured format.
*/
@SerializedName("metadata")
Map<String, String> metadata;

/**
* String representing the object's type. Objects of the same type share the same value.
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ public class Customer extends ApiResource implements HasId, MetadataStore<Custom
InvoiceSettings invoiceSettings;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public class CustomerBalanceTransaction extends ApiResource
ExpandableField<Invoice> invoice;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public class CustomerCashBalanceTransaction extends StripeObject
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/CustomerSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public class CustomerSession extends ApiResource {
Long expiresAt;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public class Dispute extends ApiResource
Boolean isChargeRefundable;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/EphemeralKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public class EphemeralKey extends ApiResource implements HasId {
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public class Event extends ApiResource implements HasId {
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/FileLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public class FileLink extends ApiResource implements HasId, MetadataStore<FileLi
String id;

/**
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
* object exists in test mode.
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
*/
@SerializedName("livemode")
Boolean livemode;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/FundingInstructions.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class FundingInstructions extends StripeObject {
String fundingType;

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