-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathonboard-doc.yaml
238 lines (236 loc) · 7.76 KB
/
onboard-doc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
openapi: 3.0.1
info:
title: IOUU APIs - LetsBank
description: Documentação do serviço de Onboard
version: "1.0"
servers:
- url: "http://emprestimos-homolog.iouu.com.br/onboard/api/v1"
paths:
/onboard:
post:
tags:
- Onboard
summary: Envio de onboard
description: Onboard - Envio de onboard
operationId: onboardEnvio
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Onboard"
security: []
responses:
"201":
description: Solicitação criada e enviada para análise de crédito
content:
application/json:
schema:
$ref: "#/components/schemas/OnboardResponse"
"400":
description: Bad Request
content:
application/json:
schema:
$ref: "#/components/schemas/OnboardBadRequest"
"500":
description: Server Erro
content:
application/json:
schema:
$ref: "#/components/schemas/OnboardServerErro"
components:
schemas:
Onboard:
type: object
properties:
empresa:
type: object
description: "Dados da empresa"
properties:
faturamento_mensal:
type: number
description: "Faturamento médio mensal"
example: 1000000
no_funcionarios:
type: string
description: "Número médio de funcionários"
example: "Acima de 10"
cnpj:
type: string
description: "Cnpj"
example: "00.000.000/0001-00"
simulacao:
type: object
description: "Detalhes da simulação"
properties:
tem_restricao:
type: boolean
description: "Tem restrição"
example: false
vlr_solicitado:
type: number
description: "Valor solicitado"
example: 200000
motivo_emprestimo:
type: string
description: "Motivo do empréstimo"
example: "Capital de Giro"
solicitante:
type: object
description: "Dados do solicitante"
properties:
nome:
type: string
description: "Nome do solicitante"
example: "José Maria"
email:
type: string
description: "Email do solicitante"
example: "rubens@faria.com.br"
telefone:
type: string
description: "Telefone do solicitante"
example: "(00) 00000-0000"
cpf:
type: string
description: "Cpf do solicitante"
example: "000.000.000-01"
relacao_empresa:
type: string
description: "Relação do solicitante"
example: "Sócio"
termos:
type: object
description: "Termos"
properties:
termos_politicas:
type: boolean
description: "Temos e políticas"
example: true
acesso_informacoes:
type: boolean
description: "Acesso a informação"
example: true
autorizacao_whatsapp:
type: boolean
description: "Permitir contato por whatsapp"
example: false
step:
type: object
description: "Dados do solicitante"
properties:
etapa:
type: string
description: "Etapa"
example: "Documentação"
status:
type: string
description: "Status"
example: "Pendente"
status_solicitacao:
type: string
description: "Status da solicitação"
example: "Solicitação Aprovada"
agrupamento:
type: string
description: "Agrupamento"
example: "Solicitação"
status_tomador:
type: string
description: "Status Tomador"
example: "Pendente"
updated_at:
type: string
description: "Data de atualização"
example: "2021-08-13 12:09:37.133Z"
historico:
type: array
description: "Histórico de atualizações"
items:
type: object
properties:
etapa:
type: string
description: "Etapa"
example: "Documentação"
status:
type: string
description: "Status"
example: "Pendente"
status_solicitacao:
type: string
description: "Status da solicitação"
example: "Solicitação Aprovada"
agrupamento:
type: string
description: "Agrupamento"
example: "Solicitação"
status_tomador:
type: string
description: "Status Tomador"
example: "Pendente"
updated_at:
type: string
description: "Data de atualização"
example: "2021-08-13 12:09:37.133Z"
solicitacao_expirada:
type: boolean
description: "Solicitação expirada"
example: false
expirated_at:
type: string
description: "Data de atualização"
example: "2021-08-13 12:09:37.133Z"
OnboardResponse:
type: object
properties:
code:
type: string
example: "200"
data:
type: string
example: "60be28ac14ad810038d86e5c"
OnboardBadRequest:
type: object
properties:
code:
type: string
example: "400"
data:
type: array
items:
type: string
example:
[
"Por favor o objecto da Empresa não existe!",
"Por favor informe o CNPJ",
"Por favor informe o Faturamento Mensal",
"Por favor informe o Numero de funcionarios",
"Por favor o objecto da Simulação não existe!",
"Por favor informe o Motivo Emprestimo",
"Por favor informe se tem restrição",
"Por favor informe o Valor Solicitado",
"Por favor o objecto da Solicitante não existe!",
"Por favor informe o CPF",
"Por favor informe o Email",
"Por favor informe o um email valido",
"Por favor informe o Nome",
"Por favor informe a Relação na Empresa",
"Por favor informe o Telefone",
"Por favor o objecto da termos não existe!",
"Por favor o objecto da step não existe!",
"Por favor informe o agrupamento",
"Por favor informe o etapa",
"Por favor informe o status",
"Por favor informe a Relação na status_solicitacao",
"Por favor informe o status_tomador",
]
OnboardServerErro:
type: object
properties:
code:
type: string
example: "500"
data:
type: string
example: "ServerError"