001package com.plivo.api.models.profile;
002
003import com.plivo.api.models.base.MessagingProfileUpdater;
004import com.plivo.api.util.Utils;
005import retrofit2.Call;
006
007public class ProfileUpdater extends MessagingProfileUpdater<Profile> {
008    private String profileUUID;
009    private String entityType;
010    private String companyName;
011    private ProfileAddress address;
012    private String website;
013    private String vertical;
014    private ProfileAuthorizedContact authorizedContact;
015
016    public ProfileUpdater(String id) {
017        super(id);
018    }
019
020    public String getEntityType(){
021        return entityType;
022    }
023    public String getCompanyName(){
024        return companyName;
025    }
026    public ProfileAddress getAddress(){
027        return address;
028    }
029    public String getWebsite(){
030        return website;
031    }
032    public String getVertical(){
033        return vertical;
034    }
035    public ProfileAuthorizedContact getAuthorizedContact(){
036        return authorizedContact;
037    }
038
039    public ProfileUpdater entityType (String entityType) {
040        this.entityType = entityType;
041        return this;
042    }
043
044    public ProfileUpdater companyName (String companyName) {
045        this.companyName = companyName;
046        return this;
047    }
048
049    public ProfileUpdater address (ProfileAddress address) {
050        this.address = address;
051        return this;
052    }
053
054    public ProfileUpdater website (String website) {
055        this.website = website;
056        return this;
057    }
058
059    public ProfileUpdater vertical (String vertical) {
060        this.vertical = vertical;
061        return this;
062    }
063
064    public ProfileUpdater authorizedContact (ProfileAuthorizedContact authorizedContact) {
065        this.authorizedContact = authorizedContact;
066        return this;
067    }
068
069    @Override
070    protected Call<Profile> obtainCall() {
071      return client().getApiService().profileUpdate(client().getAuthId(), id, this);
072    }
073}