Project

General

Profile

Onboarding Foreign » History » Version 7

prin methirattanasophon, 03/02/2026 07:20 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
|2|new page|
11
|5|new page|
12
|6|chnage email link from thaid to success page|
13
14 1 prin methirattanasophon
Workflow Diagram
15
16 3 prin methirattanasophon
<img style="width: 291px;" src="clipboard-202602271329-bsehb.png"><br>
17 1 prin methirattanasophon
18 3 prin methirattanasophon
```
19
@startuml onboarding foreign
20 1 prin methirattanasophon
21
start
22
:fullname;
23
note right: page 1
24
:appman;
25
note right: acecoin
26
:eligibleCheck;
27
note right: page 2 new
28
:crsQuestion;
29
note right: page 2 new
30
:currentAddress;
31
note right: page 3 Basic info
32
:occupation;
33
note right: page 3 Basic info
34
:sourceOfIncome;
35
note right: page 3 Basic info
36
:workAddress;
37
note right: page 3 Basic info
38
:bank;
39
note right: page 3 Basic info
40
:suitabilityTest;
41
note right: page 4
42
:selectDocument;
43 3 prin methirattanasophon
note right: page 5 new
44 1 prin methirattanasophon
:uploadDocument; 
45 3 prin methirattanasophon
note right: page 5 new
46
:email mobile verify;
47
note right: page 6
48 1 prin methirattanasophon
end 
49
@enduml
50
51 2 prin methirattanasophon
```
52 4 Ryan Supawarapong
53 1 prin methirattanasophon
## Sequence Diagram
54 6 Ryan Supawarapong
<img style="width: 797px;" src="clipboard-202603020844-povww.png"><br>
55 4 Ryan Supawarapong
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 1 prin methirattanasophon
  fe -> be: same info (Same as regular onboarding)
119 6 Ryan Supawarapong
  be -> db: save info
120
  db --> be: ok
121 4 Ryan Supawarapong
  be --> fe: ok
122
  fe --> c: redirect to next page(Suite test)
123
end
124
125
group Suite test
126
  c -> fe: do suite test
127
  fe -> be: send suite test result
128 1 prin methirattanasophon
  be -> db: save suite test result
129 4 Ryan Supawarapong
  db --> be: ok
130 1 prin methirattanasophon
  db --> fe: ok
131 5 Ryan Supawarapong
  fe --> c: redirect to next page(verification document)
132 4 Ryan Supawarapong
end
133
134 5 Ryan Supawarapong
group Verification Document
135 4 Ryan Supawarapong
136
  c -> fe: choose type & upload document
137
  fe -> be: document & document type
138
  be -> db: save document & document type
139
  db --> be: ok
140
  be --> fe: ok
141
  fe --> c: redirect to next page(verify email and mobile)
142
143
end
144
145
group Veirfy Email and Mobile
146
147
  c -> fe: verify mobile
148
  fe -> be: request sms otp
149
  be -> n: send sms otp
150
  n --> be: ok
151
  be --> fe: ok
152
  n -> c: sms otp
153
  c -> fe: input otp
154
  fe -> be: otp code
155
  be -> db: check otp code
156
  db --> be: ok
157
  be --> fe: ok
158
  fe --> c: ok
159
160
  c -> fe: verify email
161
  fe -> be: request verification link
162
  be -> n: send email with link
163
  n --> be: ok
164
  be --> fe: ok
165
  n -> c: email with link
166
167
  c -> fe: click link
168
  fe -> be: jwt token
169
  be -> be: check jwt token
170
  be -> db: update status
171
  db --> be: ok
172
  be --> fe: ok
173
  fe --> c: ok
174
175
end
176
177
@enduml
178
```