diff --git a/Modules/Internal/Services/MemberEnrollmentService.php b/Modules/Internal/Services/MemberEnrollmentService.php index 369073f1..4d9883fa 100644 --- a/Modules/Internal/Services/MemberEnrollmentService.php +++ b/Modules/Internal/Services/MemberEnrollmentService.php @@ -23,6 +23,8 @@ use Box\Spout\Common\Entity\Row; use Carbon\Carbon; use DateTime; use DB; +use Ramsey\Uuid\Uuid; +use Str; class MemberEnrollmentService { @@ -816,11 +818,13 @@ class MemberEnrollmentService UserInsurance::updateOrCreate( ['nIDUser' => $nIDUser], [ + 'nIDInsurance' => 106, 'sNamaPeserta' => $row['name'], 'dStartDate' => $row['member_effective_date'], 'dExpireDate' => $row['member_expiry_date'], 'dTanggalLahir' => $row['date_of_birth'] ? $this->dateParser($row['date_of_birth']) : null, - 'sNoPolis' => $row['member_id'] + 'sNoPolis' => $row['member_id'], + 'sVerificationCode' => (string) Uuid::uuid5(Uuid::NAMESPACE_DNS, $row['member_id']) ] ); @@ -1109,11 +1113,13 @@ class MemberEnrollmentService UserInsurance::updateOrCreate( ['nIDUser' => $nIDUser], [ + 'nIDInsurance' => 106, 'sNamaPeserta' => $row['name'], 'dStartDate' => $row['member_effective_date'], 'dExpireDate' => $row['member_expiry_date'], 'dTanggalLahir' => $row['date_of_birth'] ? $this->dateParser($row['date_of_birth']) : null, - 'sNoPolis' => $row['member_id'] + 'sNoPolis' => $row['member_id'], + 'sVerificationCode' => (string) Uuid::uuid5(Uuid::NAMESPACE_DNS, $row['member_id']) ] ); /* Lihat ID Marital status di table tm_status_pernikahan Linksehat */ diff --git a/app/Models/OLDLMS/UserInsurance.php b/app/Models/OLDLMS/UserInsurance.php index 3b49d6fd..13cdb731 100644 --- a/app/Models/OLDLMS/UserInsurance.php +++ b/app/Models/OLDLMS/UserInsurance.php @@ -26,6 +26,7 @@ class UserInsurance extends Model 'dTanggalLahir', 'nNoKTP', 'sNoPolis', + 'sVerificationCode', 'nIDInsurance', 'sLayanan', ]; diff --git a/composer.json b/composer.json index 15a2ed2c..ac6a6bba 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,7 @@ "phpmailer/phpmailer": "^6.9", "psr/simple-cache": "^1.0", "pusher/pusher-php-server": "^7.2", + "ramsey/uuid": "^4.7", "spatie/browsershot": "^3.61", "spatie/laravel-permission": "^5.9" }, diff --git a/composer.lock b/composer.lock index af543dec..5593c720 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "376b19f2ad42a940a917ec375fdd6c9d", + "content-hash": "15904ea4b6523bc5ea58867fe9c90f5a", "packages": [ { "name": "barryvdh/laravel-dompdf", @@ -6358,20 +6358,20 @@ }, { "name": "ramsey/uuid", - "version": "4.7.5", + "version": "4.7.6", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e" + "reference": "91039bc1faa45ba123c4328958e620d382ec7088" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e", - "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088", "shasum": "" }, "require": { - "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11", + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12", "ext-json": "*", "php": "^8.0", "ramsey/collection": "^1.2 || ^2.0" @@ -6434,7 +6434,7 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.7.5" + "source": "https://github.com/ramsey/uuid/tree/4.7.6" }, "funding": [ { @@ -6446,7 +6446,7 @@ "type": "tidelift" } ], - "time": "2023-11-08T05:53:05+00:00" + "time": "2024-04-27T21:32:50+00:00" }, { "name": "riverline/multipart-parser",