Skip to content

Commit 0e9009b

Browse files
committed
test update
1 parent d355a69 commit 0e9009b

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

com/alipay/ams/api/model/card_payment_method_detail.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def __init__(self):
4242
self.__cpf = None
4343
self.__payer_email = None
4444
self.__network_transaction_id = None
45+
self.__is_3DS_authentication = None
4546

4647
@property
4748
def card_token(self):
@@ -279,6 +280,14 @@ def network_transaction_id(self):
279280
def network_transaction_id(self, value):
280281
self.__network_transaction_id = value
281282

283+
@property
284+
def is_3DS_authentication(self):
285+
return self.__is_3DS_authentication
286+
287+
@is_3DS_authentication.setter
288+
def is_3DS_authentication(self, value):
289+
self.__is_3DS_authentication = value
290+
282291

283292
def parse_rsp_body(self, card_payment_method_detail_body):
284293
if type(card_payment_method_detail_body) == str:
@@ -378,6 +387,8 @@ def parse_rsp_body(self, card_payment_method_detail_body):
378387
self.__payer_email = card_payment_method_detail_body['payerEmail']
379388
if 'networkTransactionId' in card_payment_method_detail_body:
380389
self.__network_transaction_id = card_payment_method_detail_body['networkTransactionId']
390+
if 'is3DSAuthentication' in card_payment_method_detail_body:
391+
self.__is_3DS_authentication = card_payment_method_detail_body['is3DSAuthentication']
381392

382393
def to_ams_dict(self):
383394
params = dict()
@@ -441,4 +452,6 @@ def to_ams_dict(self):
441452
params['payerEmail'] = self.payer_email
442453
if self.network_transaction_id:
443454
params['networkTransactionId'] = self.network_transaction_id
455+
if self.is_3DS_authentication:
456+
params['is3DSAuthentication'] = self.is_3DS_authentication
444457
return params

com/alipay/ams/api/model/payment_method_detail.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self):
2020
self.__coupon = None # type: CouponPaymentMethodDetail
2121
self.__extend_info = None
2222
self.__payment_method_type = None
23-
self.__is_3DS_authentication = None
23+
2424

2525
@property
2626
def payment_method_detail_type(self):
@@ -69,14 +69,6 @@ def coupon(self, value):
6969
def extend_info(self, value):
7070
self.__extend_info = value
7171

72-
@property
73-
def is_3DS_authentication(self):
74-
return self.__is_3DS_authentication
75-
76-
@is_3DS_authentication.setter
77-
def is_3DS_authentication(self, value):
78-
self.__is_3DS_authentication = value
79-
8072

8173

8274
def parse_rsp_body(self, external_payment_method_detail_body):
@@ -114,6 +106,7 @@ def parse_rsp_body(self, external_payment_method_detail_body):
114106
if 'paymentMethodType' in external_payment_method_detail_body:
115107
self.__payment_method_type = external_payment_method_detail_body['paymentMethodType']
116108

109+
117110
def to_ams_dict(self):
118111
params = dict()
119112
if self.payment_method_detail_type:
@@ -131,7 +124,6 @@ def to_ams_dict(self):
131124
params['extendInfo'] = self.extend_info
132125
if self.payment_method_type:
133126
params['paymentMethodType'] = self.payment_method_type
134-
if self.is_3DS_authentication:
135-
params['is3DSAuthentication'] = self.is_3DS_authentication
127+
136128

137129
return params

0 commit comments

Comments
 (0)