@@ -563,6 +563,41 @@ def test_v2_account_number_update(self):
563563 assert account_number .url == f"v2/account_numbers/{ account_number_id } "
564564 assert account_number .json .metadata .test_key == metadata ["test_key" ]
565565
566+ def test_v2_account_verification_list (self ):
567+ """Test getting all account verifications using v2 API."""
568+ account_verifications = list (self .fintoc .v2 .account_verifications .list ())
569+
570+ assert len (account_verifications ) > 0
571+ for account_verification in account_verifications :
572+ assert account_verification .method == "get"
573+ assert account_verification .url == "v2/account_verifications"
574+
575+ def test_v2_account_verification_get (self ):
576+ """Test getting a specific account number using v2 API."""
577+ account_verification_id = "test_account_verification_id"
578+
579+ account_verification = self .fintoc .v2 .account_verifications .get (
580+ account_verification_id
581+ )
582+
583+ assert account_verification .method == "get"
584+ assert (
585+ account_verification .url
586+ == f"v2/account_verifications/{ account_verification_id } "
587+ )
588+
589+ def test_v2_account_verification_create (self ):
590+ """Test creating an account number using v2 API."""
591+ account_number = "123456789"
592+
593+ account_verification = self .fintoc .v2 .account_verifications .create (
594+ account_number = account_number
595+ )
596+
597+ assert account_verification .method == "post"
598+ assert account_verification .url == "v2/account_verifications"
599+ assert account_verification .json .account_number == account_number
600+
566601 def test_v2_entities_list (self ):
567602 """Test getting all entities using v2 API."""
568603 entities = list (self .fintoc .v2 .entities .list ())
0 commit comments