Skip to content

Commit 1dd1828

Browse files
feat(api): api update (#998)
1 parent c558c8d commit 1dd1828

13 files changed

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

src/increase/resources/account_numbers.py

Lines changed: 4 additions & 26 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: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN,
220+
ach_debit_status: account_number_list_params.ACHDebitStatus | 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: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN,
225+
status: account_number_list_params.Status | 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,11 +236,6 @@ 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-
244239
cursor: Return the page of entries after this one.
245240
246241
idempotency_key: Filter records to the one with the specified `idempotency_key` you chose for
@@ -251,12 +246,6 @@ def list(
251246
limit: Limit the size of the list that is returned. The default (and maximum) is 100
252247
objects.
253248
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-
260249
extra_headers: Send extra headers
261250
262251
extra_query: Add additional query parameters to the request
@@ -476,12 +465,12 @@ def list(
476465
self,
477466
*,
478467
account_id: str | NotGiven = NOT_GIVEN,
479-
ach_debit_status: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN,
468+
ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN,
480469
created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN,
481470
cursor: str | NotGiven = NOT_GIVEN,
482471
idempotency_key: str | NotGiven = NOT_GIVEN,
483472
limit: int | NotGiven = NOT_GIVEN,
484-
status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN,
473+
status: account_number_list_params.Status | NotGiven = NOT_GIVEN,
485474
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
486475
# The extra values given here take precedence over values defined on the client or passed to this method.
487476
extra_headers: Headers | None = None,
@@ -495,11 +484,6 @@ def list(
495484
Args:
496485
account_id: Filter Account Numbers to those belonging to the specified Account.
497486
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-
503487
cursor: Return the page of entries after this one.
504488
505489
idempotency_key: Filter records to the one with the specified `idempotency_key` you chose for
@@ -510,12 +494,6 @@ def list(
510494
limit: Limit the size of the list that is returned. The default (and maximum) is 100
511495
objects.
512496
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-
519497
extra_headers: Send extra headers
520498
521499
extra_query: Add additional query parameters to the request

src/increase/resources/inbound_ach_transfers.py

Lines changed: 6 additions & 22 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: Literal["pending", "declined", "accepted", "returned"] | NotGiven = NOT_GIVEN,
100+
status: inbound_ach_transfer_list_params.Status | 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,23 +109,15 @@ def list(
109109
List Inbound ACH Transfers
110110
111111
Args:
112-
account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account.
112+
account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account.
113113
114-
account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number.
114+
account_number_id: Filter Inbound ACH Transfers 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-
129121
extra_headers: Send extra headers
130122
131123
extra_query: Add additional query parameters to the request
@@ -454,7 +446,7 @@ def list(
454446
created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
455447
cursor: str | NotGiven = NOT_GIVEN,
456448
limit: int | NotGiven = NOT_GIVEN,
457-
status: Literal["pending", "declined", "accepted", "returned"] | NotGiven = NOT_GIVEN,
449+
status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN,
458450
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
459451
# The extra values given here take precedence over values defined on the client or passed to this method.
460452
extra_headers: Headers | None = None,
@@ -466,23 +458,15 @@ def list(
466458
List Inbound ACH Transfers
467459
468460
Args:
469-
account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account.
461+
account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account.
470462
471-
account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number.
463+
account_number_id: Filter Inbound ACH Transfers to ones belonging to the specified Account Number.
472464
473465
cursor: Return the page of entries after this one.
474466
475467
limit: Limit the size of the list that is returned. The default (and maximum) is 100
476468
objects.
477469
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-
486470
extra_headers: Send extra headers
487471
488472
extra_query: Add additional query parameters to the request

src/increase/resources/inbound_wire_transfers.py

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

33
from __future__ import annotations
44

5-
from typing_extensions import Literal
6-
75
import httpx
86

97
from ..types import inbound_wire_transfer_list_params
@@ -89,7 +87,7 @@ def list(
8987
created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
9088
cursor: str | NotGiven = NOT_GIVEN,
9189
limit: int | NotGiven = NOT_GIVEN,
92-
status: Literal["pending", "accepted", "declined", "reversed"] | NotGiven = NOT_GIVEN,
90+
status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN,
9391
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9492
# The extra values given here take precedence over values defined on the client or passed to this method.
9593
extra_headers: Headers | None = None,
@@ -101,23 +99,15 @@ def list(
10199
List Inbound Wire Transfers
102100
103101
Args:
104-
account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account.
102+
account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account.
105103
106-
account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.
104+
account_number_id: Filter Inbound Wire Transfers to ones belonging to the specified Account Number.
107105
108106
cursor: Return the page of entries after this one.
109107
110108
limit: Limit the size of the list that is returned. The default (and maximum) is 100
111109
objects.
112110
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-
121111
extra_headers: Send extra headers
122112
123113
extra_query: Add additional query parameters to the request
@@ -215,7 +205,7 @@ def list(
215205
created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
216206
cursor: str | NotGiven = NOT_GIVEN,
217207
limit: int | NotGiven = NOT_GIVEN,
218-
status: Literal["pending", "accepted", "declined", "reversed"] | NotGiven = NOT_GIVEN,
208+
status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN,
219209
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
220210
# The extra values given here take precedence over values defined on the client or passed to this method.
221211
extra_headers: Headers | None = None,
@@ -227,23 +217,15 @@ def list(
227217
List Inbound Wire Transfers
228218
229219
Args:
230-
account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account.
220+
account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account.
231221
232-
account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.
222+
account_number_id: Filter Inbound Wire Transfers to ones belonging to the specified Account Number.
233223
234224
cursor: Return the page of entries after this one.
235225
236226
limit: Limit the size of the list that is returned. The default (and maximum) is 100
237227
objects.
238228
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-
247229
extra_headers: Send extra headers
248230
249231
extra_query: Add additional query parameters to the request

src/increase/resources/wire_drawdown_requests.py

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

33
from __future__ import annotations
44

5-
from typing_extensions import Literal
6-
75
import httpx
86

97
from ..types import wire_drawdown_request_list_params, wire_drawdown_request_create_params
@@ -192,7 +190,7 @@ def list(
192190
cursor: str | NotGiven = NOT_GIVEN,
193191
idempotency_key: str | NotGiven = NOT_GIVEN,
194192
limit: int | NotGiven = NOT_GIVEN,
195-
status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | NotGiven = NOT_GIVEN,
193+
status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN,
196194
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
197195
# The extra values given here take precedence over values defined on the client or passed to this method.
198196
extra_headers: Headers | None = None,
@@ -214,15 +212,6 @@ def list(
214212
limit: Limit the size of the list that is returned. The default (and maximum) is 100
215213
objects.
216214
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-
226215
extra_headers: Send extra headers
227216
228217
extra_query: Add additional query parameters to the request
@@ -418,7 +407,7 @@ def list(
418407
cursor: str | NotGiven = NOT_GIVEN,
419408
idempotency_key: str | NotGiven = NOT_GIVEN,
420409
limit: int | NotGiven = NOT_GIVEN,
421-
status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | NotGiven = NOT_GIVEN,
410+
status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN,
422411
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
423412
# The extra values given here take precedence over values defined on the client or passed to this method.
424413
extra_headers: Headers | None = None,
@@ -440,15 +429,6 @@ def list(
440429
limit: Limit the size of the list that is returned. The default (and maximum) is 100
441430
objects.
442431
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-
452432
extra_headers: Send extra headers
453433
454434
extra_query: Add additional query parameters to the request

src/increase/types/account_number_list_params.py

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

33
from __future__ import annotations
44

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

99
from .._utils import PropertyInfo
1010

11-
__all__ = ["AccountNumberListParams", "CreatedAt"]
11+
__all__ = ["AccountNumberListParams", "ACHDebitStatus", "CreatedAt", "Status"]
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: 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-
"""
18+
ach_debit_status: ACHDebitStatus
2419

2520
created_at: CreatedAt
2621

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

44-
status: Literal["active", "disabled", "canceled"]
45-
"""The status to retrieve Account Numbers for.
39+
status: Status
40+
41+
42+
_ACHDebitStatusReservedKeywords = TypedDict(
43+
"_ACHDebitStatusReservedKeywords",
44+
{
45+
"in": List[Literal["allowed", "blocked"]],
46+
},
47+
total=False,
48+
)
4649

47-
- `active` - The account number is active.
48-
- `disabled` - The account number is temporarily disabled.
49-
- `canceled` - The account number is permanently disabled.
50-
"""
50+
51+
class ACHDebitStatus(_ACHDebitStatusReservedKeywords, total=False):
52+
pass
5153

5254

5355
class CreatedAt(TypedDict, total=False):
@@ -74,3 +76,16 @@ class CreatedAt(TypedDict, total=False):
7476
Return results on or before this
7577
[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
7678
"""
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)