Skip to content

Commit 126641d

Browse files
feat(api): Add created field and make completed_at nullable in latest_challenge
1 parent a3f3894 commit 126641d

2 files changed

Lines changed: 11 additions & 8 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: 194
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-efe780032e44b3cf0f6914407e43bce6aa7176fa50aa6ec018f93c1f28af8490.yml
3-
openapi_spec_hash: fcb4ca53ca59978f23f21d7c74fcc0b0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-af18ede440e3b8a8b15aa3831c5add93c25934cdb037a0c6128a4c4e82fe5d4f.yml
3+
openapi_spec_hash: be9b3152e28212b685337a42ad1acf97
44
config_hash: a0a579b0564a5c18568a78f5ba2b6653

src/lithic/types/card_authorization.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ class LatestChallenge(BaseModel):
201201
The latest Authorization Challenge that was issued to the cardholder for this merchant.
202202
"""
203203

204+
completed_at: Optional[datetime] = None
205+
"""The date and time when the Authorization Challenge was completed in UTC.
206+
207+
Filled only if the challenge has been completed.
208+
"""
209+
210+
created: datetime
211+
"""The date and time when the Authorization Challenge was created in UTC"""
212+
204213
method: Literal["SMS", "OUT_OF_BAND"]
205214
"""The method used to deliver the challenge to the cardholder
206215
@@ -224,12 +233,6 @@ class LatestChallenge(BaseModel):
224233
- `ERROR` - There was an error processing the challenge
225234
"""
226235

227-
completed_at: Optional[datetime] = None
228-
"""The date and time when the Authorization Challenge was completed in UTC.
229-
230-
Present only if the status is `COMPLETED`.
231-
"""
232-
233236

234237
class NetworkSpecificDataMastercardOnBehalfServiceResult(BaseModel):
235238
result_1: str

0 commit comments

Comments
 (0)