Skip to content

Commit c511d14

Browse files
feat(api): add decline count attributes to auth_rules conditions
1 parent bef46fb commit c511d14

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 189
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-eb2cf51467f505a1d29c3ca40b9595ecbf6d6a3743f53bc42a52c8135a252ff0.yml
3-
openapi_spec_hash: 2fbd71b69d71138b3e54432a38d759ed
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-27d13d3d5226c710b07f9fc954fa53a8e6923e74d90d3f587d96399c1baf4de3.yml
3+
openapi_spec_hash: 99a60cbd91f32b25617a9536fadebf07
44
config_hash: edbdfefeb0d3d927c2f9fe3402793215

src/lithic/types/auth_rules/conditional_authorization_action_parameters.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class Condition(BaseModel):
2525
"CARD_TRANSACTION_COUNT_15M",
2626
"CARD_TRANSACTION_COUNT_1H",
2727
"CARD_TRANSACTION_COUNT_24H",
28+
"CARD_DECLINE_COUNT_15M",
29+
"CARD_DECLINE_COUNT_1H",
30+
"CARD_DECLINE_COUNT_24H",
2831
"CARD_STATE",
2932
"PIN_ENTERED",
3033
"PIN_STATUS",
@@ -75,6 +78,12 @@ class Condition(BaseModel):
7578
trailing hour up and until the authorization.
7679
- `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
7780
trailing 24 hours up and until the authorization.
81+
- `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
82+
the trailing 15 minutes before the authorization.
83+
- `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
84+
the trailing hour up and until the authorization.
85+
- `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
86+
the trailing 24 hours up and until the authorization.
7887
- `CARD_STATE`: The current state of the card associated with the transaction.
7988
Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
8089
`PENDING_FULFILLMENT`.

src/lithic/types/auth_rules/conditional_authorization_action_parameters_param.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class Condition(TypedDict, total=False):
2828
"CARD_TRANSACTION_COUNT_15M",
2929
"CARD_TRANSACTION_COUNT_1H",
3030
"CARD_TRANSACTION_COUNT_24H",
31+
"CARD_DECLINE_COUNT_15M",
32+
"CARD_DECLINE_COUNT_1H",
33+
"CARD_DECLINE_COUNT_24H",
3134
"CARD_STATE",
3235
"PIN_ENTERED",
3336
"PIN_STATUS",
@@ -79,6 +82,12 @@ class Condition(TypedDict, total=False):
7982
trailing hour up and until the authorization.
8083
- `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
8184
trailing 24 hours up and until the authorization.
85+
- `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
86+
the trailing 15 minutes before the authorization.
87+
- `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
88+
the trailing hour up and until the authorization.
89+
- `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
90+
the trailing 24 hours up and until the authorization.
8291
- `CARD_STATE`: The current state of the card associated with the transaction.
8392
Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
8493
`PENDING_FULFILLMENT`.

0 commit comments

Comments
 (0)