Skip to content

Commit d380ad2

Browse files
committed
feat(api): updates
1 parent c9f0b8c commit d380ad2

File tree

77 files changed

+4451
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4451
-65
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 116
1+
configured_endpoints: 127

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ first_page = await increase.accounts.list()
128128

129129
print(f"next page cursor: {first_page.next_cursor}") # => "next page cursor: ..."
130130
for account in first_page.data:
131-
print(account.balances)
131+
print(account.created_at)
132132

133133
# Remove `await` for non-async usage.
134134
```

api.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,32 @@ Methods:
4848
- <code title="get /real_time_decisions/{real_time_decision_id}">client.real_time_decisions.<a href="./src/increase/resources/real_time_decisions.py">retrieve</a>(real_time_decision_id) -> <a href="./src/increase/types/real_time_decision.py">RealTimeDecision</a></code>
4949
- <code title="post /real_time_decisions/{real_time_decision_id}/action">client.real_time_decisions.<a href="./src/increase/resources/real_time_decisions.py">action</a>(real_time_decision_id, \*\*<a href="src/increase/types/real_time_decision_action_params.py">params</a>) -> <a href="./src/increase/types/real_time_decision.py">RealTimeDecision</a></code>
5050

51+
# RealTimePaymentsTransfers
52+
53+
Types:
54+
55+
```python
56+
from increase.types import RealTimePaymentsTransfer
57+
```
58+
59+
Methods:
60+
61+
- <code title="post /real_time_payments_transfers">client.real_time_payments_transfers.<a href="./src/increase/resources/real_time_payments_transfers.py">create</a>(\*\*<a href="src/increase/types/real_time_payments_transfer_create_params.py">params</a>) -> <a href="./src/increase/types/real_time_payments_transfer.py">RealTimePaymentsTransfer</a></code>
62+
- <code title="get /real_time_payments_transfers/{real_time_payments_transfer_id}">client.real_time_payments_transfers.<a href="./src/increase/resources/real_time_payments_transfers.py">retrieve</a>(real_time_payments_transfer_id) -> <a href="./src/increase/types/real_time_payments_transfer.py">RealTimePaymentsTransfer</a></code>
63+
- <code title="get /real_time_payments_transfers">client.real_time_payments_transfers.<a href="./src/increase/resources/real_time_payments_transfers.py">list</a>(\*\*<a href="src/increase/types/real_time_payments_transfer_list_params.py">params</a>) -> <a href="./src/increase/types/real_time_payments_transfer.py">SyncPage[RealTimePaymentsTransfer]</a></code>
64+
65+
# BalanceLookups
66+
67+
Types:
68+
69+
```python
70+
from increase.types import BalanceLookupLookupResponse
71+
```
72+
73+
Methods:
74+
75+
- <code title="post /balance_lookups">client.balance_lookups.<a href="./src/increase/resources/balance_lookups.py">lookup</a>(\*\*<a href="src/increase/types/balance_lookup_lookup_params.py">params</a>) -> <a href="./src/increase/types/balance_lookup_lookup_response.py">BalanceLookupLookupResponse</a></code>
76+
5177
# Cards
5278

5379
Types:
@@ -107,6 +133,20 @@ Methods:
107133
- <code title="patch /external_accounts/{external_account_id}">client.external_accounts.<a href="./src/increase/resources/external_accounts.py">update</a>(external_account_id, \*\*<a href="src/increase/types/external_account_update_params.py">params</a>) -> <a href="./src/increase/types/external_account.py">ExternalAccount</a></code>
108134
- <code title="get /external_accounts">client.external_accounts.<a href="./src/increase/resources/external_accounts.py">list</a>(\*\*<a href="src/increase/types/external_account_list_params.py">params</a>) -> <a href="./src/increase/types/external_account.py">SyncPage[ExternalAccount]</a></code>
109135

136+
# Exports
137+
138+
Types:
139+
140+
```python
141+
from increase.types import Export
142+
```
143+
144+
Methods:
145+
146+
- <code title="post /exports">client.exports.<a href="./src/increase/resources/exports.py">create</a>(\*\*<a href="src/increase/types/export_create_params.py">params</a>) -> <a href="./src/increase/types/export.py">Export</a></code>
147+
- <code title="get /exports/{export_id}">client.exports.<a href="./src/increase/resources/exports.py">retrieve</a>(export_id) -> <a href="./src/increase/types/export.py">Export</a></code>
148+
- <code title="get /exports">client.exports.<a href="./src/increase/resources/exports.py">list</a>(\*\*<a href="src/increase/types/export_list_params.py">params</a>) -> <a href="./src/increase/types/export.py">SyncPage[Export]</a></code>
149+
110150
# DigitalWalletTokens
111151

112152
Types:
@@ -146,6 +186,19 @@ Methods:
146186
- <code title="get /pending_transactions/{pending_transaction_id}">client.pending_transactions.<a href="./src/increase/resources/pending_transactions.py">retrieve</a>(pending_transaction_id) -> <a href="./src/increase/types/pending_transaction.py">PendingTransaction</a></code>
147187
- <code title="get /pending_transactions">client.pending_transactions.<a href="./src/increase/resources/pending_transactions.py">list</a>(\*\*<a href="src/increase/types/pending_transaction_list_params.py">params</a>) -> <a href="./src/increase/types/pending_transaction.py">SyncPage[PendingTransaction]</a></code>
148188

189+
# Programs
190+
191+
Types:
192+
193+
```python
194+
from increase.types import Program
195+
```
196+
197+
Methods:
198+
199+
- <code title="get /programs/{program_id}">client.programs.<a href="./src/increase/resources/programs.py">retrieve</a>(program_id) -> <a href="./src/increase/types/program.py">Program</a></code>
200+
- <code title="get /programs">client.programs.<a href="./src/increase/resources/programs.py">list</a>(\*\*<a href="src/increase/types/program_list_params.py">params</a>) -> <a href="./src/increase/types/program.py">SyncPage[Program]</a></code>
201+
149202
# DeclinedTransactions
150203

151204
Types:
@@ -515,6 +568,18 @@ Methods:
515568

516569
- <code title="post /simulations/inbound_wire_drawdown_requests">client.simulations.inbound_wire_drawdown_requests.<a href="./src/increase/resources/simulations/inbound_wire_drawdown_requests.py">create</a>(\*\*<a href="src/increase/types/simulations/inbound_wire_drawdown_request_create_params.py">params</a>) -> <a href="./src/increase/types/inbound_wire_drawdown_request.py">InboundWireDrawdownRequest</a></code>
517570

571+
## InterestPayments
572+
573+
Types:
574+
575+
```python
576+
from increase.types.simulations import InterestPaymentSimulationResult
577+
```
578+
579+
Methods:
580+
581+
- <code title="post /simulations/interest_payment">client.simulations.interest_payments.<a href="./src/increase/resources/simulations/interest_payments.py">create</a>(\*\*<a href="src/increase/types/simulations/interest_payment_create_params.py">params</a>) -> <a href="./src/increase/types/simulations/interest_payment_simulation_result.py">InterestPaymentSimulationResult</a></code>
582+
518583
## WireTransfers
519584

520585
Types:
@@ -550,4 +615,5 @@ from increase.types.simulations import InboundRealTimePaymentsTransferSimulation
550615

551616
Methods:
552617

618+
- <code title="post /simulations/real_time_payments_transfers/{real_time_payments_transfer_id}/complete">client.simulations.real_time_payments_transfers.<a href="./src/increase/resources/simulations/real_time_payments_transfers.py">complete</a>(real_time_payments_transfer_id, \*\*<a href="src/increase/types/simulations/real_time_payments_transfer_complete_params.py">params</a>) -> <a href="./src/increase/types/real_time_payments_transfer.py">RealTimePaymentsTransfer</a></code>
553619
- <code title="post /simulations/inbound_real_time_payments_transfers">client.simulations.real_time_payments_transfers.<a href="./src/increase/resources/simulations/real_time_payments_transfers.py">create_inbound</a>(\*\*<a href="src/increase/types/simulations/real_time_payments_transfer_create_inbound_params.py">params</a>) -> <a href="./src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py">InboundRealTimePaymentsTransferSimulationResult</a></code>

src/increase/_client.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,17 @@ class Increase(SyncAPIClient):
4949
accounts: resources.Accounts
5050
account_numbers: resources.AccountNumbers
5151
real_time_decisions: resources.RealTimeDecisions
52+
real_time_payments_transfers: resources.RealTimePaymentsTransfers
53+
balance_lookups: resources.BalanceLookups
5254
cards: resources.Cards
5355
card_disputes: resources.CardDisputes
5456
card_profiles: resources.CardProfiles
5557
external_accounts: resources.ExternalAccounts
58+
exports: resources.Exports
5659
digital_wallet_tokens: resources.DigitalWalletTokens
5760
transactions: resources.Transactions
5861
pending_transactions: resources.PendingTransactions
62+
programs: resources.Programs
5963
declined_transactions: resources.DeclinedTransactions
6064
limits: resources.Limits
6165
account_transfers: resources.AccountTransfers
@@ -147,13 +151,17 @@ def __init__(
147151
self.accounts = resources.Accounts(self)
148152
self.account_numbers = resources.AccountNumbers(self)
149153
self.real_time_decisions = resources.RealTimeDecisions(self)
154+
self.real_time_payments_transfers = resources.RealTimePaymentsTransfers(self)
155+
self.balance_lookups = resources.BalanceLookups(self)
150156
self.cards = resources.Cards(self)
151157
self.card_disputes = resources.CardDisputes(self)
152158
self.card_profiles = resources.CardProfiles(self)
153159
self.external_accounts = resources.ExternalAccounts(self)
160+
self.exports = resources.Exports(self)
154161
self.digital_wallet_tokens = resources.DigitalWalletTokens(self)
155162
self.transactions = resources.Transactions(self)
156163
self.pending_transactions = resources.PendingTransactions(self)
164+
self.programs = resources.Programs(self)
157165
self.declined_transactions = resources.DeclinedTransactions(self)
158166
self.limits = resources.Limits(self)
159167
self.account_transfers = resources.AccountTransfers(self)
@@ -310,13 +318,17 @@ class AsyncIncrease(AsyncAPIClient):
310318
accounts: resources.AsyncAccounts
311319
account_numbers: resources.AsyncAccountNumbers
312320
real_time_decisions: resources.AsyncRealTimeDecisions
321+
real_time_payments_transfers: resources.AsyncRealTimePaymentsTransfers
322+
balance_lookups: resources.AsyncBalanceLookups
313323
cards: resources.AsyncCards
314324
card_disputes: resources.AsyncCardDisputes
315325
card_profiles: resources.AsyncCardProfiles
316326
external_accounts: resources.AsyncExternalAccounts
327+
exports: resources.AsyncExports
317328
digital_wallet_tokens: resources.AsyncDigitalWalletTokens
318329
transactions: resources.AsyncTransactions
319330
pending_transactions: resources.AsyncPendingTransactions
331+
programs: resources.AsyncPrograms
320332
declined_transactions: resources.AsyncDeclinedTransactions
321333
limits: resources.AsyncLimits
322334
account_transfers: resources.AsyncAccountTransfers
@@ -408,13 +420,17 @@ def __init__(
408420
self.accounts = resources.AsyncAccounts(self)
409421
self.account_numbers = resources.AsyncAccountNumbers(self)
410422
self.real_time_decisions = resources.AsyncRealTimeDecisions(self)
423+
self.real_time_payments_transfers = resources.AsyncRealTimePaymentsTransfers(self)
424+
self.balance_lookups = resources.AsyncBalanceLookups(self)
411425
self.cards = resources.AsyncCards(self)
412426
self.card_disputes = resources.AsyncCardDisputes(self)
413427
self.card_profiles = resources.AsyncCardProfiles(self)
414428
self.external_accounts = resources.AsyncExternalAccounts(self)
429+
self.exports = resources.AsyncExports(self)
415430
self.digital_wallet_tokens = resources.AsyncDigitalWalletTokens(self)
416431
self.transactions = resources.AsyncTransactions(self)
417432
self.pending_transactions = resources.AsyncPendingTransactions(self)
433+
self.programs = resources.AsyncPrograms(self)
418434
self.declined_transactions = resources.AsyncDeclinedTransactions(self)
419435
self.limits = resources.AsyncLimits(self)
420436
self.account_transfers = resources.AsyncAccountTransfers(self)

src/increase/resources/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
from .events import Events, AsyncEvents
66
from .groups import Groups, AsyncGroups
77
from .limits import Limits, AsyncLimits
8+
from .exports import Exports, AsyncExports
89
from .accounts import Accounts, AsyncAccounts
910
from .entities import Entities, AsyncEntities
11+
from .programs import Programs, AsyncPrograms
1012
from .documents import Documents, AsyncDocuments
1113
from .simulations import Simulations, AsyncSimulations
1214
from .transactions import Transactions, AsyncTransactions
@@ -16,6 +18,7 @@
1618
from .check_deposits import CheckDeposits, AsyncCheckDeposits
1719
from .wire_transfers import WireTransfers, AsyncWireTransfers
1820
from .account_numbers import AccountNumbers, AsyncAccountNumbers
21+
from .balance_lookups import BalanceLookups, AsyncBalanceLookups
1922
from .check_transfers import CheckTransfers, AsyncCheckTransfers
2023
from .routing_numbers import RoutingNumbers, AsyncRoutingNumbers
2124
from .account_transfers import AccountTransfers, AsyncAccountTransfers
@@ -33,6 +36,10 @@
3336
InboundACHTransferReturns,
3437
AsyncInboundACHTransferReturns,
3538
)
39+
from .real_time_payments_transfers import (
40+
RealTimePaymentsTransfers,
41+
AsyncRealTimePaymentsTransfers,
42+
)
3643
from .inbound_wire_drawdown_requests import (
3744
InboundWireDrawdownRequests,
3845
AsyncInboundWireDrawdownRequests,
@@ -45,6 +52,10 @@
4552
"AsyncAccountNumbers",
4653
"RealTimeDecisions",
4754
"AsyncRealTimeDecisions",
55+
"RealTimePaymentsTransfers",
56+
"AsyncRealTimePaymentsTransfers",
57+
"BalanceLookups",
58+
"AsyncBalanceLookups",
4859
"Cards",
4960
"AsyncCards",
5061
"CardDisputes",
@@ -53,12 +64,16 @@
5364
"AsyncCardProfiles",
5465
"ExternalAccounts",
5566
"AsyncExternalAccounts",
67+
"Exports",
68+
"AsyncExports",
5669
"DigitalWalletTokens",
5770
"AsyncDigitalWalletTokens",
5871
"Transactions",
5972
"AsyncTransactions",
6073
"PendingTransactions",
6174
"AsyncPendingTransactions",
75+
"Programs",
76+
"AsyncPrograms",
6277
"DeclinedTransactions",
6378
"AsyncDeclinedTransactions",
6479
"Limits",

src/increase/resources/account_numbers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def list(
145145
self,
146146
*,
147147
account_id: str | NotGiven = NOT_GIVEN,
148+
created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN,
148149
cursor: str | NotGiven = NOT_GIVEN,
149150
limit: int | NotGiven = NOT_GIVEN,
150151
status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN,
@@ -190,6 +191,7 @@ def list(
190191
"limit": limit,
191192
"status": status,
192193
"account_id": account_id,
194+
"created_at": created_at,
193195
},
194196
account_number_list_params.AccountNumberListParams,
195197
),
@@ -324,6 +326,7 @@ def list(
324326
self,
325327
*,
326328
account_id: str | NotGiven = NOT_GIVEN,
329+
created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN,
327330
cursor: str | NotGiven = NOT_GIVEN,
328331
limit: int | NotGiven = NOT_GIVEN,
329332
status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN,
@@ -369,6 +372,7 @@ def list(
369372
"limit": limit,
370373
"status": status,
371374
"account_id": account_id,
375+
"created_at": created_at,
372376
},
373377
account_number_list_params.AccountNumberListParams,
374378
),

src/increase/resources/accounts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def update(
144144
def list(
145145
self,
146146
*,
147+
created_at: account_list_params.CreatedAt | NotGiven = NOT_GIVEN,
147148
cursor: str | NotGiven = NOT_GIVEN,
148149
entity_id: str | NotGiven = NOT_GIVEN,
149150
limit: int | NotGiven = NOT_GIVEN,
@@ -190,6 +191,7 @@ def list(
190191
"limit": limit,
191192
"entity_id": entity_id,
192193
"status": status,
194+
"created_at": created_at,
193195
},
194196
account_list_params.AccountListParams,
195197
),
@@ -348,6 +350,7 @@ async def update(
348350
def list(
349351
self,
350352
*,
353+
created_at: account_list_params.CreatedAt | NotGiven = NOT_GIVEN,
351354
cursor: str | NotGiven = NOT_GIVEN,
352355
entity_id: str | NotGiven = NOT_GIVEN,
353356
limit: int | NotGiven = NOT_GIVEN,
@@ -394,6 +397,7 @@ def list(
394397
"limit": limit,
395398
"entity_id": entity_id,
396399
"status": status,
400+
"created_at": created_at,
397401
},
398402
account_list_params.AccountListParams,
399403
),

src/increase/resources/ach_transfers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create(
7070
addendum: Additional information that will be sent to the recipient. This is included in
7171
the transfer data sent to the receiving bank.
7272
73-
company_descriptive_date: The description of the date of the transfer, usually in the format `YYYYMMDD`.
73+
company_descriptive_date: The description of the date of the transfer, usually in the format `YYMMDD`.
7474
This is included in the transfer data sent to the receiving bank.
7575
7676
company_discretionary_data: The data you choose to associate with the transfer. This is included in the
@@ -329,7 +329,7 @@ async def create(
329329
addendum: Additional information that will be sent to the recipient. This is included in
330330
the transfer data sent to the receiving bank.
331331
332-
company_descriptive_date: The description of the date of the transfer, usually in the format `YYYYMMDD`.
332+
company_descriptive_date: The description of the date of the transfer, usually in the format `YYMMDD`.
333333
This is included in the transfer data sent to the receiving bank.
334334
335335
company_discretionary_data: The data you choose to associate with the transfer. This is included in the

0 commit comments

Comments
 (0)