File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from craftgate .model .loyalty import Loyalty
44from craftgate .request .dto .tokenized_card import TokenizedCard
5+ from craftgate .request .dto .encrypted_card import EncryptedCard
56
67
78class Card (object ):
@@ -21,6 +22,7 @@ def __init__(
2122 card_holder_identity_number : Optional [str ] = None ,
2223 loyalty : Optional [Loyalty ] = None ,
2324 tokenized_card : Optional [TokenizedCard ] = None ,
25+ encrypted_card : Optional [EncryptedCard ] = None ,
2426 store_card_after_success_payment : bool = False
2527 ) -> None :
2628 self .card_holder_name = card_holder_name
@@ -37,4 +39,5 @@ def __init__(
3739 self .card_holder_identity_number = card_holder_identity_number
3840 self .loyalty = loyalty
3941 self .tokenized_card = tokenized_card
42+ self .encrypted_card = encrypted_card
4043 self .store_card_after_success_payment = store_card_after_success_payment
Original file line number Diff line number Diff line change 1+ from typing import Optional
2+
3+
4+ class EncryptedCard (object ):
5+ def __init__ (
6+ self ,
7+ card_data : Optional [str ] = None ,
8+ type : Optional [str ] = None
9+ ) -> None :
10+ self .card_data = card_data
11+ self .type = type
You can’t perform that action at this time.
0 commit comments