Skip to content

Commit d7c265c

Browse files
committed
修改支持的版本号
1 parent e5c46da commit d7c265c

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
```
22
Language:Python
3-
Python version:2.6+
3+
Python version:2.7+
44
Copyright:Ant financial services group
55
```
66

com/alipay/ams/api/model/three_dS_result.py renamed to com/alipay/ams/api/model/three_ds_result.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33

44
class ThreeDSResult(object):
55
def __init__(self):
6-
self.__three_dS_version = None
6+
self.__three_ds_version = None
77
self.__eci = None
88
self.__cavv = None
99
self.__ds_transaction_id = None
1010
self.__xid = None
1111

1212
@property
13-
def three_dS_version(self):
14-
return self.__three_dS_version
13+
def three_ds_version(self):
14+
return self.__three_ds_version
1515

16-
@three_dS_version.setter
17-
def three_dS_version(self, value):
18-
self.__three_dS_version = value
16+
@three_ds_version.setter
17+
def three_ds_version(self, value):
18+
self.__three_ds_version = value
1919

2020
@property
2121
def eci(self):
@@ -51,8 +51,8 @@ def xid(self, value):
5151

5252
def to_ams_dict(self):
5353
param = dict()
54-
if hasattr(self, 'three_dS_version') and self.three_dS_version:
55-
param['threeDSVersion'] = self.three_dS_version
54+
if hasattr(self, 'three_ds_version') and self.three_ds_version:
55+
param['threeDSVersion'] = self.three_ds_version
5656
if hasattr(self, 'eci') and self.eci:
5757
param['eci'] = self.eci
5858
if hasattr(self, 'cavv') and self.cavv:
@@ -67,7 +67,7 @@ def parse_rsp_body(self, three_dS_result_body):
6767
if type(three_dS_result_body) == str:
6868
three_dS_result_body = json.loads(three_dS_result_body)
6969
if 'threeDSVersion' in three_dS_result_body:
70-
self.three_dS_version = three_dS_result_body['threeDSVersion']
70+
self.three_ds_version = three_dS_result_body['threeDSVersion']
7171
if 'eci' in three_dS_result_body:
7272
self.eci = three_dS_result_body['eci']
7373
if 'cavv' in three_dS_result_body:

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,22 @@
3131
include_package_data=True,
3232
platforms='any',
3333
install_requires=requires,
34-
classifiers=(
34+
classifiers=[
3535
'Intended Audience :: Developers',
3636
'License :: MIT License',
3737
'Programming Language :: Python',
38-
'Programming Language :: Python :: 2.6',
3938
'Programming Language :: Python :: 2.7',
4039
'Programming Language :: Python :: 3.2',
4140
'Programming Language :: Python :: 3.3',
4241
'Programming Language :: Python :: 3.4',
4342
'Programming Language :: Python :: 3.5',
4443
'Programming Language :: Python :: 3.6',
44+
'Programming Language :: Python :: 3.7',
45+
'Programming Language :: Python :: 3.8',
46+
'Programming Language :: Python :: 3.9',
47+
'Programming Language :: Python :: 3.10',
48+
'Programming Language :: Python :: 3.11',
49+
'Programming Language :: Python :: 3.12',
4550
'Topic :: Software Development',
46-
)
51+
]
4752
)

0 commit comments

Comments
 (0)