Skip to content

Commit c9e8167

Browse files
committed
fix: identity missing types
1 parent 52e8906 commit c9e8167

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

src/types/identity.ts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ export type IdentityResponse = {
2727
relations: IdentityRelation[] | null
2828
/** The investor's personality and motivation for investing */
2929
investorProfile: 'Conservative' | 'Moderate' | 'Aggressive' | null
30+
/** Name of the establishment */
31+
establishmentName: string | null
32+
/** Code of the establishment */
33+
establishmentCode: string | null
34+
/** List of financial relationships */
35+
financialRelationships: FinancialRelationships | null
36+
/** List of qualifications */
37+
qualifications: Qualifications | null
3038
/** Date of the first time that the Identity was recovered */
3139
createdAt: Date
3240
/** Last update of the Identity data (if the data never changes, updatedAt will be the same as createdAt) */
@@ -58,3 +66,76 @@ export type Address = {
5866
country: string | null
5967
type: 'Personal' | 'Work' | null
6068
}
69+
70+
export type FinancialRelationships = {
71+
/** Start date of the relationship */
72+
startDate: Date
73+
/** List of products and services type */
74+
productsServicesType: string[]
75+
/** List of procurators */
76+
procurators: Procurator[]
77+
/** List of accounts */
78+
accounts?: FinancialRelationshipAccount[]
79+
}
80+
81+
export type FinancialRelationshipAccount = {
82+
/** Code of the bank */
83+
compeCode: string
84+
/** Code of the branch */
85+
branchCode: string
86+
/** Number of the account */
87+
number: string
88+
/** Check digit of the account */
89+
checkDigit: string
90+
/** Type of the account */
91+
type: 'CONTA_DEPOSITO_A_VISTA' | 'CONTA_POUPANCA' | 'CONTA_PAGAMENTO_PRE_PAGA'
92+
/** Subtype of the account */
93+
subtype: 'INDIVIDUAL' | 'CONJUNTA_SIMPLES' | 'CONJUNTA_SOLIDARIA'
94+
}
95+
96+
export type Procurator = {
97+
/** Type of representative */
98+
type: 'REPRESENTANTE_LEGAL' | 'PROCURADOR'
99+
/** CPF number of the procurator */
100+
cpfNumber: string
101+
/** Civil name of the procurator */
102+
civilName: string
103+
/** Social name of the procurator (if any) */
104+
socialName?: string
105+
}
106+
107+
export type Qualifications = {
108+
/** CNPJ of the company */
109+
companyCnpj: string
110+
/** Code of the occupation */
111+
occupationCode?: 'RECEITA_FEDERAL' | 'CBO' | 'OUTRO'
112+
/** Informed income */
113+
informedIncome?: InformedIncome
114+
/** Informed patrimony */
115+
informedPatrimony?: InformedPatrimony
116+
}
117+
118+
export type InformedIncome = {
119+
/** Frequency of the income (e.g., daily) */
120+
frequency:
121+
| 'DIARIA'
122+
| 'SEMANAL'
123+
| 'QUINZENAL'
124+
| 'MENSAL'
125+
| 'BIMESTRAL'
126+
| 'TRIMESTRAL'
127+
| 'SEMESTRAL'
128+
| 'ANUAL'
129+
| 'OUTROS'
130+
/** Income amount */
131+
amount: number
132+
/** Date the income was informed */
133+
date: Date
134+
}
135+
136+
export type InformedPatrimony = {
137+
/** Patrimony amount */
138+
amount: number
139+
/** Year of the patrimony */
140+
year: number
141+
}

0 commit comments

Comments
 (0)