Class CreateBlocklistRequest

java.lang.Object
io.sendon.contacts.request.CreateBlocklistRequest

public class CreateBlocklistRequest extends Object
Request object for creating a blocklist entry. Represents the request payload for adding a phone number to the blocklist.
  • Field Details

    • phoneNumber

      public String phoneNumber
      The phone number to be added to the blocklist. Should be provided without hyphens, numbers only.
    • messageType

      public String messageType
      The message type for blocking (SMS, KAKAO, RCS). Default is SMS if not specified.
    • senderNumber

      public String senderNumber
      The sender number to block from. Optional parameter for specific sender blocking.
    • kakaoChannelId

      public String kakaoChannelId
      The Kakao channel ID for Kakao message blocking. Required when messageType is KAKAO.
    • rcsChatbotId

      public String rcsChatbotId
      The RCS chatbot ID for RCS message blocking. Required when messageType is RCS.
    • rcsBrandId

      public String rcsBrandId
      The RCS brand ID for RCS message blocking. Required when messageType is RCS.
  • Constructor Details

    • CreateBlocklistRequest

      public CreateBlocklistRequest()
    • CreateBlocklistRequest

      public CreateBlocklistRequest(String phoneNumber)
      Constructor for simple SMS blocking.
      Parameters:
      phoneNumber - The phone number to block
    • CreateBlocklistRequest

      public CreateBlocklistRequest(String phoneNumber, String messageType, String senderNumber, String kakaoChannelId, String rcsChatbotId, String rcsBrandId)
      Constructor with all parameters.
      Parameters:
      phoneNumber - The phone number to block
      messageType - The message type (SMS, KAKAO, RCS)
      senderNumber - The sender number to block from
      kakaoChannelId - The Kakao channel ID
      rcsChatbotId - The RCS chatbot ID
      rcsBrandId - The RCS brand ID