-
Notifications
You must be signed in to change notification settings - Fork 25
/
quotingServiceSequences.puml
66 lines (48 loc) · 2.43 KB
/
quotingServiceSequences.puml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@startuml
Title Quoting Service Sequences
participant "Payer DFSP"
participant "Switch\nQuoting\nService" as Switch
participant "Payee DFSP"
autonumber
note over "Payer DFSP", Switch: Payer DFSP requests quote from Payee DFSP
"Payer DFSP" -\ Switch: POST /quotes
Switch --/ "Payer DFSP": 202 Accepted
Switch -> Switch: Validate Quote Request
alt quote is valid
Switch -> Switch: Persist Quote Data
note over Switch, "Payee DFSP": Switch forwards quote request to Payee DFSP\n<Payer based Rules>
Switch -\ "Payee DFSP": POST /quotes
"Payee DFSP" --/ Switch: 202 Accepted
"Payee DFSP" -> "Payee DFSP": Calculate Fees/Charges
alt Payee DFSP successfully calculates quote
note over "Payee DFSP", Switch: Payee DFSP responds to quote request
"Payee DFSP" -\ Switch: PUT /quotes/{ID}
Switch --/ "Payee DFSP": 202 Accepted
Switch -> Switch: Validate Quote Response
alt response is ok
Switch -> Switch: Persist Response Data
note over Switch, "Payer DFSP": Switch forwards quote response to Payer DFSP\n<Payee \ whole request Rule>
Switch -\ "Payer DFSP": PUT /quotes/{ID}
"Payer DFSP" --/ Switch: 202 Accepted
note over "Payer DFSP" #3498db: Payer DFSP continues\nwith transfer if quote\nis acceptable...
else response invalid
note over Switch, "Payee DFSP": Switch returns error to Payee DFSP
Switch -\ "Payee DFSP": PUT /quotes/{ID}/error
"Payee DFSP" --/ Switch : 202 Accepted
note over Switch, "Payee DFSP" #ec7063: Note that under this\nscenario the Payer DFSP\nmay not receive a response
end
else Payee DFSP calculation fails or rejects the request
note over "Payee DFSP", Switch: Payee DFSP returns error to Switch
"Payee DFSP" -\ Switch: POST quotes/{ID}/error
Switch --/ "Payee DFSP": 202 Accepted
Switch -> Switch: Persist error data
note over "Payer DFSP", Switch: Switch returns error to Payer DFSP
Switch -\ "Payer DFSP": POST quotes/{ID}/error
"Payer DFSP" --/ Switch: 202 Accepted
end
else quote invalid
note over "Payer DFSP", Switch: Switch returns error to Payer DFSP
Switch -\ "Payer DFSP": POST quotes/{ID}/error
"Payer DFSP" --/ Switch: 202 Accepted
end
@enduml