tech.deepdreams.worker.services.deduction.FDFPServicev2020Impl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worker-civ-impl Show documentation
Show all versions of worker-civ-impl Show documentation
Payroll Worker API project for Spring Boot
package tech.deepdreams.worker.services.deduction ;
import java.util.Map;
import tech.deepdreams.worker.api.services.DeductionService;
import tech.deepdreams.worker.constants.CIVElementCode;
import tech.deepdreams.worker.constants.LocalConstantCode;
import tech.deepdreams.worker.api.enums.CountryCode;
public class FDFPServicev2020Impl implements DeductionService{
public Double calculateEmployee(Map params) {
Double value = (Double) params.get(LocalConstantCode.CODE_GROSS_TAXABLE_SALARY) ;
return value * 0.016 ;
}
public Double calculateEmployer(Map params) {
Double value = (Double) params.get(LocalConstantCode.CODE_GROSS_TAXABLE_SALARY) ;
return value * 0.016 ;
}
public CountryCode country() {
return CountryCode.CIV ;
}
public String code() {
return CIVElementCode.CODE_FDFP ;
}
public int version() {
return 2020 ;
}
}