Skip to content

Commit ba2c518

Browse files
authored
Merge pull request #19 from alipay/feature-241202
拒付通知增加争议类型
2 parents 66cd265 + 13973e0 commit ba2c518

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.3.7 - 2024-12-02
4+
* [#19](https://github.com/alipay/global-open-sdk-python/pull/19) feature-241202
5+
- update AlipayDisputeNotify
6+
- update AlipayPayQueryResponse
7+
38
## 1.3.6 - 2024-11-26
49
* [#18](https://github.com/alipay/global-open-sdk-python/pull/18) feature-241126
510
- update AlipayPayResultNotify

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```
22
Language:Python
33
Python version:2.7+
4-
Releass ^1.3.6
4+
Releass ^1.3.7
55
Copyright:Ant financial services group
66
```
77

com/alipay/ams/api/request/notify/alipay_dispute_notify.py

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def __init__(self, notify_body):
2121
self.__arn = None
2222
self.__dispute_accept_reason = None
2323
self.__dispute_accept_time = None
24+
self.dispute_type = None
2425
self.__parse_notify_body(notify_body)
2526

2627
@property
@@ -87,6 +88,10 @@ def dispute_accept_reason(self):
8788
def dispute_accept_time(self):
8889
return self.__dispute_accept_time
8990

91+
@property
92+
def dispute_type(self):
93+
return self.__dispute_type
94+
9095
def __parse_notify_body(self, notify_body):
9196
notify = super(AlipayDisputeNotify, self).parse_notify_body(notify_body)
9297

@@ -122,3 +127,5 @@ def __parse_notify_body(self, notify_body):
122127
self.__dispute_accept_reason = notify['dispute_accept_reason']
123128
if 'dispute_accept_time' in notify:
124129
self.__dispute_accept_time = notify['dispute_accept_time']
130+
if 'dispute_type' in notify:
131+
self.__dispute_type = notify['dispute_type']

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

+1-11
Original file line numberDiff line numberDiff line change
@@ -14,7 +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
17+
1818

1919
@property
2020
def payment_id(self):
@@ -40,13 +40,6 @@ def merchant_account_id(self):
4040
def merchant_account_id(self, value):
4141
self.__merchant_account_id = value
4242

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
5043

5144
# 将对象转换为json字符串
5245
def to_ams_json(self):
@@ -64,7 +57,4 @@ def __to_ams_dict(self):
6457
if hasattr(self, "merchant_account_id") and self.merchant_account_id:
6558
params['merchantAccountId'] = self.merchant_account_id
6659

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

com/alipay/ams/api/response/pay/alipay_pay_response.py

+7
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __init__(self, rsp_body):
3939
self.__scheme_url = None
4040
self.__payment_result_info = None # type: PaymentResultInfo
4141
self.__promotion_result = None # type: PromotionResult
42+
self.__payment_method_type = None
4243
self.__parse_rsp_body(rsp_body)
4344

4445
@property
@@ -137,6 +138,10 @@ def payment_result_info(self):
137138
def promotion_result(self):
138139
return self.__promotion_result
139140

141+
@property
142+
def payment_method_type(self):
143+
return self.__payment_method_type
144+
140145
def __parse_rsp_body(self, rsp_body):
141146
response = super(AlipayPayResponse, self).parse_rsp_body(rsp_body)
142147
if 'paymentRequestId' in response:
@@ -209,3 +214,5 @@ def __parse_rsp_body(self, rsp_body):
209214
promotion_result = PromotionResult()
210215
promotion_result.parse_rsp_body(response['promotionResult'])
211216
self.__promotion_result = promotion_result
217+
if 'paymentMethodType' in response:
218+
self.__payment_method_type = response['paymentMethodType']

0 commit comments

Comments
 (0)