@@ -12,6 +12,16 @@ def initialize(client, version = DEFAULT_VERSION)
1212 super ( client , version , 'BalancePlatform' )
1313 end
1414
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+
1525 # Complete the registration of an SCA device
1626 def complete_registration_of_sca_device ( request , id , headers : { } )
1727 endpoint = '/registeredDevices/{id}' . gsub ( /{.+?}/ , '%s' )
@@ -32,6 +42,16 @@ def delete_registration_of_sca_device(id, headers: {}, query_params: {})
3242 @client . call_adyen_api ( @service , action , { } , headers , @version )
3343 end
3444
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+
3555 # Initiate the registration of an SCA device
3656 def initiate_registration_of_sca_device ( request , headers : { } )
3757 endpoint = '/registeredDevices' . gsub ( /{.+?}/ , '%s' )
0 commit comments