001package com.plivo.api.models.pricing; 002 003import com.fasterxml.jackson.databind.JsonNode; 004import com.plivo.api.models.base.BaseResource; 005 006public class Pricing extends BaseResource { 007 008 private JsonNode message; 009 private JsonNode phoneNumbers; 010 private JsonNode voice; 011 private String countryIso; 012 private Long countryCode; 013 private String country; 014 015 public static PricingGetter getter(String countryIso) { 016 return new PricingGetter(countryIso); 017 } 018 019 /** 020 * @return Pricing for messages. 021 */ 022 public JsonNode getMessage() { 023 return message; 024 } 025 026 /** 027 * @return Pricing for phone numbers. 028 */ 029 public JsonNode getPhoneNumbers() { 030 return phoneNumbers; 031 } 032 033 /** 034 * @return Pricing for voice. 035 */ 036 public JsonNode getVoice() { 037 return voice; 038 } 039 040 public String getCountryIso() { 041 return countryIso; 042 } 043 044 public Long getCountryCode() { 045 return countryCode; 046 } 047 048 public String getCountry() { 049 return country; 050 } 051 052 @Override 053 public String getId() { 054 return getCountryIso(); 055 } 056}