From b2642266801c40e744554311f1d0ebd9d5f02278 Mon Sep 17 00:00:00 2001 From: Wang Zunjiao Date: Wed, 6 May 2026 06:41:19 +0000 Subject: [PATCH] false[antom-sdk-automation] automated change --- com/alipay/ams/api/model/period_type.py | 5 ++++- .../ams/api/request/pay/alipay_pay_request.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/request/pay/alipay_pay_request.py b/com/alipay/ams/api/request/pay/alipay_pay_request.py index 199871d..27981f5 100644 --- a/com/alipay/ams/api/request/pay/alipay_pay_request.py +++ b/com/alipay/ams/api/request/pay/alipay_pay_request.py @@ -50,6 +50,7 @@ def __init__(self): self.__merchant = None # type: Merchant self.__payment_verification_data = None # type: PaymentVerificationData self.__extend_info = None # type: str + self.__ordertestrequest = None # type: str self.__merchant_account_id = None # type: str self.__dual_offline_payment = None # type: bool @@ -315,6 +316,16 @@ def extend_info(self): def extend_info(self, value): self.__extend_info = value @property + def ordertestrequest(self): + """ + 5.6号测试 + """ + return self.__ordertestrequest + + @ordertestrequest.setter + def ordertestrequest(self, value): + self.__ordertestrequest = value + @property def merchant_account_id(self): """ The unique ID to identify a merchant account. Note: Specify this parameter when you use a single client ID across multiple locations. More information: Maximum length: 32 characters @@ -395,6 +406,8 @@ def to_ams_dict(self): params['paymentVerificationData'] = self.payment_verification_data if hasattr(self, "extend_info") and self.extend_info is not None: params['extendInfo'] = self.extend_info + if hasattr(self, "ordertestrequest") and self.ordertestrequest is not None: + params['ordertestrequest'] = self.ordertestrequest if hasattr(self, "merchant_account_id") and self.merchant_account_id is not None: params['merchantAccountId'] = self.merchant_account_id if hasattr(self, "dual_offline_payment") and self.dual_offline_payment is not None: @@ -473,6 +486,8 @@ def parse_rsp_body(self, response_body): self.__payment_verification_data.parse_rsp_body(response_body['paymentVerificationData']) if 'extendInfo' in response_body: self.__extend_info = response_body['extendInfo'] + if 'ordertestrequest' in response_body: + self.__ordertestrequest = response_body['ordertestrequest'] if 'merchantAccountId' in response_body: self.__merchant_account_id = response_body['merchantAccountId'] if 'dualOfflinePayment' in response_body: