File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ def __init__(self):
6
6
self .__required_billing_contact_fields = None #type: list[string]
7
7
self .__required_shipping_contact_fields = None #type: list[string]
8
8
self .__buttons_bundled = None #type: bool
9
+ self .__apple_pay_token = None #type: string
9
10
10
11
11
12
@property
@@ -33,6 +34,14 @@ def buttons_bundled(self):
33
34
def buttons_bundled (self , value : bool ):
34
35
self .__buttons_bundled = value
35
36
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
+
36
45
def to_ams_dict (self ):
37
46
params = dict ()
38
47
if hasattr (self , "required_billing_contact_fields" ) and self .required_billing_contact_fields :
@@ -41,5 +50,7 @@ def to_ams_dict(self):
41
50
params ['referenceBuyerId' ] = self .required_shipping_contact_fields
42
51
if hasattr (self , "buttons_bundled" ) and self .buttons_bundled :
43
52
params ['referenceBuyerId' ] = self .buttons_bundled
53
+ if hasattr (self , "apple_pay_token" ) and self .apple_pay_token :
54
+ params ['referenceBuyerId' ] = self .apple_pay_token
44
55
return params
45
56
You can’t perform that action at this time.
0 commit comments