Project

General

Profile

Onboarding Foreign » History » Version 8

prin methirattanasophon, 03/04/2026 01:58 AM

1 1 prin methirattanasophon
# Onboarding Foreign
2
3 7 prin methirattanasophon
[[CRS_Question]] 
4
5 3 prin methirattanasophon
Changes:
6
|page|details|
7
|--|--|
8
|1|remove thai title, name, lastname, laser code, id card number|
9
|1|add passport|
10 8 prin methirattanasophon
|2|new page (CRS)|
11
|5|new page (upload verification document)|
12
|6|change email link from thaid to success page|
13
|7|new page (confirm email success): "/authentication/signup/foreign/emailconfirmsucess"|
14 3 prin methirattanasophon
15 1 prin methirattanasophon
Workflow Diagram
16
17 3 prin methirattanasophon
<img style="width: 291px;" src="clipboard-202602271329-bsehb.png"><br>
18 1 prin methirattanasophon
19 3 prin methirattanasophon
```
20
@startuml onboarding foreign
21 1 prin methirattanasophon
22
start
23
:fullname;
24
note right: page 1
25
:appman;
26
note right: acecoin
27
:eligibleCheck;
28
note right: page 2 new
29
:crsQuestion;
30
note right: page 2 new
31
:currentAddress;
32
note right: page 3 Basic info
33
:occupation;
34
note right: page 3 Basic info
35
:sourceOfIncome;
36
note right: page 3 Basic info
37
:workAddress;
38
note right: page 3 Basic info
39
:bank;
40
note right: page 3 Basic info
41
:suitabilityTest;
42
note right: page 4
43
:selectDocument;
44 3 prin methirattanasophon
note right: page 5 new
45 1 prin methirattanasophon
:uploadDocument; 
46 3 prin methirattanasophon
note right: page 5 new
47
:email mobile verify;
48
note right: page 6
49 1 prin methirattanasophon
end 
50
@enduml
51
52 2 prin methirattanasophon
```
53 4 Ryan Supawarapong
54 1 prin methirattanasophon
## Sequence Diagram
55 6 Ryan Supawarapong
<img style="width: 797px;" src="clipboard-202603020844-povww.png"><br>
56 4 Ryan Supawarapong
57
```
58
@startuml
59
60
title Onboarding Foreigner
61
62
actor "customer" as c
63
participant "frontend" as fe
64
participant "backend" as be
65
database "database" as db
66
participant "notification" as n
67
participant "appman" as ap
68
69
70
c -> fe: choose Foreign Investor
71
fe --> c: ok
72
73
group Fullname Page
74
75
c -> fe: fill fullname, email, mobile and passport detail
76
fe -> be: send fullname, email, mobile and passport detail
77
78
be -> db: check for existing email, mobile and passport
79
db --> be: not found
80
be -> db: create user entry in information
81
db --> be: ok
82
be --> fe: ok & redirect to appman page (init by BE)
83
fe --> c: show next page (Appman)
84
85
  group Back to Register
86
    db --> be: found
87
    be --> fe: found existing user
88
    fe --> c: this account already exist. "Enter passport no"
89
    c -> fe: enter passport no
90
    fe --> be: check passport no for existing user
91
  end
92
93
end
94
95
group Appman Page
96
  c -> ap: do passport
97
  ap --> fe: redirect to next page(CRS)
98
end
99
100
group CRS page
101
  fe -> be: send appman state code
102
  be -> ap: request customer data
103
  ap --> be: send customer data
104
  be --> fe: ok
105
  
106
  c -> fe: do eligibility
107
  fe --> c: ok
108
  c -> fe: TIN detail for CRS
109
  fe -> be: send Tin detail
110
  be -> db: save TIN
111
  db --> be: ok
112
  be --> fe: ok
113
  fe --> c: redirect to next page(basic info)
114
end
115
116
group Basic Info page
117
118
  c -> fe: input data
119 1 prin methirattanasophon
  fe -> be: same info (Same as regular onboarding)
120 6 Ryan Supawarapong
  be -> db: save info
121
  db --> be: ok
122 4 Ryan Supawarapong
  be --> fe: ok
123
  fe --> c: redirect to next page(Suite test)
124
end
125
126
group Suite test
127
  c -> fe: do suite test
128
  fe -> be: send suite test result
129 1 prin methirattanasophon
  be -> db: save suite test result
130 4 Ryan Supawarapong
  db --> be: ok
131 1 prin methirattanasophon
  db --> fe: ok
132 5 Ryan Supawarapong
  fe --> c: redirect to next page(verification document)
133 4 Ryan Supawarapong
end
134
135 5 Ryan Supawarapong
group Verification Document
136 4 Ryan Supawarapong
137
  c -> fe: choose type & upload document
138
  fe -> be: document & document type
139
  be -> db: save document & document type
140
  db --> be: ok
141
  be --> fe: ok
142
  fe --> c: redirect to next page(verify email and mobile)
143
144
end
145
146
group Veirfy Email and Mobile
147
148
  c -> fe: verify mobile
149
  fe -> be: request sms otp
150
  be -> n: send sms otp
151
  n --> be: ok
152
  be --> fe: ok
153
  n -> c: sms otp
154
  c -> fe: input otp
155
  fe -> be: otp code
156
  be -> db: check otp code
157
  db --> be: ok
158
  be --> fe: ok
159
  fe --> c: ok
160
161
  c -> fe: verify email
162
  fe -> be: request verification link
163
  be -> n: send email with link
164
  n --> be: ok
165
  be --> fe: ok
166
  n -> c: email with link
167
168
  c -> fe: click link
169
  fe -> be: jwt token
170
  be -> be: check jwt token
171
  be -> db: update status
172
  db --> be: ok
173
  be --> fe: ok
174
  fe --> c: ok
175
176
end
177
178
@enduml
179
```