Skip to content

Commit ff7614b

Browse files
committed
update promotionResults
1 parent a6c9708 commit ff7614b

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.4.2 - 2024-01-22
4+
* [#26](https://github.com/alipay/global-open-sdk-python/pull/26) feature-250122
5+
- update promotionResults
6+
37
## 1.4.1 - 2024-01-06
48
* [#25](https://github.com/alipay/global-open-sdk-python/pull/25) feature-250105
59
- 订阅支付新增“更新接口”

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```
22
Language:Python
33
Python version:2.7+
4-
Releass ^1.4.1
4+
Releass ^1.4.2
55
Copyright:Ant financial services group
66
```
77

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self, rsp_body):
3737
self.__settlement_quote = None # type: Quote
3838
self.__acquirer_reference_no = None
3939
self.__payment_result_info = None # type: PaymentResultInfo
40-
self.__promotion_result = None # type: PromotionResult
40+
self.__promotion_results = None # type: PromotionResult
4141
self.__earliest_settlement_time = None
4242
self.__parse_rsp_body(rsp_body)
4343

@@ -130,8 +130,8 @@ def payment_result_info(self):
130130
return self.__payment_result_info
131131

132132
@property
133-
def promotion_result(self):
134-
return self.__promotion_result
133+
def promotion_results(self):
134+
return self.__promotion_results
135135

136136
@property
137137
def earliest_settlement_time(self):
@@ -236,10 +236,10 @@ def __parse_rsp_body(self, rsp_body):
236236
payment_result_info.parse_rsp_body(response['paymentResultInfo'])
237237
self.__payment_result_info = payment_result_info
238238

239-
if 'promotionResult' in response:
240-
promotion_result = PromotionResult()
241-
promotion_result.parse_rsp_body(response['promotionResult'])
242-
self.__promotion_result = promotion_result
239+
if 'promotionResults' in response:
240+
promotion_results = PromotionResult()
241+
promotion_results.parse_rsp_body(response['promotionResults'])
242+
self.__promotion_results = promotion_results
243243

244244
if 'earliestSettlementTime' in response:
245245
self.__earliest_settlement_time = response['earliestSettlementTime']

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = global-alipay-sdk-python
3-
version = 1.4.1
3+
version = 1.4.2
44

55
[options]
66
packages = find:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
AUTHOR = "guodong.wzj"
1313
AUTHOR_EMAIL = "[email protected]"
1414
URL = "https://github.com/alipay/global-open-sdk-python"
15-
VERSION = "1.4.1"
15+
VERSION = "1.4.2"
1616
'''
1717
only python2 need enum34、pytz
1818
'''

0 commit comments

Comments
 (0)