Skip to content

Commit

Permalink
feat(api): updates (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 9, 2024
1 parent 52070bd commit 0a95ac5
Show file tree
Hide file tree
Showing 32 changed files with 1,196 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 148
configured_endpoints: 151
14 changes: 14 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,3 +601,17 @@ Methods:
- <code title="get /api/ledger_account_settlements/{id}">client.ledger_account_settlements.<a href="./src/modern_treasury/resources/ledger_account_settlements.py">retrieve</a>(id) -> <a href="./src/modern_treasury/types/ledger_account_settlement.py">LedgerAccountSettlement</a></code>
- <code title="patch /api/ledger_account_settlements/{id}">client.ledger_account_settlements.<a href="./src/modern_treasury/resources/ledger_account_settlements.py">update</a>(id, \*\*<a href="src/modern_treasury/types/ledger_account_settlement_update_params.py">params</a>) -> <a href="./src/modern_treasury/types/ledger_account_settlement.py">LedgerAccountSettlement</a></code>
- <code title="get /api/ledger_account_settlements">client.ledger_account_settlements.<a href="./src/modern_treasury/resources/ledger_account_settlements.py">list</a>(\*\*<a href="src/modern_treasury/types/ledger_account_settlement_list_params.py">params</a>) -> <a href="./src/modern_treasury/types/ledger_account_settlement.py">SyncPage[LedgerAccountSettlement]</a></code>

# ForeignExchangeQuotes

Types:

```python
from modern_treasury.types import ForeignExchangeQuote
```

Methods:

- <code title="post /api/foreign_exchange_quotes">client.foreign_exchange_quotes.<a href="./src/modern_treasury/resources/foreign_exchange_quotes.py">create</a>(\*\*<a href="src/modern_treasury/types/foreign_exchange_quote_create_params.py">params</a>) -> <a href="./src/modern_treasury/types/foreign_exchange_quote.py">ForeignExchangeQuote</a></code>
- <code title="get /api/foreign_exchange_quotes/{id}">client.foreign_exchange_quotes.<a href="./src/modern_treasury/resources/foreign_exchange_quotes.py">retrieve</a>(id) -> <a href="./src/modern_treasury/types/foreign_exchange_quote.py">ForeignExchangeQuote</a></code>
- <code title="get /api/foreign_exchange_quotes">client.foreign_exchange_quotes.<a href="./src/modern_treasury/resources/foreign_exchange_quotes.py">list</a>(\*\*<a href="src/modern_treasury/types/foreign_exchange_quote_list_params.py">params</a>) -> <a href="./src/modern_treasury/types/foreign_exchange_quote.py">SyncPage[ForeignExchangeQuote]</a></code>
14 changes: 14 additions & 0 deletions src/modern_treasury/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class ModernTreasury(SyncAPIClient):
bulk_requests: resources.BulkRequests
bulk_results: resources.BulkResults
ledger_account_settlements: resources.LedgerAccountSettlements
foreign_exchange_quotes: resources.ForeignExchangeQuotes
with_raw_response: ModernTreasuryWithRawResponse
with_streaming_response: ModernTreasuryWithStreamedResponse

Expand Down Expand Up @@ -212,6 +213,7 @@ def __init__(
self.bulk_requests = resources.BulkRequests(self)
self.bulk_results = resources.BulkResults(self)
self.ledger_account_settlements = resources.LedgerAccountSettlements(self)
self.foreign_exchange_quotes = resources.ForeignExchangeQuotes(self)
self.with_raw_response = ModernTreasuryWithRawResponse(self)
self.with_streaming_response = ModernTreasuryWithStreamedResponse(self)

Expand Down Expand Up @@ -402,6 +404,7 @@ class AsyncModernTreasury(AsyncAPIClient):
bulk_requests: resources.AsyncBulkRequests
bulk_results: resources.AsyncBulkResults
ledger_account_settlements: resources.AsyncLedgerAccountSettlements
foreign_exchange_quotes: resources.AsyncForeignExchangeQuotes
with_raw_response: AsyncModernTreasuryWithRawResponse
with_streaming_response: AsyncModernTreasuryWithStreamedResponse

Expand Down Expand Up @@ -522,6 +525,7 @@ def __init__(
self.bulk_requests = resources.AsyncBulkRequests(self)
self.bulk_results = resources.AsyncBulkResults(self)
self.ledger_account_settlements = resources.AsyncLedgerAccountSettlements(self)
self.foreign_exchange_quotes = resources.AsyncForeignExchangeQuotes(self)
self.with_raw_response = AsyncModernTreasuryWithRawResponse(self)
self.with_streaming_response = AsyncModernTreasuryWithStreamedResponse(self)

Expand Down Expand Up @@ -720,6 +724,7 @@ def __init__(self, client: ModernTreasury) -> None:
self.ledger_account_settlements = resources.LedgerAccountSettlementsWithRawResponse(
client.ledger_account_settlements
)
self.foreign_exchange_quotes = resources.ForeignExchangeQuotesWithRawResponse(client.foreign_exchange_quotes)

self.ping = _legacy_response.to_raw_response_wrapper(
client.ping,
Expand Down Expand Up @@ -774,6 +779,9 @@ def __init__(self, client: AsyncModernTreasury) -> None:
self.ledger_account_settlements = resources.AsyncLedgerAccountSettlementsWithRawResponse(
client.ledger_account_settlements
)
self.foreign_exchange_quotes = resources.AsyncForeignExchangeQuotesWithRawResponse(
client.foreign_exchange_quotes
)

self.ping = _legacy_response.async_to_raw_response_wrapper(
client.ping,
Expand Down Expand Up @@ -828,6 +836,9 @@ def __init__(self, client: ModernTreasury) -> None:
self.ledger_account_settlements = resources.LedgerAccountSettlementsWithStreamingResponse(
client.ledger_account_settlements
)
self.foreign_exchange_quotes = resources.ForeignExchangeQuotesWithStreamingResponse(
client.foreign_exchange_quotes
)

self.ping = to_streamed_response_wrapper(
client.ping,
Expand Down Expand Up @@ -886,6 +897,9 @@ def __init__(self, client: AsyncModernTreasury) -> None:
self.ledger_account_settlements = resources.AsyncLedgerAccountSettlementsWithStreamingResponse(
client.ledger_account_settlements
)
self.foreign_exchange_quotes = resources.AsyncForeignExchangeQuotesWithStreamingResponse(
client.foreign_exchange_quotes
)

self.ping = async_to_streamed_response_wrapper(
client.ping,
Expand Down
14 changes: 14 additions & 0 deletions src/modern_treasury/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@
LedgerAccountPayoutsWithStreamingResponse,
AsyncLedgerAccountPayoutsWithStreamingResponse,
)
from .foreign_exchange_quotes import (
ForeignExchangeQuotes,
AsyncForeignExchangeQuotes,
ForeignExchangeQuotesWithRawResponse,
AsyncForeignExchangeQuotesWithRawResponse,
ForeignExchangeQuotesWithStreamingResponse,
AsyncForeignExchangeQuotesWithStreamingResponse,
)
from .account_collection_flows import (
AccountCollectionFlows,
AsyncAccountCollectionFlows,
Expand Down Expand Up @@ -481,4 +489,10 @@
"AsyncLedgerAccountSettlementsWithRawResponse",
"LedgerAccountSettlementsWithStreamingResponse",
"AsyncLedgerAccountSettlementsWithStreamingResponse",
"ForeignExchangeQuotes",
"AsyncForeignExchangeQuotes",
"ForeignExchangeQuotesWithRawResponse",
"AsyncForeignExchangeQuotesWithRawResponse",
"ForeignExchangeQuotesWithStreamingResponse",
"AsyncForeignExchangeQuotesWithStreamingResponse",
]
Loading

0 comments on commit 0a95ac5

Please sign in to comment.