@@ -146,7 +146,7 @@ def __init__(self, client=None):
146146 super (AdyenPayment , self ).__init__ (client = client )
147147 self .service = "Payment"
148148
149- def authorise (self , request , ** kwargs ):
149+ def authorise (self , request , idempotency_key = None , ** kwargs ):
150150
151151 action = "authorise"
152152
@@ -162,21 +162,21 @@ def authorise(self, request, **kwargs):
162162 ' name when authorising recurring contracts.' )
163163
164164 return self .client .call_api (request , self .service ,
165- action , ** kwargs )
165+ action , idempotency_key , ** kwargs )
166166
167- def authorise3d (self , request , ** kwargs ):
167+ def authorise3d (self , request , idempotency_key = None , ** kwargs ):
168168 action = "authorise3d"
169169
170170 return self .client .call_api (request , self .service ,
171- action , ** kwargs )
171+ action , idempotency_key , ** kwargs )
172172
173- def cancel (self , request , ** kwargs ):
173+ def cancel (self , request , idempotency_key = None , ** kwargs ):
174174 action = "cancel"
175175
176176 return self .client .call_api (request , self .service ,
177- action , ** kwargs )
177+ action , idempotency_key , ** kwargs )
178178
179- def capture (self , request , ** kwargs ):
179+ def capture (self , request , idempotency_key = None , ** kwargs ):
180180
181181 action = "capture"
182182
@@ -192,10 +192,10 @@ def capture(self, request, **kwargs):
192192 "reference of the transaction to be modified" )
193193
194194 response = self .client .call_api (request , self .service ,
195- action , ** kwargs )
195+ action , idempotency_key , ** kwargs )
196196 return response
197197
198- def refund (self , request , ** kwargs ):
198+ def refund (self , request , idempotency_key = None , ** kwargs ):
199199
200200 action = "refund"
201201
@@ -207,13 +207,13 @@ def refund(self, request, **kwargs):
207207 "to partially refund this payment." )
208208 else :
209209 return self .client .call_api (request , self .service ,
210- action , ** kwargs )
210+ action , idempotency_key , ** kwargs )
211211
212- def cancel_or_refund (self , request , ** kwargs ):
212+ def cancel_or_refund (self , request , idempotency_key = None , ** kwargs ):
213213 action = "cancelOrRefund"
214214
215215 return self .client .call_api (
216- request , self .service , action , ** kwargs
216+ request , self .service , action , idempotency_key , ** kwargs
217217 )
218218
219219
@@ -296,13 +296,15 @@ def payment_methods(self, request, **kwargs):
296296
297297 return self .client .call_checkout_api (request , action , ** kwargs )
298298
299- def payments (self , request , ** kwargs ):
299+ def payments (self , request , idempotency_key = None , ** kwargs ):
300300 action = "payments"
301- return self .client .call_checkout_api (request , action , ** kwargs )
301+ return self .client .call_checkout_api (request , action , idempotency_key ,
302+ ** kwargs )
302303
303- def payments_details (self , request = None , ** kwargs ):
304+ def payments_details (self , request = None , idempotency_key = None , ** kwargs ):
304305 action = "paymentsDetails"
305- return self .client .call_checkout_api (request , action , ** kwargs )
306+ return self .client .call_checkout_api (request , action , idempotency_key ,
307+ ** kwargs )
306308
307309 def payment_session (self , request = None , ** kwargs ):
308310 action = "paymentSession"
0 commit comments