Skip to content

Commit 1838bd0

Browse files
feat(api): add CARD_AGE and ACCOUNT_AGE attributes to auth_rules conditions
1 parent 19483e8 commit 1838bd0

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: 189
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-5bb8d2bedef02f07498de3f252fa6da1393d2fb59f727b05828804cea9aded30.yml
3-
openapi_spec_hash: d1f260252b3bb7ebc77fa7134db6c65d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-5f3c4878ed085a0e8925abdf14ed250ba25b04d5a128e3edd81f28be5fd79b69.yml
3+
openapi_spec_hash: f2cc51f780daf0454712a4f73b9c8302
44
config_hash: 400b9afe0f7f7b7d96177d05950775f9

src/lithic/types/auth_rules/conditional_authorization_action_parameters.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class Condition(BaseModel):
3131
"WALLET_TYPE",
3232
"TRANSACTION_INITIATOR",
3333
"ADDRESS_MATCH",
34+
"CARD_AGE",
35+
"ACCOUNT_AGE",
3436
]
3537
"""The attribute to target.
3638
@@ -86,6 +88,9 @@ class Condition(BaseModel):
8688
- `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
8789
data with the cardholder KYC data if it exists. Valid values are `MATCH`,
8890
`MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
91+
- `CARD_AGE`: The age of the card in seconds at the time of the authorization.
92+
- `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
93+
of the authorization.
8994
"""
9095

9196
operation: ConditionalOperation

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
@@ -34,6 +34,8 @@ class Condition(TypedDict, total=False):
3434
"WALLET_TYPE",
3535
"TRANSACTION_INITIATOR",
3636
"ADDRESS_MATCH",
37+
"CARD_AGE",
38+
"ACCOUNT_AGE",
3739
]
3840
]
3941
"""The attribute to target.
@@ -90,6 +92,9 @@ class Condition(TypedDict, total=False):
9092
- `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
9193
data with the cardholder KYC data if it exists. Valid values are `MATCH`,
9294
`MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
95+
- `CARD_AGE`: The age of the card in seconds at the time of the authorization.
96+
- `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
97+
of the authorization.
9398
"""
9499

95100
operation: Required[ConditionalOperation]

0 commit comments

Comments
 (0)