Skip to content

Commit 40d3bf0

Browse files
fix(types): change ConditionalValue from int to float in auth_rules
1 parent 79177d2 commit 40d3bf0

13 files changed

Lines changed: 78 additions & 58 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 192
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-00f07b0edcc0c3c5ef79920ced7f58dac2434df5e4c27ff6041783e8228315f9.yml
3-
openapi_spec_hash: 963688b09480159a06865075c94a2577
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-edd62262c633378b046a4c774cb9a824e2f6bf8f6c0cec613d3fb56e96ba1a29.yml
3+
openapi_spec_hash: e90bfadcd60afbaf9e0c9ebaea4e374e
44
config_hash: 265a2b679964f4ad5706de101ad2a942

src/lithic/types/auth_rules/conditional_3ds_action_parameters.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ class Condition(BaseModel):
3939
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
4040
fee field in the settlement/cardholder billing currency. This is the amount
4141
the issuer should authorize against unless the issuer is paying the acquirer
42-
fee on behalf of the cardholder.
42+
fee on behalf of the cardholder. Use an integer value.
4343
- `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
44-
risk level, with a higher value indicating a higher amount of risk.
44+
risk level, with a higher value indicating a higher amount of risk. Use an
45+
integer value.
4546
- `MESSAGE_CATEGORY`: The category of the authentication being processed.
4647
- `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
4748
data with the cardholder KYC data if it exists. Valid values are `MATCH`,

src/lithic/types/auth_rules/conditional_3ds_action_parameters_param.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ class Condition(TypedDict, total=False):
4343
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
4444
fee field in the settlement/cardholder billing currency. This is the amount
4545
the issuer should authorize against unless the issuer is paying the acquirer
46-
fee on behalf of the cardholder.
46+
fee on behalf of the cardholder. Use an integer value.
4747
- `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
48-
risk level, with a higher value indicating a higher amount of risk.
48+
risk level, with a higher value indicating a higher amount of risk. Use an
49+
integer value.
4950
- `MESSAGE_CATEGORY`: The category of the authentication being processed.
5051
- `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
5152
data with the cardholder KYC data if it exists. Valid values are `MATCH`,

src/lithic/types/auth_rules/conditional_ach_action_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class Condition(BaseModel):
112112
ID) of the entity initiating the ACH transaction.
113113
- `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
114114
- `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
115-
(cents).
115+
(cents). Use an integer value.
116116
- `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
117117
Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
118118
(Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL

src/lithic/types/auth_rules/conditional_ach_action_parameters_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Condition(TypedDict, total=False):
116116
ID) of the entity initiating the ACH transaction.
117117
- `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
118118
- `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
119-
(cents).
119+
(cents). Use an integer value.
120120
- `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
121121
Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
122122
(Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL

src/lithic/types/auth_rules/conditional_authorization_action_parameters.py

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,27 @@ class Condition(BaseModel):
109109
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
110110
fee field in the settlement/cardholder billing currency. This is the amount
111111
the issuer should authorize against unless the issuer is paying the acquirer
112-
fee on behalf of the cardholder.
112+
fee on behalf of the cardholder. Use an integer value.
113113
- `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
114-
represents the amount of cash being withdrawn or advanced.
114+
represents the amount of cash being withdrawn or advanced. Use an integer
115+
value.
115116
- `RISK_SCORE`: Network-provided score assessing risk level associated with a
116117
given authorization. Scores are on a range of 0-999, with 0 representing the
117118
lowest risk and 999 representing the highest risk. For Visa transactions,
118119
where the raw score has a range of 0-99, Lithic will normalize the score by
119-
multiplying the raw score by 10x.
120+
multiplying the raw score by 10x. Use an integer value.
120121
- `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
121-
trailing 15 minutes before the authorization.
122+
trailing 15 minutes before the authorization. Use an integer value.
122123
- `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
123-
trailing hour up and until the authorization.
124+
trailing hour up and until the authorization. Use an integer value.
124125
- `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
125-
trailing 24 hours up and until the authorization.
126+
trailing 24 hours up and until the authorization. Use an integer value.
126127
- `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
127-
the trailing 15 minutes before the authorization.
128+
the trailing 15 minutes before the authorization. Use an integer value.
128129
- `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
129-
the trailing hour up and until the authorization.
130+
the trailing hour up and until the authorization. Use an integer value.
130131
- `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
131-
the trailing 24 hours up and until the authorization.
132+
the trailing 24 hours up and until the authorization. Use an integer value.
132133
- `CARD_STATE`: The current state of the card associated with the transaction.
133134
Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
134135
`PENDING_FULFILLMENT`.
@@ -153,18 +154,20 @@ class Condition(BaseModel):
153154
data, the service location postal code is used. Otherwise, falls back to the
154155
card acceptor postal code.
155156
- `CARD_AGE`: The age of the card in seconds at the time of the authorization.
157+
Use an integer value.
156158
- `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
157-
of the authorization.
159+
of the authorization. Use an integer value.
158160
- `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
159161
entity's transaction history. Null if fewer than 30 approved transactions in
160162
the specified window. Requires `parameters.scope` and `parameters.interval`.
163+
Use a decimal value.
161164
- `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
162165
entity over the specified window, in cents. Requires `parameters.scope` and
163-
`parameters.interval`.
166+
`parameters.interval`. Use a decimal value.
164167
- `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
165168
amounts for the entity over the specified window, in cents. Null if fewer than
166169
30 approved transactions in the specified window. Requires `parameters.scope`
167-
and `parameters.interval`.
170+
and `parameters.interval`. Use a decimal value.
168171
- `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
169172
in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
170173
Requires `parameters.scope`.
@@ -175,26 +178,31 @@ class Condition(BaseModel):
175178
Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
176179
- `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
177180
the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
178-
supported for `BUSINESS_ACCOUNT` scope.
181+
supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
179182
- `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
180-
transaction for the entity. Requires `parameters.scope`.
183+
transaction for the entity, rounded to the nearest whole day. Requires
184+
`parameters.scope`. Use an integer value.
181185
- `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
182-
the entity's transaction history. Requires `parameters.scope`.
186+
the entity's transaction history. Requires `parameters.scope`. Use an integer
187+
value.
183188
- `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
184189
card's approved transaction history (capped at the 1000 most recently seen
185190
merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
186191
`parameters` required.
187192
- `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
188193
a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
194+
Use a decimal value.
189195
- `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
190196
between the postal code centers of the last card-present transaction and the
191197
current transaction, divided by the elapsed time. Null if there is no prior
192198
card-present transaction, if either postal code cannot be geocoded, or if
193-
elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`.
199+
elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
200+
decimal value.
194201
- `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
195202
code centers of the last card-present transaction and the current transaction.
196203
Null if there is no prior card-present transaction or if either postal code
197204
cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
205+
Use a decimal value.
198206
"""
199207

200208
operation: ConditionalOperation

src/lithic/types/auth_rules/conditional_authorization_action_parameters_param.py

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,26 +113,27 @@ class Condition(TypedDict, total=False):
113113
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
114114
fee field in the settlement/cardholder billing currency. This is the amount
115115
the issuer should authorize against unless the issuer is paying the acquirer
116-
fee on behalf of the cardholder.
116+
fee on behalf of the cardholder. Use an integer value.
117117
- `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
118-
represents the amount of cash being withdrawn or advanced.
118+
represents the amount of cash being withdrawn or advanced. Use an integer
119+
value.
119120
- `RISK_SCORE`: Network-provided score assessing risk level associated with a
120121
given authorization. Scores are on a range of 0-999, with 0 representing the
121122
lowest risk and 999 representing the highest risk. For Visa transactions,
122123
where the raw score has a range of 0-99, Lithic will normalize the score by
123-
multiplying the raw score by 10x.
124+
multiplying the raw score by 10x. Use an integer value.
124125
- `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
125-
trailing 15 minutes before the authorization.
126+
trailing 15 minutes before the authorization. Use an integer value.
126127
- `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
127-
trailing hour up and until the authorization.
128+
trailing hour up and until the authorization. Use an integer value.
128129
- `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
129-
trailing 24 hours up and until the authorization.
130+
trailing 24 hours up and until the authorization. Use an integer value.
130131
- `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
131-
the trailing 15 minutes before the authorization.
132+
the trailing 15 minutes before the authorization. Use an integer value.
132133
- `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
133-
the trailing hour up and until the authorization.
134+
the trailing hour up and until the authorization. Use an integer value.
134135
- `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
135-
the trailing 24 hours up and until the authorization.
136+
the trailing 24 hours up and until the authorization. Use an integer value.
136137
- `CARD_STATE`: The current state of the card associated with the transaction.
137138
Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
138139
`PENDING_FULFILLMENT`.
@@ -157,18 +158,20 @@ class Condition(TypedDict, total=False):
157158
data, the service location postal code is used. Otherwise, falls back to the
158159
card acceptor postal code.
159160
- `CARD_AGE`: The age of the card in seconds at the time of the authorization.
161+
Use an integer value.
160162
- `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
161-
of the authorization.
163+
of the authorization. Use an integer value.
162164
- `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
163165
entity's transaction history. Null if fewer than 30 approved transactions in
164166
the specified window. Requires `parameters.scope` and `parameters.interval`.
167+
Use a decimal value.
165168
- `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
166169
entity over the specified window, in cents. Requires `parameters.scope` and
167-
`parameters.interval`.
170+
`parameters.interval`. Use a decimal value.
168171
- `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
169172
amounts for the entity over the specified window, in cents. Null if fewer than
170173
30 approved transactions in the specified window. Requires `parameters.scope`
171-
and `parameters.interval`.
174+
and `parameters.interval`. Use a decimal value.
172175
- `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
173176
in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
174177
Requires `parameters.scope`.
@@ -179,26 +182,31 @@ class Condition(TypedDict, total=False):
179182
Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
180183
- `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
181184
the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
182-
supported for `BUSINESS_ACCOUNT` scope.
185+
supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
183186
- `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
184-
transaction for the entity. Requires `parameters.scope`.
187+
transaction for the entity, rounded to the nearest whole day. Requires
188+
`parameters.scope`. Use an integer value.
185189
- `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
186-
the entity's transaction history. Requires `parameters.scope`.
190+
the entity's transaction history. Requires `parameters.scope`. Use an integer
191+
value.
187192
- `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
188193
card's approved transaction history (capped at the 1000 most recently seen
189194
merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
190195
`parameters` required.
191196
- `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
192197
a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
198+
Use a decimal value.
193199
- `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
194200
between the postal code centers of the last card-present transaction and the
195201
current transaction, divided by the elapsed time. Null if there is no prior
196202
card-present transaction, if either postal code cannot be geocoded, or if
197-
elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`.
203+
elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
204+
decimal value.
198205
- `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
199206
code centers of the last card-present transaction and the current transaction.
200207
Null if there is no prior card-present transaction or if either postal code
201208
cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
209+
Use a decimal value.
202210
"""
203211

204212
operation: Required[ConditionalOperation]

src/lithic/types/auth_rules/conditional_card_transaction_update_action_parameters.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ class Condition(BaseModel):
6565
- `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
6666
fee field in the settlement/cardholder billing currency. This is the amount
6767
the issuer should authorize against unless the issuer is paying the acquirer
68-
fee on behalf of the cardholder.
68+
fee on behalf of the cardholder. Use an integer value.
6969
- `RISK_SCORE`: Network-provided score assessing risk level associated with a
7070
given authorization. Scores are on a range of 0-999, with 0 representing the
7171
lowest risk and 999 representing the highest risk. For Visa transactions,
7272
where the raw score has a range of 0-99, Lithic will normalize the score by
73-
multiplying the raw score by 10x.
73+
multiplying the raw score by 10x. Use an integer value.
7474
- `TRANSACTION_STATUS`: The status of the transaction. Valid values are
7575
`PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`,
7676
`EXPIRED`.
@@ -91,15 +91,16 @@ class Condition(BaseModel):
9191
- `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
9292
source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
9393
`SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
94-
- `CARD_AGE`: The age of the card in seconds at the time of the transaction.
94+
- `CARD_AGE`: The age of the card in seconds at the time of the transaction. Use
95+
an integer value.
9596
- `ACCOUNT_AGE`: The age of the account in seconds at the time of the
96-
transaction.
97+
transaction. Use an integer value.
9798
- `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified
9899
filters within the given period. Requires `parameters` with `scope`, `period`,
99-
and optional `filters`.
100+
and optional `filters`. Use an integer value.
100101
- `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
101102
matching the specified filters within the given period. Requires `parameters`
102-
with `scope`, `period`, and optional `filters`.
103+
with `scope`, `period`, and optional `filters`. Use an integer value.
103104
"""
104105

105106
operation: ConditionalOperation

0 commit comments

Comments
 (0)