Skip to content

Commit bc89e1b

Browse files
Merge pull request #201 from MewsSystems/choice-booker-blocks
Mews operations/Process block extended with Choice requirements
2 parents deaaacf + 1801bf1 commit bc89e1b

File tree

3 files changed

+64
-8
lines changed

3 files changed

+64
-8
lines changed

changelog/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 12th March 2024
4+
5+
* [Mews: Process availability block](../mews-operations/availabilityBlock.md#process-availability-block):
6+
* Extended request object with `paymentCard` property.
7+
* Extended [Rate](../mews-operations/availabilityBlock.md#rate) object with `prices` property to specify occupancy-based prices.
8+
* **Deprecated** `grossAmount` property in the [Rate](../mews-operations/availabilityBlock.md#rate) object. Use `prices` instead.
9+
* **Breaking!** Endpoint URL changed to be sent via PCI proxy. **You must update the URL used for this operation**.
10+
311
## 13th December 2024
412

513
* Refresh of entire site. Documentation-only, no changes to API.
@@ -14,7 +22,7 @@
1422

1523
## 11th October 2024
1624

17-
* [Mews: Process availability block](../mews-operations/availabilityBlock.md) – Added `Rolling` to release strategy type; added `offset` property to release strategy object, and updated contract and description for `fixedDate` property (NOT a breaking change)
25+
* [Mews: Process availability block](../mews-operations/availabilityBlock.md#process-availability-block) – Added `Rolling` to release strategy type; added `offset` property to release strategy object, and updated contract and description for `fixedDate` property (NOT a breaking change)
1826
* [CHM: Process availability block](../channel-manager-operations/availabilityBlock.md) – Added `releasedStrategy` property to availability block object and deprecated `releasedDate` property – see [Deprecations](../deprecations/README.md).
1927

2028
## 10th October 2024

deprecations/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The table columns have the following meanings:
2424

2525
| Feature | Comments | Deprecated | Discontinued |
2626
| :-- | :-- | :-- | :-- |
27+
| `grossAmount` in [Rate](../mews-operations/availabilityBlock.md#rate) object in [Mews: Process availability block](../mews-operations/availabilityBlock.md#process-availability-block) | Replaced by `prices` collection of [`Price`](../channel-manager-operations/inventory.md#price) | 12 March 2025 | - |
2728
| `loyaltyCode` in [Customer](../mews-operations/reservations.md#customer) object in [Mews: Process group](../mews-operations/reservations.md#process-group) | Replaced by `loyaltyInfo` | 4 Nov 2024 | - |
2829
| `releasedDate` in [Dates](../channel-manager-operations/availabilityBlock.md#dates) object in [CHM: Availability block](../channel-manager-operations/availabilityBlock.md#availability-block) | Replaced by `fixedDate` in [`Release strategy`](../mews-operations/availabilityBlock.md#release-strategy) of [`Availability block`](../channel-manager-operations/availabilityBlock.md#availability-block) | 11 Oct 2024 | - |
2930
| `error` in [Synchronous error response](../guidelines/responses.md#synchronous-error-response) | Replaced by `errors` (plural and an `array`) | 15 May 2024 | - |

mews-operations/availabilityBlock.md

+54-7
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141

4242
### Request
4343

44-
[PlatformAddress]/api/channelManager/v1/processAvailabilityBlock
44+
* **Test environment:** sandbox.pci-proxy.com/v1/push/4ef00bba562b5622
45+
* **Production environment:** api.pci-proxy.com/v1/push/9eaa344245feed7f
4546

4647
```json
4748
{
@@ -52,7 +53,7 @@
5253
"code": "33",
5354
"confirmationNumber": "2",
5455
"status": "Created",
55-
"name": "SampleBlock",
56+
"name": "Smith wedding",
5657
"dates": {
5758
"start": "2024-12-05",
5859
"end": "2024-12-11"
@@ -64,7 +65,7 @@
6465
"originalRateCode": "FF",
6566
"spaceCategories": [
6667
{
67-
"spaceTypeCode": "D",
68+
"spaceTypeCode": "Double",
6869
"allocatedSpaces": [
6970
{
7071
"start": "2024-12-05",
@@ -81,12 +82,50 @@
8182
{
8283
"start": "2024-12-05",
8384
"end": "2024-12-07",
84-
"grossAmount": 100.00
85+
"prices": [
86+
{
87+
"grossAmount": 80.00,
88+
"netAmount": 70.50,
89+
"currencyCode": "EUR",
90+
"guestCount": 1
91+
},
92+
{
93+
"grossAmount": 100.00,
94+
"netAmount": 90.00,
95+
"currencyCode": "EUR",
96+
"guestCount": 2
97+
},
98+
{
99+
"grossAmount": 105.00,
100+
"netAmount": 91.00,
101+
"currencyCode": "EUR",
102+
"guestCount": 3
103+
}
104+
]
85105
},
86106
{
87107
"start": "2024-12-08",
88108
"end": "2024-12-11",
89-
"grossAmount": 50.00
109+
"prices": [
110+
{
111+
"grossAmount": 50.00,
112+
"netAmount": 40.50,
113+
"currencyCode": "EUR",
114+
"guestCount": 1
115+
},
116+
{
117+
"grossAmount": 60.00,
118+
"netAmount": 50.00,
119+
"currencyCode": "EUR",
120+
"guestCount": 2
121+
},
122+
{
123+
"grossAmount": 66.00,
124+
"netAmount": 55.00,
125+
"currencyCode": "EUR",
126+
"guestCount": 3
127+
}
128+
]
90129
}
91130
]
92131
}
@@ -102,6 +141,13 @@
102141
"loyaltyCode": null,
103142
"address": null
104143
},
144+
"paymentCard": {
145+
"cvv": "666",
146+
"expireDate": "1222",
147+
"holderName": "John Smith",
148+
"number": "4111111111111111",
149+
"type": 1
150+
},
105151
"company": null,
106152
"notes": "This is a note.",
107153
"pickupType": "AllInOneGroup"
@@ -129,6 +175,7 @@
129175
| `originalRateCode` | `string` | required | Original rated code of the availability block. |
130176
| `spaceCategories` | [`Space category allocation`](#space-category-allocation) collection | required | Allocated categories of the availability block. |
131177
| `booker` | [`Customer`](./reservations.md#customer) object | required | The main booker. This does not mean that the person has arrived at the property. |
178+
| `paymentCard` | [`Payment Card`](./reservations.md#payment-card) object | optional | Represents the payment card of the [`Customer`](./reservations.md#customer) . |
132179
| `company` | [`Company`](./reservations.md#company) object | optional | The company associated with the availability block. |
133180
| `notes` | `string` | optional | Notes related to the availability block. |
134181
| `pickupType`| [`PickupType`](#pickupType) object | required | Specifies how new reservations in block should be picked up. |
@@ -169,8 +216,8 @@
169216
| :-- | :-- | :-- | :-- |
170217
| `start` | `string` | required | Start date in format `"yyyy-MM-dd"` \(e.g. `"2024-12-05"`\). |
171218
| `end` | `string` | required | End date \(excluded\) in format `"yyyy-MM-dd"` \(e.g., `"2024-12-31"`\). |
172-
| `grossAmount` | `string` | required | Price with taxes included. |
173-
219+
| `prices` | [`Price`](../channel-manager-operations/inventory.md#price) collection | required | Collection of prices for each guest count. |
220+
| ~~`grossAmount`~~ | ~~`string`~~ | ~~required~~ | ~~Price with taxes included.~~ **[Deprecated!](../deprecations/README.md)** Use `prices` instead. |
174221

175222
#### Status
176223

0 commit comments

Comments
 (0)