Class ActiveNumber


  • public class ActiveNumber
    extends Object
    Active Number
    Since:
    1.0
    • Constructor Detail

      • ActiveNumber

        public ActiveNumber​(String phoneNumber,
                            String projectId,
                            String displayName,
                            String regionCode,
                            NumberType type,
                            Collection<Capability> capability,
                            Money money,
                            Integer paymentIntervalMonths,
                            Instant nextChargeDate,
                            Instant expireAt,
                            SMSConfiguration smsConfiguration,
                            VoiceConfiguration voiceConfiguration,
                            String callbackUrl)
        Parameters:
        phoneNumber - The phone number in E.164 format with leading +. Example: +12025550134.
        projectId - Project ID. Your project ID can be found on your Sinch Customer Dashboard.
        displayName - User supplied name for the phone number.
        regionCode - ISO 3166-1 alpha-2 country code of the phone number. Example US, UK or SE.
        type - The number type.
        capability - The capability of the number
        money - An object giving details on currency code and the amount charged.
        paymentIntervalMonths - How often the recurring price is charged in months.
        nextChargeDate - The date of the next charge
        expireAt - The timestamp when the subscription will expire if an expiration date has been set.
        smsConfiguration - The current SMS configuration for this number.
        voiceConfiguration - The current voice configuration for this number.
        callbackUrl - The callback URL to be called for a rented number's provisioning / deprovisioning operations.