Skip to content

Commit e6dc1d1

Browse files
chore(api): release of Network Totals reporting and new filters for Velocity Limit Rules (#708)
- Network Totals reports are now available - adds `exclude_countries` and `exclude_mccs` filters to Auth Velocity Limit Rules
1 parent 9c0b17d commit e6dc1d1

File tree

3 files changed

+34
-12
lines changed

3 files changed

+34
-12
lines changed

src/lithic/resources/reports/settlement/network_totals.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ def retrieve(
5454
extra_body: Body | None = None,
5555
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5656
) -> NetworkTotalRetrieveResponse:
57-
"""(Available March 4, 2025) Retrieve a specific network total record by token.
57+
"""Retrieve a specific network total record by token.
5858
59-
Not
60-
available in sandbox.
59+
Not available in sandbox.
6160
6261
Args:
6362
extra_headers: Send extra headers
@@ -99,10 +98,9 @@ def list(
9998
extra_body: Body | None = None,
10099
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
101100
) -> SyncCursorPage[NetworkTotalListResponse]:
102-
"""(Available March 4, 2025) List network total records with optional filters.
101+
"""List network total records with optional filters.
103102
104-
Not
105-
available in sandbox.
103+
Not available in sandbox.
106104
107105
Args:
108106
begin: Datetime in RFC 3339 format. Only entries created after the specified time will
@@ -200,10 +198,9 @@ async def retrieve(
200198
extra_body: Body | None = None,
201199
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
202200
) -> NetworkTotalRetrieveResponse:
203-
"""(Available March 4, 2025) Retrieve a specific network total record by token.
201+
"""Retrieve a specific network total record by token.
204202
205-
Not
206-
available in sandbox.
203+
Not available in sandbox.
207204
208205
Args:
209206
extra_headers: Send extra headers
@@ -245,10 +242,9 @@ def list(
245242
extra_body: Body | None = None,
246243
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
247244
) -> AsyncPaginator[NetworkTotalListResponse, AsyncCursorPage[NetworkTotalListResponse]]:
248-
"""(Available March 4, 2025) List network total records with optional filters.
245+
"""List network total records with optional filters.
249246
250-
Not
251-
available in sandbox.
247+
Not available in sandbox.
252248
253249
Args:
254250
begin: Datetime in RFC 3339 format. Only entries created after the specified time will

src/lithic/types/auth_rules/velocity_limit_params.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010

1111

1212
class Filters(BaseModel):
13+
exclude_countries: Optional[List[str]] = None
14+
"""ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
15+
16+
Transactions matching any of the provided will be excluded from the calculated
17+
velocity.
18+
"""
19+
20+
exclude_mccs: Optional[List[str]] = None
21+
"""Merchant Category Codes to exclude from the velocity calculation.
22+
23+
Transactions matching this MCC will be excluded from the calculated velocity.
24+
"""
25+
1326
include_countries: Optional[List[str]] = None
1427
"""ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
1528

src/lithic/types/auth_rules/velocity_limit_params_param.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@
1111

1212

1313
class Filters(TypedDict, total=False):
14+
exclude_countries: Optional[List[str]]
15+
"""ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
16+
17+
Transactions matching any of the provided will be excluded from the calculated
18+
velocity.
19+
"""
20+
21+
exclude_mccs: Optional[List[str]]
22+
"""Merchant Category Codes to exclude from the velocity calculation.
23+
24+
Transactions matching this MCC will be excluded from the calculated velocity.
25+
"""
26+
1427
include_countries: Optional[List[str]]
1528
"""ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
1629

0 commit comments

Comments
 (0)