set up unfonctionnal rework, TODO -> pricing separation
This commit is contained in:
@@ -195,7 +195,7 @@ ExploitPricingProfile ^-- ComputeResourcePricingProfile
|
||||
ExploitPricingProfile ^-- StorageResourcePricingProfile
|
||||
interface PricingProfileITF {
|
||||
GetPrice(quantity float64, val float64, start date, end date, request) float64
|
||||
IsBuying() bool
|
||||
IsPurchased() bool
|
||||
}
|
||||
class AccessPricingProfile {
|
||||
ID string
|
||||
|
||||
29
doc/paymentflowV1.puml
Normal file
29
doc/paymentflowV1.puml
Normal file
@@ -0,0 +1,29 @@
|
||||
@startuml
|
||||
user -> client : schedule
|
||||
client -> OrderAPIP1 : check book
|
||||
OrderAPIP1 -> datacenterAPIP2 : check book
|
||||
datacenterAPIP2 -> OrderAPIP1 : send ok
|
||||
OrderAPIP1 -> datacenterAPIP2 : generate draft book
|
||||
OrderAPIP1 -> client : send ok
|
||||
client -> OrderAPIP1 : send scheduler
|
||||
OrderAPIP1 -> OrderAPIP1 : draft executions
|
||||
OrderAPIP1 -> OrderAPIP1 : draft order
|
||||
OrderAPIP1 -> client : send drafted order
|
||||
client -> user :
|
||||
user -> client : select pricing profile
|
||||
client -> OrderAPIP1 : update order
|
||||
OrderAPIP1 -> datacenterAPIP2 : check book
|
||||
datacenterAPIP2 -> OrderAPIP1 : send ok
|
||||
OrderAPIP1 -> datacenterAPIP2 : generate draft book
|
||||
OrderAPIP1 -> client : send order
|
||||
user -> client : order
|
||||
client -> OrderAPIP1 : order
|
||||
OrderAPIP1 -> PaymentAPIBCP1 : send payment
|
||||
PaymentAPIBCP1 -> OrderAPIP1 : send ok
|
||||
OrderAPIP1 -> datacenterAPIP2 : undraft booking
|
||||
OrderAPIP1 -> OrderAPIP1 : undraft execution
|
||||
OrderAPIP1 -> OrderAPIP1 : undraft order
|
||||
OrderAPIP1 -> client : send ok
|
||||
client -> client : redirect
|
||||
@enduml
|
||||
|
||||
Reference in New Issue
Block a user