style: clean up code formatting and remove trailing whitespace

refactor: reorganize imports and fix type imports
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-11 03:08:36 -03:00
1 parent d3704602fd
commit 47c04de6fe
232 files changed
+7140 -4798

No files matched your search

+6 -6
View File
@@ -102,7 +102,7 @@ class AbacatePayClient {
if (!response.ok) {
const errorData = await response.json().catch(() => ({}));
throw new Error(
`Failed to create billing: ${errorData.message || response.statusText}`
`Failed to create billing: ${errorData.message || response.statusText}`,
);
}
@@ -116,7 +116,7 @@ class AbacatePayClient {
headers: {
Authorization: `Bearer ${this.config.apiKey}`,
},
}
},
);
if (!response.ok) {
@@ -124,7 +124,7 @@ class AbacatePayClient {
throw new Error(
`Failed to get billing status: ${
errorData.message || response.statusText
}`
}`,
);
}
@@ -150,7 +150,7 @@ class AbacatePayClient {
if (!response.ok) {
const errorData = await response.json().catch(() => ({}));
throw new Error(
`Failed to get PIX status: ${errorData.message || response.statusText}`
`Failed to get PIX status: ${errorData.message || response.statusText}`,
);
}
@@ -163,7 +163,7 @@ class AbacatePayClient {
return result.data;
}
verifyWebhookSignature(payload: string, signature: string): boolean {
verifyWebhookSignature(_payload: string, _signature: string): boolean {
// Método mantido para compatibilidade, mas validação agora é feita via query param
return true;
}
@@ -184,7 +184,7 @@ console.log(
process.env.ABACATEPAY_WEBHOOK_SECRET
? "✅ Configurada"
: "❌ NÃO CONFIGURADA"
}`
}`,
);
console.log("🔧 ==========================================\n");