Class AvailableNumber
- java.lang.Object
-
- com.sinch.sdk.domains.numbers.models.AvailableNumber
-
public class AvailableNumber extends Object
Active Number- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAvailableNumber.Builder
-
Constructor Summary
Constructors Constructor Description AvailableNumber(String phoneNumber, String regionCode, NumberType type, Collection<Capability> capability, Money setupPrice, Money monthlyPrice, Integer paymentIntervalMonths, Boolean supportingDocumentationRequired)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AvailableNumber.Builderbuilder()Collection<Capability>getCapability()MoneygetMonthlyPrice()IntegergetPaymentIntervalMonths()StringgetPhoneNumber()StringgetRegionCode()MoneygetSetupPrice()BooleangetSupportingDocumentationRequired()NumberTypegetType()StringtoString()
-
-
-
Constructor Detail
-
AvailableNumber
public AvailableNumber(String phoneNumber, String regionCode, NumberType type, Collection<Capability> capability, Money setupPrice, Money monthlyPrice, Integer paymentIntervalMonths, Boolean supportingDocumentationRequired)
- Parameters:
phoneNumber- The phone number in E.164 format with leading +. Example +12025550134.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.setupPrice- An object giving details on currency code and the amount charged.monthlyPrice- An object giving details on currency code and the amount charged.paymentIntervalMonths- How often the recurring price is charged in months.supportingDocumentationRequired- Whether or not supplementary documentation will be required to complete the number rental.
-
-
Method Detail
-
getPhoneNumber
public String getPhoneNumber()
-
getRegionCode
public String getRegionCode()
-
getType
public NumberType getType()
-
getCapability
public Collection<Capability> getCapability()
-
getSetupPrice
public Money getSetupPrice()
-
getMonthlyPrice
public Money getMonthlyPrice()
-
getPaymentIntervalMonths
public Integer getPaymentIntervalMonths()
-
getSupportingDocumentationRequired
public Boolean getSupportingDocumentationRequired()
-
builder
public static AvailableNumber.Builder builder()
-
-