Class EventNotification


  • public class EventNotification
    extends Object
    A notification of an event sent to your configured callback URL.
    • Constructor Detail

      • EventNotification

        public EventNotification​(String eventId,
                                 Instant timestamp,
                                 String projectId,
                                 String resourceId,
                                 ResourceType resourceType,
                                 EventType eventType,
                                 EventStatus status,
                                 SmsErrorCode failureCode)
        Parameters:
        eventId - The ID of the event
        timestamp - The date and time when the callback was created and added to the callbacks queue
        projectId - The ID of the project to which the event belongs
        resourceId - The unique identifier of the resource, depending on the resource type. For example, a phone number, a hosting order ID, or a brand ID.
        resourceType - The type of the resource
        eventType - The type of the event
        status - The status of the event
        failureCode - If the status is FAILED, a failure code will be provided. For numbers provisioning to SMS platform, there won't be any extra failureCode, as the result is binary. For campaign provisioning-related failures, refer to the list for the possible values.