@@ -18,21 +18,21 @@ def example(self):
18
18
with self .__get_client () as client :
19
19
amount_of_money = AmountOfMoney ()
20
20
amount_of_money .amount = 500
21
- amount_of_money .currency_code = " EUR"
21
+ amount_of_money .currency_code = ' EUR'
22
22
23
23
refund_references = RefundReferences ()
24
- refund_references .merchant_reference = " AcmeOrder0001"
24
+ refund_references .merchant_reference = ' AcmeOrder0001'
25
25
26
26
body = RefundRequest ()
27
27
body .amount_of_money = amount_of_money
28
28
body .refund_references = refund_references
29
29
30
30
try :
31
- response = client .v1 ().merchant (" merchantId" ).captures ().refund (" captureId" , body )
31
+ response = client .v1 ().merchant (' merchantId' ).captures ().refund (' captureId' , body )
32
32
except DeclinedRefundException as e :
33
33
self .handle_declined_refund (e .refund_result )
34
34
except ApiException as e :
35
- self .handle_api_errors ( e .errors )
35
+ self .handle_error_response ( e . error_id , e .errors )
36
36
37
37
@staticmethod
38
38
def __get_client ():
@@ -48,6 +48,6 @@ def handle_declined_refund(refund_result):
48
48
pass
49
49
50
50
@staticmethod
51
- def handle_api_errors ( errors ):
52
- # handle the errors here
51
+ def handle_error_response ( error_id , errors ):
52
+ # handle the error response here
53
53
pass
0 commit comments