Skip to content

Commit 1fbbcfa

Browse files
feat(api): api update
1 parent 1279854 commit 1fbbcfa

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
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-670346966a2922b17f8aeaa07166171719883a30abbc97ba62da2312c9979076.yml
3-
openapi_spec_hash: 9dae98ca7e7e2e3b848f70973767cde2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-09c5188f5c6dd563b943cad60f5896331ef5fc06e4a699700578f0bc60bd62a1.yml
3+
openapi_spec_hash: 9283951c1a0b3fd41a5e38b647649da6
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

src/finch/types/hris/pay_statement.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class EarningAttributesMetadata(BaseModel):
28-
metadata: Optional[Dict[str, object]] = None
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,
@@ -77,7 +77,7 @@ class Earning(BaseModel):
7777

7878

7979
class EmployeeDeductionAttributesMetadata(BaseModel):
80-
metadata: Optional[Dict[str, object]] = None
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,
@@ -109,7 +109,7 @@ class EmployeeDeduction(BaseModel):
109109

110110

111111
class EmployerContributionAttributesMetadata(BaseModel):
112-
metadata: Optional[Dict[str, object]] = None
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,
@@ -138,7 +138,7 @@ class EmployerContribution(BaseModel):
138138

139139

140140
class TaxAttributesMetadata(BaseModel):
141-
metadata: Optional[Dict[str, object]] = None
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,

src/finch/types/sandbox/payment_create_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PaymentCreateParams(TypedDict, total=False):
3535

3636

3737
class PayStatementEarningAttributesMetadata(TypedDict, total=False):
38-
metadata: Dict[str, object]
38+
metadata: Dict[str, Optional[object]]
3939
"""The metadata to be attached to the entity by existing rules.
4040
4141
It is a key-value pairs where the values can be of any type (string, number,
@@ -87,7 +87,7 @@ class PayStatementEarning(TypedDict, total=False):
8787

8888

8989
class PayStatementEmployeeDeductionAttributesMetadata(TypedDict, total=False):
90-
metadata: Dict[str, object]
90+
metadata: Dict[str, Optional[object]]
9191
"""The metadata to be attached to the entity by existing rules.
9292
9393
It is a key-value pairs where the values can be of any type (string, number,
@@ -119,7 +119,7 @@ class PayStatementEmployeeDeduction(TypedDict, total=False):
119119

120120

121121
class PayStatementEmployerContributionAttributesMetadata(TypedDict, total=False):
122-
metadata: Dict[str, object]
122+
metadata: Dict[str, Optional[object]]
123123
"""The metadata to be attached to the entity by existing rules.
124124
125125
It is a key-value pairs where the values can be of any type (string, number,
@@ -148,7 +148,7 @@ class PayStatementEmployerContribution(TypedDict, total=False):
148148

149149

150150
class PayStatementTaxAttributesMetadata(TypedDict, total=False):
151-
metadata: Dict[str, object]
151+
metadata: Dict[str, Optional[object]]
152152
"""The metadata to be attached to the entity by existing rules.
153153
154154
It is a key-value pairs where the values can be of any type (string, number,

tests/api_resources/sandbox/test_payment.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
4040
],
4141
"employee_deductions": [
4242
{
43-
"amount": 2000,
43+
"amount": 0,
4444
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
45-
"currency": "usd",
46-
"name": "401k test",
45+
"currency": "currency",
46+
"name": "name",
4747
"pre_tax": True,
4848
"type": "401k",
4949
}
@@ -61,7 +61,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
6161
"amount": 0,
6262
"currency": "currency",
6363
},
64-
"individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a",
64+
"individual_id": "individual_id",
6565
"net_pay": {
6666
"amount": 0,
6767
"currency": "currency",
@@ -132,10 +132,10 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
132132
],
133133
"employee_deductions": [
134134
{
135-
"amount": 2000,
135+
"amount": 0,
136136
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
137-
"currency": "usd",
138-
"name": "401k test",
137+
"currency": "currency",
138+
"name": "name",
139139
"pre_tax": True,
140140
"type": "401k",
141141
}
@@ -153,7 +153,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
153153
"amount": 0,
154154
"currency": "currency",
155155
},
156-
"individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a",
156+
"individual_id": "individual_id",
157157
"net_pay": {
158158
"amount": 0,
159159
"currency": "currency",

0 commit comments

Comments
 (0)