33
44import json
55
6+ from com .alipay .ams .api .model .auth_meta_data import AuthMetaData
67from com .alipay .ams .api .model .antom_path_constants import AntomPathConstants
78from com .alipay .ams .api .model .customer_belongs_to import CustomerBelongsTo
89from com .alipay .ams .api .model .scope_type import ScopeType
@@ -25,6 +26,7 @@ def __init__(self):
2526 self .__extend_info = None
2627 self .__merchant_region = None
2728 self .__recurring_payment = None
29+ self .__auth_meta_data = None #type: AuthMetaData
2830
2931 @property
3032 def merchant_region (self ):
@@ -114,6 +116,14 @@ def recurring_payment(self):
114116 def recurring_payment (self , value ):
115117 self .__recurring_payment = value
116118
119+ @property
120+ def auth_meta_data (self ):
121+ return self .__auth_meta_data
122+
123+ @auth_meta_data .setter
124+ def auth_meta_data (self , value ):
125+ self .__auth_meta_data = value
126+
117127 def to_ams_json (self ):
118128 json_str = json .dumps (obj = self .__to_ams_dict (), default = lambda o : o .to_ams_dict (), indent = 3 )
119129 return json_str
@@ -143,4 +153,8 @@ def __to_ams_dict(self):
143153 params ['merchantRegion' ] = self .merchant_region
144154 if hasattr (self , "recurring_payment" ) and self .recurring_payment :
145155 params ['recurringPayment' ] = self .recurring_payment
156+
157+ if hasattr (self , "auth_meta_data" ) and self .auth_meta_data :
158+ params ['authMetaData' ] = self .auth_meta_data
159+
146160 return params
0 commit comments