-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathklassendiagramm.puml
More file actions
43 lines (36 loc) · 798 Bytes
/
Copy pathklassendiagramm.puml
File metadata and controls
43 lines (36 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@startuml
title Open Banking Payment - Klassendiagramm
class User {
+userID: String
+name: String
+email: String
+accounts: List<Account>
}
class Account {
+accountID: String
+iban: String
+bank: String
+balance: Float
+transactions: List<Transaction>
}
class Transaction {
+transactionID: String
+amount: Float
+recipient: String
+status: String
+executePayment(): Boolean
}
class PaymentService {
+initiatePayment(amount: Float, recipient: String)
+getAccountBalance(): Float
}
class BankAPI {
+authenticateUser(): String
+fetchAccounts(): List<Account>
+sendPayment(amount: Float, recipient: String): String
}
User "1" -- "n" Account
Account "1" -- "n" Transaction
PaymentService ..> BankAPI : nutzt
Transaction ..> PaymentService : ruft auf
@enduml