Project

General

Profile

Onboarding Foreign » History » Version 4

Ryan Supawarapong, 02/27/2026 07:06 AM

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