Skip to content

Commit 633f120

Browse files
committed
update ApplePayConfiguration
1 parent 888a8fb commit 633f120

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

com/alipay/ams/api/model/apple_pay_configuration.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def __init__(self):
66
self.__required_billing_contact_fields = None #type: list[string]
77
self.__required_shipping_contact_fields = None #type: list[string]
88
self.__buttons_bundled = None #type: bool
9+
self.__apple_pay_token = None #type: string
910

1011

1112
@property
@@ -33,6 +34,14 @@ def buttons_bundled(self):
3334
def buttons_bundled(self, value: bool):
3435
self.__buttons_bundled = value
3536

37+
@property
38+
def apple_pay_token(self):
39+
return self.__apple_pay_token
40+
41+
@apple_pay_token.setter
42+
def apple_pay_token(self, value: str):
43+
self.__apple_pay_token = value
44+
3645
def to_ams_dict(self):
3746
params = dict()
3847
if hasattr(self, "required_billing_contact_fields") and self.required_billing_contact_fields:
@@ -41,5 +50,7 @@ def to_ams_dict(self):
4150
params['referenceBuyerId'] = self.required_shipping_contact_fields
4251
if hasattr(self, "buttons_bundled") and self.buttons_bundled:
4352
params['referenceBuyerId'] = self.buttons_bundled
53+
if hasattr(self, "apple_pay_token") and self.apple_pay_token:
54+
params['referenceBuyerId'] = self.apple_pay_token
4455
return params
4556

0 commit comments

Comments
 (0)