diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d56904..0dcbee8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 15b7fcd..f6844fa 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ``` Language:Python Python version:2.7+ -Releass ^1.3.6 +Releass ^1.3.7 Copyright:Ant financial services group ``` diff --git a/com/alipay/ams/api/request/notify/alipay_dispute_notify.py b/com/alipay/ams/api/request/notify/alipay_dispute_notify.py index 1b5c0af..b992c25 100644 --- a/com/alipay/ams/api/request/notify/alipay_dispute_notify.py +++ b/com/alipay/ams/api/request/notify/alipay_dispute_notify.py @@ -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 @@ -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) @@ -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'] \ No newline at end of file diff --git a/com/alipay/ams/api/request/pay/alipay_pay_query_request.py b/com/alipay/ams/api/request/pay/alipay_pay_query_request.py index 483f337..c4f7497 100644 --- a/com/alipay/ams/api/request/pay/alipay_pay_query_request.py +++ b/com/alipay/ams/api/request/pay/alipay_pay_query_request.py @@ -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): @@ -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): @@ -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 diff --git a/com/alipay/ams/api/response/pay/alipay_pay_response.py b/com/alipay/ams/api/response/pay/alipay_pay_response.py index 4f7287d..1b3e10a 100644 --- a/com/alipay/ams/api/response/pay/alipay_pay_response.py +++ b/com/alipay/ams/api/response/pay/alipay_pay_response.py @@ -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 @@ -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: @@ -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']