Skip to content

Commit 6b0cf1a

Browse files
committed
feature-241022
- add AlipayVaultingSessionRequest.is3DSAuthentication哈啰集成绑卡SDK - add AlipayAuthConsultRequest.authMetaData AE企业支付宝代扣集成方案 - add Boolean  request.order.needDeclaration
1 parent 331c0c5 commit 6b0cf1a

File tree

7 files changed

+89
-0
lines changed

7 files changed

+89
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22

33

4+
## 1.3.4 - 2024-10-21
5+
* [#15](https://github.com/alipay/global-open-sdk-python/pull/15) feature-241022
6+
- add AlipayVaultingSessionRequest.is3DSAuthentication哈啰集成绑卡SDK
7+
- add AlipayAuthConsultRequest.authMetaData AE企业支付宝代扣集成方案
8+
- add Boolean  request.order.needDeclaration
9+
10+
411
## 1.3.3 - 2024-10-17
512
* [#14](https://github.com/alipay/global-open-sdk-python/pull/14) update-p2
613
* add MARKETPLACE_demo

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
```
22
Language:Python
33
Python version:2.7+
4+
Releass ^1.3.4
45
Copyright:Ant financial services group
56
```
67

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
class AuthMetaData:
3+
def __init__(self):
4+
self.__account_holder_name = None
5+
self.__account_holder_certNo = None
6+
7+
8+
@property
9+
def account_holder_name(self):
10+
return self.__account_holder_name
11+
12+
@account_holder_name.setter
13+
def account_holder_name(self, value):
14+
self.__account_holder_name = value
15+
16+
@property
17+
def account_holder_certNo(self):
18+
return self.__account_holder_certNo
19+
20+
@account_holder_certNo.setter
21+
def account_holder_certNo(self, value):
22+
self.__account_holder_certNo = value
23+
24+
25+
def to_ams_dict(self):
26+
params = dict()
27+
if hasattr(self, "account_holder_name") and self.account_holder_name:
28+
params['accountHolderName'] = self.account_holder_name
29+
if hasattr(self, "account_holder_certNo") and self.account_holder_certNo:
30+
params['accountHolderCertNo'] = self.account_holder_certNo
31+
32+
return params

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(self):
4141
self.__card_password_digest = None
4242
self.__cpf = None
4343
self.__payer_email = None
44+
self.__network_transaction_id = None
4445

4546
@property
4647
def card_token(self):
@@ -270,6 +271,14 @@ def payer_email(self):
270271
def payer_email(self, value):
271272
self.__payer_email = value
272273

274+
@property
275+
def network_transaction_id(self):
276+
return self.__network_transaction_id
277+
278+
@network_transaction_id.setter
279+
def network_transaction_id(self, value):
280+
self.__network_transaction_id = value
281+
273282

274283
def parse_rsp_body(self, card_payment_method_detail_body):
275284
if type(card_payment_method_detail_body) == str:
@@ -367,6 +376,8 @@ def parse_rsp_body(self, card_payment_method_detail_body):
367376

368377
if 'payerEmail' in card_payment_method_detail_body:
369378
self.__payer_email = card_payment_method_detail_body['payerEmail']
379+
if 'networkTransactionId' in card_payment_method_detail_body:
380+
self.__network_transaction_id = card_payment_method_detail_body['networkTransactionId']
370381

371382
def to_ams_dict(self):
372383
params = dict()
@@ -428,4 +439,6 @@ def to_ams_dict(self):
428439
params['cpf'] = self.cpf
429440
if self.payer_email:
430441
params['payerEmail'] = self.payer_email
442+
if self.network_transaction_id:
443+
params['networkTransactionId'] = self.network_transaction_id
431444
return params

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def __init__(self):
2626
self.lodging = None # type: Lodging
2727
self.__gaming = None # type: Gaming
2828
self.__order_created_time = None
29+
self.__need_declaration = None
2930

3031
@property
3132
def reference_order_id(self):
@@ -130,6 +131,13 @@ def order_created_time(self):
130131
@order_created_time.setter
131132
def order_created_time(self, value):
132133
self.__order_created_time = value
134+
@property
135+
def need_declaration(self):
136+
return self.__need_declaration
137+
138+
@need_declaration.setter
139+
def need_declaration(self, value):
140+
self.__need_declaration = value
133141

134142
def to_ams_dict(self):
135143
params = dict()
@@ -172,4 +180,7 @@ def to_ams_dict(self):
172180
if hasattr(self, "order_created_time") and self.order_created_time:
173181
params['orderCreatedTime'] = self.order_created_time
174182

183+
if hasattr(self, "need_declaration") and self.need_declaration:
184+
params['needDeclaration'] = self.need_declaration
185+
175186
return params

com/alipay/ams/api/request/auth/alipay_auth_consult_request.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import json
55

6+
from com.alipay.ams.api.model.auth_meta_data import AuthMetaData
67
from com.alipay.ams.api.model.antom_path_constants import AntomPathConstants
78
from com.alipay.ams.api.model.customer_belongs_to import CustomerBelongsTo
89
from com.alipay.ams.api.model.scope_type import ScopeType
@@ -25,6 +26,7 @@ def __init__(self):
2526
self.__extend_info = None
2627
self.__merchant_region = None
2728
self.__recurring_payment = None
29+
self.__auth_meta_data = None #type: AuthMetaData
2830

2931
@property
3032
def merchant_region(self):
@@ -114,6 +116,14 @@ def recurring_payment(self):
114116
def recurring_payment(self, value):
115117
self.__recurring_payment = value
116118

119+
@property
120+
def auth_meta_data(self):
121+
return self.__auth_meta_data
122+
123+
@auth_meta_data.setter
124+
def auth_meta_data(self, value):
125+
self.__auth_meta_data = value
126+
117127
def to_ams_json(self):
118128
json_str = json.dumps(obj=self.__to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3)
119129
return json_str
@@ -143,4 +153,8 @@ def __to_ams_dict(self):
143153
params['merchantRegion'] = self.merchant_region
144154
if hasattr(self, "recurring_payment") and self.recurring_payment:
145155
params['recurringPayment'] = self.recurring_payment
156+
157+
if hasattr(self, "auth_meta_data") and self.auth_meta_data:
158+
params['authMetaData'] = self.auth_meta_data
159+
146160
return params

com/alipay/ams/api/request/vaulting/alipay_vaulting_session_request.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def __init__(self):
1212
self.__vaulting_notification_url = None
1313
self.__redirect_url = None
1414
self.__merchant_region = None
15+
self.__is_3D_s_authentication = None
1516

1617
@property
1718
def payment_method_type(self):
@@ -53,6 +54,14 @@ def redirect_url(self, value):
5354
def merchant_region(self, value):
5455
self.__merchant_region = value
5556

57+
@property
58+
def is_3D_s_authentication(self):
59+
return self.__is_3D_s_authentication
60+
61+
@is_3D_s_authentication.setter
62+
def is_3D_s_authentication(self, value):
63+
self.__is_3D_s_authentication = value
64+
5665
def to_ams_json(self):
5766
json_str = json.dumps(obj=self.__to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3)
5867
return json_str
@@ -69,5 +78,7 @@ def __to_ams_dict(self):
6978
params['redirectUrl'] = self.redirect_url
7079
if hasattr(self, "merchant_region") and self.merchant_region:
7180
params['merchantRegion'] = self.merchant_region
81+
if hasattr(self, "is_3D_s_authentication") and self.is_3D_s_authentication:
82+
params['is3DSAuthentication'] = self.is_3D_s_authentication
7283

7384
return params

0 commit comments

Comments
 (0)