-
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
Get cancellation policies by reservations operation #650
base: master
Are you sure you want to change the base?
Conversation
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.
Sorry it took me some time to get to it. Thanks for the docs, most of it looks good, only two comments and it's good for me! 🚀
Make the changes in the code and regenerate docs based on that.
operations/cancellationpolicies.md
Outdated
## Get cancellation policies by reservations | ||
|
||
Gets cancellation policies for enterprise grouped by reservation for granular cancellation policies flow. This operation supports [Portfolio Access Tokens](../guidelines/multi-property.md). |
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.
@Filip-Macecek @DenysShylov I think we should slap Restricted over the endpoint? 🤔 It can be done via [Restricted] annotation in the controller.
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.
will add this attribute to the code. also added restricted description here
operations/cancellationpolicies.md
Outdated
| `ClientToken` | string | required | Token identifying the client application. | | ||
| `AccessToken` | string | required | Access token of the client application. | | ||
| `Client` | string | required | Name and version of the client application. | | ||
| `ReservationIds` | array of string | optional, max 100 items | List of reservation identifiers. | |
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.
| `ReservationIds` | array of string | optional, max 100 items | List of reservation identifiers. | | |
| `ReservationIds` | array of string | required, max 100 items | List of reservation identifiers. | |
I think this one is required right?
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.
you are right, missed this attribute in parameters, fix already in the PR)
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.
All I managed to find was one full stop I wasn't happy with :-D
| :-- | :-- | :-- | :-- | | ||
| `CancellationPolicies` | array of [Cancellation policy data grouped by reservation.](cancellationpolicies.md#cancellation-policy-data-grouped-by-reservation) | required, max 1300 items | List of cancellation policies data grouped by reservation. | | ||
|
||
#### Cancellation policy data grouped by reservation. |
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.
#### Cancellation policy data grouped by reservation. | |
#### Cancellation policy data grouped by reservation |
|
||
| Property | Type | Contract | Description | | ||
| :-- | :-- | :-- | :-- | | ||
| `CancellationPolicies` | array of [Cancellation policy data grouped by reservation.](cancellationpolicies.md#cancellation-policy-data-grouped-by-reservation) | required, max 1300 items | List of cancellation policies data grouped by reservation. | |
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.
| `CancellationPolicies` | array of [Cancellation policy data grouped by reservation.](cancellationpolicies.md#cancellation-policy-data-grouped-by-reservation) | required, max 1300 items | List of cancellation policies data grouped by reservation. | | |
| `CancellationPolicies` | array of [Cancellation policy data grouped by reservation](cancellationpolicies.md#cancellation-policy-data-grouped-by-reservation) | required, max 1300 items | List of cancellation policies data grouped by reservation. | |
Summary
New operation documentation: Get cancellation policies by reservations operation.
Follow style guide
Style guide
Check during review