package com.bcxin.api.interfaces.identities.requests;

import com.bcxin.api.interfaces.RequestAbstract;
import lombok.Getter;

@Getter
public class ChangeBasicIdentityRequest extends RequestAbstract {
    private final String tenantUserId;
    private final String name;
    private final String idNum;
    private final String telephone;
    private final String oldPhone;

    public ChangeBasicIdentityRequest(String tenantUserId, String name, String idNum, String telephone,String oldPhone) {
        this.tenantUserId = tenantUserId;
        this.name = name;
        this.idNum = idNum;
        this.telephone = telephone;
        this.oldPhone = oldPhone;
    }

    public static ChangeBasicIdentityRequest create(String tenantUserId, String name, String idNum,String telephone,String oldPhone) {
        return new ChangeBasicIdentityRequest(tenantUserId, name, idNum,telephone,oldPhone);
    }

    public static ChangeBasicIdentityRequest create(String tenantUserId, String name, String idNum, String telephone) {
        return new ChangeBasicIdentityRequest(tenantUserId, name, idNum,telephone,null);
    }

}
