plaid2.model.w_2 module

class plaid2.model.w_2.W2(*, state_and_local_wages: Optional[List[W2StateAndLocalWages]] = None, social_security_tips: Optional[str] = None, box_12: Optional[List[W2Box12]] = None, tax_year: Optional[str] = None, nonqualified_plans: Optional[str] = None, social_security_wages: Optional[str] = None, social_security_tax_withheld: Optional[str] = None, statutory_employee: Optional[str] = None, employer_id_number: Optional[str] = None, medicare_wages_and_tips: Optional[str] = None, employee: Optional[Employee] = None, allocated_tips: Optional[str] = None, retirement_plan: Optional[str] = None, medicare_tax_withheld: Optional[str] = None, box_9: Optional[str] = None, dependent_care_benefits: Optional[str] = None, wages_tips_other_comp: Optional[str] = None, third_party_sick_pay: Optional[str] = None, employer: Optional[PaystubEmployer] = None, federal_income_tax_withheld: Optional[str] = None, other: Optional[str] = None)[source]

Bases: BaseModel

allocated_tips: Optional[str]

Allocated tips.

box_12: Optional[List[W2Box12]]
box_9: Optional[str]

Contents from box 9 on the W2.

dependent_care_benefits: Optional[str]

Dependent care benefits.

dict(**kwargs: Any) Dict[str, Any][source]

Return a dict representation of the object. Takes same keyword arguments as pydantic.BaseModel.dict

employee: Optional[Employee]

Data about the employee.

employer: Optional[PaystubEmployer]

Information about the employer on the paystub

employer_id_number: Optional[str]

An employee identification number or EIN.

federal_income_tax_withheld: Optional[str]

Federal income tax withheld for the tax year.

json(**kwargs: Any) str[source]

Return a json string representation of the object. Takes same keyword arguments as pydantic.BaseModel.json

medicare_tax_withheld: Optional[str]

Medicare tax withheld for the tax year.

medicare_wages_and_tips: Optional[str]

Wages and tips from medicare.

nonqualified_plans: Optional[str]

Nonqualified plans.

other: Optional[str]

Other.

classmethod parse_obj(data: Any) W2[source]

Parse a dict into the object. Takes same keyword arguments as pydantic.BaseModel.parse_obj

classmethod parse_raw(b: Union[bytes, str], **kwargs: Any) W2[source]

Parse a json string into the object. Takes same keyword arguments as pydantic.BaseModel.parse_raw

retirement_plan: Optional[str]

Retirement plan.

social_security_tax_withheld: Optional[str]

Social security tax withheld for the tax year.

social_security_tips: Optional[str]

Tips from social security.

social_security_wages: Optional[str]

Wages from social security.

state_and_local_wages: Optional[List[W2StateAndLocalWages]]
statutory_employee: Optional[str]

Statutory employee.

tax_year: Optional[str]

The tax year of the W2 document.

third_party_sick_pay: Optional[str]

Third party sick pay.

wages_tips_other_comp: Optional[str]

Wages from tips and other compensation.