@@ -15,7 +15,7 @@ class TestManagement(unittest.TestCase):
1515 test = BaseTest (adyen )
1616 client .xapikey = "YourXapikey"
1717 client .platform = "test"
18- stored_value_url = adyen .storedValue .baseUrl
18+ stored_value_url = adyen .storedValue .stored_value_api . baseUrl
1919
2020 def issue (self ):
2121 request = {
@@ -30,7 +30,7 @@ def issue(self):
3030
3131 self .adyen .client = self .test .create_client_from_file (200 , request ,
3232 "test/mocks/storedValue/issue-giftcard.json" )
33- result = self .adyen .storedValue .issue (request )
33+ result = self .adyen .storedValue .stored_value_api . issue (request )
3434 self .assertEqual (result .message ['paymentMethod' ]['type' ], 'givex' )
3535 self .adyen .client .http_client .request .assert_called_once_with (
3636 'POST' ,
@@ -58,7 +58,7 @@ def test_activate_giftcard(self):
5858 }
5959 self .adyen .client = self .test .create_client_from_file (200 , request ,
6060 "test/mocks/storedValue/activate-giftcards.json" )
61- result = self .adyen .storedValue .change_status (request )
61+ result = self .adyen .storedValue .stored_value_api . change_status (request )
6262 self .assertEqual (result .message ['currentBalance' ]['value' ], 1000 )
6363 self .adyen .client .http_client .request .assert_called_once_with (
6464 'POST' ,
@@ -85,7 +85,7 @@ def test_load_funds(self):
8585 "reference" : "YOUR_REFERENCE"
8686 }
8787 self .adyen .client = self .test .create_client_from_file (200 , request , "test/mocks/storedValue/load-funds.json" )
88- result = self .adyen .storedValue .load (request )
88+ result = self .adyen .storedValue .stored_value_api . load (request )
8989 self .assertEqual (result .message ['resultCode' ], 'Success' )
9090 self .adyen .client .http_client .request .assert_called_once_with (
9191 'POST' ,
@@ -107,7 +107,7 @@ def test_check_balance(self):
107107 "reference" : "YOUR_REFERENCE"
108108 }
109109 self .adyen .client = self .test .create_client_from_file (200 , request , "test/mocks/storedValue/check-balance.json" )
110- result = self .adyen .storedValue .check_balance (request )
110+ result = self .adyen .storedValue .stored_value_api . check_balance (request )
111111 self .assertEqual (result .message ['currentBalance' ]['value' ], 5600 )
112112 self .adyen .client .http_client .request .assert_called_once_with (
113113 'POST' ,
@@ -133,7 +133,7 @@ def test_merge_balance(self):
133133 "reference" : "YOUR_REFERENCE"
134134 }
135135 self .adyen .client = self .test .create_client_from_file (200 , request , "test/mocks/storedValue/merge-balance.json" )
136- result = self .adyen .storedValue .merge_balance (request )
136+ result = self .adyen .storedValue .stored_value_api . merge_balance (request )
137137 self .assertEqual (result .message ['pspReference' ], "881564657480267D" )
138138 self .adyen .client .http_client .request .assert_called_once_with (
139139 'POST' ,
@@ -151,7 +151,7 @@ def test_void_transaction(self):
151151 }
152152 self .adyen .client = self .test .create_client_from_file (200 , request ,
153153 "test/mocks/storedValue/undo-transaction.json" )
154- result = self .adyen .storedValue .void_transaction (request )
154+ result = self .adyen .storedValue .stored_value_api . void_transaction (request )
155155 self .adyen .client .http_client .request .assert_called_once_with (
156156 'POST' ,
157157 f'{ self .stored_value_url } /voidTransaction' ,
0 commit comments