001package com.plivo.api.models.identity;
002
003import com.plivo.api.models.base.Updater;
004import retrofit2.Call;
005
006public class IdentityUpdater extends Updater<IdentityUpdateResponse> {
007  private String countryIso;
008  private String alias;
009  private String salutation;
010  private String firstName;
011  private String lastName;
012  private String birthPlace;
013  private String birthDate;
014  private String nationality;
015  private String idNationality;
016  private String idIssueDate;
017  private String businessName;
018  private String idType;
019  private String idNumber;
020  private String addressLine1;
021  private String addressLine2;
022  private String city;
023  private String region;
024  private String postalCode;
025  private String fiscalIdentificationCode;
026  private String streetCode;
027  private String municipalCode;
028  private String subaccount;
029  private String file;
030
031  public IdentityUpdater( String id ){
032    super(id);
033  }
034
035  public String countryIso() {
036    return countryIso;
037  }
038
039  public String salutation() {
040    return salutation;
041  }
042
043  public String firstName() {
044    return firstName;
045  }
046
047  public String lastName() {
048    return lastName;
049  }
050
051  public String birthPlace() {
052    return birthPlace;
053  }
054
055  public String birthDate() {
056    return birthDate;
057  }
058
059  public String nationality() {
060    return nationality;
061  }
062
063  public String idNationality() {
064    return idNationality;
065  }
066
067  public String idIssueDate() {
068    return idIssueDate;
069  }
070
071  public String businessName() {
072    return businessName;
073  }
074
075  public String idType() {
076    return idType;
077  }
078
079  public String idNumber() {
080    return idNumber;
081  }
082
083  public String addressLine1() {
084    return addressLine1;
085  }
086
087  public String addressLine2() {
088    return addressLine2;
089  }
090
091  public String city() {
092    return city;
093  }
094
095  public String region() {
096    return region;
097  }
098
099  public String postalCode() {
100    return postalCode;
101  }
102
103  public String fiscalIdentificationCode() {
104    return fiscalIdentificationCode;
105  }
106
107  public String streetCode() {
108    return streetCode;
109  }
110
111  public String municipalCode() {
112    return municipalCode;
113  }
114
115  public String subaccount() {
116    return subaccount;
117  }
118
119  public String file() {
120    return file;
121  }
122
123  public IdentityUpdater alias( String alias ){
124    this.alias = alias;
125    return this;
126  }
127
128  public IdentityUpdater countryIso( String countryIso ){
129    this.countryIso = countryIso;
130    return this;
131  }
132
133  public IdentityUpdater salutation( String salutation ){
134    this.salutation = salutation;
135    return this;
136  }
137
138  public IdentityUpdater firstName( String firstName ){
139    this.firstName = firstName;
140    return this;
141  }
142
143  public IdentityUpdater lastName( String lastName ){
144    this.lastName = lastName;
145    return this;
146  }
147
148  public IdentityUpdater birthPlace( String birthPlace ){
149    this.birthPlace = birthPlace;
150    return this;
151  }
152
153  public IdentityUpdater birthDate( String birthDate ){
154    this.birthDate = birthDate;
155    return this;
156  }
157
158  public IdentityUpdater nationality( String nationality ){
159    this.nationality = nationality;
160    return this;
161  }
162
163  public IdentityUpdater idNationality( String idNationality ){
164    this.idNationality = idNationality;
165    return this;
166  }
167
168  public IdentityUpdater idIssueDate( String idIssueDate ){
169    this.idIssueDate = idIssueDate;
170    return this;
171  }
172
173  public IdentityUpdater businessName( String businessName ){
174    this.businessName = businessName;
175    return this;
176  }
177
178  public IdentityUpdater idType( String idType ){
179    this.idType = idType;
180    return this;
181  }
182
183  public IdentityUpdater idNumber( String idNumber ){
184    this.idNumber = idNumber;
185    return this;
186  }
187
188  public IdentityUpdater addressLine1( String addressLine1 ){
189    this.addressLine1 = addressLine1;
190    return this;
191  }
192
193  public IdentityUpdater addressLine2( String addressLine2 ){
194    this.addressLine2 = addressLine2;
195    return this;
196  }
197
198  public IdentityUpdater city( String city ){
199    this.city = city;
200    return this;
201  }
202
203  public IdentityUpdater region( String region ){
204    this.region = region;
205    return this;
206  }
207
208  public IdentityUpdater postalCode( String postalCode ){
209    this.postalCode = postalCode;
210    return this;
211  }
212
213  public IdentityUpdater fiscalIdentificationCode( String fiscalIdentificationCode ){
214    this.fiscalIdentificationCode = fiscalIdentificationCode;
215    return this;
216  }
217
218  public IdentityUpdater streetCode( String streetCode ){
219    this.streetCode = streetCode;
220    return this;
221  }
222
223  public IdentityUpdater municipalCode( String municipalCode ){
224    this.municipalCode = municipalCode;
225    return this;
226  }
227
228  public IdentityUpdater subaccount( String subaccount ){
229    this.subaccount = subaccount;
230    return this;
231  }
232
233  public IdentityUpdater file( String file ){
234    this.file = file;
235    return this;
236  }
237
238  @Override
239  protected Call<IdentityUpdateResponse> obtainCall() {
240    return client().getApiService().identityUpdate(client().getAuthId(), id, this);
241  }
242}