77<ul class =" nav nav-pills " role =" tablist " >
88 <li class =" disabled " ><a >OAuth Scopes:</a ></li >
99 <li class =" active " ><a href =" #public " role =" tab " data-toggle =" pill " >public</a ></li >
10+ <li ><a href =" #rentals_write " role =" tab " data-toggle =" pill " >rentals_write</a ></li >
1011</ul >
1112<div class =" tab-content " markdown =" 1 " >
1213 <div class =" tab-pane active " id =" public " markdown =" 1 " >
@@ -16,13 +17,39 @@ id | Integer | Read | Rentals Fee's id.
1617-----------------|---------|------------|------------
1718always_applied | Boolean | Read | Available to all seasons and periods if set to true.
1819maximum_bookable | Integer | Read | Rentals Fee's maximum booked count.
20+ name | [ Object] ( /reference/enums#formats ) | Read | Rentals Fee's name, list of locales described in [ enums section] ( /reference/enums#locales ) .
1921public | Boolean | Read | Publicly bookable by client if set to true.
22+ rate | [ Decimal] ( /reference/enums#formats ) | Read | Rentals Fee's rate.
23+ rate_kind | String | Read | Rentals Fee's rate kind, list of fee's rate kinds described in [ enums section] ( /reference/enums#fee-rate-kinds ) .
2024required | Boolean | Read | Always included for new bookings, also public if set to true.
2125-----------------|---------|------------|------------
26+ archived_at | [ Time] ( /reference/enums#formats ) | Read | Rentals Fee's archive time.
2227created_at | [ Time] ( /reference/enums#formats ) | Read | Rentals Fee's create time.
2328updated_at | [ Time] ( /reference/enums#formats ) | Read | Rentals Fee's update time.
2429start_date | [ Date] ( /reference/enums#formats ) | Read | Rentals Fee's start date.
2530end_date | [ Date] ( /reference/enums#formats ) | Read | Rentals Fee's end date.
31+ {: class="table table-bordered"}
32+ </div >
33+ <div class =" tab-pane " id =" rentals_write " markdown =" 1 " >
34+ Name | Type | Read/Write | Description
35+ -----------------|---------|------------|------------
36+ id | Integer | Read | Rentals Fee's id.
37+ fee_id | Integer | Write | Fee id related to the Rentals Fee.
38+ season_ids | Array | Write | Season ids related to the Rentals Fee.
39+ -----------------|---------|------------|------------
40+ always_applied | Boolean | Read/Write | Available to all seasons and periods if set to true.
41+ maximum_bookable | Integer | Read/Write | Rentals Fee's maximum booked count.
42+ name | [ Object] ( /reference/enums#formats ) | Read | Rentals Fee's name, list of locales described in [ enums section] ( /reference/enums#locales ) .
43+ public | Boolean | Read | Publicly bookable by client if set to true.
44+ rate | [ Decimal] ( /reference/enums#formats ) | Read | Rentals Fee's rate.
45+ rate_kind | String | Read | Rentals Fee's rate kind, list of fee's rate kinds described in [ enums section] ( /reference/enums#fee-rate-kinds ) .
46+ required | Boolean | Read | Always included for new bookings, also public if set to true.
47+ -----------------|---------|------------|------------
48+ archived_at | [ Time] ( /reference/enums#formats ) | Read | Rentals Fee's archive time.
49+ created_at | [ Time] ( /reference/enums#formats ) | Read | Rentals Fee's create time.
50+ updated_at | [ Time] ( /reference/enums#formats ) | Read | Rentals Fee's update time.
51+ start_date | [ Date] ( /reference/enums#formats ) | Read/Write | Rentals Fee's start date.
52+ end_date | [ Date] ( /reference/enums#formats ) | Read/Write | Rentals Fee's end date.
2653{: class="table table-bordered"}
2754 </div >
2855</div >
@@ -35,7 +62,7 @@ List all rentals fees for given account(s).
3562GET /rentals_fees
3663~~~
3764
38- <%= render 'json_response', endpoint: "rentals_fees", scopes: %w( public) %>
65+ <%= render 'json_response', endpoint: "rentals_fees", scopes: [ { public: "public-rentals_write" } ] %>
3966
4067## Get a single rentals fee
4168
@@ -45,4 +72,36 @@ Returns a single rentals fee identified by ID.
4572GET /rentals_fees/:rentals_fee_id
4673~~~
4774
48- <%= render 'json_response', endpoint: "rentals_fees", scopes: %w(public) %>
75+ <%= render 'json_response', endpoint: "rentals_fees", scopes: [ { public: "public-rentals_write" }] %>
76+
77+ ## Create a new rentals fee
78+
79+ Creates a rentals fee for given rental.
80+
81+ ~~~
82+ POST /rentals/:rental_id/rentals_fee
83+ ~~~
84+
85+ <%= render 'json_response', endpoint: "rentals_fees", request: "create",
86+ scopes: [ { rentals_write: "public-rentals_write" }] %>
87+
88+ ## Update a rentals fee
89+
90+ Returns an updated rentals fee identified by ID.
91+
92+ ~~~
93+ PUT /rentals_fee/:special_offer
94+ ~~~
95+
96+ <%= render 'json_response', endpoint: "rentals_fees", request: "update",
97+ scopes: [ { rentals_write: "public-rentals_write" }] %>
98+
99+ ## Destroy a rentals fee
100+
101+ Required OAuth scope: ` :rentals_write `
102+
103+ Returns empty response with '204 No Content' status code on success.
104+
105+ ~~~~~~
106+ DELETE /rentals_fee/:special_offer_id
107+ ~~~~~~
0 commit comments