forked from lithic-com/lithic-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtokenization.py
More file actions
84 lines (66 loc) · 2.44 KB
/
tokenization.py
File metadata and controls
84 lines (66 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
from datetime import datetime
from typing_extensions import Literal
from .._models import BaseModel
__all__ = ["Tokenization", "Event"]
class Event(BaseModel):
token: Optional[str] = None
"""Globally unique identifier for a Tokenization Event"""
created_at: Optional[datetime] = None
"""Date and time when the tokenization event first occurred. UTC time zone."""
result: Optional[
Literal[
"APPROVED",
"DECLINED",
"NOTIFICATION_DELIVERED",
"REQUIRE_ADDITIONAL_AUTHENTICATION",
"TOKEN_ACTIVATED",
"TOKEN_CREATED",
"TOKEN_DEACTIVATED",
"TOKEN_INACTIVE",
"TOKEN_STATE_UNKNOWN",
"TOKEN_SUSPENDED",
"TOKEN_UPDATED",
]
] = None
"""Enum representing the result of the tokenization event"""
type: Optional[
Literal[
"TOKENIZATION_2FA",
"TOKENIZATION_AUTHORIZATION",
"TOKENIZATION_DECISIONING",
"TOKENIZATION_ELIGIBILITY_CHECK",
"TOKENIZATION_UPDATED",
]
] = None
"""Enum representing the type of tokenization event that occurred"""
class Tokenization(BaseModel):
token: str
"""Globally unique identifier for a Tokenization"""
account_token: str
"""The account token associated with the card being tokenized."""
card_token: str
"""The card token associated with the card being tokenized."""
created_at: datetime
"""Date and time when the tokenization first occurred. UTC time zone."""
status: Literal["ACTIVE", "DEACTIVATED", "INACTIVE", "PAUSED", "PENDING_2FA", "PENDING_ACTIVATION", "UNKNOWN"]
"""The status of the tokenization request"""
token_requestor_name: Literal[
"AMAZON_ONE",
"ANDROID_PAY",
"APPLE_PAY",
"FITBIT_PAY",
"GARMIN_PAY",
"MICROSOFT_PAY",
"SAMSUNG_PAY",
"UNKNOWN",
"VISA_CHECKOUT",
]
"""The entity that is requested the tokenization. Represents a Digital Wallet."""
token_unique_reference: str
"""The network's unique reference for the tokenization."""
updated_at: datetime
"""Latest date and time when the tokenization was updated. UTC time zone."""
events: Optional[List[Event]] = None
"""A list of events related to the tokenization."""