@@ -20,6 +20,7 @@ class CardPaymentMethodSpecificOutput(AbstractPaymentMethodSpecificOutput):
20
20
__card : Optional [CardEssentials ] = None
21
21
__fraud_results : Optional [CardFraudResults ] = None
22
22
__initial_scheme_transaction_id : Optional [str ] = None
23
+ __network_token_used : Optional [bool ] = None
23
24
__scheme_transaction_id : Optional [str ] = None
24
25
__three_d_secure_results : Optional [ThreeDSecureResults ] = None
25
26
__token : Optional [str ] = None
@@ -77,6 +78,19 @@ def initial_scheme_transaction_id(self) -> Optional[str]:
77
78
def initial_scheme_transaction_id (self , value : Optional [str ]) -> None :
78
79
self .__initial_scheme_transaction_id = value
79
80
81
+ @property
82
+ def network_token_used (self ) -> Optional [bool ]:
83
+ """
84
+ | Indicates if a network token was used during the payment.
85
+
86
+ Type: bool
87
+ """
88
+ return self .__network_token_used
89
+
90
+ @network_token_used .setter
91
+ def network_token_used (self , value : Optional [bool ]) -> None :
92
+ self .__network_token_used = value
93
+
80
94
@property
81
95
def scheme_transaction_id (self ) -> Optional [str ]:
82
96
"""
@@ -127,6 +141,8 @@ def to_dictionary(self) -> dict:
127
141
dictionary ['fraudResults' ] = self .fraud_results .to_dictionary ()
128
142
if self .initial_scheme_transaction_id is not None :
129
143
dictionary ['initialSchemeTransactionId' ] = self .initial_scheme_transaction_id
144
+ if self .network_token_used is not None :
145
+ dictionary ['networkTokenUsed' ] = self .network_token_used
130
146
if self .scheme_transaction_id is not None :
131
147
dictionary ['schemeTransactionId' ] = self .scheme_transaction_id
132
148
if self .three_d_secure_results is not None :
@@ -151,6 +167,8 @@ def from_dictionary(self, dictionary: dict) -> 'CardPaymentMethodSpecificOutput'
151
167
self .fraud_results = value .from_dictionary (dictionary ['fraudResults' ])
152
168
if 'initialSchemeTransactionId' in dictionary :
153
169
self .initial_scheme_transaction_id = dictionary ['initialSchemeTransactionId' ]
170
+ if 'networkTokenUsed' in dictionary :
171
+ self .network_token_used = dictionary ['networkTokenUsed' ]
154
172
if 'schemeTransactionId' in dictionary :
155
173
self .scheme_transaction_id = dictionary ['schemeTransactionId' ]
156
174
if 'threeDSecureResults' in dictionary :
0 commit comments