001package com.plivo.api.models.account;
002
003import com.plivo.api.models.base.BaseResource;
004
005public class Account extends BaseResource {
006
007  private AccountType accountType;
008  private String address;
009  private String authId;
010  private Boolean autoRecharge;
011  private BillingMode billingMode;
012  private String cashCredits;
013  private String city;
014  private String name;
015  private String resourceUri;
016  private String state;
017  private String timezone;
018
019  public static AccountGetter getter() {
020    return new AccountGetter();
021  }
022
023  public static AccountUpdater updater() {
024    return new AccountUpdater();
025  }
026
027  /**
028   * @return The type of your Plivo account. All accounts with funds are standard accounts. If your
029   * account is on free trial, this attribute will return {@link AccountType#DEVELOPER}.
030   */
031  public AccountType getAccountType() {
032    return accountType;
033  }
034
035  /**
036   * @return The postal address of the account which will be reflected in the invoices.
037   */
038  public String getAddress() {
039    return address;
040  }
041
042  /**
043   * @return The auth id of the account.
044   */
045  public String getAuthId() {
046    return authId;
047  }
048
049  /**
050   * @return Auto recharge settings associated with the account. If this value is true, we will
051   * recharge your account if the credits fall below a certain threshold.
052   */
053  public Boolean getAutoRecharge() {
054    return autoRecharge;
055  }
056
057  /**
058   * @return The billing mode of the account.
059   * @see BillingMode
060   */
061  public BillingMode getBillingMode() {
062    return billingMode;
063  }
064
065  /**
066   * @return Credits of the account.
067   */
068  public String getCashCredits() {
069    return cashCredits;
070  }
071
072  /**
073   * @return The city of the account.
074   */
075  public String getCity() {
076    return city;
077  }
078
079  /**
080   * @return The name of the account holder.
081   */
082  public String getName() {
083    return name;
084  }
085
086  public String getResourceUri() {
087    return resourceUri;
088  }
089
090  /**
091   * @return The state of the account holder.
092   */
093  public String getState() {
094    return state;
095  }
096
097  /**
098   * @return The timezone of the account.
099   * @see <a href="http://en.wikipedia.org/wiki/List_of_IANA_time_zones">IANA Timezones</a>
100   */
101  public String getTimezone() {
102    return timezone;
103  }
104
105  @Override
106  public String getId() {
107    return getAuthId();
108  }
109}