@@ -12,6 +12,16 @@ def initialize(client, version = DEFAULT_VERSION)
12
12
super ( client , version , 'BalancePlatform' )
13
13
end
14
14
15
+ # Complete an association between an SCA device and a resource
16
+ def complete_association_between_sca_device_and_resource ( request , device_id , headers : { } )
17
+ endpoint = '/registeredDevices/{deviceId}/associations' . gsub ( /{.+?}/ , '%s' )
18
+ endpoint = endpoint . gsub ( %r{^/} , '' )
19
+ endpoint = format ( endpoint , device_id )
20
+
21
+ action = { method : 'patch' , url : endpoint }
22
+ @client . call_adyen_api ( @service , action , request , headers , @version )
23
+ end
24
+
15
25
# Complete the registration of an SCA device
16
26
def complete_registration_of_sca_device ( request , id , headers : { } )
17
27
endpoint = '/registeredDevices/{id}' . gsub ( /{.+?}/ , '%s' )
@@ -32,6 +42,16 @@ def delete_registration_of_sca_device(id, headers: {}, query_params: {})
32
42
@client . call_adyen_api ( @service , action , { } , headers , @version )
33
43
end
34
44
45
+ # Initiate an association between an SCA device and a resource
46
+ def initiate_association_between_sca_device_and_resource ( request , device_id , headers : { } )
47
+ endpoint = '/registeredDevices/{deviceId}/associations' . gsub ( /{.+?}/ , '%s' )
48
+ endpoint = endpoint . gsub ( %r{^/} , '' )
49
+ endpoint = format ( endpoint , device_id )
50
+
51
+ action = { method : 'post' , url : endpoint }
52
+ @client . call_adyen_api ( @service , action , request , headers , @version )
53
+ end
54
+
35
55
# Initiate the registration of an SCA device
36
56
def initiate_registration_of_sca_device ( request , headers : { } )
37
57
endpoint = '/registeredDevices' . gsub ( /{.+?}/ , '%s' )
0 commit comments