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 @@
e10daa4ed23a4fe87d6ea60836226446e042fdd3
3c01247cc15d88decd374e4f4af77d05388fb986
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2186
v2189
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,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2026-01-28.preview";
public static final String CURRENT = "2026-03-04.preview";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// 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.billing.RateCardCustomPricingUnitOverageRate;
import com.stripe.model.v2.core.Event;
import com.stripe.model.v2.core.Event.RelatedObject;
import java.time.Instant;
import lombok.Getter;
import lombok.Setter;

@Getter
public final class V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent extends Event {
/** Data for the v2.billing.rate_card_custom_pricing_unit_overage_rate.created event. */
@SerializedName("data")
V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent.EventData data;

@Getter
@Setter
public static final class EventData {
/** Timestamp of when the object was created. */
@SerializedName("created")
Instant created;
/** The ID of the custom pricing unit this overage rate applies to. */
@SerializedName("custom_pricing_unit")
String customPricingUnit;
/** The ID of the RateCard which this custom pricing unit overage rate belongs to. */
@SerializedName("rate_card")
String rateCard;
/** The ID of the RateCard Version when the custom pricing unit overage rate was created. */
@SerializedName("rate_card_version")
String rateCardVersion;
}

@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 RateCardCustomPricingUnitOverageRate fetchRelatedObject() throws StripeException {
return (RateCardCustomPricingUnitOverageRate) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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.billing.RateCardCustomPricingUnitOverageRate;
import com.stripe.model.v2.core.Event.RelatedObject;
import com.stripe.model.v2.core.EventNotification;
import lombok.Getter;

@Getter
public final class V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification
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 RateCardCustomPricingUnitOverageRate fetchRelatedObject() throws StripeException {
return (RateCardCustomPricingUnitOverageRate) super.fetchRelatedObject(this.relatedObject);
}
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent fetchEvent()
throws StripeException {
return (V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public static final class EventData {
/**
* Open Enum. The capability which had its status updated.
*
* <p>One of {@code financial_addressses.bank_accounts}, {@code
* financial_addressses.crypto_wallets}, {@code holds_currencies.eur}, {@code
* <p>One of {@code consumer.holds_currencies.usd}, {@code financial_addressses.bank_accounts},
* {@code financial_addressses.crypto_wallets}, {@code holds_currencies.eur}, {@code
* holds_currencies.gbp}, {@code holds_currencies.usd}, {@code holds_currencies.usdc}, {@code
* inbound_transfers.bank_accounts}, {@code outbound_payments.bank_accounts}, {@code
* outbound_payments.cards}, {@code outbound_payments.crypto_wallets}, {@code
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.model.v2.core.Event;

public final class V2IamStripeAccessGrantApprovedEvent extends Event {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.EventNotification;

public final class V2IamStripeAccessGrantApprovedEventNotification extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2IamStripeAccessGrantApprovedEvent fetchEvent() throws StripeException {
return (V2IamStripeAccessGrantApprovedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.model.v2.core.Event;

public final class V2IamStripeAccessGrantCanceledEvent extends Event {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.EventNotification;

public final class V2IamStripeAccessGrantCanceledEventNotification extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2IamStripeAccessGrantCanceledEvent fetchEvent() throws StripeException {
return (V2IamStripeAccessGrantCanceledEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.model.v2.core.Event;

public final class V2IamStripeAccessGrantDeniedEvent extends Event {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.EventNotification;

public final class V2IamStripeAccessGrantDeniedEventNotification extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2IamStripeAccessGrantDeniedEvent fetchEvent() throws StripeException {
return (V2IamStripeAccessGrantDeniedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.model.v2.core.Event;

public final class V2IamStripeAccessGrantRemovedEvent extends Event {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.EventNotification;

public final class V2IamStripeAccessGrantRemovedEventNotification extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2IamStripeAccessGrantRemovedEvent fetchEvent() throws StripeException {
return (V2IamStripeAccessGrantRemovedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.model.v2.core.Event;

public final class V2IamStripeAccessGrantRequestedEvent extends Event {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.EventNotification;

public final class V2IamStripeAccessGrantRequestedEventNotification extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2IamStripeAccessGrantRequestedEvent fetchEvent() throws StripeException {
return (V2IamStripeAccessGrantRequestedEvent) super.fetchEvent();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.model.v2.core.Event;

public final class V2IamStripeAccessGrantUpdatedEvent extends Event {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec
package com.stripe.events;

import com.stripe.exception.StripeException;
import com.stripe.model.v2.core.EventNotification;

public final class V2IamStripeAccessGrantUpdatedEventNotification extends EventNotification {
/** Retrieve the corresponding full event from the Stripe API. */
@Override
public V2IamStripeAccessGrantUpdatedEvent fetchEvent() throws StripeException {
return (V2IamStripeAccessGrantUpdatedEvent) super.fetchEvent();
}
}
39 changes: 39 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -2599,6 +2599,9 @@ public static class Settings extends StripeObject {
@SerializedName("sepa_debit_payments")
SepaDebitPayments sepaDebitPayments;

@SerializedName("smart_disputes")
SmartDisputes smartDisputes;

@SerializedName("tax_forms")
TaxForms taxForms;

Expand Down Expand Up @@ -2930,6 +2933,13 @@ public void setDefaultAccountTaxIdObjects(List<TaxId> objs) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Payments extends StripeObject {
/**
* When enabled, the customer of this Account will receive an email receipt when their payment
* is successful. If this parameter is not set, the default value is {@code false}.
*/
@SerializedName("email_customers_on_successful_payment")
Boolean emailCustomersOnSuccessfulPayment;

/**
* The default text that appears on credit card statements when a charge is made. This field
* prefixes any dynamic {@code statement_descriptor} specified on the charge.
Expand Down Expand Up @@ -3155,6 +3165,35 @@ public static class SepaDebitPayments extends StripeObject {
String creditorId;
}

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

/**
* For more details about AutoRespond, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutoRespond extends StripeObject {
/** The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'. */
@SerializedName("preference")
String preference;

/** The effective value for auto-respond. Can be 'on' or 'off'. */
@SerializedName("value")
String value;
}
}

/**
* For more details about TaxForms, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/BalanceTransfer.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public class BalanceTransfer 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
Loading
Loading