Skip to content

Commit

Permalink
Added reference to ISO-4217 for all currency codes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAdamsMews committed Nov 6, 2024
1 parent 1312046 commit 8ff955e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion channel-manager-operations/availabilityBlock.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
| :-- | :-- | :-- | :-- |
| `start` | `string` | required | Start date in format `"yyyy-MM-dd"` \(e.g. `"2021-12-24"`\). |
| `end` | `string` | required | End date \(excluded\) in format `"yyyy-MM-dd"` \(e.g., `"2021-12-31"`\). |
| `currencyCode` | `string` | required | Three letter code of the currency. |
| `currencyCode` | `string` | required | [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) three-letter currency code of the rate prices. |
| `prices` | [`Price`](../channel-manager-operations/inventory.md#price) collection | required | Collection of prices for each person count, for the specified rate plan - space type - date combination. |

> **Dates**: Interval for 1 night (e.g. is represented 2021-12-24/25 is represented as `"start": "2021-12-24", "end": "2021-12-24"`).
Expand Down
4 changes: 2 additions & 2 deletions channel-manager-operations/inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Mews always pushes both `gross` and `net` prices, the channel manager chooses wh
| :-- | :-- | :-- | :-- |
| `grossAmount` | `decimal` | required | Price with taxes included. |
| `netAmount` | `decimal` | required | Price with taxes excluded. |
| `currencyCode` | `string` | required | The three-letter code of the rate price currency. |
| `currencyCode` | `string` | required | [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) three-letter currency code of the price. |
| `guestCount` | `int` | required | The person count for the rate price. |

#### Age price
Expand All @@ -137,7 +137,7 @@ Mews always pushes both `gross` and `net` prices, the channel manager chooses wh
| ~~`amount`~~ | ~~`decimal`~~ | ~~required~~ | ~~The price amount.~~ **[Deprecated!](../deprecations/README.md)** |
| `grossAmount` | `decimal` | required | Price with taxes included. |
| `netAmount` | `decimal` | required | Price with taxes excluded. |
| `currencyCode` | `string` | required | The three-letter code of the rate price currency. |
| `currencyCode` | `string` | required | [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) three-letter currency code of the age price. |
| `guestCount` | `int` | required | The person count for the rate price. |
| `ageCategoryCode` | `string` | required | Mapping code of the age category. |

Expand Down
2 changes: 1 addition & 1 deletion channel-manager-operations/reservations.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ The operation supports creations, modifications, and partial or complete cancell
| `channelManagerId` | `string` | optional | Unique identification of the booking in the channel manager. Sent always once provided by channel manager. |
| `availabilityBlockCode` | `string` | optional | Unique identification of the availability block in the channel manager. |
| `availabilityBlockConfirmationNumber` | `string` | optional | Unique identification of the availability block in the Mews. |
| `currencyCode` | `string` | required \(exc. Cancellation\) | 3 letter code of currency of all prices within the booking. |
| `currencyCode` | `string` | required \(exc. Cancellation\) | [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) three-letter currency code of all prices within the booking. |
| `totalAmount` | [`Amount`](../mews-operations/reservations.md#amount) object | required \(exc. Cancellation\) | Total amount of the whole booking. |
| `customer` | [`Customer`](../mews-operations/reservations.md#customer) object | required \(exc. Cancellation\) | Represents the main booker. Does not necessarily mean that the person arrives to the property. |
| `sources` | [`Source`](../mews-operations/reservations.md#source) collection | optional | Represents the sources for the booking. |
Expand Down
6 changes: 3 additions & 3 deletions mews-operations/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ This is an example of a _successful_ response. In case an error occurred, the re
| :-- | :-- | :-- | :-- |
| `code` | `string` | required | Mapping code of the rate plan. |
| `name` | `string` | required | Name of the rate plan. |
| `currencyCode` | `string` | required | Three-letter currency code of the rate plan price. |
| `currencyCode` | `string` | required | [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) three-letter currency code of the rate plan price. |
| `description` | `string` | optional | Description of the rate plan. |
| ~~`paymentType`~~ | ~~`int`~~ | ~~required~~ | ~~[`Payment type`](#payment-types) code.~~ [**Deprecated!**](../deprecations/README.md)|
| `cancellationPolicies` | [`Cancellation Policy`](#cancellation-policy) collection | optional | Cancellation policies of the rate plan. |
Expand Down Expand Up @@ -469,7 +469,7 @@ This is an example of a _successful_ response. In case an error occurred, the re
| Property | Type | Contract | Description |
| :-- | :-- | :-- | :-- |
| `amount` | `decimal` | required | Defines the amount of the absolute fee. Sent in `gross`. |
| `currencyCode` | `string` | required | 3 letter currency code of the absolute fee. |
| `currencyCode` | `string` | required | [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) three-letter currency code of the absolute fee. |

#### Relative Cancellation Penalty

Expand Down Expand Up @@ -547,7 +547,7 @@ This is an example of a _successful_ response. In case an error occurred, the re
| `name` | `string` | required | Name of the product. |
| `description` | `string` | optional | Description of the product. |
| `unitAmount` | [`Amount`](reservations.md#amount) object | required | A product cost. |
| `currencyCode` | `string` | required | 3 letter currency code of the product. |
| `currencyCode` | `string` | required | [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) three-letter currency code of the product. |
| `netValue` | `decimal` | required | Tax exclusive product cost. |
| `grossValue` | `decimal` | required | Tax inclusive product cost. |
| `cancellationPolicies` | [`Cancellation Policy`](#cancellation-policy) collection | optional | Cancellation policies of the rate plan. |
Expand Down

0 comments on commit 8ff955e

Please sign in to comment.