diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index eea9a87371f..8d0021ccb7a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -1bc3aceb31e76e2eb165647acb28d8801c4b6911 \ No newline at end of file +50fd01835dd5086df1533348c6688b14b9e50316 \ No newline at end of file diff --git a/src/main/java/com/stripe/events/V1CustomerDiscountCreatedEvent.java b/src/main/java/com/stripe/events/V1CustomerDiscountCreatedEvent.java deleted file mode 100644 index 31ca58cec0a..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerDiscountCreatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.Discount; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.Event.RelatedObject; -import lombok.Getter; - -@Getter -public final class V1CustomerDiscountCreatedEvent 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 Discount fetchRelatedObject() throws StripeException { - return (Discount) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V1CustomerDiscountCreatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerDiscountCreatedEventNotification.java deleted file mode 100644 index 5eb71b5124a..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerDiscountCreatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// 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.Discount; -import com.stripe.model.v2.Event.RelatedObject; -import com.stripe.model.v2.EventNotification; -import lombok.Getter; - -@Getter -public final class V1CustomerDiscountCreatedEventNotification 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 Discount fetchRelatedObject() throws StripeException { - return (Discount) super.fetchRelatedObject(this.relatedObject); - } - /** Retrieve the corresponding full event from the Stripe API. */ - @Override - public V1CustomerDiscountCreatedEvent fetchEvent() throws StripeException { - return (V1CustomerDiscountCreatedEvent) super.fetchEvent(); - } -} diff --git a/src/main/java/com/stripe/events/V1CustomerDiscountDeletedEvent.java b/src/main/java/com/stripe/events/V1CustomerDiscountDeletedEvent.java deleted file mode 100644 index 79ec69657d8..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerDiscountDeletedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.Discount; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.Event.RelatedObject; -import lombok.Getter; - -@Getter -public final class V1CustomerDiscountDeletedEvent 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 Discount fetchRelatedObject() throws StripeException { - return (Discount) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V1CustomerDiscountDeletedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerDiscountDeletedEventNotification.java deleted file mode 100644 index 0116d935110..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerDiscountDeletedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// 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.Discount; -import com.stripe.model.v2.Event.RelatedObject; -import com.stripe.model.v2.EventNotification; -import lombok.Getter; - -@Getter -public final class V1CustomerDiscountDeletedEventNotification 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 Discount fetchRelatedObject() throws StripeException { - return (Discount) super.fetchRelatedObject(this.relatedObject); - } - /** Retrieve the corresponding full event from the Stripe API. */ - @Override - public V1CustomerDiscountDeletedEvent fetchEvent() throws StripeException { - return (V1CustomerDiscountDeletedEvent) super.fetchEvent(); - } -} diff --git a/src/main/java/com/stripe/events/V1CustomerDiscountUpdatedEvent.java b/src/main/java/com/stripe/events/V1CustomerDiscountUpdatedEvent.java deleted file mode 100644 index af5741883f1..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerDiscountUpdatedEvent.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.Discount; -import com.stripe.model.v2.Event; -import com.stripe.model.v2.Event.RelatedObject; -import lombok.Getter; - -@Getter -public final class V1CustomerDiscountUpdatedEvent 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 Discount fetchRelatedObject() throws StripeException { - return (Discount) super.fetchRelatedObject(this.relatedObject); - } -} diff --git a/src/main/java/com/stripe/events/V1CustomerDiscountUpdatedEventNotification.java b/src/main/java/com/stripe/events/V1CustomerDiscountUpdatedEventNotification.java deleted file mode 100644 index 043d32ed986..00000000000 --- a/src/main/java/com/stripe/events/V1CustomerDiscountUpdatedEventNotification.java +++ /dev/null @@ -1,27 +0,0 @@ -// 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.Discount; -import com.stripe.model.v2.Event.RelatedObject; -import com.stripe.model.v2.EventNotification; -import lombok.Getter; - -@Getter -public final class V1CustomerDiscountUpdatedEventNotification 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 Discount fetchRelatedObject() throws StripeException { - return (Discount) super.fetchRelatedObject(this.relatedObject); - } - /** Retrieve the corresponding full event from the Stripe API. */ - @Override - public V1CustomerDiscountUpdatedEvent fetchEvent() throws StripeException { - return (V1CustomerDiscountUpdatedEvent) super.fetchEvent(); - } -} diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java index 5a39f8e77d7..88afecf4828 100644 --- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java @@ -23,7 +23,6 @@ public final class EventDataClassLookup { classLookup.put("coupon", com.stripe.model.Coupon.class); classLookup.put("credit_note", com.stripe.model.CreditNote.class); classLookup.put("customer", com.stripe.model.Customer.class); - classLookup.put("discount", com.stripe.model.Discount.class); classLookup.put("dispute", com.stripe.model.Dispute.class); classLookup.put("file", com.stripe.model.File.class); classLookup.put("invoice", com.stripe.model.Invoice.class); @@ -272,12 +271,6 @@ public final class EventDataClassLookup { eventClassLookup.put("v1.credit_note.voided", com.stripe.events.V1CreditNoteVoidedEvent.class); eventClassLookup.put("v1.customer.created", com.stripe.events.V1CustomerCreatedEvent.class); eventClassLookup.put("v1.customer.deleted", com.stripe.events.V1CustomerDeletedEvent.class); - eventClassLookup.put( - "v1.customer.discount.created", com.stripe.events.V1CustomerDiscountCreatedEvent.class); - eventClassLookup.put( - "v1.customer.discount.deleted", com.stripe.events.V1CustomerDiscountDeletedEvent.class); - eventClassLookup.put( - "v1.customer.discount.updated", com.stripe.events.V1CustomerDiscountUpdatedEvent.class); eventClassLookup.put( "v1.customer.subscription.created", com.stripe.events.V1CustomerSubscriptionCreatedEvent.class); diff --git a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java index df8f0b2773e..7615b39f85d 100644 --- a/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventNotificationClassLookup.java @@ -114,15 +114,6 @@ public final class EventNotificationClassLookup { "v1.customer.created", com.stripe.events.V1CustomerCreatedEventNotification.class); eventClassLookup.put( "v1.customer.deleted", com.stripe.events.V1CustomerDeletedEventNotification.class); - eventClassLookup.put( - "v1.customer.discount.created", - com.stripe.events.V1CustomerDiscountCreatedEventNotification.class); - eventClassLookup.put( - "v1.customer.discount.deleted", - com.stripe.events.V1CustomerDiscountDeletedEventNotification.class); - eventClassLookup.put( - "v1.customer.discount.updated", - com.stripe.events.V1CustomerDiscountUpdatedEventNotification.class); eventClassLookup.put( "v1.customer.subscription.created", com.stripe.events.V1CustomerSubscriptionCreatedEventNotification.class);