Class ScoreNotificationRequest


  • public class ScoreNotificationRequest
    extends Object
    ScoreNotificationRequest
    • Constructor Detail

      • ScoreNotificationRequest

        public ScoreNotificationRequest()
    • Method Detail

      • environment

        public ScoreNotificationRequest environment​(String environment)
        The environment from which the webhook originated. Possible values: **test**, **live**.
        Parameters:
        environment - The environment from which the webhook originated. Possible values: **test**, **live**.
        Returns:
        the current ScoreNotificationRequest instance, allowing for method chaining
      • getEnvironment

        public String getEnvironment()
        The environment from which the webhook originated. Possible values: **test**, **live**.
        Returns:
        environment The environment from which the webhook originated. Possible values: **test**, **live**.
      • setEnvironment

        public void setEnvironment​(String environment)
        The environment from which the webhook originated. Possible values: **test**, **live**.
        Parameters:
        environment - The environment from which the webhook originated. Possible values: **test**, **live**.
      • timestamp

        public ScoreNotificationRequest timestamp​(OffsetDateTime timestamp)
        When the event was queued.
        Parameters:
        timestamp - When the event was queued.
        Returns:
        the current ScoreNotificationRequest instance, allowing for method chaining
      • getTimestamp

        public OffsetDateTime getTimestamp()
        When the event was queued.
        Returns:
        timestamp When the event was queued.
      • setTimestamp

        public void setTimestamp​(OffsetDateTime timestamp)
        When the event was queued.
        Parameters:
        timestamp - When the event was queued.
      • equals

        public boolean equals​(Object o)
        Return true if this ScoreNotificationRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static ScoreNotificationRequest fromJson​(String jsonString)
                                                 throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of ScoreNotificationRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ScoreNotificationRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to ScoreNotificationRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of ScoreNotificationRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException