Skip to content

Commit 260d4a6

Browse files
feat(api): make filter optional for Spend Velocity Auth Rules
fix(api): rename WIRE_DRAWDOWN_REQUEST to WIRE_INBOUND_DRAWDOWN_REQUEST
1 parent 427958f commit 260d4a6

File tree

5 files changed

+8
-17
lines changed

5 files changed

+8
-17
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 175
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-4ecc06edca2cfad4eaf11573611e89823fda5f56370bac5cd02a498a6b277d09.yml
3-
openapi_spec_hash: 8f4a30bec4348cbde85b1e65bef9189a
4-
config_hash: 751a4cc75aa0276b40cc2c7879b24dea
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c06c4d54858775fef1de57e33d471e997cb28fe0c925fd7b08ba45fdd335e938.yml
3+
openapi_spec_hash: 23745357b2171bcdfb5d30bfef1df48d
4+
config_hash: 9dddee5f7af579864599849cb28a0770

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ The Lithic Python library provides convenient access to the Lithic REST API from
77
application. The library includes type definitions for all request params and response fields,
88
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
99

10-
## MCP Server
11-
12-
Use the Lithic MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
13-
14-
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=lithic-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImxpdGhpYy1tY3AiXX0)
15-
[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22lithic-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22lithic-mcp%22%5D%7D)
16-
17-
> Note: You may need to set environment variables in your MCP client.
18-
1910
## Documentation
2011

2112
The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). The full API of this library can be found in [api.md](api.md).

src/lithic/types/auth_rules/velocity_limit_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ class Filters(BaseModel):
6666

6767

6868
class VelocityLimitParams(BaseModel):
69-
filters: Filters
70-
7169
period: VelocityLimitPeriod
7270
"""Velocity over the current day since 00:00 / 12 AM in Eastern Time"""
7371

7472
scope: Literal["CARD", "ACCOUNT"]
7573
"""The scope the velocity is calculated for"""
7674

75+
filters: Optional[Filters] = None
76+
7777
limit_amount: Optional[int] = None
7878
"""
7979
The maximum amount of spend velocity allowed in the period in minor units (the

src/lithic/types/auth_rules/velocity_limit_params_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ class Filters(TypedDict, total=False):
6868

6969

7070
class VelocityLimitParamsParam(TypedDict, total=False):
71-
filters: Required[Filters]
72-
7371
period: Required[VelocityLimitPeriodParam]
7472
"""Velocity over the current day since 00:00 / 12 AM in Eastern Time"""
7573

7674
scope: Required[Literal["CARD", "ACCOUNT"]]
7775
"""The scope the velocity is calculated for"""
7876

77+
filters: Filters
78+
7979
limit_amount: Optional[int]
8080
"""
8181
The maximum amount of spend velocity allowed in the period in minor units (the

src/lithic/types/payment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class Payment(BaseModel):
253253
"WIRE_INBOUND_ADMIN",
254254
"WIRE_OUTBOUND_PAYMENT",
255255
"WIRE_OUTBOUND_ADMIN",
256-
"WIRE_DRAWDOWN_REQUEST",
256+
"WIRE_INBOUND_DRAWDOWN_REQUEST",
257257
]
258258
] = None
259259

0 commit comments

Comments
 (0)