Merge pull request 'api issue fixed' (#18) from mohan into master

Reviewed-on: #18
This commit is contained in:
mohanmd 2026-06-24 12:03:45 +00:00
commit f4f6928432
3 changed files with 46 additions and 0 deletions

View File

@ -64,6 +64,8 @@ public function getProfile(Request $request)
'employer' => $profile->emirates_id_employer, 'employer' => $profile->emirates_id_employer,
'issue_place' => $profile->emirates_id_issue_place, 'issue_place' => $profile->emirates_id_issue_place,
'occupation' => $profile->emirates_id_occupation, '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, 'employer' => $profile->emirates_id_employer,
'issue_place' => $profile->emirates_id_issue_place, 'issue_place' => $profile->emirates_id_issue_place,
'occupation' => $profile->emirates_id_occupation, 'occupation' => $profile->emirates_id_occupation,
'card_number' => $profile->emirates_id_card_number,
'gender' => $profile->emirates_id_gender,
], ],
]; ];

View File

@ -346,6 +346,8 @@ private function buildSponsorResponse(Sponsor $sponsor): array
'employer' => $sponsor->emirates_id_employer, 'employer' => $sponsor->emirates_id_employer,
'issue_place' => $sponsor->emirates_id_issue_place, 'issue_place' => $sponsor->emirates_id_issue_place,
'occupation' => $sponsor->emirates_id_occupation, 'occupation' => $sponsor->emirates_id_occupation,
'card_number' => $sponsor->emirates_id_card_number,
'gender' => $sponsor->emirates_id_gender,
]; ];
} }

View File

@ -188,6 +188,14 @@
"occupation": { "occupation": {
"type": "string", "type": "string",
"example": "Manager" "example": "Manager"
},
"card_number": {
"type": "string",
"example": "151023946"
},
"gender": {
"type": "string",
"example": "M"
} }
} }
}, },
@ -883,6 +891,14 @@
"occupation": { "occupation": {
"type": "string", "type": "string",
"example": "Manager" "example": "Manager"
},
"card_number": {
"type": "string",
"example": "151023946"
},
"gender": {
"type": "string",
"example": "M"
} }
} }
} }
@ -3354,6 +3370,14 @@
"occupation": { "occupation": {
"type": "string", "type": "string",
"example": "Manager" "example": "Manager"
},
"card_number": {
"type": "string",
"example": "151023946"
},
"gender": {
"type": "string",
"example": "M"
} }
} }
}, },
@ -4331,6 +4355,14 @@
"occupation": { "occupation": {
"type": "string", "type": "string",
"example": "Manager" "example": "Manager"
},
"card_number": {
"type": "string",
"example": "151023946"
},
"gender": {
"type": "string",
"example": "M"
} }
} }
} }
@ -4590,6 +4622,14 @@
"occupation": { "occupation": {
"type": "string", "type": "string",
"example": "Manager" "example": "Manager"
},
"card_number": {
"type": "string",
"example": "151023946"
},
"gender": {
"type": "string",
"example": "M"
} }
} }
} }