Skip to content

Commit 256d107

Browse files
feat(api): api update (#956)
1 parent e63b4b0 commit 256d107

File tree

8 files changed

+57
-30
lines changed

8 files changed

+57
-30
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 201
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7aa1e3663a83ffd28f86d2c60511be93626acc3d50846c6878fcedfdccaa37ce.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-93fa70b01fd9cf6a31edec954dc66bb9a14a26e2ea0fbe2fc22ed86b7774b239.yml

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ from increase.types import IntrafiBalance
717717

718718
Methods:
719719

720-
- <code title="get /intrafi_balances/{account_id}">client.intrafi_balances.<a href="./src/increase/resources/intrafi_balances.py">retrieve</a>(account_id) -> <a href="./src/increase/types/intrafi_balance.py">IntrafiBalance</a></code>
720+
- <code title="get /accounts/{account_id}/intrafi_balance">client.intrafi_balances.<a href="./src/increase/resources/intrafi_balances.py">intrafi_balance</a>(account_id) -> <a href="./src/increase/types/intrafi_balance.py">IntrafiBalance</a></code>
721721

722722
# IntrafiExclusions
723723

src/increase/resources/intrafi_balances.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def with_streaming_response(self) -> IntrafiBalancesResourceWithStreamingRespons
3939
"""
4040
return IntrafiBalancesResourceWithStreamingResponse(self)
4141

42-
def retrieve(
42+
def intrafi_balance(
4343
self,
4444
account_id: str,
4545
*,
@@ -67,7 +67,7 @@ def retrieve(
6767
if not account_id:
6868
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
6969
return self._get(
70-
f"/intrafi_balances/{account_id}",
70+
f"/accounts/{account_id}/intrafi_balance",
7171
options=make_request_options(
7272
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
7373
),
@@ -95,7 +95,7 @@ def with_streaming_response(self) -> AsyncIntrafiBalancesResourceWithStreamingRe
9595
"""
9696
return AsyncIntrafiBalancesResourceWithStreamingResponse(self)
9797

98-
async def retrieve(
98+
async def intrafi_balance(
9999
self,
100100
account_id: str,
101101
*,
@@ -123,7 +123,7 @@ async def retrieve(
123123
if not account_id:
124124
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
125125
return await self._get(
126-
f"/intrafi_balances/{account_id}",
126+
f"/accounts/{account_id}/intrafi_balance",
127127
options=make_request_options(
128128
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
129129
),
@@ -135,33 +135,33 @@ class IntrafiBalancesResourceWithRawResponse:
135135
def __init__(self, intrafi_balances: IntrafiBalancesResource) -> None:
136136
self._intrafi_balances = intrafi_balances
137137

138-
self.retrieve = to_raw_response_wrapper(
139-
intrafi_balances.retrieve,
138+
self.intrafi_balance = to_raw_response_wrapper(
139+
intrafi_balances.intrafi_balance,
140140
)
141141

142142

143143
class AsyncIntrafiBalancesResourceWithRawResponse:
144144
def __init__(self, intrafi_balances: AsyncIntrafiBalancesResource) -> None:
145145
self._intrafi_balances = intrafi_balances
146146

147-
self.retrieve = async_to_raw_response_wrapper(
148-
intrafi_balances.retrieve,
147+
self.intrafi_balance = async_to_raw_response_wrapper(
148+
intrafi_balances.intrafi_balance,
149149
)
150150

151151

152152
class IntrafiBalancesResourceWithStreamingResponse:
153153
def __init__(self, intrafi_balances: IntrafiBalancesResource) -> None:
154154
self._intrafi_balances = intrafi_balances
155155

156-
self.retrieve = to_streamed_response_wrapper(
157-
intrafi_balances.retrieve,
156+
self.intrafi_balance = to_streamed_response_wrapper(
157+
intrafi_balances.intrafi_balance,
158158
)
159159

160160

161161
class AsyncIntrafiBalancesResourceWithStreamingResponse:
162162
def __init__(self, intrafi_balances: AsyncIntrafiBalancesResource) -> None:
163163
self._intrafi_balances = intrafi_balances
164164

165-
self.retrieve = async_to_streamed_response_wrapper(
166-
intrafi_balances.retrieve,
165+
self.intrafi_balance = async_to_streamed_response_wrapper(
166+
intrafi_balances.intrafi_balance,
167167
)

src/increase/types/inbound_wire_transfer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4+
from datetime import datetime
45
from typing_extensions import Literal
56

67
from .._models import BaseModel
@@ -36,6 +37,12 @@ class InboundWireTransfer(BaseModel):
3637
beneficiary_reference: Optional[str] = None
3738
"""A free-form reference string set by the sender, to help identify the transfer."""
3839

40+
created_at: datetime
41+
"""
42+
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
43+
the inbound wire transfer was created.
44+
"""
45+
3946
description: str
4047
"""An Increase-constructed description of the transfer."""
4148

src/increase/types/intrafi_account_enrollment.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4+
from datetime import datetime
45
from typing_extensions import Literal
56

67
from .._models import BaseModel
@@ -15,6 +16,12 @@ class IntrafiAccountEnrollment(BaseModel):
1516
account_id: str
1617
"""The identifier of the Increase Account being swept into the network."""
1718

19+
created_at: datetime
20+
"""
21+
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
22+
the enrollment was created.
23+
"""
24+
1825
idempotency_key: Optional[str] = None
1926
"""The idempotency key you chose for this object.
2027

src/increase/types/intrafi_exclusion.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ class IntrafiExclusion(BaseModel):
1616
bank_name: str
1717
"""The name of the excluded institution."""
1818

19+
created_at: datetime
20+
"""
21+
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
22+
the exclusion was created.
23+
"""
24+
1925
entity_id: str
2026
"""The entity for which this institution is excluded."""
2127

src/increase/types/wire_drawdown_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4+
from datetime import datetime
45
from typing_extensions import Literal
56

67
from .._models import BaseModel
@@ -29,6 +30,12 @@ class WireDrawdownRequest(BaseModel):
2930
amount: int
3031
"""The amount being requested in cents."""
3132

33+
created_at: datetime
34+
"""
35+
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
36+
the wire drawdown request was created.
37+
"""
38+
3239
currency: str
3340
"""
3441
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being

tests/api_resources/test_intrafi_balances.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ class TestIntrafiBalances:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

2020
@parametrize
21-
def test_method_retrieve(self, client: Increase) -> None:
22-
intrafi_balance = client.intrafi_balances.retrieve(
21+
def test_method_intrafi_balance(self, client: Increase) -> None:
22+
intrafi_balance = client.intrafi_balances.intrafi_balance(
2323
"account_id",
2424
)
2525
assert_matches_type(IntrafiBalance, intrafi_balance, path=["response"])
2626

2727
@parametrize
28-
def test_raw_response_retrieve(self, client: Increase) -> None:
29-
response = client.intrafi_balances.with_raw_response.retrieve(
28+
def test_raw_response_intrafi_balance(self, client: Increase) -> None:
29+
response = client.intrafi_balances.with_raw_response.intrafi_balance(
3030
"account_id",
3131
)
3232

@@ -36,8 +36,8 @@ def test_raw_response_retrieve(self, client: Increase) -> None:
3636
assert_matches_type(IntrafiBalance, intrafi_balance, path=["response"])
3737

3838
@parametrize
39-
def test_streaming_response_retrieve(self, client: Increase) -> None:
40-
with client.intrafi_balances.with_streaming_response.retrieve(
39+
def test_streaming_response_intrafi_balance(self, client: Increase) -> None:
40+
with client.intrafi_balances.with_streaming_response.intrafi_balance(
4141
"account_id",
4242
) as response:
4343
assert not response.is_closed
@@ -49,9 +49,9 @@ def test_streaming_response_retrieve(self, client: Increase) -> None:
4949
assert cast(Any, response.is_closed) is True
5050

5151
@parametrize
52-
def test_path_params_retrieve(self, client: Increase) -> None:
52+
def test_path_params_intrafi_balance(self, client: Increase) -> None:
5353
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
54-
client.intrafi_balances.with_raw_response.retrieve(
54+
client.intrafi_balances.with_raw_response.intrafi_balance(
5555
"",
5656
)
5757

@@ -60,15 +60,15 @@ class TestAsyncIntrafiBalances:
6060
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
6161

6262
@parametrize
63-
async def test_method_retrieve(self, async_client: AsyncIncrease) -> None:
64-
intrafi_balance = await async_client.intrafi_balances.retrieve(
63+
async def test_method_intrafi_balance(self, async_client: AsyncIncrease) -> None:
64+
intrafi_balance = await async_client.intrafi_balances.intrafi_balance(
6565
"account_id",
6666
)
6767
assert_matches_type(IntrafiBalance, intrafi_balance, path=["response"])
6868

6969
@parametrize
70-
async def test_raw_response_retrieve(self, async_client: AsyncIncrease) -> None:
71-
response = await async_client.intrafi_balances.with_raw_response.retrieve(
70+
async def test_raw_response_intrafi_balance(self, async_client: AsyncIncrease) -> None:
71+
response = await async_client.intrafi_balances.with_raw_response.intrafi_balance(
7272
"account_id",
7373
)
7474

@@ -78,8 +78,8 @@ async def test_raw_response_retrieve(self, async_client: AsyncIncrease) -> None:
7878
assert_matches_type(IntrafiBalance, intrafi_balance, path=["response"])
7979

8080
@parametrize
81-
async def test_streaming_response_retrieve(self, async_client: AsyncIncrease) -> None:
82-
async with async_client.intrafi_balances.with_streaming_response.retrieve(
81+
async def test_streaming_response_intrafi_balance(self, async_client: AsyncIncrease) -> None:
82+
async with async_client.intrafi_balances.with_streaming_response.intrafi_balance(
8383
"account_id",
8484
) as response:
8585
assert not response.is_closed
@@ -91,8 +91,8 @@ async def test_streaming_response_retrieve(self, async_client: AsyncIncrease) ->
9191
assert cast(Any, response.is_closed) is True
9292

9393
@parametrize
94-
async def test_path_params_retrieve(self, async_client: AsyncIncrease) -> None:
94+
async def test_path_params_intrafi_balance(self, async_client: AsyncIncrease) -> None:
9595
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
96-
await async_client.intrafi_balances.with_raw_response.retrieve(
96+
await async_client.intrafi_balances.with_raw_response.intrafi_balance(
9797
"",
9898
)

0 commit comments

Comments
 (0)