diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99550732..8406231a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | @@ -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: | @@ -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()); @@ -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: | @@ -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: | diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index e730d88c..69c9b675 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -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: | diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 1811e344..4ba6b65c 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -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: | diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cadbcc6f..9174f9a6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.124.0" + ".": "0.124.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 277eb3b9..558eb1a4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 35da48c3..b79cc4d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 5ad1d5e3..9a4f5dac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/lithic/_version.py b/src/lithic/_version.py index af0c2a6d..1d85411f 100644 --- a/src/lithic/_version.py +++ b/src/lithic/_version.py @@ -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 diff --git a/src/lithic/types/auth_rules/conditional_3ds_action_parameters.py b/src/lithic/types/auth_rules/conditional_3ds_action_parameters.py index f152eb52..fbc10279 100644 --- a/src/lithic/types/auth_rules/conditional_3ds_action_parameters.py +++ b/src/lithic/types/auth_rules/conditional_3ds_action_parameters.py @@ -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`, diff --git a/src/lithic/types/auth_rules/conditional_3ds_action_parameters_param.py b/src/lithic/types/auth_rules/conditional_3ds_action_parameters_param.py index de980efe..f0991069 100644 --- a/src/lithic/types/auth_rules/conditional_3ds_action_parameters_param.py +++ b/src/lithic/types/auth_rules/conditional_3ds_action_parameters_param.py @@ -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`, diff --git a/src/lithic/types/auth_rules/conditional_ach_action_parameters.py b/src/lithic/types/auth_rules/conditional_ach_action_parameters.py index 3d47407b..49d0911f 100644 --- a/src/lithic/types/auth_rules/conditional_ach_action_parameters.py +++ b/src/lithic/types/auth_rules/conditional_ach_action_parameters.py @@ -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 diff --git a/src/lithic/types/auth_rules/conditional_ach_action_parameters_param.py b/src/lithic/types/auth_rules/conditional_ach_action_parameters_param.py index 85929fd3..f9ea83bc 100644 --- a/src/lithic/types/auth_rules/conditional_ach_action_parameters_param.py +++ b/src/lithic/types/auth_rules/conditional_ach_action_parameters_param.py @@ -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 diff --git a/src/lithic/types/auth_rules/conditional_authorization_action_parameters.py b/src/lithic/types/auth_rules/conditional_authorization_action_parameters.py index 4b288ac2..1c986ef5 100644 --- a/src/lithic/types/auth_rules/conditional_authorization_action_parameters.py +++ b/src/lithic/types/auth_rules/conditional_authorization_action_parameters.py @@ -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`. @@ -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`. @@ -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 diff --git a/src/lithic/types/auth_rules/conditional_authorization_action_parameters_param.py b/src/lithic/types/auth_rules/conditional_authorization_action_parameters_param.py index e903a5e0..945fb361 100644 --- a/src/lithic/types/auth_rules/conditional_authorization_action_parameters_param.py +++ b/src/lithic/types/auth_rules/conditional_authorization_action_parameters_param.py @@ -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`. @@ -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`. @@ -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] diff --git a/src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters.py b/src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters.py index 007cbf75..f4643c5b 100644 --- a/src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters.py +++ b/src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters.py @@ -65,12 +65,12 @@ 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`: 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. - `TRANSACTION_STATUS`: The status of the transaction. Valid values are `PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`, `EXPIRED`. @@ -91,15 +91,16 @@ class Condition(BaseModel): - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - - `CARD_AGE`: The age of the card in seconds at the time of the transaction. + - `CARD_AGE`: The age of the card in seconds at the time of the transaction. Use + an integer value. - `ACCOUNT_AGE`: The age of the account in seconds at the time of the - transaction. + transaction. Use an integer value. - `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified filters within the given period. Requires `parameters` with `scope`, `period`, - and optional `filters`. + and optional `filters`. Use an integer value. - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions matching the specified filters within the given period. Requires `parameters` - with `scope`, `period`, and optional `filters`. + with `scope`, `period`, and optional `filters`. Use an integer value. """ operation: ConditionalOperation diff --git a/src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters_param.py b/src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters_param.py index f35e09e0..3c6f6aff 100644 --- a/src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters_param.py +++ b/src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters_param.py @@ -69,12 +69,12 @@ 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`: 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. - `TRANSACTION_STATUS`: The status of the transaction. Valid values are `PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`, `EXPIRED`. @@ -95,15 +95,16 @@ class Condition(TypedDict, total=False): - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - - `CARD_AGE`: The age of the card in seconds at the time of the transaction. + - `CARD_AGE`: The age of the card in seconds at the time of the transaction. Use + an integer value. - `ACCOUNT_AGE`: The age of the account in seconds at the time of the - transaction. + transaction. Use an integer value. - `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified filters within the given period. Requires `parameters` with `scope`, `period`, - and optional `filters`. + and optional `filters`. Use an integer value. - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions matching the specified filters within the given period. Requires `parameters` - with `scope`, `period`, and optional `filters`. + with `scope`, `period`, and optional `filters`. Use an integer value. """ operation: Required[ConditionalOperation] diff --git a/src/lithic/types/auth_rules/conditional_tokenization_action_parameters.py b/src/lithic/types/auth_rules/conditional_tokenization_action_parameters.py index a0cd2e6c..4b8a1f44 100644 --- a/src/lithic/types/auth_rules/conditional_tokenization_action_parameters.py +++ b/src/lithic/types/auth_rules/conditional_tokenization_action_parameters.py @@ -100,10 +100,10 @@ class Condition(BaseModel): `SAMSUNG_PAY`, `UNKNOWN`, `VISA_CHECKOUT`. - `WALLET_ACCOUNT_SCORE`: Risk score for the account in the digital wallet. Numeric value where lower numbers indicate higher risk (e.g., 1 = high risk, 2 - = medium risk). + = medium risk). Use an integer value. - `WALLET_DEVICE_SCORE`: Risk score for the device in the digital wallet. Numeric value where lower numbers indicate higher risk (e.g., 1 = high risk, 2 - = medium risk). + = medium risk). Use an integer value. - `WALLET_RECOMMENDED_DECISION`: The decision recommended by the digital wallet provider. Valid values include APPROVE, DECLINE, REQUIRE_ADDITIONAL_AUTHENTICATION. diff --git a/src/lithic/types/auth_rules/conditional_tokenization_action_parameters_param.py b/src/lithic/types/auth_rules/conditional_tokenization_action_parameters_param.py index 5f8d411b..19296991 100644 --- a/src/lithic/types/auth_rules/conditional_tokenization_action_parameters_param.py +++ b/src/lithic/types/auth_rules/conditional_tokenization_action_parameters_param.py @@ -100,10 +100,10 @@ class Condition(TypedDict, total=False): `SAMSUNG_PAY`, `UNKNOWN`, `VISA_CHECKOUT`. - `WALLET_ACCOUNT_SCORE`: Risk score for the account in the digital wallet. Numeric value where lower numbers indicate higher risk (e.g., 1 = high risk, 2 - = medium risk). + = medium risk). Use an integer value. - `WALLET_DEVICE_SCORE`: Risk score for the device in the digital wallet. Numeric value where lower numbers indicate higher risk (e.g., 1 = high risk, 2 - = medium risk). + = medium risk). Use an integer value. - `WALLET_RECOMMENDED_DECISION`: The decision recommended by the digital wallet provider. Valid values include APPROVE, DECLINE, REQUIRE_ADDITIONAL_AUTHENTICATION. diff --git a/src/lithic/types/auth_rules/conditional_value.py b/src/lithic/types/auth_rules/conditional_value.py index 2f0a8910..91c7dc62 100644 --- a/src/lithic/types/auth_rules/conditional_value.py +++ b/src/lithic/types/auth_rules/conditional_value.py @@ -6,4 +6,4 @@ __all__ = ["ConditionalValue"] -ConditionalValue: TypeAlias = Union[str, int, List[str], datetime] +ConditionalValue: TypeAlias = Union[str, int, float, List[str], datetime] diff --git a/src/lithic/types/auth_rules/conditional_value_param.py b/src/lithic/types/auth_rules/conditional_value_param.py index c1e27c62..dd30fbd2 100644 --- a/src/lithic/types/auth_rules/conditional_value_param.py +++ b/src/lithic/types/auth_rules/conditional_value_param.py @@ -10,4 +10,4 @@ __all__ = ["ConditionalValueParam"] -ConditionalValueParam: TypeAlias = Union[str, int, SequenceNotStr[str], Union[str, datetime]] +ConditionalValueParam: TypeAlias = Union[str, int, float, SequenceNotStr[str], Union[str, datetime]]