feat: add 'url' field to Integration model and update related requests and seeder

This commit is contained in:
2026-07-03 14:45:05 -03:00
parent 3887a4fcba
commit 21b8fa5f35
5 changed files with 17 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ return new class extends Migration
$table->id();
$table->string('integration_code')->unique();
$table->string('name');
$table->string('url')->nullable();
$table->json('integration_data_schema')->nullable();
$table->timestamps();
});

View File

@@ -16,6 +16,19 @@ class TelepagosIntegrationSeeder extends Seeder
['integration_code' => 'telepagos'],
[
'name' => 'Telepagos',
'url' => 'https://api.telepagos.com.ar',
'integration_data_schema' => [
'username' => 'required|string',
'password' => 'required|string',
]
]
);
Integration::updateOrCreate(
['integration_code' => 'telepagos_homo'],
[
'name' => 'Telepagos Homologación',
'url' => 'https://api.homo.telepagos.com.ar',
'integration_data_schema' => [
'username' => 'required|string',
'password' => 'required|string',