001package com.plivo.api.models.account; 002 003import com.plivo.api.models.base.Updater; 004import retrofit2.Call; 005 006public class AccountUpdater extends Updater<AccountUpdateResponse> { 007 008 private String name; 009 private String city; 010 private String address; 011 012 public AccountUpdater() { 013 super(""); 014 } 015 016 /** 017 * @return Name of the account holder or business. 018 */ 019 public String name() { 020 return this.name; 021 } 022 023 /** 024 * @return City of the account holder. 025 */ 026 public String city() { 027 return this.city; 028 } 029 030 /** 031 * @return Address of the account holder. 032 */ 033 public String address() { 034 return this.address; 035 } 036 037 /** 038 * @param name Name of the account holder or business. 039 */ 040 public AccountUpdater name(final String name) { 041 this.name = name; 042 return this; 043 } 044 045 /** 046 * @param city City of the account holder. 047 */ 048 public AccountUpdater city(final String city) { 049 this.city = city; 050 return this; 051 } 052 053 /** 054 * @param address Address of the account holder. 055 */ 056 public AccountUpdater address(final String address) { 057 this.address = address; 058 return this; 059 } 060 061 @Override 062 protected Call<AccountUpdateResponse> obtainCall() { 063 return client().getApiService().accountModify(client().getAuthId(), this); 064 } 065}