Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/lithic-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rye
run: |
Expand All @@ -46,7 +46,7 @@ jobs:
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/lithic-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rye
run: |
Expand All @@ -67,7 +67,7 @@ jobs:
github.repository == 'stainless-sdks/lithic-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: core.setOutput('github_token', await core.getIDToken());

Expand All @@ -87,7 +87,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/lithic-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rye
run: |
Expand All @@ -110,7 +110,7 @@ jobs:
if: github.repository == 'lithic-com/lithic-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rye
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rye
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'lithic-com/lithic-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Check release environment
run: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.124.0"
".": "0.124.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 192
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-00f07b0edcc0c3c5ef79920ced7f58dac2434df5e4c27ff6041783e8228315f9.yml
openapi_spec_hash: 963688b09480159a06865075c94a2577
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-edd62262c633378b046a4c774cb9a824e2f6bf8f6c0cec613d3fb56e96ba1a29.yml
openapi_spec_hash: e90bfadcd60afbaf9e0c9ebaea4e374e
config_hash: 265a2b679964f4ad5706de101ad2a942
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.124.1 (2026-05-14)

Full Changelog: [v0.124.0...v0.124.1](https://github.com/lithic-com/lithic-python/compare/v0.124.0...v0.124.1)

### Bug Fixes

* **types:** change ConditionalValue from int to float in auth_rules ([40d3bf0](https://github.com/lithic-com/lithic-python/commit/40d3bf0fee4584c9da3329c38db4be5891cb83e6))

## 0.124.0 (2026-05-11)

Full Changelog: [v0.123.0...v0.124.0](https://github.com/lithic-com/lithic-python/compare/v0.123.0...v0.124.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lithic"
version = "0.124.0"
version = "0.124.1"
description = "The official Python library for the lithic API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "lithic"
__version__ = "0.124.0" # x-release-please-version
__version__ = "0.124.1" # x-release-please-version
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ class Condition(BaseModel):
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
fee field in the settlement/cardholder billing currency. This is the amount
the issuer should authorize against unless the issuer is paying the acquirer
fee on behalf of the cardholder.
fee on behalf of the cardholder. Use an integer value.
- `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
risk level, with a higher value indicating a higher amount of risk.
risk level, with a higher value indicating a higher amount of risk. Use an
integer value.
- `MESSAGE_CATEGORY`: The category of the authentication being processed.
- `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
data with the cardholder KYC data if it exists. Valid values are `MATCH`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ class Condition(TypedDict, total=False):
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
fee field in the settlement/cardholder billing currency. This is the amount
the issuer should authorize against unless the issuer is paying the acquirer
fee on behalf of the cardholder.
fee on behalf of the cardholder. Use an integer value.
- `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
risk level, with a higher value indicating a higher amount of risk.
risk level, with a higher value indicating a higher amount of risk. Use an
integer value.
- `MESSAGE_CATEGORY`: The category of the authentication being processed.
- `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
data with the cardholder KYC data if it exists. Valid values are `MATCH`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Condition(BaseModel):
ID) of the entity initiating the ACH transaction.
- `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
- `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
(cents).
(cents). Use an integer value.
- `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
(Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Condition(TypedDict, total=False):
ID) of the entity initiating the ACH transaction.
- `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
- `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
(cents).
(cents). Use an integer value.
- `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
(Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,26 +109,27 @@ class Condition(BaseModel):
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
fee field in the settlement/cardholder billing currency. This is the amount
the issuer should authorize against unless the issuer is paying the acquirer
fee on behalf of the cardholder.
fee on behalf of the cardholder. Use an integer value.
- `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
represents the amount of cash being withdrawn or advanced.
represents the amount of cash being withdrawn or advanced. Use an integer
value.
- `RISK_SCORE`: Network-provided score assessing risk level associated with a
given authorization. Scores are on a range of 0-999, with 0 representing the
lowest risk and 999 representing the highest risk. For Visa transactions,
where the raw score has a range of 0-99, Lithic will normalize the score by
multiplying the raw score by 10x.
multiplying the raw score by 10x. Use an integer value.
- `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
trailing 15 minutes before the authorization.
trailing 15 minutes before the authorization. Use an integer value.
- `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
trailing hour up and until the authorization.
trailing hour up and until the authorization. Use an integer value.
- `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
trailing 24 hours up and until the authorization.
trailing 24 hours up and until the authorization. Use an integer value.
- `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
the trailing 15 minutes before the authorization.
the trailing 15 minutes before the authorization. Use an integer value.
- `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
the trailing hour up and until the authorization.
the trailing hour up and until the authorization. Use an integer value.
- `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
the trailing 24 hours up and until the authorization.
the trailing 24 hours up and until the authorization. Use an integer value.
- `CARD_STATE`: The current state of the card associated with the transaction.
Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
`PENDING_FULFILLMENT`.
Expand All @@ -153,18 +154,20 @@ class Condition(BaseModel):
data, the service location postal code is used. Otherwise, falls back to the
card acceptor postal code.
- `CARD_AGE`: The age of the card in seconds at the time of the authorization.
Use an integer value.
- `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
of the authorization.
of the authorization. Use an integer value.
- `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
entity's transaction history. Null if fewer than 30 approved transactions in
the specified window. Requires `parameters.scope` and `parameters.interval`.
Use a decimal value.
- `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
entity over the specified window, in cents. Requires `parameters.scope` and
`parameters.interval`.
`parameters.interval`. Use a decimal value.
- `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
amounts for the entity over the specified window, in cents. Null if fewer than
30 approved transactions in the specified window. Requires `parameters.scope`
and `parameters.interval`.
and `parameters.interval`. Use a decimal value.
- `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
Requires `parameters.scope`.
Expand All @@ -175,26 +178,31 @@ class Condition(BaseModel):
Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
- `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
supported for `BUSINESS_ACCOUNT` scope.
supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
- `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
transaction for the entity. Requires `parameters.scope`.
transaction for the entity, rounded to the nearest whole day. Requires
`parameters.scope`. Use an integer value.
- `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
the entity's transaction history. Requires `parameters.scope`.
the entity's transaction history. Requires `parameters.scope`. Use an integer
value.
- `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
card's approved transaction history (capped at the 1000 most recently seen
merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
`parameters` required.
- `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
Use a decimal value.
- `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
between the postal code centers of the last card-present transaction and the
current transaction, divided by the elapsed time. Null if there is no prior
card-present transaction, if either postal code cannot be geocoded, or if
elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`.
elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
decimal value.
- `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
code centers of the last card-present transaction and the current transaction.
Null if there is no prior card-present transaction or if either postal code
cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
Use a decimal value.
"""

operation: ConditionalOperation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,26 +113,27 @@ class Condition(TypedDict, total=False):
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
fee field in the settlement/cardholder billing currency. This is the amount
the issuer should authorize against unless the issuer is paying the acquirer
fee on behalf of the cardholder.
fee on behalf of the cardholder. Use an integer value.
- `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
represents the amount of cash being withdrawn or advanced.
represents the amount of cash being withdrawn or advanced. Use an integer
value.
- `RISK_SCORE`: Network-provided score assessing risk level associated with a
given authorization. Scores are on a range of 0-999, with 0 representing the
lowest risk and 999 representing the highest risk. For Visa transactions,
where the raw score has a range of 0-99, Lithic will normalize the score by
multiplying the raw score by 10x.
multiplying the raw score by 10x. Use an integer value.
- `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
trailing 15 minutes before the authorization.
trailing 15 minutes before the authorization. Use an integer value.
- `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
trailing hour up and until the authorization.
trailing hour up and until the authorization. Use an integer value.
- `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
trailing 24 hours up and until the authorization.
trailing 24 hours up and until the authorization. Use an integer value.
- `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
the trailing 15 minutes before the authorization.
the trailing 15 minutes before the authorization. Use an integer value.
- `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
the trailing hour up and until the authorization.
the trailing hour up and until the authorization. Use an integer value.
- `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
the trailing 24 hours up and until the authorization.
the trailing 24 hours up and until the authorization. Use an integer value.
- `CARD_STATE`: The current state of the card associated with the transaction.
Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
`PENDING_FULFILLMENT`.
Expand All @@ -157,18 +158,20 @@ class Condition(TypedDict, total=False):
data, the service location postal code is used. Otherwise, falls back to the
card acceptor postal code.
- `CARD_AGE`: The age of the card in seconds at the time of the authorization.
Use an integer value.
- `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
of the authorization.
of the authorization. Use an integer value.
- `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
entity's transaction history. Null if fewer than 30 approved transactions in
the specified window. Requires `parameters.scope` and `parameters.interval`.
Use a decimal value.
- `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
entity over the specified window, in cents. Requires `parameters.scope` and
`parameters.interval`.
`parameters.interval`. Use a decimal value.
- `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
amounts for the entity over the specified window, in cents. Null if fewer than
30 approved transactions in the specified window. Requires `parameters.scope`
and `parameters.interval`.
and `parameters.interval`. Use a decimal value.
- `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
Requires `parameters.scope`.
Expand All @@ -179,26 +182,31 @@ class Condition(TypedDict, total=False):
Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
- `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
supported for `BUSINESS_ACCOUNT` scope.
supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
- `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
transaction for the entity. Requires `parameters.scope`.
transaction for the entity, rounded to the nearest whole day. Requires
`parameters.scope`. Use an integer value.
- `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
the entity's transaction history. Requires `parameters.scope`.
the entity's transaction history. Requires `parameters.scope`. Use an integer
value.
- `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
card's approved transaction history (capped at the 1000 most recently seen
merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
`parameters` required.
- `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
Use a decimal value.
- `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
between the postal code centers of the last card-present transaction and the
current transaction, divided by the elapsed time. Null if there is no prior
card-present transaction, if either postal code cannot be geocoded, or if
elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`.
elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
decimal value.
- `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
code centers of the last card-present transaction and the current transaction.
Null if there is no prior card-present transaction or if either postal code
cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
Use a decimal value.
"""

operation: Required[ConditionalOperation]
Expand Down
Loading