Interface ActiveNumber


public interface ActiveNumber
The phone number that has been bought by a customer and assigned to a project.
  • Method Details

    • getPhoneNumber

      String getPhoneNumber()
      The phone number in E.164 format with leading +. Example +12025550134.
      Returns:
      phoneNumber
    • getProjectId

      String getProjectId()
      Project ID. Your project ID can be found on your Sinch Customer Dashboard.
      Returns:
      projectId
    • getDisplayName

      String getDisplayName()
      User supplied name for the phone number.
      Returns:
      displayName
    • getRegionCode

      String getRegionCode()
      ISO 3166-1 alpha-2 country code of the phone number. Example: US, GB or SE.
      Returns:
      regionCode
    • getType

      NumberType getType()
      Get type
      Returns:
      type
    • getCapability

      List<Capability> getCapability()
      The capability of the number.
      Returns:
      capability
    • getMoney

      Money getMoney()
      Get money
      Returns:
      money
    • getPaymentIntervalMonths

      Integer getPaymentIntervalMonths()
      How often the recurring price is charged in months.
      Returns:
      paymentIntervalMonths
      Read Only
      This field is returned by the server and cannot be modified
    • getNextChargeDate

      Instant getNextChargeDate()
      The date of the next charge.
      Returns:
      nextChargeDate
      Read Only
      This field is returned by the server and cannot be modified
    • getExpireAt

      Instant getExpireAt()
      The timestamp when the subscription will expire if an expiration date has been set.
      Returns:
      expireAt
      Read Only
      This field is returned by the server and cannot be modified
    • getSmsConfiguration

      SmsConfiguration getSmsConfiguration()
      Get smsConfiguration
      Returns:
      smsConfiguration
    • getVoiceConfiguration

      VoiceConfiguration getVoiceConfiguration()
      Get voiceConfiguration
      Returns:
      voiceConfiguration
    • getEventDestinationTarget

      String getEventDestinationTarget()
      The callback URL to be called for a rented number's provisioning / deprovisioning operations.
      Returns:
      eventDestinationTarget
    • builder

      static ActiveNumber.Builder builder()
      Getting builder
      Returns:
      New Builder instance