Skip to content

Commit

Permalink
Fix: Add support for Legal Personal Identification Data (LPID)
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
  • Loading branch information
georgepadayatti committed May 1, 2024
1 parent 1ded946 commit b91d777
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/configs/AppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export const BOLAGSVERKET_ID = '624c025d7eff6f000164bb94';
export const SKATTEVERKET_ID = '634962e936ba8800015c497c';
export const FRIA_ID = '638f374f2f5d17000144320b';
export const ORNEN_ID = '638f5b292f5d170001443210';
export const REQUEST_CREDENTIAL_SUBMIT_ENABLED = ['Certificate Of Registration', 'Ecolabel', 'Real estate insurance'];
export const REQUEST_CREDENTIAL_SUBMIT_ENABLED = ['Certificate Of Registration', 'Ecolabel', 'Real estate insurance', 'Legal Personal Identification Data (LPID)'];
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ export const RequestCredentialsPage = (props: { onClose: any; open: boolean; org
case 'Real estate insurance':
certificateName = 'real_estate_insurance';
break;
case 'Legal Personal Identification Data (LPID)':
certificateName = 'lpid';
break;
}

const response = await companyService.submitCredentialRequest(certificateName);
Expand Down
4 changes: 4 additions & 0 deletions src/views/company-views/components/viewcredentials/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ export const ViewCredentialsPage = (props: { onClose: any; open: boolean; showVi
issuer = 'Fria försäkringar, Sweden'
logo = 'https://staging-api.igrant.io/v2/onboard/image/63909baf2f5d170001443213/web'
break;
case 'Legal Personal Identification Data (LPID)':
issuer = 'Bolagsverket, Sweden'
logo = credentialLogo;
break;
}

return (
Expand Down

0 comments on commit b91d777

Please sign in to comment.