Skip to content

Commit 6ede6ae

Browse files
feat(api): add IS_NEW_MERCHANT to auth_rules conditional authorization conditions
1 parent 6d55bc3 commit 6ede6ae

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 190
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-a46ebb10f6bb217a591206f0574450c324f108dbd32a2d62727cd8186d85e94f.yml
3-
openapi_spec_hash: f320c173152f74b0799166b6ef5b82cd
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-92d7ce0702a494edb7beb0ad484c4f24aca65777197d40b2108d05c13c3fa505.yml
3+
openapi_spec_hash: 35e4b9edb38ef23f528fcfbfeaabac02
44
config_hash: ac8326134e692f3f3bdec82396bbec80

src/lithic/types/auth_rules/conditional_authorization_action_parameters.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class Condition(BaseModel):
6868
"CONSECUTIVE_DECLINES",
6969
"TIME_SINCE_LAST_TRANSACTION",
7070
"DISTINCT_COUNTRY_COUNT",
71+
"IS_NEW_MERCHANT",
7172
"THREE_DS_SUCCESS_RATE",
7273
]
7374
"""The attribute to target.
@@ -166,6 +167,10 @@ class Condition(BaseModel):
166167
transaction for the entity. Requires `parameters.scope`.
167168
- `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
168169
the entity's transaction history. Requires `parameters.scope`.
170+
- `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
171+
card's approved transaction history (capped at the 1000 most recently seen
172+
merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
173+
`parameters` required.
169174
- `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
170175
a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
171176
"""

src/lithic/types/auth_rules/conditional_authorization_action_parameters_param.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class Condition(TypedDict, total=False):
7171
"CONSECUTIVE_DECLINES",
7272
"TIME_SINCE_LAST_TRANSACTION",
7373
"DISTINCT_COUNTRY_COUNT",
74+
"IS_NEW_MERCHANT",
7475
"THREE_DS_SUCCESS_RATE",
7576
]
7677
]
@@ -170,6 +171,10 @@ class Condition(TypedDict, total=False):
170171
transaction for the entity. Requires `parameters.scope`.
171172
- `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
172173
the entity's transaction history. Requires `parameters.scope`.
174+
- `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
175+
card's approved transaction history (capped at the 1000 most recently seen
176+
merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
177+
`parameters` required.
173178
- `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
174179
a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
175180
"""

0 commit comments

Comments
 (0)