class

Plaid::W2

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

W2 is an object that represents income data taken from a W2 tax document.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, employer : PaystubEmployer | Nil = nil, employee : Employee | Nil = nil, tax_year : String | Nil = nil, employer_id_number : String | Nil = nil, wages_tips_other_comp : String | Nil = nil, federal_income_tax_withheld : String | Nil = nil, social_security_wages : String | Nil = nil, social_security_tax_withheld : String | Nil = nil, medicare_wages_and_tips : String | Nil = nil, medicare_tax_withheld : String | Nil = nil, social_security_tips : String | Nil = nil, allocated_tips : String | Nil = nil, box_9 : String | Nil = nil, dependent_care_benefits : String | Nil = nil, nonqualified_plans : String | Nil = nil, box_12 : Array(W2Box12) | Nil = nil, statutory_employee : String | Nil = nil, retirement_plan : String | Nil = nil, third_party_sick_pay : String | Nil = nil, other : String | Nil = nil, state_and_local_wages : Array(W2StateAndLocalWages) | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

allocated_tips

Allocated tips.

Source
allocated_tips=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] allocated_tips Object to be assigned

Source
allocated_tips_present=(allocated_tips_present : Bool)
Source
allocated_tips_present?
Source
box_12
Source
box_12=(new_value : Array(W2Box12) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] box_12 Object to be assigned

Source
box_9

Contents from box 9 on the W2.

Source
box_9=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] box_9 Object to be assigned

Source
box_9_present=(box_9_present : Bool)
Source
box_9_present?
Source
dependent_care_benefits

Dependent care benefits.

Source
dependent_care_benefits=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] dependent_care_benefits Object to be assigned

Source
dependent_care_benefits_present=(dependent_care_benefits_present : Bool)
Source
dependent_care_benefits_present?
Source
employee
Source
employee=(new_value : Employee | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] employee Object to be assigned

Source
employer
Source
employer=(new_value : PaystubEmployer | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] employer Object to be assigned

Source
employer_id_number

An employee identification number or EIN.

Source
employer_id_number=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] employer_id_number Object to be assigned

Source
employer_id_number_present=(employer_id_number_present : Bool)
Source
employer_id_number_present?
Source
federal_income_tax_withheld

Federal income tax withheld for the tax year.

Source
federal_income_tax_withheld=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] federal_income_tax_withheld Object to be assigned

Source
federal_income_tax_withheld_present=(federal_income_tax_withheld_present : Bool)
Source
federal_income_tax_withheld_present?
Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
medicare_tax_withheld

Medicare tax withheld for the tax year.

Source
medicare_tax_withheld=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] medicare_tax_withheld Object to be assigned

Source
medicare_tax_withheld_present=(medicare_tax_withheld_present : Bool)
Source
medicare_tax_withheld_present?
Source
medicare_wages_and_tips

Wages and tips from medicare.

Source
medicare_wages_and_tips=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] medicare_wages_and_tips Object to be assigned

Source
medicare_wages_and_tips_present=(medicare_wages_and_tips_present : Bool)
Source
medicare_wages_and_tips_present?
Source
nonqualified_plans

Nonqualified plans.

Source
nonqualified_plans=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] nonqualified_plans Object to be assigned

Source
nonqualified_plans_present=(nonqualified_plans_present : Bool)
Source
nonqualified_plans_present?
Source
other

Other.

Source
other=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] other Object to be assigned

Source
other_present=(other_present : Bool)
Source
other_present?
Source
retirement_plan

Retirement plan.

Source
retirement_plan=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] retirement_plan Object to be assigned

Source
retirement_plan_present=(retirement_plan_present : Bool)
Source
retirement_plan_present?
Source
social_security_tax_withheld

Social security tax withheld for the tax year.

Source
social_security_tax_withheld=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] social_security_tax_withheld Object to be assigned

Source
social_security_tax_withheld_present=(social_security_tax_withheld_present : Bool)
Source
social_security_tax_withheld_present?
Source
social_security_tips

Tips from social security.

Source
social_security_tips=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] social_security_tips Object to be assigned

Source
social_security_tips_present=(social_security_tips_present : Bool)
Source
social_security_tips_present?
Source
social_security_wages

Wages from social security.

Source
social_security_wages=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] social_security_wages Object to be assigned

Source
social_security_wages_present=(social_security_wages_present : Bool)
Source
social_security_wages_present?
Source
state_and_local_wages
Source
state_and_local_wages=(new_value : Array(W2StateAndLocalWages) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] state_and_local_wages Object to be assigned

Source
statutory_employee

Statutory employee.

Source
statutory_employee=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] statutory_employee Object to be assigned

Source
statutory_employee_present=(statutory_employee_present : Bool)
Source
statutory_employee_present?
Source
tax_year

The tax year of the W2 document.

Source
tax_year=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] tax_year Object to be assigned

Source
tax_year_present=(tax_year_present : Bool)
Source
tax_year_present?
Source
third_party_sick_pay

Third party sick pay.

Source
third_party_sick_pay=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] third_party_sick_pay Object to be assigned

Source
third_party_sick_pay_present=(third_party_sick_pay_present : Bool)
Source
third_party_sick_pay_present?
Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source
wages_tips_other_comp

Wages from tips and other compensation.

Source
wages_tips_other_comp=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] wages_tips_other_comp Object to be assigned

Source
wages_tips_other_comp_present=(wages_tips_other_comp_present : Bool)
Source
wages_tips_other_comp_present?
Source