/*
 * Arrebol Consultancy copyright.
 * 
 * This code belongs to Arrebol Consultancy
 * its use, redistribution or modification are prohibited 
 * without written authorization from Arrebol Consultancy.
 */
package com.arrebol.taxiservicios.model.view;

import com.arrebol.taxiservicios.model.catalog.Location;
import com.arrebol.taxiservicios.model.enums.BasicType;
import com.arrebol.taxiservicios.model.enums.PersonType;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 *
 * @author Carlos Janitzio Zavala Lopez <janitzio.zavala@arrebol.com.mx>
 */
public class PersonListFinancingView implements Serializable {

    private static final long serialVersionUID = -1L;

    private String id;
    private String fullName;
    private String localNumber;
    private String mobileNumber;
    private String address;
    private String vehicles;
    private PersonType type;
    private Date admissionDate;
    private Float adeudoByCustomer;
    private Location location;
    private String estatus;
    private BasicType juridico;

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public String getId() {
        return id;
    }

    public PersonListFinancingView() {
    }

    /**
     *
     * @param id
     */
    public PersonListFinancingView(String id) {
        this.id = id;
    }

    /**
     *
     * @param id
     * @param fullName
     * @param localNumber
     * @param mobileNumber
     * @param address
     * @param vehicles
     */
    public PersonListFinancingView(String id, String fullName, String localNumber, String mobileNumber, String address, String vehicles) {
        this.id = id;
        this.fullName = fullName;
        this.localNumber = localNumber;
        this.mobileNumber = mobileNumber;
        this.address = address;
        this.vehicles = vehicles;
    }

    /**
     *
     * @param id
     * @param fullName
     * @param localNumber
     * @param mobileNumber
     * @param address
     * @param vehicles
     * @param admissionDate
     */
    public PersonListFinancingView(String id, String fullName, String localNumber, String mobileNumber, String address, String vehicles, Date admissionDate) {
        this.id = id;
        this.fullName = fullName;
        this.localNumber = localNumber;
        this.mobileNumber = mobileNumber;
        this.address = address;
        this.vehicles = vehicles;
        this.admissionDate = admissionDate;
    }

    /**
     *
     * @param id
     * @param fullName
     */
    public PersonListFinancingView(String id, String fullName) {
        this.id = id;
        this.fullName = fullName;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getLocalNumber() {
        return localNumber;
    }

    public void setLocalNumber(String localNumber) {
        this.localNumber = localNumber;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getVehicles() {
        return vehicles;
    }

    public void setVehicles(String vehicles) {
        this.vehicles = vehicles;
    }

    public PersonType getType() {
        return type;
    }

    public void setType(PersonType type) {
        this.type = type;
    }

    public Date getAdmissionDate() {
        return admissionDate;
    }

    public void setAdmissionDate(Date admissionDate) {
        this.admissionDate = admissionDate;
    }

    public Float getAdeudoByCustomer() {
        return adeudoByCustomer;
    }

    public void setAdeudoByCustomer(Float adeudoByCustomer) {
        this.adeudoByCustomer = adeudoByCustomer;
    }

    @Override
    public String toString() {
        return "PersonListView{" + "fullName=" + fullName + ", type=" + type + '}';
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + Objects.hashCode(this.id);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PersonListFinancingView other = (PersonListFinancingView) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    public String getEstatus() {
        return estatus;
    }

    public void setEstatus(String estatus) {
        this.estatus = estatus;
    }

    public BasicType getJuridico() {
        return juridico;
    }

    public void setJuridico(BasicType juridico) {
        this.juridico = juridico;
    }

}
