Skip to content

Commit 838c2e1

Browse files
feat(api): api update (#545)
1 parent 0b2d28e commit 838c2e1

File tree

6 files changed

+13
-39
lines changed

6 files changed

+13
-39
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 39
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-8782658ecd57622a964238df7b5dd997ac63789f8220852660ecf32fa115296b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-86c1f66eea438d53292663f221e778d0864d63a7e635e8714b2b31800a7344ac.yml

src/finch/types/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
)
1313
from .location import Location as Location
1414
from .provider import Provider as Provider
15-
from .money_param import MoneyParam as MoneyParam
1615
from .income_param import IncomeParam as IncomeParam
1716
from .company_event import CompanyEvent as CompanyEvent
1817
from .introspection import Introspection as Introspection

src/finch/types/hris/pay_statement.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from typing import List, Optional
44
from typing_extensions import Literal
55

6-
from ..money import Money
76
from ..._models import BaseModel
87
from .benefit_type import BenefitType
98

@@ -104,12 +103,14 @@ class PayStatement(BaseModel):
104103

105104
employer_contributions: Optional[List[Optional[EmployerContribution]]] = None
106105

107-
gross_pay: Optional[Money] = None
106+
gross_pay: Optional[float] = None
107+
"""The gross pay for the pay period"""
108108

109109
individual_id: Optional[str] = None
110110
"""A stable Finch `id` (UUID v4) for an individual in the company"""
111111

112-
net_pay: Optional[Money] = None
112+
net_pay: Optional[float] = None
113+
"""The net pay for the pay period"""
113114

114115
payment_method: Optional[Literal["check", "direct_deposit"]] = None
115116
"""The payment method."""

src/finch/types/money_param.py

-15
This file was deleted.

src/finch/types/sandbox/payment_create_params.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from typing import Iterable, Optional
66
from typing_extensions import Literal, TypedDict
77

8-
from ..money_param import MoneyParam
98
from ..hris.benefit_type import BenefitType
109

1110
__all__ = [
@@ -120,12 +119,14 @@ class PayStatement(TypedDict, total=False):
120119

121120
employer_contributions: Optional[Iterable[Optional[PayStatementEmployerContribution]]]
122121

123-
gross_pay: Optional[MoneyParam]
122+
gross_pay: Optional[float]
123+
"""The gross pay for the pay period"""
124124

125125
individual_id: str
126126
"""A stable Finch `id` (UUID v4) for an individual in the company"""
127127

128-
net_pay: Optional[MoneyParam]
128+
net_pay: Optional[float]
129+
"""The net pay for the pay period"""
129130

130131
payment_method: Optional[Literal["check", "direct_deposit"]]
131132
"""The payment method."""

tests/api_resources/sandbox/test_payment.py

+4-16
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,9 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
5454
"type": "401k",
5555
}
5656
],
57-
"gross_pay": {
58-
"amount": 0,
59-
"currency": "currency",
60-
},
57+
"gross_pay": 0,
6158
"individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a",
62-
"net_pay": {
63-
"amount": 0,
64-
"currency": "currency",
65-
},
59+
"net_pay": 0,
6660
"payment_method": "check",
6761
"taxes": [
6862
{
@@ -142,15 +136,9 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
142136
"type": "401k",
143137
}
144138
],
145-
"gross_pay": {
146-
"amount": 0,
147-
"currency": "currency",
148-
},
139+
"gross_pay": 0,
149140
"individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a",
150-
"net_pay": {
151-
"amount": 0,
152-
"currency": "currency",
153-
},
141+
"net_pay": 0,
154142
"payment_method": "check",
155143
"taxes": [
156144
{

0 commit comments

Comments
 (0)