Skip to content

Commit 66cd265

Browse files
authoredNov 25, 2024
Merge pull request #18 from alipay/feature-241126
CKP二期支付结果查询和支付结果通知透出支付方式信息
2 parents f29e882 + efa8f15 commit 66cd265

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
 

‎CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Changelog
22

3+
## 1.3.6 - 2024-11-26
4+
* [#18](https://github.com/alipay/global-open-sdk-python/pull/18) feature-241126
5+
- update AlipayPayResultNotify
6+
- update AlipayPayQueryRequest
7+
38
## 1.3.6 - 2024-11-26
49
* [#17](https://github.com/alipay/global-open-sdk-python/pull/17) feature-241126
510
- update Leg
11+
- update AlipayPayResultNotify
12+
- update AlipayPayQueryRequest
613

714
## 1.3.5 - 2024-10-29
815
* [#16](https://github.com/alipay/global-open-sdk-python/pull/16) feature-notify

‎com/alipay/ams/api/request/notify/alipay_pay_result_notify.py

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __init__(self, notify_body):
1818
self.__payment_result_info = None
1919
self.__acquirer_info = None
2020
self.__promotion_result = None
21+
self.__payment_method_type = None
2122
self.__parse_notify_body(notify_body)
2223

2324
@property
@@ -71,6 +72,9 @@ def acquirer_info(self):
7172
@property
7273
def promotion_result(self):
7374
return self.__promotion_result
75+
@property
76+
def payment_method_type(self):
77+
return self.__payment_method_type
7478

7579
def __parse_notify_body(self, notify_body):
7680
notify = super(AlipayPayResultNotify, self).parse_notify_body(notify_body)
@@ -101,4 +105,7 @@ def __parse_notify_body(self, notify_body):
101105
if 'promotionResult' in notify:
102106
self.__promotion_result = notify['promotionResult']
103107

108+
if 'paymentMethodType' in notify:
109+
self.__payment_method_type = notify['paymentMethodType']
110+
104111

‎com/alipay/ams/api/request/pay/alipay_pay_query_request.py

+13
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def __init__(self):
1414
self.__payment_id = None
1515
self.__payment_request_id = None
1616
self.__merchant_account_id = None
17+
self.__payment_method_type = None
1718

1819
@property
1920
def payment_id(self):
@@ -39,6 +40,15 @@ def merchant_account_id(self):
3940
def merchant_account_id(self, value):
4041
self.__merchant_account_id = value
4142

43+
@property
44+
def payment_method_type(self):
45+
return self.__payment_method_type
46+
47+
@payment_method_type.setter
48+
def payment_method_type(self, value):
49+
self.__payment_method_type = value
50+
51+
# 将对象转换为json字符串
4252
def to_ams_json(self):
4353
json_str = json.dumps(obj=self.__to_ams_dict(), indent=3)
4454
return json_str
@@ -54,4 +64,7 @@ def __to_ams_dict(self):
5464
if hasattr(self, "merchant_account_id") and self.merchant_account_id:
5565
params['merchantAccountId'] = self.merchant_account_id
5666

67+
if hasattr(self, "payment_method_type") and self.payment_method_type:
68+
params['paymentMethodType'] = self.payment_method_type
69+
5770
return params

0 commit comments

Comments
 (0)
Please sign in to comment.