Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flux-sdk for broker apps #112

Merged
merged 7 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
from typing import Optional


class MemberData:
company_name: str
company_id: str
company_ein: str
first_name: str
middle_name: str
last_name: str
subscriber_email: Optional[str]
employee_ssn: str
relationship: str
gender: str
dob: str
member_ssn: str
employee_cell_phone: Optional[str]
address_line_1: str
address_line_2: str
city: str
state: str
zip: str
hire_date: Optional[str]
title: Optional[str]
employment_type: Optional[str]
hours: Optional[str]
earnings: Optional[str]
salary: Optional[str]
work_location: Optional[str]
employee_class: Optional[str]
pay_cycle: Optional[str]
plan_type: str
carrier_name: str
plan_name: str
plan_enrollment_date: str
coverage_tier: str
coverage_details: str
action: str
employee_rate: str
employer_rate: str
total_rate: str
smoker: str
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from abc import ABC, abstractmethod

from flux_sdk.flux_core.data_models import AppContext, CompanyInfo, File
from flux_sdk.insurance_broker.capabilities.upload_census_data.data_models import MemberData


class UploadCensusData(ABC):
"""
This class represents the "upload census data" capability. The developer is supposed to implement
get_formatted_census_file in their implementation. For further details regarding their
implementation details, check their documentation.

An instance of this class cannot be initiated unless this method is implemented.
"""

@staticmethod
@abstractmethod
def get_formatted_census_file(company_info: CompanyInfo, member_census: list[MemberData],
app_context: AppContext) -> list[File]:
"""A function that converts member census data to formatted census file.

This method receives company information and a list of MemberData objects. The developer is expected to
return the app specific list of formatted census files.
:param company_info:
:param member_census:
:param app_context:
:return:
"""
Loading