tech.deepdreams.worker.output.PayrollResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worker-lambda Show documentation
Show all versions of worker-lambda Show documentation
Payroll Worker Lambda project for Java 17
package tech.deepdreams.worker.output;
import java.util.ArrayList;
import java.util.List;
public class PayrollResponse {
private Double grossSalary ;
private Double employeeDeductions ;
private Double employerDeductions ;
private Double netSalary ;
private List deductions = new ArrayList() ;
public PayrollResponse() {
}
public Double getGrossSalary() {
return grossSalary;
}
public void setGrossSalary(Double grossSalary) {
this.grossSalary = grossSalary;
}
public Double getEmployeeDeductions() {
return employeeDeductions;
}
public void setEmployeeDeductions(Double employeeDeductions) {
this.employeeDeductions = employeeDeductions;
}
public Double getEmployerDeductions() {
return employerDeductions;
}
public void setEmployerDeductions(Double employerDeductions) {
this.employerDeductions = employerDeductions;
}
public Double getNetSalary() {
return netSalary;
}
public void setNetSalary(Double netSalary) {
this.netSalary = netSalary;
}
public void addDeduction(Deduction deduction) {
deductions.add(deduction) ;
}
public List getDeductions() {
return deductions.subList(0, deductions.size()) ;
}
}