Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.twilio.sdk.resource.instance.pricing;
import com.twilio.sdk.TwilioPricingClient;
import com.twilio.sdk.resource.NextGenInstanceResource;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Pricing information for Twilio Voice services in a specific country.
*
* For more information, see the Twilio Pricing API documentation.
*/
public class VoiceCountry extends NextGenInstanceResource {
public VoiceCountry(final TwilioPricingClient client) {
super(client);
}
public VoiceCountry(final TwilioPricingClient client, final Map properties) {
super(client, properties);
}
public VoiceCountry(final TwilioPricingClient client, final String isoCountry) {
super(client);
if (isoCountry == null || "".equals(isoCountry)) {
throw new IllegalArgumentException("The isoCountry for a VoiceCountry cannot be null");
}
setProperty("iso_country", isoCountry);
}
/**
* Get the name of the country this pricing information applies to.
* @return the country name
*/
public String getCountry() {
return getProperty("country");
}
/**
* Get an abbreviated identifier for the country this pricing information
* applies to.
* @return the ISO 3166-1 alpha-2 country code, e.g. "US" for the United States
*/
public String getIsoCountry() {
return getProperty("iso_country");
}
/**
* Get the currency unit for this pricing information.
* @return A string representing the currency information, e.g. "USD" for US Dollars.
*/
public String getPriceUnit() {
return getProperty("price_unit");
}
/**
* Get a list of prices for inbound voice calls in this country,
* broken out by number type.
*
* Twilio Voice inbound call pricing is based on the type of the number
* dialed.
* For example, in Estonia, inbound calls to Mobile numbers might cost 0.0075 USD/min,
* while National numbers could cost 0.0070 USD/min.
*
* Each type of number available in the country will have an entry in this list
* with its inbound pricing information (list price and discounted price).
*
* @return List of objects with inbound call pricing information.
*/
public List getInboundCallPrices() {
List