Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Feb 10, 2025
1 parent 6b59eaa commit bfea303
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc/CONTRACT_NEGOTIATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export QUOTE_ID=$(curl -X 'POST' http://tm-forum-api.127.0.0.1.nip.io:8080/tmf-a
}
],
\"version\": \"1\",
\"state\": "pending",
\"state\": "inProgress",
\"quoteItem\": [
{
\"id\": \"item-id\",
Expand Down Expand Up @@ -139,12 +139,12 @@ export QUOTE_ID=$(curl -X 'POST' http://tm-forum-api.127.0.0.1.nip.io:8080/tmf-a

With that, the negotiation is in state requested and needs to be processed by the provider:

Provider can reject the Quote and go to state TERMINATED:
Provider can cancel the Quote and go to state TERMINATED:
```shell
curl -X 'PATCH' http://tm-forum-api.127.0.0.1.nip.io:8080/tmf-api/quoteManagement/v4/quote/${QUOTE_ID} \
-H 'Content-Type: application/json;charset=utf-8' \
-d "{
"state": "cannce"
"state": "cancelled"
}"
```

Expand All @@ -157,7 +157,7 @@ Provider can approve it and go to state OFFERED:
}"
```

Provider can approve it and go to state OFFERED:(reject original Quote-Item) and go to OFFERED:
Provider can reject the original QuoteItem, add a new one and go to OFFERED:
```shell
curl -X 'PATCH' http://tm-forum-api.127.0.0.1.nip.io:8080/tmf-api/quoteManagement/v4/quote/${QUOTE_ID} \
-H 'Content-Type: application/json;charset=utf-8' \
Expand Down Expand Up @@ -227,7 +227,7 @@ curl -X 'PATCH' http://tm-forum-api.127.0.0.1.nip.io:8080/tmf-api/quoteManagemen

### IDSA OFFERED - Quote in state ```inProgress```

Within state offered, the consumer can either:
Within state OFFERED, the consumer can either:

Accept the offer and go to ACCEPTED:

Expand Down Expand Up @@ -327,12 +327,12 @@ export QUOTE_ID=$(curl -X 'POST' http://tm-forum-api.127.0.0.1.nip.io:8080/tmf-a
```


Or cancell the Quote and go to state TERMINATED:
Or cancel the Quote and go to state TERMINATED:
```shell
curl -X 'PATCH' http://tm-forum-api.127.0.0.1.nip.io:8080/tmf-api/quoteManagement/v4/quote/${QUOTE_ID} \
-H 'Content-Type: application/json;charset=utf-8' \
-d "{
"state": "cancell"
"state": "cancelled"
}"
```

Expand All @@ -342,7 +342,7 @@ When the consumer did accept the offer from the provider, the provider can:

Approve the offer and go to state AGREED:

-> Answer 200 ?
-> verify the request and answer 200

Or cancel the Quote and go to state TERMINATED:
```shell
Expand Down
Binary file modified doc/img/idsa-tmf-state-machine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bfea303

Please sign in to comment.