Package com.twilio.type
Class PhoneNumberPrice
- java.lang.Object
-
- com.twilio.type.PhoneNumberPrice
-
public class PhoneNumberPrice extends Object
Object representation of a price of a phone number.For more information see: Pricing Docs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhoneNumberPrice.TypePossible phone number type.
-
Constructor Summary
Constructors Constructor Description PhoneNumberPrice(double basePrice, double currentPrice, PhoneNumberPrice.Type type)Initialize a PhoneNumberPrice.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)doublegetBasePrice()Returns the base price of the phone number.doublegetCurrentPrice()Returns the current price of the phone number.PhoneNumberPrice.TypegetType()Returns the type of phone number.inthashCode()
-
-
-
Constructor Detail
-
PhoneNumberPrice
public PhoneNumberPrice(double basePrice, double currentPrice, PhoneNumberPrice.Type type)Initialize a PhoneNumberPrice.- Parameters:
basePrice- base price of the phone numbercurrentPrice- current price of the phone numbertype- type of phone number
-
-
Method Detail
-
getBasePrice
public double getBasePrice()
Returns the base price of the phone number.- Returns:
- the base price of the phone number
-
getCurrentPrice
public double getCurrentPrice()
Returns the current price of the phone number.- Returns:
- the current price of the phone number
-
getType
public PhoneNumberPrice.Type getType()
Returns the type of phone number.- Returns:
- the type of phone number
-
-