Skip to content

Commit 97ef62d

Browse files
feat(api): api update
1 parent 68ed0de commit 97ef62d

File tree

8 files changed

+173
-291
lines changed

8 files changed

+173
-291
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-dd2cdf274497a0f36aaa493457a1144f51f6c28e14b4521acca9715747688b50.yml
3-
openapi_spec_hash: 8bbc0ac9dae255055b69c1d040c43c4b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f7e741bc6e0175fd96a9db5348092b90a77b0985154c0814bb681ad5dccdf19a.yml
3+
openapi_spec_hash: b348a9ef407a8e91dd770fcb219d4ac5
44
config_hash: 5146b12344dae76238940989dac1e8a0

src/finch/resources/sandbox/payment.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
5+
from typing import Union, Iterable
6+
from datetime import date
67

78
import httpx
89

@@ -14,7 +15,6 @@
1415
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
1516
from ..._base_client import make_request_options
1617
from ...types.sandbox import payment_create_params
17-
from ...types.hris.pay_statement_param import PayStatementParam
1818
from ...types.sandbox.payment_create_response import PaymentCreateResponse
1919

2020
__all__ = ["Payment", "AsyncPayment"]
@@ -43,9 +43,9 @@ def with_streaming_response(self) -> PaymentWithStreamingResponse:
4343
def create(
4444
self,
4545
*,
46-
end_date: str | NotGiven = NOT_GIVEN,
47-
pay_statements: Iterable[PayStatementParam] | NotGiven = NOT_GIVEN,
48-
start_date: str | NotGiven = NOT_GIVEN,
46+
end_date: Union[str, date] | NotGiven = NOT_GIVEN,
47+
pay_statements: Iterable[payment_create_params.PayStatement] | NotGiven = NOT_GIVEN,
48+
start_date: Union[str, date] | NotGiven = NOT_GIVEN,
4949
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5050
# The extra values given here take precedence over values defined on the client or passed to this method.
5151
extra_headers: Headers | None = None,
@@ -57,6 +57,8 @@ def create(
5757
Add a new sandbox payment
5858
5959
Args:
60+
pay_statements: Array of pay statements to include in the payment.
61+
6062
extra_headers: Send extra headers
6163
6264
extra_query: Add additional query parameters to the request
@@ -105,9 +107,9 @@ def with_streaming_response(self) -> AsyncPaymentWithStreamingResponse:
105107
async def create(
106108
self,
107109
*,
108-
end_date: str | NotGiven = NOT_GIVEN,
109-
pay_statements: Iterable[PayStatementParam] | NotGiven = NOT_GIVEN,
110-
start_date: str | NotGiven = NOT_GIVEN,
110+
end_date: Union[str, date] | NotGiven = NOT_GIVEN,
111+
pay_statements: Iterable[payment_create_params.PayStatement] | NotGiven = NOT_GIVEN,
112+
start_date: Union[str, date] | NotGiven = NOT_GIVEN,
111113
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
112114
# The extra values given here take precedence over values defined on the client or passed to this method.
113115
extra_headers: Headers | None = None,
@@ -119,6 +121,8 @@ async def create(
119121
Add a new sandbox payment
120122
121123
Args:
124+
pay_statements: Array of pay statements to include in the payment.
125+
122126
extra_headers: Send extra headers
123127
124128
extra_query: Add additional query parameters to the request

src/finch/types/__init__.py

Lines changed: 0 additions & 1 deletion
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/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from .supported_benefit import SupportedBenefit as SupportedBenefit
1818
from .benfit_contribution import BenfitContribution as BenfitContribution
1919
from .individual_response import IndividualResponse as IndividualResponse
20-
from .pay_statement_param import PayStatementParam as PayStatementParam
2120
from .payment_list_params import PaymentListParams as PaymentListParams
2221
from .benefit_contribution import BenefitContribution as BenefitContribution
2322
from .document_list_params import DocumentListParams as DocumentListParams

src/finch/types/hris/pay_statement_param.py

Lines changed: 0 additions & 201 deletions
This file was deleted.

src/finch/types/money_param.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)