55from santander_sdk .pix import (
66 MAX_UPDATE_STATUS_ATTEMPTS ,
77 MAX_UPDATE_STATUS_ATTEMPTS_TO_CONFIRM ,
8- transfer_pix_payment ,
8+ transfer_pix ,
99)
1010from mock .santander_mocker import (
1111 PIX_ENDPOINT_WITH_WORKSPACE ,
@@ -44,7 +44,7 @@ def test_transfer_pix_payment_success(mock_api, api_client):
4444 mock_status = mock_pix_status_endpoint (
4545 mock_api , pix_id , value , OrderStatus .PAYED , pix_key , "CPF"
4646 )
47- transfer_result = transfer_pix_payment (
47+ transfer_result = transfer_pix (
4848 api_client , pix_key , value , description , tags = ["teste" ]
4949 )
5050 assert transfer_result == {
@@ -106,7 +106,7 @@ def test_transfer_pix_payment_timeout_create(api_client: SantanderApiClient, moc
106106 mock_status = mock_pix_status_endpoint (
107107 mock_api , pix_id , value , OrderStatus .PENDING_VALIDATION , pix_key , "CPF"
108108 )
109- transfer_result = transfer_pix_payment (api_client , pix_key , value , description )
109+ transfer_result = transfer_pix (api_client , pix_key , value , description )
110110
111111 assert transfer_result == {
112112 "success" : False ,
@@ -135,7 +135,7 @@ def test_transfer_pix_payment_timeout_before_authorize(
135135 mock_api , pix_id , value , OrderStatus .PENDING_CONFIRMATION , pix_key , "CPF"
136136 )
137137
138- transfer_result = transfer_pix_payment (api_client , pix_key , value , description )
138+ transfer_result = transfer_pix (api_client , pix_key , value , description )
139139 assert transfer_result == {
140140 "success" : True ,
141141 "data" : {
@@ -187,7 +187,7 @@ def test_transfer_pix_payment_rejected_on_create(
187187 mock_api , pix_id , value , OrderStatus .REJECTED , pix_key , "CPF"
188188 )
189189
190- transfer_result = transfer_pix_payment (api_client , pix_key , value , description )
190+ transfer_result = transfer_pix (api_client , pix_key , value , description )
191191 assert transfer_result == {
192192 "success" : False ,
193193 "error" : "Rejeição de pagamento: Santander - Pagamento rejeitado pelo banco na etapa Criação do pagamento PIX - Motivo não retornado pelo Santander" ,
@@ -214,7 +214,7 @@ def test_transfer_pix_payment_rejected_on_confirm(
214214 mock_api , pix_id , value , OrderStatus .REJECTED , pix_key , "CPF"
215215 )
216216
217- transfer_result = transfer_pix_payment (api_client , pix_key , value , description )
217+ transfer_result = transfer_pix (api_client , pix_key , value , description )
218218 assert transfer_result == {
219219 "success" : False ,
220220 "error" : "Rejeição de pagamento: Santander - Pagamento rejeitado pelo banco na etapa Confirmação do pagamento PIX - Motivo não retornado pelo Santander" ,
@@ -246,7 +246,7 @@ def test_transfer_pix_payment_with_beneficiary(
246246 mock_api , pix_id , value , OrderStatus .PAYED , santander_beneciary_john
247247 )
248248
249- transfer_result = transfer_pix_payment (
249+ transfer_result = transfer_pix (
250250 api_client , santander_beneciary_john , value , description
251251 )
252252 assert transfer_result == {
@@ -327,7 +327,7 @@ def test_transfer_pix_payment_lazy_status_update(
327327 ],
328328 )
329329
330- transfer_result = transfer_pix_payment (api_client , pix_key , value , description )
330+ transfer_result = transfer_pix (api_client , pix_key , value , description )
331331 assert transfer_result == {
332332 "success" : True ,
333333 "data" : {
0 commit comments