feat: add 'url' field to Integration model and update related requests and seeder
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user