2525
2626
2727class EarningAttributesMetadata (BaseModel ):
28- metadata : Optional [ Dict [str , Optional [object ]]] = None
28+ metadata : Dict [str , Optional [object ]]
2929 """The metadata to be attached to the entity by existing rules.
3030
3131 It is a key-value pairs where the values can be of any type (string, number,
@@ -34,15 +34,13 @@ class EarningAttributesMetadata(BaseModel):
3434
3535
3636class EarningAttributes (BaseModel ):
37- metadata : Optional [ EarningAttributesMetadata ] = None
37+ metadata : EarningAttributesMetadata
3838
3939
4040class Earning (BaseModel ):
4141 amount : Optional [int ] = None
4242 """The earnings amount in cents."""
4343
44- attributes : Optional [EarningAttributes ] = None
45-
4644 currency : Optional [str ] = None
4745 """The earnings currency code."""
4846
@@ -75,9 +73,11 @@ class Earning(BaseModel):
7573 ] = None
7674 """The type of earning."""
7775
76+ attributes : Optional [EarningAttributes ] = None
77+
7878
7979class EmployeeDeductionAttributesMetadata (BaseModel ):
80- metadata : Optional [ Dict [str , Optional [object ]]] = None
80+ metadata : Dict [str , Optional [object ]]
8181 """The metadata to be attached to the entity by existing rules.
8282
8383 It is a key-value pairs where the values can be of any type (string, number,
@@ -86,15 +86,13 @@ class EmployeeDeductionAttributesMetadata(BaseModel):
8686
8787
8888class EmployeeDeductionAttributes (BaseModel ):
89- metadata : Optional [ EmployeeDeductionAttributesMetadata ] = None
89+ metadata : EmployeeDeductionAttributesMetadata
9090
9191
9292class EmployeeDeduction (BaseModel ):
9393 amount : Optional [int ] = None
9494 """The deduction amount in cents."""
9595
96- attributes : Optional [EmployeeDeductionAttributes ] = None
97-
9896 currency : Optional [str ] = None
9997 """The deduction currency."""
10098
@@ -107,9 +105,11 @@ class EmployeeDeduction(BaseModel):
107105 type : Optional [BenefitType ] = None
108106 """Type of benefit."""
109107
108+ attributes : Optional [EmployeeDeductionAttributes ] = None
109+
110110
111111class EmployerContributionAttributesMetadata (BaseModel ):
112- metadata : Optional [ Dict [str , Optional [object ]]] = None
112+ metadata : Dict [str , Optional [object ]]
113113 """The metadata to be attached to the entity by existing rules.
114114
115115 It is a key-value pairs where the values can be of any type (string, number,
@@ -118,15 +118,13 @@ class EmployerContributionAttributesMetadata(BaseModel):
118118
119119
120120class EmployerContributionAttributes (BaseModel ):
121- metadata : Optional [ EmployerContributionAttributesMetadata ] = None
121+ metadata : EmployerContributionAttributesMetadata
122122
123123
124124class EmployerContribution (BaseModel ):
125125 amount : Optional [int ] = None
126126 """The contribution amount in cents."""
127127
128- attributes : Optional [EmployerContributionAttributes ] = None
129-
130128 currency : Optional [str ] = None
131129 """The contribution currency."""
132130
@@ -136,9 +134,11 @@ class EmployerContribution(BaseModel):
136134 type : Optional [BenefitType ] = None
137135 """Type of benefit."""
138136
137+ attributes : Optional [EmployerContributionAttributes ] = None
138+
139139
140140class TaxAttributesMetadata (BaseModel ):
141- metadata : Optional [ Dict [str , Optional [object ]]] = None
141+ metadata : Dict [str , Optional [object ]]
142142 """The metadata to be attached to the entity by existing rules.
143143
144144 It is a key-value pairs where the values can be of any type (string, number,
@@ -147,15 +147,13 @@ class TaxAttributesMetadata(BaseModel):
147147
148148
149149class TaxAttributes (BaseModel ):
150- metadata : Optional [ TaxAttributesMetadata ] = None
150+ metadata : TaxAttributesMetadata
151151
152152
153153class Tax (BaseModel ):
154154 amount : Optional [int ] = None
155155 """The tax amount in cents."""
156156
157- attributes : Optional [TaxAttributes ] = None
158-
159157 currency : Optional [str ] = None
160158 """The currency code."""
161159
@@ -168,6 +166,8 @@ class Tax(BaseModel):
168166 type : Optional [Literal ["state" , "federal" , "local" , "fica" ]] = None
169167 """The type of taxes."""
170168
169+ attributes : Optional [TaxAttributes ] = None
170+
171171
172172class PayStatement (BaseModel ):
173173 earnings : Optional [List [Optional [Earning ]]] = None
@@ -180,7 +180,7 @@ class PayStatement(BaseModel):
180180
181181 gross_pay : Optional [Money ] = None
182182
183- individual_id : Optional [ str ] = None
183+ individual_id : str
184184 """A stable Finch `id` (UUID v4) for an individual in the company"""
185185
186186 net_pay : Optional [Money ] = None
0 commit comments