Skip to content
Closed
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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
768c16b55352ce5cc78d27c0bbd7448263942018
a054f45b8f1a2bb50e950d2012fd3b3b7dec4512
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.Account;
import com.stripe.model.v2.Event;
import com.stripe.model.v2.billing.Cadence;
import lombok.Getter;

@Getter
public final class V2BillingCadenceErroredEvent extends Event {
public final class V1AccountUpdatedEvent 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 Cadence fetchRelatedObject() throws StripeException {
return (Cadence) super.fetchRelatedObject(this.relatedObject);
public Account fetchRelatedObject() throws StripeException {
return (Account) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.ApplicationFee;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ApplicationFeeCreatedEvent 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 ApplicationFee fetchRelatedObject() throws StripeException {
return (ApplicationFee) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.ApplicationFee;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ApplicationFeeRefundedEvent 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 ApplicationFee fetchRelatedObject() throws StripeException {
return (ApplicationFee) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.billingportal.Configuration;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1BillingPortalConfigurationCreatedEvent 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 Configuration fetchRelatedObject() throws StripeException {
return (Configuration) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.billingportal.Configuration;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1BillingPortalConfigurationUpdatedEvent 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 Configuration fetchRelatedObject() throws StripeException {
return (Configuration) super.fetchRelatedObject(this.relatedObject);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/events/V1CapabilityUpdatedEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Capability;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1CapabilityUpdatedEvent 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 Capability fetchRelatedObject() throws StripeException {
return (Capability) super.fetchRelatedObject(this.relatedObject);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/events/V1ChargeCapturedEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Charge;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeCapturedEvent 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 Charge fetchRelatedObject() throws StripeException {
return (Charge) super.fetchRelatedObject(this.relatedObject);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/events/V1ChargeDisputeClosedEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Dispute;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeDisputeClosedEvent 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 Dispute fetchRelatedObject() throws StripeException {
return (Dispute) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Dispute;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeDisputeCreatedEvent 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 Dispute fetchRelatedObject() throws StripeException {
return (Dispute) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Dispute;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeDisputeFundsReinstatedEvent 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 Dispute fetchRelatedObject() throws StripeException {
return (Dispute) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Dispute;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeDisputeFundsWithdrawnEvent 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 Dispute fetchRelatedObject() throws StripeException {
return (Dispute) super.fetchRelatedObject(this.relatedObject);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Dispute;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeDisputeUpdatedEvent 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 Dispute fetchRelatedObject() throws StripeException {
return (Dispute) super.fetchRelatedObject(this.relatedObject);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/events/V1ChargeExpiredEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Charge;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeExpiredEvent 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 Charge fetchRelatedObject() throws StripeException {
return (Charge) super.fetchRelatedObject(this.relatedObject);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/events/V1ChargeFailedEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Charge;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeFailedEvent 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 Charge fetchRelatedObject() throws StripeException {
return (Charge) super.fetchRelatedObject(this.relatedObject);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/events/V1ChargePendingEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Charge;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargePendingEvent 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 Charge fetchRelatedObject() throws StripeException {
return (Charge) super.fetchRelatedObject(this.relatedObject);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/events/V1ChargeRefundUpdatedEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Refund;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeRefundUpdatedEvent 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 Refund fetchRelatedObject() throws StripeException {
return (Refund) super.fetchRelatedObject(this.relatedObject);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/stripe/events/V1ChargeRefundedEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.Charge;
import com.stripe.model.v2.Event;
import lombok.Getter;

@Getter
public final class V1ChargeRefundedEvent 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 Charge fetchRelatedObject() throws StripeException {
return (Charge) super.fetchRelatedObject(this.relatedObject);
}
}
Loading
Loading