From ff01ac4f700a287648ff1c732d36f3e7de27732e Mon Sep 17 00:00:00 2001 From: Wang Zunjiao Date: Mon, 11 May 2026 05:53:12 +0000 Subject: [PATCH] false[antom-sdk-automation] automated change --- com/alipay/ams/api/model/period_type.py | 5 ++++- .../api/response/pay/alipay_capture_response.py | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/com/alipay/ams/api/model/period_type.py b/com/alipay/ams/api/model/period_type.py index a620e14..08dbf8e 100644 --- a/com/alipay/ams/api/model/period_type.py +++ b/com/alipay/ams/api/model/period_type.py @@ -1,8 +1,9 @@ from enum import Enum, unique @unique class PeriodType(Enum): - """The subscription period type. Valid values are: WEEK: indicates that the subscription period is measured in weeks. MONTH: indicates that the subscription period is measured in months. QUARTER: indicates that the subscription period is measured in quarters. HALF_YEAR: indicates that the subscription period is measured in half years. YEAR: indicates that the subscription period is measured in years.""" + """The subscription period type. Valid values are: DAY: indicates that the subscription period is measured in days. WEEK: indicates that the subscription period is measured in weeks. MONTH: indicates that the subscription period is measured in months. QUARTER: indicates that the subscription period is measured in quarters. HALF_YEAR: indicates that the subscription period is measured in half years. YEAR: indicates that the subscription period is measured in years.""" + DAY = "DAY" WEEK = "WEEK" MONTH = "MONTH" QUARTER = "QUARTER" @@ -17,6 +18,8 @@ def value_of(value): if not value: return None + if PeriodType.DAY.value == value: + return PeriodType.DAY if PeriodType.WEEK.value == value: return PeriodType.WEEK if PeriodType.MONTH.value == value: diff --git a/com/alipay/ams/api/response/pay/alipay_capture_response.py b/com/alipay/ams/api/response/pay/alipay_capture_response.py index 47ee28e..874a1c8 100644 --- a/com/alipay/ams/api/response/pay/alipay_capture_response.py +++ b/com/alipay/ams/api/response/pay/alipay_capture_response.py @@ -17,6 +17,7 @@ def __init__(self, rsp_body): self.__capture_amount = None # type: Amount self.__capture_time = None # type: str self.__acquirer_reference_no = None # type: str + self.__yimutestopenapi = None # type: str self.parse_rsp_body(rsp_body) @@ -90,6 +91,16 @@ def acquirer_reference_no(self): @acquirer_reference_no.setter def acquirer_reference_no(self, value): self.__acquirer_reference_no = value + @property + def yimutestopenapi(self): + """ + 5.11号测试 + """ + return self.__yimutestopenapi + + @yimutestopenapi.setter + def yimutestopenapi(self, value): + self.__yimutestopenapi = value @@ -110,6 +121,8 @@ def to_ams_dict(self): params['captureTime'] = self.capture_time if hasattr(self, "acquirer_reference_no") and self.acquirer_reference_no is not None: params['acquirerReferenceNo'] = self.acquirer_reference_no + if hasattr(self, "yimutestopenapi") and self.yimutestopenapi is not None: + params['yimutestopenapi'] = self.yimutestopenapi return params @@ -131,3 +144,5 @@ def parse_rsp_body(self, response_body): self.__capture_time = response_body['captureTime'] if 'acquirerReferenceNo' in response_body: self.__acquirer_reference_no = response_body['acquirerReferenceNo'] + if 'yimutestopenapi' in response_body: + self.__yimutestopenapi = response_body['yimutestopenapi']