-
Notifications
You must be signed in to change notification settings - Fork 6
Update fees and rentals_fees endpoints with new actions and attributes #206
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
Conversation
| { | ||
| "fees": [ | ||
| { | ||
| "name":{ |
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.
On write, it need to use name_en instead.
| { | ||
| "fee_id": 9, | ||
| "always_applied": true, | ||
| "maximum_bookable": 12 |
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.
No need to define if public, private or required?
|
|
||
| ## Destroy a fee | ||
|
|
||
| Required OAuth scope: `:rates_write` |
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.
I think good to explain that it's really getting archived and looking at archived_at is the way to identify if a fee should not longer be considered as valid.
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.
Why do we even return archived fees?
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.
cause we might still have links to them from bookings_fees.
| public | Boolean | Read | Publicly bookable by client if set to true. | ||
| rate | [Decimal](/reference/enums#formats) | Read | Rentals Fee's rate. | ||
| rate_kind | String | Read | Rentals Fee's rate kind, list of fee's rate kinds described in [enums section](/reference/enums#fee-rate-kinds). | ||
| required | Boolean | Read | Always included for new bookings, also public if set to true. |
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.
this should be writtable
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.
its not on core
| always_applied | Boolean | Read/Write | Available to all seasons and periods if set to true. | ||
| maximum_bookable | Integer | Read/Write | Rentals Fee's maximum booked count. | ||
| name | [Object](/reference/enums#formats) | Read | Rentals Fee's name, list of locales described in [enums section](/reference/enums#locales). | ||
| public | Boolean | Read | Publicly bookable by client if set to true. |
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.
this should be writtable
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.
its not on core
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.
ok, on admin v2 it's using status, should be here as well then. Needed to set this.
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.
status added
| rate | [Decimal](/reference/enums#formats) | Read | Rentals Fee's rate. | ||
| rate_kind | String | Read | Rentals Fee's rate kind, list of fee's rate kinds described in [enums section](/reference/enums#fee-rate-kinds). | ||
| required | Boolean | Read | Always included for new bookings, also public if set to true. | ||
| -----------------|---------|------------|------------ |
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.
Missing private, which is writable as well
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.
its not on core
No description provided.