-
Notifications
You must be signed in to change notification settings - Fork 25
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
BrittaBecker
wants to merge
6
commits into
master
Choose a base branch
from
BrittaBecker-patch-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+28
−12
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
eefc1ee
"Type" missing in rates/getAll documentation.md
BrittaBecker fd4df01
Added Changelog entry
MikeAdamsMews 7a02ac0
Update rates.md
MikeAdamsMews 7bd9738
Update README.md
MikeAdamsMews 33ac06f
Update rates.md
MikeAdamsMews 8cf35e9
Update rates.md
BrittaBecker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,23 +63,26 @@ Note this operation uses [Pagination](../guidelines/pagination.md) and supports | |
{ | ||
"Rates": [ | ||
{ | ||
"BaseRateId": null, | ||
"BusinessSegmentId": null, | ||
"GroupId": "c8b866b3-be2e-4a47-9486-034318e9f393", | ||
"Id": "ed4b660b-19d0-434b-9360-a4de2ea42eda", | ||
"GroupId": "c8b866b3-be2e-4a47-9486-034318e9f393", | ||
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94", | ||
"IsActive": true, | ||
"BaseRateId": null, | ||
"BusinessSegmentId": null, | ||
"IsActive": false, | ||
"IsEnabled": true, | ||
"IsPublic": true, | ||
"Name": "Fully Flexible", | ||
"ShortName": "FF", | ||
"ExternalNames": { | ||
"en-US": "Long Stay Flexible Rate" | ||
}, | ||
"ExternalIdentifier": "D001" | ||
"Type": "Public", | ||
"Name": "Fully Flexible Rate", | ||
"ShortName": "FLEXFLEX", | ||
"ExternalNames": {}, | ||
"Description": {}, | ||
"ExternalIdentifier": null, | ||
"Options": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is Options? This has sneaked in to the PR. |
||
"HidePriceFromGuest": false, | ||
"IsBonusPointsEligible": false | ||
} | ||
} | ||
], | ||
"RateGroups": [ | ||
], "RateGroups": [ | ||
{ | ||
"Id": "c8b866b3-be2e-4a47-9486-034318e9f393", | ||
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94", | ||
|
@@ -116,10 +119,13 @@ 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. | | ||
| `Options` |[Localized text](_objects.md#localized-text)| required | Rate options. | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above, what is Options? I checked the YAML and it's not in there. |
||
|
||
#### Rate group | ||
|
||
|
@@ -138,6 +144,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. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We prefer to use real examples, rather than just blank. I guess it would be something like this: