Feature Spec — Notifications (Merchant Portal · Profile)

Round A — business confirmation through interface (CPG-GUIDE-SPEC-A)Vòng A — xác nhận nghiệp vụ qua giao diện (CPG-GUIDE-SPEC-A)

A. Document controlA. Kiểm soát tài liệu

Doc IDCPG-SPEC-PRF-NOTIFICATIONS
VersionPhiên bản0.2
StatusTrạng tháiFor Review
OwnerDHC — BA
AudienceĐối tượngFlyPay — PM / Business; DHC — BA, UI, Frontend, Backend, QA
ClassificationPhân loạiConfidential — FlyPay and DHCConfidential — FlyPay và DHC
Effective dateNgày hiệu lực02/12/2026
Related docs 01_BR · Merchant Portal FSD Profile · MP Profile UC · GUIDE-SPEC-A · CRM Profile TC (ref)
AuthorSoạnDHC — BA
ReviewRà soátFlyPay — BusinessFlyPay — Nghiệp vụ
ApprovalPhê duyệtFlyPay — PM
ConfidentialityĐộ mậtConfidential — FlyPay and DHC
FrameworkKhungCPG-GUIDE-SPEC-A (Round A) · sample CPG-SPEC-ACC-HW-CREATE

B. Version historyB. Lịch sử phiên bản

Version Date Author ChangesThay đổi
0.1 14/11/2026 DHC — BA InitializeKhởi tạo
0.2 01/12/2026 DHC — BA Layout of 14 items according to GUIDE-SPEC-A + Invoice module Round ABố cục 14 mục theo GUIDE-SPEC-A + module Invoice Vòng A

C. Table of contentsC. Mục lục

D. ContentD. Nội dung

NOTIFICATIONS · F2.

1. Introduction1. Giới thiệu

1.1 Purpose1.1 Mục đích

List/read/delete.

RoundVòngContentNội dungOwnerThực hiện
A — business confirmation via UI (this document)A — xác nhận nghiệp vụ qua giao diện (tài liệu này)
  • UI journey: screens, buttons, fieldsHành trình trên giao diện: màn hình, nút, trường
  • Rules and user-visible error messagesQuy tắc, thông báo lỗi người dùng thấy
  • Acceptance criteriaTiêu chí nghiệm thu
DHC drafts, FlyPay approvesDHC soạn, FlyPay phê duyệt
B — FSD / backend design (after Round A approval)B — FSD / thiết kế backend (sau khi vòng A được duyệt)
  • Break down by network, API, data, system error codes, detailed audit logPhân rã theo network, API, dữ liệu, mã lỗi hệ thống, audit log chi tiết
  • Cover every Round A UI flowBao phủ mọi luồng giao diện của vòng A
DHC drafts, FlyPay approvesDHC soạn, FlyPay phê duyệt

1.2 Scope1.2 Phạm vi

In scopeTrong phạm viOut of scope (other docs)Ngoài phạm vi (tài liệu khác)
  • List
  • Mark
  • Delete

1.3 Audience1.3 Đối tượng đọc

AudienceĐối tượngReadĐọc phần
FlyPay — PM / ComplianceSection 2, 3, 4, 12Mục 2, 3, 4, 12
DHC — BA, FE Merchant PortalEntireToàn bộ
DHC — backend, QASection 8, 9, 11Mục 8, 9, 11

1.4 Glossary & abbreviations1.4 Thuật ngữ & viết tắt

Terms follow the CPG glossary: keep industry English terms; short meaning text (ND-03).Thuật ngữ theo Từ điển thuật ngữ CPG: giữ thuật ngữ ngành (tiếng Anh), giải thích ngắn bằng tiếng Việt (ND-03).

VietnameseTiếng ViệtEnglish / UITiếng Anh / trên giao diệnMeaningNghĩaStatusTrạng thái
xác thực hai yếu tố2FA6-digit code from an authenticator app, in addition to password.Mã 6 số từ ứng dụng xác thực, nhập thêm ngoài mật khẩu.referencetham khảo
hộp thoạidialog / modalOverlay window on the page with confirm and cancel actions.Cửa sổ nổi trên trang, có nút xác nhận và hủy.referencetham khảo
(keep English)error bannerError strip at the top of a dialog for non-field-specific errors.Khung báo lỗi đầu hộp thoại cho lỗi không gắn với một ô cụ thể.referencetham khảo
nhật ký kiểm toánaudit logImmutable record of who did what, when, and the outcome.Bản ghi không sửa được: ai làm gì, lúc nào, kết quả.referencetham khảo
phân quyền theo vaiRBAC / roleMerchant Admin, Finance, Operator, Approver, Support, Developer, Viewer.Merchant Admin, Finance, Operator, Approver, Support, Developer, Viewer.referencetham khảo
thương nhânmerchantCPG customer organization; CRM binds tickets to a merchant (except internal).Tổ chức khách hàng CPG; CRM gắn ticket với merchant (trừ internal).referencetham khảo
hồ sơ cá nhânProfileSelf-service page for the signed-in user's info / security / notifications.Trang tự phục vụ thông tin / bảo mật / thông báo của user đang đăng nhập.referencetham khảo
phiên đăng nhậpsessionActive authentication session (device / token); other sessions may be revoked.Phiên xác thực đang hoạt động (thiết bị / token); có thể thu hồi phiên khác.referencetham khảo
thông báonotificationIn-app notification (read / unread) on the Notifications tab.Thông báo trong ứng dụng (đã đọc / chưa đọc) trên tab Notifications.referencetham khảo
mã chống lừa đảoanti-phishing codeUser-defined code to recognize legitimate system emails.Mã người dùng đặt để nhận diện email hệ thống hợp lệ.referencetham khảo
ảnh đại diệnavatarUploaded profile image (JPG/PNG/GIF, size limit).Ảnh hồ sơ tải lên (JPG/PNG/GIF, giới hạn dung lượng).referencetham khảo
yêu cầu / quy tắc nghiệp vụBR / Business Rule (RL)IDs from FlyPay URD / RTM.Mã lấy từ URD / RTM của FlyPay.referencetham khảo
trường hợp sử dụng / nghiệm thu / kiểm thửUC / AC / TCUse Case / Acceptance Criteria / Test Case.Use Case / Acceptance Criteria / Test Case.referencetham khảo
phạm vi công việc / yêu cầu thay đổiSoW / CRStatement of Work / Change Request.Statement of Work / Change Request.referencetham khảo
(keep English)baselineConfirmed and signed requirements snapshot.Bản yêu cầu đã xác nhận và ký.referencetham khảo
tài liệu yêu cầu / truy vết / thiết kếURD / RTM / FSDFlyPay requirements / traceability matrix / functional spec (Round B).Tài liệu yêu cầu FlyPay / sổ cái truy vết / đặc tả chức năng (vòng B).referencetham khảo

1.5 References1.5 Tài liệu tham chiếu

IDMãDocumentTài liệuRelated toLiên quan tớiVersion / statusPhiên bản / tình trạngLink
L20CPG-GUIDE-SPEC-A — Guide for writing Round A feature specificationsCPG-GUIDE-SPEC-A — Hướng dẫn viết đặc tả tính năng vòng A14-item rules, HA-01…09, ND-01…13Quy tắc 14 mục, HA-01…09, ND-01…13v0.1, 13/11/2026OpenMở
L21CPG-SPEC-ACC-HW-CREATE — Sample Document for Creating Hot WalletCPG-SPEC-ACC-HW-CREATE — Tài liệu mẫu Tạo Hot WalletStandard detail level (Create Hot Wallet)Mức chi tiết chuẩn (Tạo Hot Wallet)v0.1, 13/11/2026 — illustrative samplev0.1, 13/11/2026 — mẫu minh hoạOpenMở
L83FSD Merchant Portal / Profile v1.0Baseline Profile MP v1.0 (no wallets)—OpenMở
L85UC Profile (CRM) — UC-PRFUC-PRF-01…07 (08/09 retired)—OpenMở
L86TC CRM Profile SetBộ TC CRM ProfilePRF/NOT/SEC/2FA/SES/PC (WAL/COM retired)—OpenMở
L87CPG-SPEC-PRF-INDEX — Profile Index (MP)Catalog SPEC Profile MP Round ACatalog SPEC Profile MP Vòng Aavailable (version 0.2, 16/11/2026)có (bản 0.2, 16/11/2026)OpenMở

1.6 Presentation conventions1.6 Quy ước trình bày

ConventionQuy ướcMeaningNghĩa
MUSTRequired — fail = not accepted (RFC 2119: SHALL)Bắt buộc — không đạt thì không nghiệm thu (RFC 2119: SHALL)
MUST NOTForbidden (SHALL NOT)Cấm (SHALL NOT)
SHOULDRecommended — alternatives need a reason (SHOULD)Khuyến nghị — làm khác phải nêu lý do (SHOULD)
MAYOptional (MAY)Tuỳ chọn (MAY)
Status labelNhãn trạng tháiMeaningNghĩa
Confirmed (source)Đã xác nhận (source)Already in URD / RTM / FSD v2.2 or confirmed by FlyPay (cite source, date).Đã có trong URD / RTM / FSD v2.2 hoặc FlyPay đã xác nhận (ghi nguồn, ngày).
DHC proposalDHC đề xuấtDHC proposal with rationale; needs FlyPay agreement.DHC đề xuất kèm lý do; cần FlyPay đồng ý.
Awaiting decision QnChờ quyết định QnFlyPay must answer Qn in §12; each has a DHC recommendation.Cần FlyPay trả lời câu hỏi Qn ở Mục 12; mỗi câu có khuyến nghị DHC.
DHC added (v0.2)DHC bổ sung (bản 0.2)DHC added in the version in parentheses (usually missing shot / description).DHC bổ sung ở phiên bản ghi trong ngoặc (thường là ảnh / mô tả còn thiếu).
referencetham khảoExplanatory info, not a requirement.Thông tin giải thích, không phải yêu cầu.
Combined cellÔ ghépExample: Confirmed (RL-05-01); length: Awaiting Q6. 'Confirmed' applies only to the cited part.Ví dụ: Đã xác nhận (RL-05-01); độ dài: Chờ quyết định Q6.
SymbolKý hiệuMeaningNghĩa
S1, S2, S2-N…Screen ids; suffix = variantMã màn hình; hậu tố là biến thể
B1…BnUser-flow step ids (§5)Mã bước trong luồng người dùng (Mục 5)
1 2 3…Callout numbers on shots; explained in the table below the image.Số chú thích trên ảnh; giải thích ở bảng ngay dưới ảnh.
BR, RL, TC, E-*, AC, Q, LRequirement, rule, test case, error, acceptance, question, referenceYêu cầu, quy tắc, kịch bản kiểm thử, thông báo lỗi, tiêu chí nghiệm thu, câu hỏi, tài liệu tham chiếu
(new id)(mã mới)DHC-proposed id; FlyPay assigns official RTM ids (ND-08)Mã DHC đề xuất; FlyPay cấp mã chính thức khi cập nhật RTM (ND-08)
dd/mm/yyyyDate formatĐịnh dạng ngày

2. Overview2. Tổng quan

  • List/read/delete.
DHC added (v0.2)DHC bổ sung (bản 0.2) — no screenshot for this screen yet.chưa có ảnh cho màn hình này.
Figure 1Hình 1 — Overview: Notifications list + actions.— Toàn cảnh: Notifications list + actions.

3. Business rules3. Nghiệp vụ

3.1 Notifications (F2)

BR IDMã BROriginal wording (URD / RTM / FSD)Nguyên văn (URD / RTM / FSD)InterpretationDiễn giảiUI manifestationThể hiện trên giao diệnStatusTrạng thái
PRF-NOT-01Unread indicatorBadgeS1Confirmed (FSD)Đã xác nhận (FSD)
PRF-NOT-02PaginationLarge listS1Confirmed (FSD)Đã xác nhận (FSD)
PRF-NOT-03Empty stateNot errorS1Confirmed (FSD)Đã xác nhận (FSD)

4. Roles & permissions4. Vai trò & phân quyền

ActionThao tácAdminManagerSupportOperatorViewerStatusTrạng thái
Xem/mark/deleteCreditCóCreditCóCreditCóCreditCóCreditCóConfirmed (profile.notifications)Đã xác nhận (profile.notifications)

5. User flows5. Luồng người dùng

UserPortalAPIBắt đầuB1: Open tabB2: ListB3: Mark/DeleteKết thúc
Notif — Column = actor lane; green ellipse = Start; red ellipse = End; diamond = condition (Notif — Cột = làn actor; elip xanh = Bắt đầu; elip đỏ = Kết thúc; hình thoi = điều kiện (Achieve/HaveĐạt/Có ↓ next step,↓ bước sau, Not pass/NoKhông đạt/Không → go back to the step indicated by the red arrow); dotted line = option / step outside the function. Text in the block is not cut off.→ quay về bước ghi trên mũi tên đỏ); nét đứt = phương án / bước ngoài tính năng. Chữ trong block không bị cắt.
StepBướcWhoAiActionLàm gìSystem responseHệ thống phản hồiScreenMàn hình
B1–B3UserManageRead/DeleteS1

6. Step-by-step UI6. Giao diện từng bước

Each step: screenshot first, then a table explaining each orange callout number (HA-02, HA-03). Keep UI copy in English as on DEV. DEV shots are wireframes; missing variants are marked DHC added (v0.2)DHC added (version 0.2) in the Figure column.Mỗi bước: ảnh màn hình trước, bảng ngay dưới giải thích từng số tròn cam (HA-02, HA-03). Chữ trên giao diện để tiếng Anh như DEV hiện tại. Ảnh DEV là wireframe; biến thể chưa có ảnh ghi DHC added (v0.2)DHC bổ sung (bản 0.2) ở cột Hình.

DHC added (v0.2)DHC bổ sung (bản 0.2) — no screenshot for this screen yet.chưa có ảnh cho màn hình này.
Figure 6.1Hình 6.1 — S1: List
#ElementThành phầnDisplay / behaviorHiển thị / hành viDetail inChi tiết ởStatusTrạng thái
1Mark allBulk—Confirmed (UC-PRF-04)Đã xác nhận (UC-PRF-04)
2EmptyEmpty UI—Confirmed (FSD)Đã xác nhận (FSD)
DHC added (v0.2)DHC bổ sung (bản 0.2)

7. Use cases7. Trường hợp sử dụng (Use Case)

ItemMụcContentNội dungStatusTrạng thái
Name codeMã / tênUC-PRF-03Confirmed (UC)Đã xác nhận (UC)
ActorsTác nhânMerchant userConfirmed (FSD)Đã xác nhận (FSD)
Target sectionMục tiêuXem notificationsConfirmed (FSD)Đã xác nhận (FSD)
terms as usualĐiều kiện trướcLoginConfirmed (FSD)Đã xác nhận (FSD)
Results upon successKết quả khi thành côngListConfirmed (FSD)Đã xác nhận (FSD)
Consequences of failureKết quả khi thất bại—DHC proposalDHC đề xuất
Main StreamLuồng chínhB1–B2—
Alternative flowLuồng thay thếUC-PRF-04 markConfirmed (FSD)Đã xác nhận (FSD)
ExceptionNgoại lệ
  • —
DHC proposalDHC đề xuất
Related UCUC liên quanUC-PRF-04Confirmed (08_UC)Đã xác nhận (08_UC)

8. Business rules detail8. Quy tắc nghiệp vụ

Each rule uses keywords from §1.6 and a verification method: Test = test against AC in §11.1; Inspection = verify directly on the UI.Mỗi quy tắc dùng từ khoá theo Mục 1.6 và có cách kiểm chứng: Test = kiểm thử theo AC ở Mục 11.1; Inspection = kiểm tra trực tiếp trên giao diện.

IDMãRuleQuy tắcSeen atThấy ởErrorLỗiVerificationKiểm chứngStatusTrạng thái
RL-PRF-NOT-01 (new id)(mã mới)Empty ≠ errorS1—AC-01Confirmed (FSD)Đã xác nhận (FSD)

9. Error messages9. Thông báo lỗi

CodeMãConditionĐiều kiệnUser message (EN)Thông báoPlacementVị tríScreenMàn hìnhStatusTrạng thái
E-PRF-02 (new id)(mã mới)API failCannot loadKhông tải đượcBannerS1DHC proposalDHC đề xuất

10. Status — notifications10. Trạng thái notifications

FromTừToSangWhen / whoKhi nào / aiScreenMàn hìnhStatusTrạng thái
notifunread→readMarkS1Confirmed (FSD)Đã xác nhận (FSD)

11. Acceptance criteria & traceability11. Tiêu chí nghiệm thu & truy vết

11.1 AC

IDMãGivenGiả sửWhenKhiThenThìFigureHìnhTCTCStatusTrạng thái
AC-01Has unreadCó unreadOpenIndicatorS1TC-MP-PRF-020 (new id)(mã mới)Confirmed (FSD)Đã xác nhận (FSD)
AC-02Mark readClickUnread clearS1TC-MP-PRF-021 (new id)(mã mới)Confirmed (FSD)Đã xác nhận (FSD)
AC-03EmptyOpenEmpty stateS1TC-MP-PRF-022 (new id)(mã mới)Confirmed (FSD)Đã xác nhận (FSD)
BRBRStepBướcScreenMàn hìnhRulesQuy tắcCriteriaTiêu chíTCTC
NOTIFICATIONSB1–B3S1RL-PRF-NOT-*AC-01…03TC-MP-PRF-020…022

12. Questions for FlyPay12. Câu hỏi cần FlyPay quyết định

Each question includes a DHC recommendation (ND-07). FlyPay only needs to accept the recommendation or choose another option.Mỗi câu kèm khuyến nghị DHC (ND-07). FlyPay chỉ cần chọn: đồng ý khuyến nghị, hoặc chọn phương án khác.

IDMãQuestionCâu hỏiSectionMụcDHC proposalĐề xuất DHC
Q1Realtime push?S1Postpone; list poll/refresh.Hoãn; list poll/refresh.

13. SoW baseline & FSD handoff13. Baseline SoW & phần chuyển sang FSD

13.1 Items for SoW baseline13.1 Phần đưa vào baseline SoW

The feature enters baseline when Q1 are decided and FlyPay signs §14.Tính năng vào baseline khi Q1 đã có quyết định và FlyPay ký Mục 14.

SoW itemMục SoWContentNội dungStatusTrạng thái
AreaPhạm viNotificationsConfirmed (FSD Profile)Đã xác nhận (FSD Profile)
HandoverBàn giao
  • UI MP
  • AC
DHC proposalDHC đề xuất
AcceptanceNghiệm thuAC stagingDHC proposalDHC đề xuất
HypotheticalGiả địnhmerchant-auth profile/2FA/sessionsConfirmed (API)Đã xác nhận (API)
DependentPhụ thuộcDHC proposalDHC đề xuất
CR sau baselineEmail CRreferencetham khảo

13.2 Items moved to FSD (Round B)13.2 Phần chuyển sang FSD (vòng B)

Round A MUST NOT contain APIs, data tables, or system error codes (ND-02). The following belong in Round B FSD:Vòng A KHÔNG ĐƯỢC chứa API, bảng dữ liệu, mã lỗi hệ thống (ND-02). Các nội dung sau thuộc FSD vòng B:

  • FE Crypto Wallets tab still alive (GAP)FE Crypto Wallets tab còn sống (GAP)
  • Full MP UC/TC Profile (GAP)MP UC/TC Profile đầy đủ (GAP)

14. Feedback & approval14. Phản hồi & phê duyệt

14.1 How to respond14.1 Cách phản hồi

  • FlyPay records each Q1 decision in the 'FlyPay decision' column of §12.FlyPay ghi quyết định từng câu Q1 vào cột 'FlyPay quyết định' ở Mục 12.
  • Other feedback: Word comments anchored to the exact paragraph / figure.Góp ý khác: ghi comment trong file Word, mỗi comment gắn đúng đoạn / ảnh.
  • Reply on the same email thread used to send the document.Gửi lại theo thread email đã gửi tài liệu.
  • DHC updates the next revision, updates Version history, and marks changed items.DHC cập nhật bản kế tiếp, ghi Lịch sử phiên bản và đánh dấu mục đã sửa.

14.2 Approval14.2 Phê duyệt

RoleVai tròNameHọ tênDateNgàyDecisionKết luận
DHC — BA authorDHC — BA soạn  —
FlyPay — BusinessFlyPay — Nghiệp vụ  Approve / Approve with conditions / RejectDuyệt / Duyệt có điều kiện / Không duyệt
FlyPay — PM  Approve / Approve with conditions / RejectDuyệt / Duyệt có điều kiện / Không duyệt
FSDMP FSD Profile v1.0 · F2
UCUC-PRF-03/04 — UC-PRF (CRM trim, ref)
TCTC-MP-PRF-020…022 — CRM Profile TC (ref) · TC-MP-PRF-* on SPEC· TC-MP-PRF-* trên SPEC
CRM SPECCRM Profile Index
Related SPECSPEC liên quanL87 Profile Index (MP) · L88 Shared UI (Profile MP) · L89 General Profile (MP)
InstructionsHướng dẫnCPG-GUIDE-SPEC-A · CPG-SPEC-ACC-HW-CREATE · CPG-REVIEW-SPEC-ACC

Missing code log / out of scopeNhật ký mã thiếu / ngoài scope

The codes areCác mã được yellow highlighthighlight vàng because there is no (or external) target document. Changelog version 0.3.vì chưa có (hoặc ngoài) tài liệu đích. Changelog bản 0.3.

CodeMãCategoryLoạiMarkGhi chú
TC-MP-PRF-020uc_anchor_missingAdd anchor / stub on RTM or TC; highlight in yellow until FlyPay issues the official code.Bổ sung anchor / stub trên RTM hoặc TC; highlight vàng đến khi FlyPay cấp mã chính thức.
TC-MP-PRF-021uc_anchor_missingAdd anchor / stub on RTM or TC; highlight in yellow until FlyPay issues the official code.Bổ sung anchor / stub trên RTM hoặc TC; highlight vàng đến khi FlyPay cấp mã chính thức.
TC-MP-PRF-022uc_anchor_missingAdd anchor / stub on RTM or TC; highlight in yellow until FlyPay issues the official code.Bổ sung anchor / stub trên RTM hoặc TC; highlight vàng đến khi FlyPay cấp mã chính thức.