Skip to content

Commit 7098529

Browse files
feat(api): api update
1 parent 13e718b commit 7098529

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-bf86910e96e83e583689cf5d1a5c583268754026ec68288994fa6a969dc248f2.yml
3-
openapi_spec_hash: 195038e056891afec204c49dadce3b95
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-edbdcdf654a3ab8c23745e1d115fc8b54908eb913571d70f1145a0b6a45cc811.yml
3+
openapi_spec_hash: 1b21e4bfc46daeef1613e410e5aa8f28
44
config_hash: 5146b12344dae76238940989dac1e8a0

src/finch/types/hris/pay_statement.py

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,16 @@
1111
"PayStatement",
1212
"Earning",
1313
"EarningAttributes",
14-
"EarningAttributesMetadata",
1514
"EmployeeDeduction",
1615
"EmployeeDeductionAttributes",
17-
"EmployeeDeductionAttributesMetadata",
1816
"EmployerContribution",
1917
"EmployerContributionAttributes",
20-
"EmployerContributionAttributesMetadata",
2118
"Tax",
2219
"TaxAttributes",
23-
"TaxAttributesMetadata",
2420
]
2521

2622

27-
class EarningAttributesMetadata(BaseModel):
23+
class EarningAttributes(BaseModel):
2824
metadata: Dict[str, Optional[object]]
2925
"""The metadata to be attached to the entity by existing rules.
3026
@@ -33,10 +29,6 @@ class EarningAttributesMetadata(BaseModel):
3329
"""
3430

3531

36-
class EarningAttributes(BaseModel):
37-
metadata: EarningAttributesMetadata
38-
39-
4032
class Earning(BaseModel):
4133
amount: Optional[int] = None
4234
"""The earnings amount in cents."""
@@ -76,7 +68,7 @@ class Earning(BaseModel):
7668
attributes: Optional[EarningAttributes] = None
7769

7870

79-
class EmployeeDeductionAttributesMetadata(BaseModel):
71+
class EmployeeDeductionAttributes(BaseModel):
8072
metadata: Dict[str, Optional[object]]
8173
"""The metadata to be attached to the entity by existing rules.
8274
@@ -85,10 +77,6 @@ class EmployeeDeductionAttributesMetadata(BaseModel):
8577
"""
8678

8779

88-
class EmployeeDeductionAttributes(BaseModel):
89-
metadata: EmployeeDeductionAttributesMetadata
90-
91-
9280
class EmployeeDeduction(BaseModel):
9381
amount: Optional[int] = None
9482
"""The deduction amount in cents."""
@@ -108,7 +96,7 @@ class EmployeeDeduction(BaseModel):
10896
attributes: Optional[EmployeeDeductionAttributes] = None
10997

11098

111-
class EmployerContributionAttributesMetadata(BaseModel):
99+
class EmployerContributionAttributes(BaseModel):
112100
metadata: Dict[str, Optional[object]]
113101
"""The metadata to be attached to the entity by existing rules.
114102
@@ -117,10 +105,6 @@ class EmployerContributionAttributesMetadata(BaseModel):
117105
"""
118106

119107

120-
class EmployerContributionAttributes(BaseModel):
121-
metadata: EmployerContributionAttributesMetadata
122-
123-
124108
class EmployerContribution(BaseModel):
125109
currency: Optional[str] = None
126110
"""The contribution currency."""
@@ -137,7 +121,7 @@ class EmployerContribution(BaseModel):
137121
attributes: Optional[EmployerContributionAttributes] = None
138122

139123

140-
class TaxAttributesMetadata(BaseModel):
124+
class TaxAttributes(BaseModel):
141125
metadata: Dict[str, Optional[object]]
142126
"""The metadata to be attached to the entity by existing rules.
143127
@@ -146,10 +130,6 @@ class TaxAttributesMetadata(BaseModel):
146130
"""
147131

148132

149-
class TaxAttributes(BaseModel):
150-
metadata: TaxAttributesMetadata
151-
152-
153133
class Tax(BaseModel):
154134
currency: Optional[str] = None
155135
"""The currency code."""

0 commit comments

Comments
 (0)