diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a0e3f4c85..37458fa12 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.261.0" + ".": "0.262.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a7be6ee39..327b8df67 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fa06f0029b2f1cf3d611a6cb6c7fabdbf09dba80d0953e49dd4395bbd3bc3107.yml -openapi_spec_hash: 724b6c1c0e7c9e28f35e9ad66e3fe54e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e25bdcd9c9cd987962f1507200b619dc7c32f91b940e5ca9110f24bdb294b14a.yml +openapi_spec_hash: 693a205b039e410d9a6b49a5b0ccc72c config_hash: 97774f946585cecb19181a1817870d0b diff --git a/CHANGELOG.md b/CHANGELOG.md index a4c4ea2ec..1b459b3e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.262.0 (2025-07-08) + +Full Changelog: [v0.261.0...v0.262.0](https://github.com/Increase/increase-python/compare/v0.261.0...v0.262.0) + +### Features + +* **api:** api update ([a10830d](https://github.com/Increase/increase-python/commit/a10830dcaefc3530895ec8bf53889365687fa038)) + + +### Chores + +* **internal:** bump pinned h11 dep ([f0f11b9](https://github.com/Increase/increase-python/commit/f0f11b93e5eb1a351b4b6440c61363ebc0e1fb4a)) +* **package:** mark python 3.13 as supported ([9dffb62](https://github.com/Increase/increase-python/commit/9dffb62a420775301b75cba78037c6b809ba1f28)) + ## 0.261.0 (2025-07-07) Full Changelog: [v0.260.0...v0.261.0](https://github.com/Increase/increase-python/compare/v0.260.0...v0.261.0) diff --git a/pyproject.toml b/pyproject.toml index d08b431d8..5c4060bbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.261.0" +version = "0.262.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Operating System :: OS Independent", "Operating System :: POSIX", "Operating System :: MacOS", diff --git a/requirements-dev.lock b/requirements-dev.lock index 5022a9b12..ab1226978 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -48,9 +48,9 @@ filelock==3.12.4 frozenlist==1.6.2 # via aiohttp # via aiosignal -h11==0.14.0 +h11==0.16.0 # via httpcore -httpcore==1.0.2 +httpcore==1.0.9 # via httpx httpx==0.28.1 # via httpx-aiohttp diff --git a/requirements.lock b/requirements.lock index 1a5a58073..c3a472639 100644 --- a/requirements.lock +++ b/requirements.lock @@ -36,9 +36,9 @@ exceptiongroup==1.2.2 frozenlist==1.6.2 # via aiohttp # via aiosignal -h11==0.14.0 +h11==0.16.0 # via httpcore -httpcore==1.0.2 +httpcore==1.0.9 # via httpx httpx==0.28.1 # via httpx-aiohttp diff --git a/src/increase/_version.py b/src/increase/_version.py index 6e18e0898..e2507b339 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.261.0" # x-release-please-version +__version__ = "0.262.0" # x-release-please-version diff --git a/src/increase/resources/wire_drawdown_requests.py b/src/increase/resources/wire_drawdown_requests.py index 48366ded1..970889d0e 100644 --- a/src/increase/resources/wire_drawdown_requests.py +++ b/src/increase/resources/wire_drawdown_requests.py @@ -47,17 +47,13 @@ def create( *, account_number_id: str, amount: int, - message_to_recipient: str, - recipient_account_number: str, - recipient_name: str, - recipient_routing_number: str, - originator_address_line1: str | NotGiven = NOT_GIVEN, - originator_address_line2: str | NotGiven = NOT_GIVEN, - originator_address_line3: str | NotGiven = NOT_GIVEN, - originator_name: str | NotGiven = NOT_GIVEN, - recipient_address_line1: str | NotGiven = NOT_GIVEN, - recipient_address_line2: str | NotGiven = NOT_GIVEN, - recipient_address_line3: str | NotGiven = NOT_GIVEN, + creditor_address: wire_drawdown_request_create_params.CreditorAddress, + creditor_name: str, + debtor_account_number: str, + debtor_address: wire_drawdown_request_create_params.DebtorAddress, + debtor_name: str, + debtor_routing_number: str, + unstructured_remittance_information: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -70,39 +66,23 @@ def create( Create a Wire Drawdown Request Args: - account_number_id: The Account Number to which the recipient should send funds. + account_number_id: The Account Number to which the debtor should send funds. - amount: The amount requested from the recipient, in USD cents. + amount: The amount requested from the debtor, in USD cents. - message_to_recipient: A message the recipient will see as part of the request. + creditor_address: The creditor's address. - recipient_account_number: The drawdown request's recipient's account number. + creditor_name: The creditor's name. - recipient_name: The drawdown request's recipient's name. + debtor_account_number: The debtor's account number. - recipient_routing_number: The drawdown request's recipient's routing number. + debtor_address: The debtor's address. - originator_address_line1: The drawdown request originator's address line 1. This is only necessary if - you're requesting a payment to a commingled account. Otherwise, we'll use the - associated entity's details. + debtor_name: The debtor's name. - originator_address_line2: The drawdown request originator's address line 2. This is only necessary if - you're requesting a payment to a commingled account. Otherwise, we'll use the - associated entity's details. + debtor_routing_number: The debtor's routing number. - originator_address_line3: The drawdown request originator's address line 3. This is only necessary if - you're requesting a payment to a commingled account. Otherwise, we'll use the - associated entity's details. - - originator_name: The drawdown request originator's name. This is only necessary if you're - requesting a payment to a commingled account. Otherwise, we'll use the - associated entity's details. - - recipient_address_line1: Line 1 of the drawdown request's recipient's address. - - recipient_address_line2: Line 2 of the drawdown request's recipient's address. - - recipient_address_line3: Line 3 of the drawdown request's recipient's address. + unstructured_remittance_information: Remittance information the debtor will see as part of the request. extra_headers: Send extra headers @@ -120,17 +100,13 @@ def create( { "account_number_id": account_number_id, "amount": amount, - "message_to_recipient": message_to_recipient, - "recipient_account_number": recipient_account_number, - "recipient_name": recipient_name, - "recipient_routing_number": recipient_routing_number, - "originator_address_line1": originator_address_line1, - "originator_address_line2": originator_address_line2, - "originator_address_line3": originator_address_line3, - "originator_name": originator_name, - "recipient_address_line1": recipient_address_line1, - "recipient_address_line2": recipient_address_line2, - "recipient_address_line3": recipient_address_line3, + "creditor_address": creditor_address, + "creditor_name": creditor_name, + "debtor_account_number": debtor_account_number, + "debtor_address": debtor_address, + "debtor_name": debtor_name, + "debtor_routing_number": debtor_routing_number, + "unstructured_remittance_information": unstructured_remittance_information, }, wire_drawdown_request_create_params.WireDrawdownRequestCreateParams, ), @@ -264,17 +240,13 @@ async def create( *, account_number_id: str, amount: int, - message_to_recipient: str, - recipient_account_number: str, - recipient_name: str, - recipient_routing_number: str, - originator_address_line1: str | NotGiven = NOT_GIVEN, - originator_address_line2: str | NotGiven = NOT_GIVEN, - originator_address_line3: str | NotGiven = NOT_GIVEN, - originator_name: str | NotGiven = NOT_GIVEN, - recipient_address_line1: str | NotGiven = NOT_GIVEN, - recipient_address_line2: str | NotGiven = NOT_GIVEN, - recipient_address_line3: str | NotGiven = NOT_GIVEN, + creditor_address: wire_drawdown_request_create_params.CreditorAddress, + creditor_name: str, + debtor_account_number: str, + debtor_address: wire_drawdown_request_create_params.DebtorAddress, + debtor_name: str, + debtor_routing_number: str, + unstructured_remittance_information: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -287,39 +259,23 @@ async def create( Create a Wire Drawdown Request Args: - account_number_id: The Account Number to which the recipient should send funds. - - amount: The amount requested from the recipient, in USD cents. - - message_to_recipient: A message the recipient will see as part of the request. - - recipient_account_number: The drawdown request's recipient's account number. - - recipient_name: The drawdown request's recipient's name. + account_number_id: The Account Number to which the debtor should send funds. - recipient_routing_number: The drawdown request's recipient's routing number. + amount: The amount requested from the debtor, in USD cents. - originator_address_line1: The drawdown request originator's address line 1. This is only necessary if - you're requesting a payment to a commingled account. Otherwise, we'll use the - associated entity's details. + creditor_address: The creditor's address. - originator_address_line2: The drawdown request originator's address line 2. This is only necessary if - you're requesting a payment to a commingled account. Otherwise, we'll use the - associated entity's details. + creditor_name: The creditor's name. - originator_address_line3: The drawdown request originator's address line 3. This is only necessary if - you're requesting a payment to a commingled account. Otherwise, we'll use the - associated entity's details. + debtor_account_number: The debtor's account number. - originator_name: The drawdown request originator's name. This is only necessary if you're - requesting a payment to a commingled account. Otherwise, we'll use the - associated entity's details. + debtor_address: The debtor's address. - recipient_address_line1: Line 1 of the drawdown request's recipient's address. + debtor_name: The debtor's name. - recipient_address_line2: Line 2 of the drawdown request's recipient's address. + debtor_routing_number: The debtor's routing number. - recipient_address_line3: Line 3 of the drawdown request's recipient's address. + unstructured_remittance_information: Remittance information the debtor will see as part of the request. extra_headers: Send extra headers @@ -337,17 +293,13 @@ async def create( { "account_number_id": account_number_id, "amount": amount, - "message_to_recipient": message_to_recipient, - "recipient_account_number": recipient_account_number, - "recipient_name": recipient_name, - "recipient_routing_number": recipient_routing_number, - "originator_address_line1": originator_address_line1, - "originator_address_line2": originator_address_line2, - "originator_address_line3": originator_address_line3, - "originator_name": originator_name, - "recipient_address_line1": recipient_address_line1, - "recipient_address_line2": recipient_address_line2, - "recipient_address_line3": recipient_address_line3, + "creditor_address": creditor_address, + "creditor_name": creditor_name, + "debtor_account_number": debtor_account_number, + "debtor_address": debtor_address, + "debtor_name": debtor_name, + "debtor_routing_number": debtor_routing_number, + "unstructured_remittance_information": unstructured_remittance_information, }, wire_drawdown_request_create_params.WireDrawdownRequestCreateParams, ), diff --git a/src/increase/types/wire_drawdown_request.py b/src/increase/types/wire_drawdown_request.py index b9c877167..320191b1c 100644 --- a/src/increase/types/wire_drawdown_request.py +++ b/src/increase/types/wire_drawdown_request.py @@ -6,7 +6,55 @@ from .._models import BaseModel -__all__ = ["WireDrawdownRequest", "Submission"] +__all__ = ["WireDrawdownRequest", "CreditorAddress", "DebtorAddress", "Submission"] + + +class CreditorAddress(BaseModel): + city: str + """The city, district, town, or village of the address.""" + + country: str + """ + The two-letter + [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + the country of the address. + """ + + line1: str + """The first line of the address.""" + + line2: Optional[str] = None + """The second line of the address.""" + + postal_code: Optional[str] = None + """The ZIP code of the address.""" + + state: Optional[str] = None + """The address state.""" + + +class DebtorAddress(BaseModel): + city: str + """The city, district, town, or village of the address.""" + + country: str + """ + The two-letter + [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + the country of the address. + """ + + line1: str + """The first line of the address.""" + + line2: Optional[str] = None + """The second line of the address.""" + + postal_code: Optional[str] = None + """The ZIP code of the address.""" + + state: Optional[str] = None + """The address state.""" class Submission(BaseModel): @@ -23,8 +71,8 @@ class WireDrawdownRequest(BaseModel): account_number_id: str """ - The Account Number to which the recipient of this request is being requested to - send funds. + The Account Number to which the debtor—the recipient of this request—is being + requested to send funds. """ amount: int @@ -36,12 +84,30 @@ class WireDrawdownRequest(BaseModel): the wire drawdown request was created. """ + creditor_address: CreditorAddress + """The creditor's address.""" + + creditor_name: str + """The creditor's name.""" + currency: str """ The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being requested. Will always be "USD". """ + debtor_account_number: str + """The debtor's account number.""" + + debtor_address: DebtorAddress + """The debtor's address.""" + + debtor_name: str + """The debtor's name.""" + + debtor_routing_number: str + """The debtor's routing number.""" + fulfillment_inbound_wire_transfer_id: Optional[str] = None """ If the recipient fulfills the drawdown request by sending funds, then this will @@ -56,39 +122,6 @@ class WireDrawdownRequest(BaseModel): [idempotency](https://increase.com/documentation/idempotency-keys). """ - message_to_recipient: str - """The message the recipient will see as part of the drawdown request.""" - - originator_address_line1: Optional[str] = None - """The originator's address line 1.""" - - originator_address_line2: Optional[str] = None - """The originator's address line 2.""" - - originator_address_line3: Optional[str] = None - """The originator's address line 3.""" - - originator_name: Optional[str] = None - """The originator's name.""" - - recipient_account_number: str - """The drawdown request's recipient's account number.""" - - recipient_address_line1: Optional[str] = None - """Line 1 of the drawdown request's recipient's address.""" - - recipient_address_line2: Optional[str] = None - """Line 2 of the drawdown request's recipient's address.""" - - recipient_address_line3: Optional[str] = None - """Line 3 of the drawdown request's recipient's address.""" - - recipient_name: Optional[str] = None - """The drawdown request's recipient's name.""" - - recipient_routing_number: str - """The drawdown request's recipient's routing number.""" - status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] """The lifecycle status of the drawdown request. @@ -111,3 +144,6 @@ class WireDrawdownRequest(BaseModel): For this resource it will always be `wire_drawdown_request`. """ + + unstructured_remittance_information: str + """Remittance information the debtor will see as part of the drawdown request.""" diff --git a/src/increase/types/wire_drawdown_request_create_params.py b/src/increase/types/wire_drawdown_request_create_params.py index 614ea73cc..1902998ff 100644 --- a/src/increase/types/wire_drawdown_request_create_params.py +++ b/src/increase/types/wire_drawdown_request_create_params.py @@ -4,61 +4,81 @@ from typing_extensions import Required, TypedDict -__all__ = ["WireDrawdownRequestCreateParams"] +__all__ = ["WireDrawdownRequestCreateParams", "CreditorAddress", "DebtorAddress"] class WireDrawdownRequestCreateParams(TypedDict, total=False): account_number_id: Required[str] - """The Account Number to which the recipient should send funds.""" + """The Account Number to which the debtor should send funds.""" amount: Required[int] - """The amount requested from the recipient, in USD cents.""" + """The amount requested from the debtor, in USD cents.""" - message_to_recipient: Required[str] - """A message the recipient will see as part of the request.""" + creditor_address: Required[CreditorAddress] + """The creditor's address.""" - recipient_account_number: Required[str] - """The drawdown request's recipient's account number.""" + creditor_name: Required[str] + """The creditor's name.""" - recipient_name: Required[str] - """The drawdown request's recipient's name.""" + debtor_account_number: Required[str] + """The debtor's account number.""" - recipient_routing_number: Required[str] - """The drawdown request's recipient's routing number.""" + debtor_address: Required[DebtorAddress] + """The debtor's address.""" - originator_address_line1: str - """The drawdown request originator's address line 1. + debtor_name: Required[str] + """The debtor's name.""" - This is only necessary if you're requesting a payment to a commingled account. - Otherwise, we'll use the associated entity's details. - """ + debtor_routing_number: Required[str] + """The debtor's routing number.""" - originator_address_line2: str - """The drawdown request originator's address line 2. + unstructured_remittance_information: Required[str] + """Remittance information the debtor will see as part of the request.""" - This is only necessary if you're requesting a payment to a commingled account. - Otherwise, we'll use the associated entity's details. - """ - originator_address_line3: str - """The drawdown request originator's address line 3. +class CreditorAddress(TypedDict, total=False): + city: Required[str] + """The city, district, town, or village of the address.""" - This is only necessary if you're requesting a payment to a commingled account. - Otherwise, we'll use the associated entity's details. + country: Required[str] + """ + The two-letter + [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + the country of the address. """ - originator_name: str - """The drawdown request originator's name. + line1: Required[str] + """The first line of the address. This is usually the street number and street.""" + + line2: str + """The second line of the address. This might be the floor or room number.""" + + postal_code: str + """The ZIP code of the address.""" - This is only necessary if you're requesting a payment to a commingled account. - Otherwise, we'll use the associated entity's details. + state: str + """The address state.""" + + +class DebtorAddress(TypedDict, total=False): + city: Required[str] + """The city, district, town, or village of the address.""" + + country: Required[str] """ + The two-letter + [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for + the country of the address. + """ + + line1: Required[str] + """The first line of the address. This is usually the street number and street.""" - recipient_address_line1: str - """Line 1 of the drawdown request's recipient's address.""" + line2: str + """The second line of the address. This might be the floor or room number.""" - recipient_address_line2: str - """Line 2 of the drawdown request's recipient's address.""" + postal_code: str + """The ZIP code of the address.""" - recipient_address_line3: str - """Line 3 of the drawdown request's recipient's address.""" + state: str + """The address state.""" diff --git a/tests/api_resources/test_wire_drawdown_requests.py b/tests/api_resources/test_wire_drawdown_requests.py index 3d7c33167..01d77f275 100644 --- a/tests/api_resources/test_wire_drawdown_requests.py +++ b/tests/api_resources/test_wire_drawdown_requests.py @@ -23,10 +23,21 @@ def test_method_create(self, client: Increase) -> None: wire_drawdown_request = client.wire_drawdown_requests.create( account_number_id="account_number_v18nkfqm6afpsrvy82b2", amount=10000, - message_to_recipient="Invoice 29582", - recipient_account_number="987654321", - recipient_name="Ian Crease", - recipient_routing_number="101050001", + creditor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + creditor_name="National Phonograph Company", + debtor_account_number="987654321", + debtor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + debtor_name="Ian Crease", + debtor_routing_number="101050001", + unstructured_remittance_information="Invoice 29582", ) assert_matches_type(WireDrawdownRequest, wire_drawdown_request, path=["response"]) @@ -35,17 +46,27 @@ def test_method_create_with_all_params(self, client: Increase) -> None: wire_drawdown_request = client.wire_drawdown_requests.create( account_number_id="account_number_v18nkfqm6afpsrvy82b2", amount=10000, - message_to_recipient="Invoice 29582", - recipient_account_number="987654321", - recipient_name="Ian Crease", - recipient_routing_number="101050001", - originator_address_line1="x", - originator_address_line2="x", - originator_address_line3="x", - originator_name="x", - recipient_address_line1="33 Liberty Street", - recipient_address_line2="New York, NY, 10045", - recipient_address_line3="x", + creditor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + "line2": "x", + "postal_code": "10045", + "state": "NY", + }, + creditor_name="National Phonograph Company", + debtor_account_number="987654321", + debtor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + "line2": "x", + "postal_code": "10045", + "state": "NY", + }, + debtor_name="Ian Crease", + debtor_routing_number="101050001", + unstructured_remittance_information="Invoice 29582", ) assert_matches_type(WireDrawdownRequest, wire_drawdown_request, path=["response"]) @@ -54,10 +75,21 @@ def test_raw_response_create(self, client: Increase) -> None: response = client.wire_drawdown_requests.with_raw_response.create( account_number_id="account_number_v18nkfqm6afpsrvy82b2", amount=10000, - message_to_recipient="Invoice 29582", - recipient_account_number="987654321", - recipient_name="Ian Crease", - recipient_routing_number="101050001", + creditor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + creditor_name="National Phonograph Company", + debtor_account_number="987654321", + debtor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + debtor_name="Ian Crease", + debtor_routing_number="101050001", + unstructured_remittance_information="Invoice 29582", ) assert response.is_closed is True @@ -70,10 +102,21 @@ def test_streaming_response_create(self, client: Increase) -> None: with client.wire_drawdown_requests.with_streaming_response.create( account_number_id="account_number_v18nkfqm6afpsrvy82b2", amount=10000, - message_to_recipient="Invoice 29582", - recipient_account_number="987654321", - recipient_name="Ian Crease", - recipient_routing_number="101050001", + creditor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + creditor_name="National Phonograph Company", + debtor_account_number="987654321", + debtor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + debtor_name="Ian Crease", + debtor_routing_number="101050001", + unstructured_remittance_information="Invoice 29582", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -169,10 +212,21 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None: wire_drawdown_request = await async_client.wire_drawdown_requests.create( account_number_id="account_number_v18nkfqm6afpsrvy82b2", amount=10000, - message_to_recipient="Invoice 29582", - recipient_account_number="987654321", - recipient_name="Ian Crease", - recipient_routing_number="101050001", + creditor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + creditor_name="National Phonograph Company", + debtor_account_number="987654321", + debtor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + debtor_name="Ian Crease", + debtor_routing_number="101050001", + unstructured_remittance_information="Invoice 29582", ) assert_matches_type(WireDrawdownRequest, wire_drawdown_request, path=["response"]) @@ -181,17 +235,27 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) wire_drawdown_request = await async_client.wire_drawdown_requests.create( account_number_id="account_number_v18nkfqm6afpsrvy82b2", amount=10000, - message_to_recipient="Invoice 29582", - recipient_account_number="987654321", - recipient_name="Ian Crease", - recipient_routing_number="101050001", - originator_address_line1="x", - originator_address_line2="x", - originator_address_line3="x", - originator_name="x", - recipient_address_line1="33 Liberty Street", - recipient_address_line2="New York, NY, 10045", - recipient_address_line3="x", + creditor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + "line2": "x", + "postal_code": "10045", + "state": "NY", + }, + creditor_name="National Phonograph Company", + debtor_account_number="987654321", + debtor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + "line2": "x", + "postal_code": "10045", + "state": "NY", + }, + debtor_name="Ian Crease", + debtor_routing_number="101050001", + unstructured_remittance_information="Invoice 29582", ) assert_matches_type(WireDrawdownRequest, wire_drawdown_request, path=["response"]) @@ -200,10 +264,21 @@ async def test_raw_response_create(self, async_client: AsyncIncrease) -> None: response = await async_client.wire_drawdown_requests.with_raw_response.create( account_number_id="account_number_v18nkfqm6afpsrvy82b2", amount=10000, - message_to_recipient="Invoice 29582", - recipient_account_number="987654321", - recipient_name="Ian Crease", - recipient_routing_number="101050001", + creditor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + creditor_name="National Phonograph Company", + debtor_account_number="987654321", + debtor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + debtor_name="Ian Crease", + debtor_routing_number="101050001", + unstructured_remittance_information="Invoice 29582", ) assert response.is_closed is True @@ -216,10 +291,21 @@ async def test_streaming_response_create(self, async_client: AsyncIncrease) -> N async with async_client.wire_drawdown_requests.with_streaming_response.create( account_number_id="account_number_v18nkfqm6afpsrvy82b2", amount=10000, - message_to_recipient="Invoice 29582", - recipient_account_number="987654321", - recipient_name="Ian Crease", - recipient_routing_number="101050001", + creditor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + creditor_name="National Phonograph Company", + debtor_account_number="987654321", + debtor_address={ + "city": "New York", + "country": "US", + "line1": "33 Liberty Street", + }, + debtor_name="Ian Crease", + debtor_routing_number="101050001", + unstructured_remittance_information="Invoice 29582", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python"