Skip to content

Commit 5ba2ccf

Browse files
[skip ci] Updates
1 parent f473550 commit 5ba2ccf

File tree

7 files changed

+55
-10
lines changed

7 files changed

+55
-10
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@startuml hotel-modify
2+
3+
participant "User" as user
4+
5+
participant ConcurHotel as cHotel #Lightcyan
6+
participant "CHSSupplier" as supply #LightBlue
7+
8+
activate cHotel
9+
loop until booking status is `RESERVED` or transaction timeout
10+
cHotel->supply++: Read reservation
11+
supply --> cHotel--: Return reservation
12+
end
13+
cHotel -> cHotel: Validate that the returned dates match the\nnew dates
14+
alt Dates do not match
15+
cHotel -->user: Notify user that hotel booking\nwas not modified
16+
else
17+
cHotel -->user: Notify user that hotel booking\nhas been modified
18+
end
19+
deactivate cHotel
20+
21+
22+
@enduml

api-reference/direct-connects/hotel-service-4/images/diagrams/hotel-modify.puml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,29 @@ participant "User" as user
55
participant ConcurHotel as cHotel #Lightcyan
66
participant "CHSSupplier" as supply #LightBlue
77

8-
user -> cHotel++: Check if hotel booking can be modified
9-
cHotel -> cHotel: Determine if hotel booking supplier supports modify\n and booking has `isModifiable` true
8+
activate cHotel
9+
user -> cHotel: Check if hotel booking can be modified
10+
cHotel -> cHotel: Determine if hotel booking supplier supports modify\nand booking has `isModifiable` true
1011
alt modify not supported
11-
cHotel --> user--: Notify user that hotel cannot be modified
12+
cHotel --> user: Notify user that hotel cannot be modified
1213
end
14+
cHotel --> user: Present modify option
15+
deactivate cHotel
1316

14-
cHotel --> user--: Present modify option
1517
user -> cHotel++: Provide new dates for hotel booking
16-
cHotel -> supply++: Reshop (rate-details) for new dates for booked hotel and rate plan
18+
cHotel -> supply++: Reshop (rate-details) for new dates\nfor booked hotel and rate plan
1719
supply --> cHotel--: Return new rate details
1820
cHotel --> user--: Present new rate details
21+
22+
1923
user -> cHotel++: Review and confirm new rate details
24+
2025
cHotel -> supply++: Modify hotel booking with new rate plan id and dates
26+
note left of cHotel: If there is a timeout or\na status PENDING_CONFIRMATION\na recovery process will be started.
2127
supply --> cHotel--: Return confirmation of modified hotel booking
22-
cHotel --> user--: Notify user that hotel booking has been modified
28+
29+
cHotel -->user: Notify user that hotel booking\nhas been modified
30+
deactivate cHotel
31+
2332

2433
@enduml
8.2 KB
Loading
27.4 KB
Loading

api-reference/direct-connects/hotel-service-4/v4.endpoints.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ <h3 id="response-6">Response</h3>
27942794

27952795
<h2 id="modify-">Modify <a id="opIdmodify"></a></h2>
27962796

2797-
<p>Modify a specific reservation.</p>
2797+
<p>Modify a specific reservation. For more details about the modification process, please read <a href="./v4.hotel-modify-booking.html">Hotel modify support for CHS</a></p>
27982798

27992799
<h3 id="uri-7">URI</h3>
28002800

api-reference/direct-connects/hotel-service-4/v4.hotel-modify-booking.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,14 +1310,28 @@ <h2 id="workflow">Workflow</h2>
13101310

13111311
<p>Below is the sequence diagram for the flow:</p>
13121312

1313-
<p><img src="images/diagrams/hotel_modify.png" alt="" /></p>
1313+
<p><img src="images/diagrams/hotel_modify.png" alt="Modify process" /></p>
1314+
1315+
<h2 id="modify-recovery-process">Modify Recovery Process</h2>
1316+
1317+
<p>In the case of a request timed out, SAP Concur will start a recovery process, in wich SAP Concur will try to confirm the status of the booking.
1318+
Also if the supplier identifies that the modification cannot be confirmed in a timely manner, it can return a <code class="language-plaintext highlighter-rouge">PENDING_CONFIRMATION</code> status in the response to the <a href="./v4.endpoints.html#modify-">modify</a> request. In this case SAP Concur will also start a recovery process to confirm the status of the booking.</p>
1319+
1320+
<p>In the process of recovery, SAP Concur will invoke the <a href="./v4.endpoints.html#read-">read</a> endpoint to get the state of the modified booking. If the returned booking have a <code class="language-plaintext highlighter-rouge">RESERVED</code> status and have the new dates requested by the user, then the booking is marked as confirmed. If the returned booking have a <code class="language-plaintext highlighter-rouge">PENDING_CONFIRMATION</code> status, SAP Concur will continue to invoke the <a href="./v4.endpoints.html#read-">read</a> endpoint until the endpoint return a booking with status <code class="language-plaintext highlighter-rouge">RESERVED</code> for a maximum of 1 day.
1321+
If after 1 day the booking is still in <code class="language-plaintext highlighter-rouge">PENDING_CONFIRMATION</code> status, then SAP Concur will keep the booking status as Pending. When the user tries to view the booking, SAP Concur will call again the <a href="./v4.endpoints.html#read-">read</a> endpoint to sink the status of the booking with the supplier.
1322+
If the returned booking have status of <code class="language-plaintext highlighter-rouge">RESERVED</code> but the dates of check-in and check-out are not the same as the dates requested by the user, then SAP Concur will consider the modification as failed and will notify the user about it.</p>
1323+
1324+
<p>Below is the sequence diagram for the recovery flow:</p>
1325+
1326+
<p><img src="images/diagrams/hotel_modify_recover.png" alt="Modify Recovery Process" /></p>
13141327

13151328
<h2 id="requirements-for-chs-supplier">Requirements for CHS Supplier</h2>
13161329

13171330
<ul>
13181331
<li>Supplier is expected to set <a href="./v4.schemas.html#-hotelbooking"><code class="language-plaintext highlighter-rouge">isModifiable</code></a> flag to <code class="language-plaintext highlighter-rouge">true</code> in the booking response if they support <code class="language-plaintext highlighter-rouge">modify</code> feature for a given booking.</li>
13191332
<li>Supplier will need to support <code class="language-plaintext highlighter-rouge">reshop</code> request via <a href="./v4.endpoints.html#rate-details-"><code class="language-plaintext highlighter-rouge">rate-details</code></a> providing detailed pricing for new dates on already booked hotel and rate-plan.</li>
13201333
<li>Supplier will need to support <code class="language-plaintext highlighter-rouge">modify</code> request via <a href="./v4.endpoints.html#modify-"><code class="language-plaintext highlighter-rouge">modify</code></a> endpoint to update the booking with new dates.</li>
1334+
<li>Supplier is expected to set <code class="language-plaintext highlighter-rouge">status</code> to <code class="language-plaintext highlighter-rouge">PENDING_CONFIRMATION</code> in the response of <a href="./v4.endpoints.html#read-">read</a> endpoint if the modification is not confirmed.</li>
13211335
</ul>
13221336

13231337

feed.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<description>Concur docs provides comprehensive information on working with the Concur platform</description>
66
<link>https://preview.developer.concur.com/</link>
77
<atom:link href="https://preview.developer.concur.com/feed.xml" rel="self" type="application/rss+xml" />
8-
<pubDate>Fri, 22 Aug 2025 18:11:00 +0000</pubDate>
9-
<lastBuildDate>Fri, 22 Aug 2025 18:11:00 +0000</lastBuildDate>
8+
<pubDate>Tue, 26 Aug 2025 12:27:06 +0000</pubDate>
9+
<lastBuildDate>Tue, 26 Aug 2025 12:27:06 +0000</lastBuildDate>
1010
<generator>Jekyll v4.1.1</generator>
1111

1212
</channel>

0 commit comments

Comments
 (0)