Skip to content

Commit 37285c7

Browse files
add booker to the reservation
1 parent bc89e1b commit 37285c7

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

changelog/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 17th March 2025
4+
* [Reservation](../mews-operations/reservations.md) extended with `booker` property (NOT a breaking change).
5+
36
## 12th March 2024
47

58
* [Mews: Process availability block](../mews-operations/availabilityBlock.md#process-availability-block):

mews-operations/reservations.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The example shows a valid group definition with two space reservations plus canc
3131
The first `reservation` definition shows all details, the second `reservation` definition shows the minimal required details for creation / modification of a `reservation`.
3232
The third `reservation` definition shows the partial cancellation - canceling the third space reservation.
3333

34-
```javascript
34+
```json
3535
{
3636
"clientToken": "[Channel manager client token]",
3737
"connectionToken": "[Token of a concrete connection]",
@@ -69,6 +69,31 @@ The third `reservation` definition shows the partial cancellation - canceling th
6969
"tierCode": "Gold"
7070
}
7171
},
72+
"booker": {
73+
"address": {
74+
"addressLine1": "line 1",
75+
"addressLine2": "line 2",
76+
"city": "city2",
77+
"country": "US",
78+
"latitude": 40,
79+
"longitude": 30,
80+
"region": "region2",
81+
"zip": "123 45"
82+
},
83+
"email": "[email protected]",
84+
"firstName": "adam",
85+
"lastName": "Arnold",
86+
"title": "Mister",
87+
"nationalityCode": "US",
88+
"languageCode": "en-US",
89+
"telephone": "1-5526-88918",
90+
"loyaltyCode": "PG60982345",
91+
"loyaltyInfo": {
92+
"membershipId": "PG60972345",
93+
"programCode": "BWR",
94+
"tierCode": "Gold"
95+
}
96+
},
7297
"sources": [
7398
{
7499
"code": 1,
@@ -249,6 +274,7 @@ The third `reservation` definition shows the partial cancellation - canceling th
249274
| `currencyCode` | `string` | required \(exc. Cancellation\) | 3 letter code of currency of all prices within the booking. |
250275
| `totalAmount` | [`Amount`](#amount) object | required \(exc. Cancellation\) | Total amount of the whole booking. |
251276
| `paymentType` | `int` | required \(exc. Cancellation\) | [Payment Type](configuration.md#payment-types) code - determines whether the booking is prepaid or not. |
277+
| `booker` | [`Customer`](#customer) object | optional | Represents the main booker. Does not necessarily mean that the person arrives to the property. |
252278
| `customer` | [`Customer`](#customer) object | required \(exc. Cancellation\) | Represents the main booker. Does not necessarily mean that the person arrives to the property. |
253279
| `paymentCard` | [`Payment Card`](#payment-card) object | optional | Represents the payment card of the [`Customer`](#customer) to cover for the booking. |
254280
| ~~`channel`~~ | ~~[`Channel`](#channel) object~~ | ~~optional~~ | ~~Represents the channel \(i.e. Travel Agency\).~~ **[Deprecated!](../deprecations/README.md)** |
@@ -484,7 +510,7 @@ Confirmation will be sent asynchronously using the [Confirm booking](../channel-
484510

485511
`[PlatformAddress]/api/channelManager/v1/processGroupConfirmation`
486512

487-
```javascript
513+
```json
488514
{
489515
"clientToken": "[Channel manager client token]",
490516
"connectionToken": "[Token of a concrete connection]",

0 commit comments

Comments
 (0)