mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 14:15:44 +00:00
feat(freight-api): seal EDR side of contracts with the one global stamp
This commit is contained in:
@@ -138,6 +138,13 @@ export class CompanyIdentityStateDto {
|
||||
})
|
||||
etradeManagerName!: string | null;
|
||||
|
||||
@ApiProperty({
|
||||
nullable: true,
|
||||
description:
|
||||
"That manager's phone, normalized to E.164 and captured at the same lookup. Paired with the name so the portal can still tell that the owner's details came from eTrade after a refresh, when the live lookup result is long gone — without it a resumed wizard offers them back as typeable inputs.",
|
||||
})
|
||||
etradeManagerPhone!: string | null;
|
||||
|
||||
@ApiProperty({
|
||||
nullable: true,
|
||||
description:
|
||||
@@ -277,6 +284,8 @@ export function buildCompanyIdentityState(
|
||||
|
||||
const etradeManagerName =
|
||||
(attrs[ETRADE_MANAGER_NAME_KEY] as string | undefined) ?? null;
|
||||
const etradeManagerPhone =
|
||||
(attrs[ETRADE_MANAGER_PHONE_KEY] as string | undefined) ?? null;
|
||||
|
||||
return {
|
||||
passportAccepted,
|
||||
@@ -286,6 +295,7 @@ export function buildCompanyIdentityState(
|
||||
poa,
|
||||
identityProven,
|
||||
etradeManagerName,
|
||||
etradeManagerPhone,
|
||||
ownerMatchesEtrade: ownerNameMatchesEtrade(owner.name, etradeManagerName),
|
||||
complete: subject !== null && identityProven,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user