Skip to content

Commit b30b739

Browse files
feat(api): api update (#995)
1 parent 47ca68f commit b30b739

13 files changed

+155
-111
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-8882da77555a843811f51c01d96a8a0f5dd36dc70de46bdf01a1e624807ba3a6.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5dd5f2439cdbbb3bffe2ef733d3d173a10ca3233d15763bad8ccf8f87c10e246.yml

src/increase/resources/account_numbers.py

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ def list(
217217
self,
218218
*,
219219
account_id: str | NotGiven = NOT_GIVEN,
220-
ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN,
220+
ach_debit_status: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN,
221221
created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN,
222222
cursor: str | NotGiven = NOT_GIVEN,
223223
idempotency_key: str | NotGiven = NOT_GIVEN,
224224
limit: int | NotGiven = NOT_GIVEN,
225-
status: account_number_list_params.Status | NotGiven = NOT_GIVEN,
225+
status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN,
226226
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
227227
# The extra values given here take precedence over values defined on the client or passed to this method.
228228
extra_headers: Headers | None = None,
@@ -236,6 +236,11 @@ def list(
236236
Args:
237237
account_id: Filter Account Numbers to those belonging to the specified Account.
238238
239+
ach_debit_status: The ACH Debit status to retrieve Account Numbers for.
240+
241+
- `allowed` - ACH Debits are allowed.
242+
- `blocked` - ACH Debits are blocked.
243+
239244
cursor: Return the page of entries after this one.
240245
241246
idempotency_key: Filter records to the one with the specified `idempotency_key` you chose for
@@ -246,6 +251,12 @@ def list(
246251
limit: Limit the size of the list that is returned. The default (and maximum) is 100
247252
objects.
248253
254+
status: The status to retrieve Account Numbers for.
255+
256+
- `active` - The account number is active.
257+
- `disabled` - The account number is temporarily disabled.
258+
- `canceled` - The account number is permanently disabled.
259+
249260
extra_headers: Send extra headers
250261
251262
extra_query: Add additional query parameters to the request
@@ -465,12 +476,12 @@ def list(
465476
self,
466477
*,
467478
account_id: str | NotGiven = NOT_GIVEN,
468-
ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN,
479+
ach_debit_status: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN,
469480
created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN,
470481
cursor: str | NotGiven = NOT_GIVEN,
471482
idempotency_key: str | NotGiven = NOT_GIVEN,
472483
limit: int | NotGiven = NOT_GIVEN,
473-
status: account_number_list_params.Status | NotGiven = NOT_GIVEN,
484+
status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN,
474485
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
475486
# The extra values given here take precedence over values defined on the client or passed to this method.
476487
extra_headers: Headers | None = None,
@@ -484,6 +495,11 @@ def list(
484495
Args:
485496
account_id: Filter Account Numbers to those belonging to the specified Account.
486497
498+
ach_debit_status: The ACH Debit status to retrieve Account Numbers for.
499+
500+
- `allowed` - ACH Debits are allowed.
501+
- `blocked` - ACH Debits are blocked.
502+
487503
cursor: Return the page of entries after this one.
488504
489505
idempotency_key: Filter records to the one with the specified `idempotency_key` you chose for
@@ -494,6 +510,12 @@ def list(
494510
limit: Limit the size of the list that is returned. The default (and maximum) is 100
495511
objects.
496512
513+
status: The status to retrieve Account Numbers for.
514+
515+
- `active` - The account number is active.
516+
- `disabled` - The account number is temporarily disabled.
517+
- `canceled` - The account number is permanently disabled.
518+
497519
extra_headers: Send extra headers
498520
499521
extra_query: Add additional query parameters to the request

src/increase/resources/inbound_ach_transfers.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def list(
9797
created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
9898
cursor: str | NotGiven = NOT_GIVEN,
9999
limit: int | NotGiven = NOT_GIVEN,
100-
status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN,
100+
status: Literal["pending", "declined", "accepted", "returned"] | NotGiven = NOT_GIVEN,
101101
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
102102
# The extra values given here take precedence over values defined on the client or passed to this method.
103103
extra_headers: Headers | None = None,
@@ -109,15 +109,23 @@ def list(
109109
List Inbound ACH Transfers
110110
111111
Args:
112-
account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account.
112+
account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account.
113113
114-
account_number_id: Filter Inbound ACH Transfers to ones belonging to the specified Account Number.
114+
account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number.
115115
116116
cursor: Return the page of entries after this one.
117117
118118
limit: Limit the size of the list that is returned. The default (and maximum) is 100
119119
objects.
120120
121+
status: Filter Inbound ACH Transfers to those with the specified status.
122+
123+
- `pending` - The Inbound ACH Transfer is awaiting action, will transition
124+
automatically if no action is taken.
125+
- `declined` - The Inbound ACH Transfer has been declined.
126+
- `accepted` - The Inbound ACH Transfer is accepted.
127+
- `returned` - The Inbound ACH Transfer has been returned.
128+
121129
extra_headers: Send extra headers
122130
123131
extra_query: Add additional query parameters to the request
@@ -446,7 +454,7 @@ def list(
446454
created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
447455
cursor: str | NotGiven = NOT_GIVEN,
448456
limit: int | NotGiven = NOT_GIVEN,
449-
status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN,
457+
status: Literal["pending", "declined", "accepted", "returned"] | NotGiven = NOT_GIVEN,
450458
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
451459
# The extra values given here take precedence over values defined on the client or passed to this method.
452460
extra_headers: Headers | None = None,
@@ -458,15 +466,23 @@ def list(
458466
List Inbound ACH Transfers
459467
460468
Args:
461-
account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account.
469+
account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account.
462470
463-
account_number_id: Filter Inbound ACH Transfers to ones belonging to the specified Account Number.
471+
account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number.
464472
465473
cursor: Return the page of entries after this one.
466474
467475
limit: Limit the size of the list that is returned. The default (and maximum) is 100
468476
objects.
469477
478+
status: Filter Inbound ACH Transfers to those with the specified status.
479+
480+
- `pending` - The Inbound ACH Transfer is awaiting action, will transition
481+
automatically if no action is taken.
482+
- `declined` - The Inbound ACH Transfer has been declined.
483+
- `accepted` - The Inbound ACH Transfer is accepted.
484+
- `returned` - The Inbound ACH Transfer has been returned.
485+
470486
extra_headers: Send extra headers
471487
472488
extra_query: Add additional query parameters to the request

src/increase/resources/inbound_wire_transfers.py

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

33
from __future__ import annotations
44

5+
from typing_extensions import Literal
6+
57
import httpx
68

79
from ..types import inbound_wire_transfer_list_params
@@ -87,7 +89,7 @@ def list(
8789
created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
8890
cursor: str | NotGiven = NOT_GIVEN,
8991
limit: int | NotGiven = NOT_GIVEN,
90-
status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN,
92+
status: Literal["pending", "accepted", "declined", "reversed"] | NotGiven = NOT_GIVEN,
9193
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9294
# The extra values given here take precedence over values defined on the client or passed to this method.
9395
extra_headers: Headers | None = None,
@@ -99,15 +101,23 @@ def list(
99101
List Inbound Wire Transfers
100102
101103
Args:
102-
account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account.
104+
account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account.
103105
104-
account_number_id: Filter Inbound Wire Transfers to ones belonging to the specified Account Number.
106+
account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.
105107
106108
cursor: Return the page of entries after this one.
107109
108110
limit: Limit the size of the list that is returned. The default (and maximum) is 100
109111
objects.
110112
113+
status: Filter Inbound Wire Transfers to those with the specified status.
114+
115+
- `pending` - The Inbound Wire Transfer is awaiting action, will transition
116+
automatically if no action is taken.
117+
- `accepted` - The Inbound Wire Transfer is accepted.
118+
- `declined` - The Inbound Wire Transfer was declined.
119+
- `reversed` - The Inbound Wire Transfer was reversed.
120+
111121
extra_headers: Send extra headers
112122
113123
extra_query: Add additional query parameters to the request
@@ -205,7 +215,7 @@ def list(
205215
created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
206216
cursor: str | NotGiven = NOT_GIVEN,
207217
limit: int | NotGiven = NOT_GIVEN,
208-
status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN,
218+
status: Literal["pending", "accepted", "declined", "reversed"] | NotGiven = NOT_GIVEN,
209219
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
210220
# The extra values given here take precedence over values defined on the client or passed to this method.
211221
extra_headers: Headers | None = None,
@@ -217,15 +227,23 @@ def list(
217227
List Inbound Wire Transfers
218228
219229
Args:
220-
account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account.
230+
account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account.
221231
222-
account_number_id: Filter Inbound Wire Transfers to ones belonging to the specified Account Number.
232+
account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.
223233
224234
cursor: Return the page of entries after this one.
225235
226236
limit: Limit the size of the list that is returned. The default (and maximum) is 100
227237
objects.
228238
239+
status: Filter Inbound Wire Transfers to those with the specified status.
240+
241+
- `pending` - The Inbound Wire Transfer is awaiting action, will transition
242+
automatically if no action is taken.
243+
- `accepted` - The Inbound Wire Transfer is accepted.
244+
- `declined` - The Inbound Wire Transfer was declined.
245+
- `reversed` - The Inbound Wire Transfer was reversed.
246+
229247
extra_headers: Send extra headers
230248
231249
extra_query: Add additional query parameters to the request

src/increase/resources/wire_drawdown_requests.py

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

33
from __future__ import annotations
44

5+
from typing_extensions import Literal
6+
57
import httpx
68

79
from ..types import wire_drawdown_request_list_params, wire_drawdown_request_create_params
@@ -190,7 +192,7 @@ def list(
190192
cursor: str | NotGiven = NOT_GIVEN,
191193
idempotency_key: str | NotGiven = NOT_GIVEN,
192194
limit: int | NotGiven = NOT_GIVEN,
193-
status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN,
195+
status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | NotGiven = NOT_GIVEN,
194196
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
195197
# The extra values given here take precedence over values defined on the client or passed to this method.
196198
extra_headers: Headers | None = None,
@@ -212,6 +214,15 @@ def list(
212214
limit: Limit the size of the list that is returned. The default (and maximum) is 100
213215
objects.
214216
217+
status: Filter Wire Drawdown Requests for those with the specified status.
218+
219+
- `pending_submission` - The drawdown request is queued to be submitted to
220+
Fedwire.
221+
- `pending_response` - The drawdown request has been sent and the recipient
222+
should respond in some way.
223+
- `fulfilled` - The drawdown request has been fulfilled by the recipient.
224+
- `refused` - The drawdown request has been refused by the recipient.
225+
215226
extra_headers: Send extra headers
216227
217228
extra_query: Add additional query parameters to the request
@@ -407,7 +418,7 @@ def list(
407418
cursor: str | NotGiven = NOT_GIVEN,
408419
idempotency_key: str | NotGiven = NOT_GIVEN,
409420
limit: int | NotGiven = NOT_GIVEN,
410-
status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN,
421+
status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | NotGiven = NOT_GIVEN,
411422
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
412423
# The extra values given here take precedence over values defined on the client or passed to this method.
413424
extra_headers: Headers | None = None,
@@ -429,6 +440,15 @@ def list(
429440
limit: Limit the size of the list that is returned. The default (and maximum) is 100
430441
objects.
431442
443+
status: Filter Wire Drawdown Requests for those with the specified status.
444+
445+
- `pending_submission` - The drawdown request is queued to be submitted to
446+
Fedwire.
447+
- `pending_response` - The drawdown request has been sent and the recipient
448+
should respond in some way.
449+
- `fulfilled` - The drawdown request has been fulfilled by the recipient.
450+
- `refused` - The drawdown request has been refused by the recipient.
451+
432452
extra_headers: Send extra headers
433453
434454
extra_query: Add additional query parameters to the request

src/increase/types/account_number_list_params.py

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Union
5+
from typing import Union
66
from datetime import datetime
77
from typing_extensions import Literal, Annotated, TypedDict
88

99
from .._utils import PropertyInfo
1010

11-
__all__ = ["AccountNumberListParams", "ACHDebitStatus", "CreatedAt", "Status"]
11+
__all__ = ["AccountNumberListParams", "CreatedAt"]
1212

1313

1414
class AccountNumberListParams(TypedDict, total=False):
1515
account_id: str
1616
"""Filter Account Numbers to those belonging to the specified Account."""
1717

18-
ach_debit_status: ACHDebitStatus
18+
ach_debit_status: Literal["allowed", "blocked"]
19+
"""The ACH Debit status to retrieve Account Numbers for.
20+
21+
- `allowed` - ACH Debits are allowed.
22+
- `blocked` - ACH Debits are blocked.
23+
"""
1924

2025
created_at: CreatedAt
2126

@@ -36,20 +41,13 @@ class AccountNumberListParams(TypedDict, total=False):
3641
The default (and maximum) is 100 objects.
3742
"""
3843

39-
status: Status
40-
41-
42-
_ACHDebitStatusReservedKeywords = TypedDict(
43-
"_ACHDebitStatusReservedKeywords",
44-
{
45-
"in": List[Literal["allowed", "blocked"]],
46-
},
47-
total=False,
48-
)
49-
44+
status: Literal["active", "disabled", "canceled"]
45+
"""The status to retrieve Account Numbers for.
5046
51-
class ACHDebitStatus(_ACHDebitStatusReservedKeywords, total=False):
52-
pass
47+
- `active` - The account number is active.
48+
- `disabled` - The account number is temporarily disabled.
49+
- `canceled` - The account number is permanently disabled.
50+
"""
5351

5452

5553
class CreatedAt(TypedDict, total=False):
@@ -76,16 +74,3 @@ class CreatedAt(TypedDict, total=False):
7674
Return results on or before this
7775
[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
7876
"""
79-
80-
81-
_StatusReservedKeywords = TypedDict(
82-
"_StatusReservedKeywords",
83-
{
84-
"in": List[Literal["active", "disabled", "canceled"]],
85-
},
86-
total=False,
87-
)
88-
89-
90-
class Status(_StatusReservedKeywords, total=False):
91-
pass

0 commit comments

Comments
 (0)