feat: enhance integration setup process with error handling and validation

This commit is contained in:
2026-07-08 09:00:42 -03:00
parent f18fbc8147
commit f23029e785
4 changed files with 66 additions and 15 deletions

View File

@@ -152,4 +152,16 @@ abstract class BaseIntegrationService
* @return array
*/
abstract public function getHeaders(): array;
/**
* Hook called after the integration is configured for the tenant.
* Can be used to validate credentials or perform initial setups.
* Throw an Exception on failure.
*
* @return void
*/
public function onSetup(): void
{
// Override in child classes if needed
}
}