package com.epsi.soap;

public class Customer {
    private String login;
    private String password;
    private double balance;

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public boolean isValid(){
        return this.login == this.password && this.login != null && this.login.length() > 0;
    }

    public boolean isAdmin(){
        return this.isValid() && this.login == Constante.CUSTOMER_ADMIN;
    }
}
@@ -125,16 +125,334 @@
 lance;%0A%0A
+    public Customer(String login, String password, double balance) %7B%0A        this.login = login;%0A        this.password = password;%0A        this.balance = balance;%0A    %7D%0A%0A    public Customer(String login, String password) %7B%0A        this.login = login;%0A        this.password = password;%0A        this.balance = 0;%0A    %7D%0A%0A
     publ
@@ -494,32 +494,37 @@
 rn login;%0A    %7D%0A
+    x
 %0A    public void

create account