Documentation développeur Caisses Passage en synchrone Panier - Cancel
November 26, 2025 at 2:48 AMPanier - Cancel
Annule un panier existant au statut ouvert, et renvoie un nouveau panier vide.
Async
sequenceDiagram
participant U as UI
participant A as API
participant K as Kafka
participant J as Job
participant N as KafkaNotif
participant O as Odoo
activate U
U->>A: cancel
activate A
A->>K: cancel
A->>U: retour API (isSync=false)
K->>J: cancel
activate J
J->>J: save BDD
J->>K: ItemNotif (cancel)
J->>K: Data (cancel)
J->>K: ToCentral (cancel)
J->>J: new basket + save BDD
J->>K: ItemNotif (newBasket)
J->>K: Data (newBasket)
J->>K: DoneNotif (cancel+new basket)
deactivate J
K->>N: ItemNotif*2,DoneNotif
N->>U: ItemNotif*2,DoneNotif
deactivate U
Sync
sequenceDiagram
participant U as UI
participant A as API
participant K as Kafka
participant J as Job
participant N as KafkaNotif
participant O as Odoo
activate U
U->>A: cancel
activate A
A->>A: save BDD
A->>K: ItemNotif (cancel)
A->>K: Data (cancel)
A->>K: ToCentral (cancel)
A->>A: new basket + save BDD
A->>K: ItemNotif (newBasket)
A->>K: Data (newBasket)
A->>K: DoneNotif (cancel+new basket)
A->>U: retour API (isSync=true + new basket)
deactivate A
deactivate U
K->>N: ItemNotif*2,DoneNotif
N->>U: ItemNotif*2,DoneNotif