CPG-CRM FSD Setting Proposal

FSD — Admin CRM

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

Doc IDCPG-FSD-CPG-CRM_FSD_Setting_Proposal
VersionPhiên bản1.0
StatusTrạng tháiDraft
OwnerCPG BA / Architecture
AudienceĐối tượngFrontend, Backend, FlyPay Support, QA, Product
ClassificationPhân loạiInternal
Effective dateNgày hiệu lực01/12/2026
Related docs Admin CRM Index · BR/NFR Catalog

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

Version Date Author ChangesThay đổi
1.0 01/12/2026 Khoa Trinh Version 1.0

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

D. ContentD. Nội dung

1. Module Scope

The Proposals Setting Module manages governance-controlled configuration changes across the system and merchant level, especially for on-chain deployed services.

It enables:

  • Controlled changes to fees, VAT, service status, contracts
  • Multi-signature approval workflows
  • On-chain execution gating
  • Full auditability & compliance traceability

In-Scope

  • System Configuration Proposals
  • Merchant Configuration Proposals
  • Multi-signature approvals
  • Execution (on-chain / off-chain)
  • Emergency actions (pause / unpause)
  • Ticket linkage
  • Proposal history & audit

2. User Roles

Role

Description

Super Admin

Full governance, override, emergency execution

Technical Admin

Contract execution, technical validation

Merchant Support

Submit merchant proposals

Compliance Officer

Regulatory validation (pause)

Finance Admin

Fee / VAT governance

3. Functional Requirements

3.1 Features

3.1.1 Proposal Types

Type

Scope

Description

Change Transaction Fee

Service / Merchant

% fee update

Change Fixed Fee

Service / Merchant

Flat fee update

Change VAT

Service / Merchant

VAT rate update

Pause Service

Merchant / System

Emergency stop

Unpause Service

Merchant / System

Resume operations

Change Beneficiary

Merchant

Wallet update

Add Multi-Sig Owner

System

Contract governance

Remove Multi-Sig Owner

System

Contract governance

3.1.2 Proposal Creation

  • User selects:
    • Proposal Type
    • Service
    • Tier
    • Blockchain
  • System auto-loads:
    • Contract Address
    • Current Value
  • User inputs:
    • Proposed Value
    • Description
    • Optional linked Ticket
  • Required approvals auto-calculated

3.1.3 Multi-Signature Approval Workflow

Rule

Behavior

Approval Roles

Defined per proposal type

Parallel Voting

Yes

Reject Short-Circuit

Yes

Required Votes

Configurable (e.g. 2/3, 3/3)

Vote Immutability

Votes cannot be changed

3.1.4 Proposal Status Lifecycle

Draft -> Pending -> Approved -> Executed

3.1.5 Execution Rules

Scenario

Execution

Approved + On-chain

Manual execute

Approved + Emergency

Auto-execute

Not Fully Approved

Blocked

Contract mismatch

Blocked

3.1.6 Service Activation / Deactivation

See CPG-CRM/FSD_Setting_Service, 3.1.6 Service Activation / Deactivation

3.1.7 Audit & Compliance

  • Immutable proposal logs
  • Full approval trail
  • Execution metadata stored
  • Ticket linkage for investigations

3.2 Use Cases

Detailed use-case catalog for this module is maintained under 08_UC:Catalog use case chi tiết của module này được quản lý tại 08_UC:

4. User Interface

4.1 Proposal List Screen

  • Tabs:
    • System Configures

    • Merchant Configures

  • Filters:
    • Status
    • Blockchain
    • Service
    • Proposal Type
  • Actions:
    • View Details
    • Approve / Reject
    • Execute (if approved)

4.2 Create Proposal Modal

System Configure Proposal

Fields:

  • Proposal Title
  • Action Type
  • Service
  • Tier
  • Blockchain
  • Contract Address (read-only)
  • Current Value (read-only)
  • Proposed Value
  • Description

Merchant Configure Proposal

Fields:

  • Proposal Title
  • Action Type
  • Service
  • Tier
  • Blockchain
  • Contract Address (read-only)
  • Current Value (read-only)
  • Proposed Value
  • Description
  • Linked Ticket (optional)

4.3 Proposal System Configure Detail Screen

Sections:

  • Proposal Metadata
  • Current vs Proposed Value
  • Approval Progress
  • Vote Breakdown
  • Execution Controls

4.4 Proposal Merchant Configure Detail Screen

  • Proposal Metadata
  • Current vs Proposed Value
  • Approval Progress
  • Vote Breakdown
  • Merchant Details
  • Execution Controls

5. Data Requirements

5.1 Data Dictionary

proposals

Field

Type

Description

id

UUID

Proposal identifier

proposal_code

String

Human-readable ID

title

String

Proposal title

scope

Enum

SYSTEM / MERCHANT

action_type

Enum

Change Fee, Pause, etc

service_id

UUID

Related service

tier_id

UUID

Service tier

merchant_id

UUID

Nullable

blockchain

Enum

ETH, BSC, TRON

contract_address

String

Target contract

current_value

JSON

Snapshot

proposed_value

JSON

New config

status

Enum

DRAFT, PENDING, APPROVED, EXECUTED

required_approvals

Int

Votes needed

created_by

UUID

User

created_at

Timestamp

Creation time

executed_at

Timestamp

Execution time

proposal_approvals

Field

Type

Description

id

UUID

Approval ID

proposal_id

UUID

FK

role

Enum

TECH_ADMIN, FINANCE

approver_id

UUID

User

decision

Enum

APPROVED, REJECTED

comment

String

Optional

decided_at

Timestamp

Decision time

proposal_execution_logs

Field

Type

Description

id

UUID

Log ID

proposal_id

UUID

FK

executed_by

UUID

Executor

execution_type

Enum

MANUAL, AUTO

tx_hash

String

Blockchain TX

result

Enum

SUCCESS, FAILED

error_message

String

Nullable

executed_at

Timestamp

Time

proposal_tickets

Field

Type

Description

id

UUID

Link ID

proposal_id

UUID

FK

ticket_id

UUID

Support ticket

linked_by

UUID

User

linked_at

Timestamp

Time

audit_logs_proposals

See CPG-CRM/FSD_Setting_Service, 5.1 Data Dictionary

5.2 Data Models

Entity Relationship

  • proposals (1) - (N) proposal_approvals
  • proposals (1) - (N) proposal_execution_logs
  • proposals (N) - (1) tickets
  • proposals (N) - (1) services
  • proposals (N) - (1) merchants

Enums

ProposalStatus

  • DRAFT
  • PENDING
  • APPROVED
  • REJECTED
  • EXECUTED

ActionType

  • CHANGE_TRANSACTION_FEE
  • CHANGE_FIXED_FEE
  • CHANGE_VAT
  • PAUSE_SERVICE
  • UNPAUSE_SERVICE
  • CHANGE_BENEFICIARY
  • ADD_MULTISIG_OWNER
  • REMOVE_MULTISIG_OWNER

ApprovalDecision

  • APPROVED
  • REJECTED

6. API Routes

6.1 Proposal Management

Method

Route

Purpose

Notes

GET

/api/proposals

List proposals

Filters supported

GET

/api/proposals/{id}

Proposal detail

Full history

POST

/api/proposals

Create proposal

Validation enforced

DELETE

/api/proposals/{id}

Cancel draft

Draft only

6.2 Approvals & Execution

On-chain events detected

E. ReferencesE. Tham chiếu