Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion com/alipay/ams/api/model/period_type.py
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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:
Expand Down
15 changes: 15 additions & 0 deletions com/alipay/ams/api/request/pay/alipay_pay_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down