Class UnknownEventNotification

java.lang.Object
com.stripe.model.v2.core.EventNotification
com.stripe.events.UnknownEventNotification

public class UnknownEventNotification extends EventNotification
Represents a valid EventNotification that the SDK doesn't have a type for. May have a `relatedObject` property.
  • Field Details

    • relatedObject

      @SerializedName("related_object") public Event.RelatedObject relatedObject
      [Optional] Object containing the reference to API resource relevant to the event.
  • Constructor Details

    • UnknownEventNotification

      public UnknownEventNotification()
  • Method Details

    • fetchRelatedObject

      public StripeObject fetchRelatedObject() throws StripeException
      Will make the API call to fetch a related object, if possible. The returned object will have the correct type at runtime, but type information about it isn't known at compile time.
      Throws:
      StripeException
    • fetchEvent

      public Event fetchEvent() throws StripeException
      Will make the API call to fetch a related object, if possible. The returned object will have the correct type at runtime, but type information about it isn't known at compile time.
      Overrides:
      fetchEvent in class EventNotification
      Throws:
      StripeException
    • getRelatedObject

      public Event.RelatedObject getRelatedObject()
      [Optional] Object containing the reference to API resource relevant to the event.