tech.deepdreams.worker.deduction.CFPServicev2022Impl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worker-gab-impl Show documentation
Show all versions of worker-gab-impl Show documentation
Payroll Worker API project for Spring Boot
package tech.deepdreams.worker.deduction;
import java.util.Map;
import tech.deepdreams.worker.api.services.DeductionService;
import tech.deepdreams.worker.api.enums.CountryCode;
import tech.deepdreams.worker.constants.ElementCode;
import tech.deepdreams.worker.constants.LocalConstantCode;
public class CFPServicev2022Impl implements DeductionService{
public Double calculateEmployee(Map params) {
return 0.0 ;
}
public Double calculateEmployer(Map params) {
Double grossSalary = (Double) params.get(LocalConstantCode.CODE_GROSS_SALARY) ;
Double benefitsInKindAmount = (Double) params.get(LocalConstantCode.CODE_BENEFITS_IN_KIND) ;
return 0.005 * (grossSalary + benefitsInKindAmount) ;
}
public CountryCode country() {
return CountryCode.GAB ;
}
public String code() {
return ElementCode.CODE_TAXE_COMPLEMENTAIRE ;
}
public int version() {
return 2022 ;
}
}