Skip to content

Commit 25fcd02

Browse files
feat(api): add transaction_token field to auth_rules result types
1 parent 5567809 commit 25fcd02

2 files changed

Lines changed: 14 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-bce16144ab1915776bd58c413ad5226451e06d1ab10b8329a0954d65020defb7.yml
3-
openapi_spec_hash: ee2dded6efa47929d7fde4aed56e141d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fde7dad9bd08702d5db270fdd3cb533bc927387c4ea5aa19b11c67dd3ea643d4.yml
3+
openapi_spec_hash: bf4c200978915ccdf7f4a5734e796a07
44
config_hash: edbdfefeb0d3d927c2f9fe3402793215

src/lithic/types/auth_rules/v2_list_results_response.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ class AuthorizationResult(BaseModel):
130130
rule_version: int
131131
"""Version of the rule that was evaluated"""
132132

133+
transaction_token: Optional[str] = None
134+
"""The token of the transaction that triggered the rule evaluation"""
135+
133136

134137
class Authentication3DsResultAction(BaseModel):
135138
type: Literal["DECLINE", "CHALLENGE"]
@@ -163,6 +166,9 @@ class Authentication3DSResult(BaseModel):
163166
rule_version: int
164167
"""Version of the rule that was evaluated"""
165168

169+
transaction_token: Optional[str] = None
170+
"""The token of the transaction that triggered the rule evaluation"""
171+
166172

167173
class TokenizationResultActionDeclineActionTokenization(BaseModel):
168174
type: Literal["DECLINE"]
@@ -250,6 +256,9 @@ class TokenizationResult(BaseModel):
250256
rule_version: int
251257
"""Version of the rule that was evaluated"""
252258

259+
transaction_token: Optional[str] = None
260+
"""The token of the transaction that triggered the rule evaluation"""
261+
253262

254263
class ACHResultActionApproveActionACH(BaseModel):
255264
type: Literal["APPROVE"]
@@ -373,5 +382,8 @@ class ACHResult(BaseModel):
373382
rule_version: int
374383
"""Version of the rule that was evaluated"""
375384

385+
transaction_token: Optional[str] = None
386+
"""The token of the transaction that triggered the rule evaluation"""
387+
376388

377389
V2ListResultsResponse: TypeAlias = Union[AuthorizationResult, Authentication3DSResult, TokenizationResult, ACHResult]

0 commit comments

Comments
 (0)