Skip to content

Conversation

@Fredar
Copy link
Contributor

@Fredar Fredar commented Feb 9, 2017

No description provided.

{
"fees": [
{
"name":{
Copy link
Member

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
Copy link
Member

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`
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be writtable

Copy link
Contributor Author

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be writtable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its not on core

Copy link
Member

@ZenCocoon ZenCocoon Feb 9, 2017

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.

Copy link
Contributor Author

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.
-----------------|---------|------------|------------
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its not on core

@ZenCocoon ZenCocoon merged commit ca62b88 into master Feb 9, 2017
@ZenCocoon ZenCocoon deleted the fees-updates branch February 9, 2017 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants