22
33from __future__ import annotations
44
5- from typing import Iterable
5+ from typing import Union , Iterable
6+ from datetime import date
67
78import httpx
89
1415from ..._response import to_streamed_response_wrapper , async_to_streamed_response_wrapper
1516from ..._base_client import make_request_options
1617from ...types .sandbox import payment_create_params
17- from ...types .hris .pay_statement_param import PayStatementParam
1818from ...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
0 commit comments