2525
2626
2727class EarningAttributesMetadata (BaseModel ):
28- metadata : Dict [str , Optional [object ]]
28+ metadata : Optional [ Dict [str , Optional [object ]]] = None
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,13 +34,15 @@ class EarningAttributesMetadata(BaseModel):
3434
3535
3636class EarningAttributes (BaseModel ):
37- metadata : EarningAttributesMetadata
37+ metadata : Optional [ EarningAttributesMetadata ] = None
3838
3939
4040class Earning (BaseModel ):
4141 amount : Optional [int ] = None
4242 """The earnings amount in cents."""
4343
44+ attributes : Optional [EarningAttributes ] = None
45+
4446 currency : Optional [str ] = None
4547 """The earnings currency code."""
4648
@@ -73,11 +75,9 @@ class Earning(BaseModel):
7375 ] = None
7476 """The type of earning."""
7577
76- attributes : Optional [EarningAttributes ] = None
77-
7878
7979class EmployeeDeductionAttributesMetadata (BaseModel ):
80- metadata : Dict [str , Optional [object ]]
80+ metadata : Optional [ Dict [str , Optional [object ]]] = None
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,13 +86,15 @@ class EmployeeDeductionAttributesMetadata(BaseModel):
8686
8787
8888class EmployeeDeductionAttributes (BaseModel ):
89- metadata : EmployeeDeductionAttributesMetadata
89+ metadata : Optional [ EmployeeDeductionAttributesMetadata ] = None
9090
9191
9292class EmployeeDeduction (BaseModel ):
9393 amount : Optional [int ] = None
9494 """The deduction amount in cents."""
9595
96+ attributes : Optional [EmployeeDeductionAttributes ] = None
97+
9698 currency : Optional [str ] = None
9799 """The deduction currency."""
98100
@@ -105,11 +107,9 @@ class EmployeeDeduction(BaseModel):
105107 type : Optional [BenefitType ] = None
106108 """Type of benefit."""
107109
108- attributes : Optional [EmployeeDeductionAttributes ] = None
109-
110110
111111class EmployerContributionAttributesMetadata (BaseModel ):
112- metadata : Dict [str , Optional [object ]]
112+ metadata : Optional [ Dict [str , Optional [object ]]] = None
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,13 +118,15 @@ class EmployerContributionAttributesMetadata(BaseModel):
118118
119119
120120class EmployerContributionAttributes (BaseModel ):
121- metadata : EmployerContributionAttributesMetadata
121+ metadata : Optional [ EmployerContributionAttributesMetadata ] = None
122122
123123
124124class EmployerContribution (BaseModel ):
125125 amount : Optional [int ] = None
126126 """The contribution amount in cents."""
127127
128+ attributes : Optional [EmployerContributionAttributes ] = None
129+
128130 currency : Optional [str ] = None
129131 """The contribution currency."""
130132
@@ -134,11 +136,9 @@ class EmployerContribution(BaseModel):
134136 type : Optional [BenefitType ] = None
135137 """Type of benefit."""
136138
137- attributes : Optional [EmployerContributionAttributes ] = None
138-
139139
140140class TaxAttributesMetadata (BaseModel ):
141- metadata : Dict [str , Optional [object ]]
141+ metadata : Optional [ Dict [str , Optional [object ]]] = None
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,13 +147,15 @@ class TaxAttributesMetadata(BaseModel):
147147
148148
149149class TaxAttributes (BaseModel ):
150- metadata : TaxAttributesMetadata
150+ metadata : Optional [ TaxAttributesMetadata ] = None
151151
152152
153153class Tax (BaseModel ):
154154 amount : Optional [int ] = None
155155 """The tax amount in cents."""
156156
157+ attributes : Optional [TaxAttributes ] = None
158+
157159 currency : Optional [str ] = None
158160 """The currency code."""
159161
@@ -166,8 +168,6 @@ class Tax(BaseModel):
166168 type : Optional [Literal ["state" , "federal" , "local" , "fica" ]] = None
167169 """The type of taxes."""
168170
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 : str
183+ individual_id : Optional [ str ] = None
184184 """A stable Finch `id` (UUID v4) for an individual in the company"""
185185
186186 net_pay : Optional [Money ] = None
0 commit comments