Class ActiveNumber
- java.lang.Object
-
- com.sinch.sdk.domains.numbers.models.ActiveNumber
-
public class ActiveNumber extends Object
Active Number- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActiveNumber.Builder
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActiveNumber.Builder
builder()
String
getCallbackUrl()
Collection<Capability>
getCapability()
String
getDisplayName()
Instant
getExpireAt()
Money
getMoney()
Instant
getNextChargeDate()
Integer
getPaymentIntervalMonths()
String
getPhoneNumber()
String
getProjectId()
String
getRegionCode()
SMSConfiguration
getSmsConfiguration()
NumberType
getType()
VoiceConfiguration
getVoiceConfiguration()
String
toString()
-
-
-
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 numbermoney
- 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 chargeexpireAt
- 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.
-
-
Method Detail
-
getPhoneNumber
public String getPhoneNumber()
-
getProjectId
public String getProjectId()
-
getDisplayName
public String getDisplayName()
-
getRegionCode
public String getRegionCode()
-
getType
public NumberType getType()
-
getCapability
public Collection<Capability> getCapability()
-
getMoney
public Money getMoney()
-
getPaymentIntervalMonths
public Integer getPaymentIntervalMonths()
-
getNextChargeDate
public Instant getNextChargeDate()
-
getExpireAt
public Instant getExpireAt()
-
getSmsConfiguration
public SMSConfiguration getSmsConfiguration()
-
getVoiceConfiguration
public VoiceConfiguration getVoiceConfiguration()
-
getCallbackUrl
public String getCallbackUrl()
-
builder
public static ActiveNumber.Builder builder()
-
-