Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Type" missing in rates/getAll documentation.md #470

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 21st July 2023

* Added missing properties `Type` and `Description` to the response for [Get all rates](../operations/rates.md#get-all-rates) (change to documentation only)

## 29th June 2023

* Documentation-only changes to add clarity around endpoint versioning. The deprecated version of `Get all reservations` is now called [Get all reservations \(ver 2017-04-12\)](../operations/reservations.md#get-all-reservations-ver-2017-04-12) and the new version is called [Get all reservations \(ver 2023-06-06\)](../operations/reservations.md#get-all-reservations-ver-2023-06-06). All relevant links have been updated.
Expand Down
8 changes: 8 additions & 0 deletions operations/rates.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ Note this operation uses [Pagination](../guidelines/pagination.md) and supports
| `IsActive` | boolean | required | Whether the rate is still active. |
| `IsEnabled` | boolean | required | Whether the rate is currently available to customers. |
| `IsPublic` | boolean | required | Whether the rate is publicly available. |
| `Type` | string [Rate type](#rate-type) | required | Type of the rate (Public, Private, etc.) |
| `Name` | string | required | Name of the rate. |
MikeAdamsMews marked this conversation as resolved.
Show resolved Hide resolved
| `ShortName` | string | required | Short name of the rate. |
| `ExternalNames` | [Localized text](_objects.md#localized-text) | required | All translations of the external name of the rate. |
| `Description` | [Localized text](_objects.md#localized-text) | required | All translations of the description of the rate. |
| `ExternalIdentifier` | string | optional, max 255 characters | Identifier of the rate from external system. |

#### Rate group
Expand All @@ -138,6 +140,12 @@ Note this operation uses [Pagination](../guidelines/pagination.md) and supports
| `RateId` | string | required | Unique identifier of the [Rate](#rate). |
| `AvailabilityBlockId` | string | required | Unique identifier of the [Availability Block](availabilityblocks.md#availability-block). |

#### Rate type

* `Public`
* `Private`
* `AvailabilityBlock`

## Get rate pricing

Returns prices for a given rate for a specified time interval. Prices will be returned for all service [time units](services.md#time-unit) that the specified time interval intersects. So, for example, an interval `1st Jan 23:00 UTC - 1st Jan 23:00 UTC` will result in one price for `2nd Jan`, while Interval `1st Jan 23:00 UTC - 2nd Jan 23:00 UTC` will result in two prices for `2nd Jan` and `3rd Jan` (assuming a time unit period of "Day"). UTC timestamps must correspond to the start boundary of a [time unit](services.md#time-unit), e.g. 00:00 converted to UTC for a time unit of "Day". Other timestamps are not permitted. The __maximum size of time interval__ is 100 time units or 2 years, whichever is the shorter amount of time.
Expand Down