Skip to content

Commit

Permalink
feat(api): api update (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 12, 2024
1 parent 0b2d28e commit 838c2e1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 39
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-8782658ecd57622a964238df7b5dd997ac63789f8220852660ecf32fa115296b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-86c1f66eea438d53292663f221e778d0864d63a7e635e8714b2b31800a7344ac.yml
1 change: 0 additions & 1 deletion src/finch/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
)
from .location import Location as Location
from .provider import Provider as Provider
from .money_param import MoneyParam as MoneyParam
from .income_param import IncomeParam as IncomeParam
from .company_event import CompanyEvent as CompanyEvent
from .introspection import Introspection as Introspection
Expand Down
7 changes: 4 additions & 3 deletions src/finch/types/hris/pay_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import List, Optional
from typing_extensions import Literal

from ..money import Money
from ..._models import BaseModel
from .benefit_type import BenefitType

Expand Down Expand Up @@ -104,12 +103,14 @@ class PayStatement(BaseModel):

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

gross_pay: Optional[Money] = None
gross_pay: Optional[float] = None
"""The gross pay for the pay period"""

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

net_pay: Optional[Money] = None
net_pay: Optional[float] = None
"""The net pay for the pay period"""

payment_method: Optional[Literal["check", "direct_deposit"]] = None
"""The payment method."""
Expand Down
15 changes: 0 additions & 15 deletions src/finch/types/money_param.py

This file was deleted.

7 changes: 4 additions & 3 deletions src/finch/types/sandbox/payment_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import Iterable, Optional
from typing_extensions import Literal, TypedDict

from ..money_param import MoneyParam
from ..hris.benefit_type import BenefitType

__all__ = [
Expand Down Expand Up @@ -120,12 +119,14 @@ class PayStatement(TypedDict, total=False):

employer_contributions: Optional[Iterable[Optional[PayStatementEmployerContribution]]]

gross_pay: Optional[MoneyParam]
gross_pay: Optional[float]
"""The gross pay for the pay period"""

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

net_pay: Optional[MoneyParam]
net_pay: Optional[float]
"""The net pay for the pay period"""

payment_method: Optional[Literal["check", "direct_deposit"]]
"""The payment method."""
Expand Down
20 changes: 4 additions & 16 deletions tests/api_resources/sandbox/test_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,9 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
"type": "401k",
}
],
"gross_pay": {
"amount": 0,
"currency": "currency",
},
"gross_pay": 0,
"individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a",
"net_pay": {
"amount": 0,
"currency": "currency",
},
"net_pay": 0,
"payment_method": "check",
"taxes": [
{
Expand Down Expand Up @@ -142,15 +136,9 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
"type": "401k",
}
],
"gross_pay": {
"amount": 0,
"currency": "currency",
},
"gross_pay": 0,
"individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a",
"net_pay": {
"amount": 0,
"currency": "currency",
},
"net_pay": 0,
"payment_method": "check",
"taxes": [
{
Expand Down

0 comments on commit 838c2e1

Please sign in to comment.