From b0c4c0b979924cea6b45c2981c67f35fe21ba7da Mon Sep 17 00:00:00 2001 From: Wang Zunjiao Date: Wed, 29 Apr 2026 09:02:25 +0000 Subject: [PATCH] false[antom-sdk-automation] automated change --- com/alipay/ams/api/model/period_type.py | 5 ++++- 1 file changed, 4 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: