Skip to content

Commit

Permalink
Merge pull request #19 from alipay/feature-241202
Browse files Browse the repository at this point in the history
拒付通知增加争议类型
  • Loading branch information
ScottWryyyyy authored Dec 2, 2024
2 parents 66cd265 + 13973e0 commit ba2c518
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.3.7 - 2024-12-02
* [#19](https://github.com/alipay/global-open-sdk-python/pull/19) feature-241202
- update AlipayDisputeNotify
- update AlipayPayQueryResponse

## 1.3.6 - 2024-11-26
* [#18](https://github.com/alipay/global-open-sdk-python/pull/18) feature-241126
- update AlipayPayResultNotify
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```
Language:Python
Python version:2.7+
Releass ^1.3.6
Releass ^1.3.7
Copyright:Ant financial services group
```

Expand Down
7 changes: 7 additions & 0 deletions com/alipay/ams/api/request/notify/alipay_dispute_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self, notify_body):
self.__arn = None
self.__dispute_accept_reason = None
self.__dispute_accept_time = None
self.dispute_type = None
self.__parse_notify_body(notify_body)

@property
Expand Down Expand Up @@ -87,6 +88,10 @@ def dispute_accept_reason(self):
def dispute_accept_time(self):
return self.__dispute_accept_time

@property
def dispute_type(self):
return self.__dispute_type

def __parse_notify_body(self, notify_body):
notify = super(AlipayDisputeNotify, self).parse_notify_body(notify_body)

Expand Down Expand Up @@ -122,3 +127,5 @@ def __parse_notify_body(self, notify_body):
self.__dispute_accept_reason = notify['dispute_accept_reason']
if 'dispute_accept_time' in notify:
self.__dispute_accept_time = notify['dispute_accept_time']
if 'dispute_type' in notify:
self.__dispute_type = notify['dispute_type']
12 changes: 1 addition & 11 deletions com/alipay/ams/api/request/pay/alipay_pay_query_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self):
self.__payment_id = None
self.__payment_request_id = None
self.__merchant_account_id = None
self.__payment_method_type = None


@property
def payment_id(self):
Expand All @@ -40,13 +40,6 @@ def merchant_account_id(self):
def merchant_account_id(self, value):
self.__merchant_account_id = value

@property
def payment_method_type(self):
return self.__payment_method_type

@payment_method_type.setter
def payment_method_type(self, value):
self.__payment_method_type = value

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

if hasattr(self, "payment_method_type") and self.payment_method_type:
params['paymentMethodType'] = self.payment_method_type

return params
7 changes: 7 additions & 0 deletions com/alipay/ams/api/response/pay/alipay_pay_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(self, rsp_body):
self.__scheme_url = None
self.__payment_result_info = None # type: PaymentResultInfo
self.__promotion_result = None # type: PromotionResult
self.__payment_method_type = None
self.__parse_rsp_body(rsp_body)

@property
Expand Down Expand Up @@ -137,6 +138,10 @@ def payment_result_info(self):
def promotion_result(self):
return self.__promotion_result

@property
def payment_method_type(self):
return self.__payment_method_type

def __parse_rsp_body(self, rsp_body):
response = super(AlipayPayResponse, self).parse_rsp_body(rsp_body)
if 'paymentRequestId' in response:
Expand Down Expand Up @@ -209,3 +214,5 @@ def __parse_rsp_body(self, rsp_body):
promotion_result = PromotionResult()
promotion_result.parse_rsp_body(response['promotionResult'])
self.__promotion_result = promotion_result
if 'paymentMethodType' in response:
self.__payment_method_type = response['paymentMethodType']

0 comments on commit ba2c518

Please sign in to comment.