diff --git a/app/Http/Controllers/Api/EmployerProfileController.php b/app/Http/Controllers/Api/EmployerProfileController.php index abd25c1..49eb002 100644 --- a/app/Http/Controllers/Api/EmployerProfileController.php +++ b/app/Http/Controllers/Api/EmployerProfileController.php @@ -64,6 +64,8 @@ public function getProfile(Request $request) 'employer' => $profile->emirates_id_employer, 'issue_place' => $profile->emirates_id_issue_place, 'occupation' => $profile->emirates_id_occupation, + 'card_number' => $profile->emirates_id_card_number, + 'gender' => $profile->emirates_id_gender, ], ]; @@ -301,6 +303,8 @@ public function updateProfile(Request $request) 'employer' => $profile->emirates_id_employer, 'issue_place' => $profile->emirates_id_issue_place, 'occupation' => $profile->emirates_id_occupation, + 'card_number' => $profile->emirates_id_card_number, + 'gender' => $profile->emirates_id_gender, ], ]; diff --git a/app/Http/Controllers/Api/SponsorController.php b/app/Http/Controllers/Api/SponsorController.php index 69bd152..e5548a7 100644 --- a/app/Http/Controllers/Api/SponsorController.php +++ b/app/Http/Controllers/Api/SponsorController.php @@ -346,6 +346,8 @@ private function buildSponsorResponse(Sponsor $sponsor): array 'employer' => $sponsor->emirates_id_employer, 'issue_place' => $sponsor->emirates_id_issue_place, 'occupation' => $sponsor->emirates_id_occupation, + 'card_number' => $sponsor->emirates_id_card_number, + 'gender' => $sponsor->emirates_id_gender, ]; } diff --git a/public/swagger.json b/public/swagger.json index d245244..a198557 100644 --- a/public/swagger.json +++ b/public/swagger.json @@ -188,6 +188,14 @@ "occupation": { "type": "string", "example": "Manager" + }, + "card_number": { + "type": "string", + "example": "151023946" + }, + "gender": { + "type": "string", + "example": "M" } } }, @@ -883,6 +891,14 @@ "occupation": { "type": "string", "example": "Manager" + }, + "card_number": { + "type": "string", + "example": "151023946" + }, + "gender": { + "type": "string", + "example": "M" } } } @@ -3354,6 +3370,14 @@ "occupation": { "type": "string", "example": "Manager" + }, + "card_number": { + "type": "string", + "example": "151023946" + }, + "gender": { + "type": "string", + "example": "M" } } }, @@ -4331,6 +4355,14 @@ "occupation": { "type": "string", "example": "Manager" + }, + "card_number": { + "type": "string", + "example": "151023946" + }, + "gender": { + "type": "string", + "example": "M" } } } @@ -4590,6 +4622,14 @@ "occupation": { "type": "string", "example": "Manager" + }, + "card_number": { + "type": "string", + "example": "151023946" + }, + "gender": { + "type": "string", + "example": "M" } } }