Skip to content

Commit

Permalink
Documentation changes (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
pshanmukrao authored Apr 16, 2024
1 parent 1dfe5e9 commit 6f7256d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@


class ReportEmployeesHrData(ABC):
"""
"""This capability offers developers a dataset containing personal and employment information for every employee
within a company.
This class represents the "report employee data" capability. The developer is supposed to implement
the following methods in their implementation.
Expand All @@ -21,12 +23,13 @@ def format_employees_hr_data(
config: ReportEmployeesHrDataConfig,
employee_data: list[EmployeeHrData]
) -> File:
"""
This method receives the apps configuration data and a list of employee data.
"""This hook is for transforming the employee HR data into a file will be sent to the partner company.
This method receives the app's configuration data and a list of employee data.
The developer is expected to create a file, formated to their use case, and return that file.
The file will be tranfered to the partner company via SFTP
:param ReportEmployeesHrDataConfig:
:param list[EmployeeHrData]:
:return File:
:param config: Employee's HR data configuration
:param employee_data: List of employee data
:return: File
"""
8 changes: 6 additions & 2 deletions flux_sdk/flex/capabilities/update_contributions/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@


class UpdateContributions(ABC):
"""
"""Report employee payroll contributions for contribution types (FSA, HSA, etc.) in a payroll run to a benefit
provider.
This class represents the "update contributions" capability. The developer is supposed to implement
get_formatted_enrollment_files in their implementation. For further details regarding their
implementation details, check their documentation.
Expand All @@ -17,10 +19,12 @@ class UpdateContributions(ABC):
@abstractmethod
def get_formatted_contributions_files(company_info: CompanyInfo, employee_contributions: list[EmployeeContribution],
app_context: AppContext) -> list[File]:
"""
"""A function that converts employee contributions to formatted contribution file.
This method receives company information and a list of EmployeeContribution objects. The developer is expected
to return the app specific list of formatted contribution files.
:param company_info:
:param employee_contributions:
:param app_context:
:return:
"""
4 changes: 3 additions & 1 deletion flux_sdk/flex/capabilities/update_enrollments/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ class UpdateEnrollments(ABC):
@abstractmethod
def get_formatted_enrollments_files(company_info: CompanyInfo, employee_enrollments: list[EmployeeEnrollment],
app_context: AppContext) -> list[File]:
"""
"""A function that converts employee enrollments to formatted enrollment file.
This method receives company information and a list of EmployeeEnrollment objects. The developer is expected to
return the app specific list of formatted enrollment files.
:param company_info:
:param employee_enrollments:
:param app_context:
:return:
"""

0 comments on commit 6f7256d

Please sign in to comment.