bitgin

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: MIT

README

Flowchart

flowchart TB

classDef Type fill: #4287f5
classDef SameLogic fill: #777

Member([Member]):::Type --> Prodcut([Product]):::Type
Prodcut --> Promotion([Promotion]):::Type

%% A
Promotion --> |"A (None)"| ResultA(Price x 1)

%% B
Promotion --> |"B (Membership)"| MembershipLevelB([MembershipLevel]):::Type
MembershipLevelB --> |VIP 0| ResultB1(Price x 1)
MembershipLevelB --> |VIP 1| ResultB2(Price x 0.95)
MembershipLevelB --> |VIP 2| ResultB3(Price x 0.9)
MembershipLevelB --> |VIP 3| ResultB4(Price x 0.85)

%% C
Promotion --> |"C (Point)"| ResultC1(Price - Points x Exchange rate):::SameLogic

%% D (Extend from C)
subgraph ExtendFromC [ ]
	direction TB
	MembershipLevelC([MembershipLevel]):::Type --> |VIP > 0 && Points >= 100| ResultC2(Price after deducting points x 0.9)
end
ResultC1 -.-> |New promotion| ExtendFromC

%% Link stlye
linkStyle 10 stroke:#ff3,color:yellow;

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL