@@ -102,23 +102,16 @@ class Avs(BaseModel):
102102class Card (BaseModel ):
103103 """Card object in ASA"""
104104
105- token : Optional [ str ] = None
105+ token : str
106106 """Globally unique identifier for the card."""
107107
108- hostname : Optional [str ] = None
109- """Hostname of card’s locked merchant (will be empty if not applicable)"""
110-
111- last_four : Optional [str ] = None
108+ last_four : str
112109 """Last four digits of the card number"""
113110
114- memo : Optional [str ] = None
115- """Customizable name to identify the card.
116-
117- We recommend against using this field to store JSON data as it can cause
118- unexpected behavior.
119- """
111+ memo : str
112+ """Customizable name to identify the card"""
120113
121- spend_limit : Optional [ int ] = None
114+ spend_limit : int
122115 """Amount (in cents) to limit approved authorizations.
123116
124117 Purchase requests above the spend limit will be declined (refunds and credits
@@ -131,16 +124,16 @@ class Card(BaseModel):
131124 authorization).
132125 """
133126
134- spend_limit_duration : Optional [ Literal ["ANNUALLY" , "FOREVER" , "MONTHLY" , "TRANSACTION" ]] = None
127+ spend_limit_duration : Literal ["ANNUALLY" , "FOREVER" , "MONTHLY" , "TRANSACTION" ]
135128 """
136129 Note that to support recurring monthly payments, which can occur on different
137130 day every month, the time window we consider for MONTHLY velocity starts 6 days
138131 after the current calendar date one month prior.
139132 """
140133
141- state : Optional [ Literal ["CLOSED" , "OPEN" , "PAUSED" , "PENDING_ACTIVATION" , "PENDING_FULFILLMENT" ]] = None
134+ state : Literal ["CLOSED" , "OPEN" , "PAUSED" , "PENDING_ACTIVATION" , "PENDING_FULFILLMENT" ]
142135
143- type : Optional [ Literal ["SINGLE_USE" , "MERCHANT_LOCKED" , "UNLOCKED" , "PHYSICAL" , "DIGITAL_WALLET" , "VIRTUAL" ]] = None
136+ type : Literal ["SINGLE_USE" , "MERCHANT_LOCKED" , "UNLOCKED" , "PHYSICAL" , "DIGITAL_WALLET" , "VIRTUAL" ]
144137
145138
146139class Merchant (merchant .Merchant ):
0 commit comments