Skip to content

Commit 07035b3

Browse files
committed
docs: update 02 exercise
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent f680e8a commit 07035b3

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
= Solution: Credit Card Lifecycle
2-
:toc: left
3-
:icons: font
4-
:sectnums:
5-
:kroki-server-url: https://kroki.io
1+
# 🧪 Solution: Credit Card Lifecycle
62

7-
== 🖼️ State Diagram (Mermaid)
3+
## 🖼️ State Diagram (Mermaid)
84

9-
[source, mermaid]
10-
----
5+
```mermaid
116
stateDiagram-v2
127
[*] --> Created : 🆕 Issue Card
138
Created --> Active : 🟢 Activate
@@ -16,9 +11,9 @@ stateDiagram-v2
1611
Active --> Cancelled : ❌ Cancel
1712
Created --> Cancelled : 🚫 Reject
1813
Cancelled --> [*]
19-
----
14+
```
2015

21-
== 📌 Observations
16+
## 📌 Observations
2217

2318
* `Created` is the state right after issuing a card.
2419
* `Active` is the fully operational state.
@@ -27,3 +22,4 @@ stateDiagram-v2
2722
* You can **loop** between `Active` and `Suspended`, which is useful for fraud prevention, travel pauses, etc.
2823

2924
🧠 _This diagram helps developers and stakeholders clearly understand the allowed transitions in a card's lifecycle._
25+

0 commit comments

Comments
 (0)