Skip to content

Commit a92d28f

Browse files
authored
Merge pull request #359 from BookingSync/document-constraints-batch-6
Document constraints batch 6
2 parents 10d2a26 + bc2e2b7 commit a92d28f

File tree

10 files changed

+316
-88
lines changed

10 files changed

+316
-88
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"rentals_taxes": [
3+
{
4+
"tax_id": 2,
5+
"tax_included_in_rate": true
6+
}
7+
]
8+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"links": {
3+
"rentals_taxes.rental": "https://www.bookingsync.com/api/v3/rentals/{rentals_taxes.rental}",
4+
"rentals_taxes.tax": "https://www.bookingsync.com/api/v3/taxes/{rentals_taxes.tax}"
5+
},
6+
"rentals_taxes": [
7+
{
8+
"links": {
9+
"rental": 1,
10+
"tax": 2
11+
},
12+
"id": 3,
13+
"tax_included_in_rate": true,
14+
"created_at": "2015-08-05T15:15:47Z",
15+
"updated_at": "2015-08-05T15:15:47Z"
16+
}
17+
]
18+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"rentals_taxes": [
3+
{
4+
"tax_included_in_rate": true
5+
}
6+
]
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"reviews": [
3+
{
4+
"disimissed_at": "2022-03-10T12:00Z:00",
5+
"dismissed_by": "Airbnb",
6+
"dismissal_reason": "Guest revealed personal details of a host"
7+
}
8+
]
9+
}

content/reference/endpoints/fees_taxes.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This resource represents Fees Taxes - the [taxes](/reference/endpoints/taxes/) f
1818
Name | Type | Read/Write | Description
1919
-----------------------|---------|------------|------------
2020
account | Integer | Read | Account's ID related to the Fees Tax
21-
fee | Integer | Read | Fees's ID related to the Fees Tax
21+
fee | Integer | Read | Fee's ID related to the Fees Tax
2222
tax | Integer | Read | Tax's ID related to the Fees Tax
2323
-----------------------|---------|------------|------------
2424
id | Integer | Read | Fees Tax's id.
@@ -32,12 +32,11 @@ updated_at | [Time](/reference/enums#formats) | Read | Fees Ta
3232
Name | Type | Read/Write | Description | Constraints
3333
-----------------------|---------|------------|-------------|
3434
account | Integer | Read | Account's ID related to the Fees Tax |
35-
fee | Integer | Read | Fees's ID related to the Fees Tax |
35+
fee | Integer | Read | Fee's ID related to the Fees Tax |
3636
tax | Integer | Read | Tax's ID related to the Fees Tax |
37-
-----------------------|---------|------------|------------
3837
-----------------------|---------|------------|------------|
39-
id | Integer | Read | Fees Tax's id. | **Required**
40-
tax_id | Integer | Write | Tax's id. | **Required**
38+
id | Integer | Read | Fees Tax's ID.
39+
tax_id | Integer | Write | Tax's ID. | **Required**
4140
tax_included_in_rate | Boolean | Read/Write | Whether Tax amount is already included in fee's rate or not. If fee's rate is 100 and there is a tax with a percentage of 10% assigned to it, that tax would already be included in 100 if it the value was set to `true`. However, if set to `false`, the "total" amount (in the context of [Bookings'](/reference/endpoints/bookings/) creation) would be 100 + 10% from 100 which is 110. | **Required**
4241
-----------------------|---------|------------|------------|
4342
created_at | [Time](/reference/enums#formats) | Read | Fees Tax's create time. |

content/reference/endpoints/rentals_contents_overrides.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Rentals Contents Overrides
2-
Rental content overrides endpoint was made so that different channels could have different length validations for our fields like `headline, summary, description`.
3-
By using those objects clients applications can use full available length at each channel.
42

53
1. TOC
64
{:toc}
75

6+
## Overview
7+
8+
This resource represents the Rental Content Overrides which allow different channels (other [Applications](/reference/endpoints/applications/).) to have customized content for fields like `headline`, `summary`, `description`, which also allows to bypass the length validation that is normally applied for these fields in [Rentals](/reference/endpoints/rentals/) endpoint.
9+
10+
Note: An Application needs to be configured in a way that content overrides are permitted. Most likely you will need to reach out to us and ask for this feature to be enabled for your Application or if you want to customize the maximum length for the overridable fields.
11+
812
### Parameters
913
<ul class="nav nav-pills" role="tablist">
1014
<li class="disabled"><a>OAuth Scopes:</a></li>
@@ -15,8 +19,11 @@ By using those objects clients applications can use full available length at eac
1519
<div class="tab-pane active" id="rentals_read" markdown="1">
1620
Name | Type | Read/Write | Description
1721
-----------------|---------|------------|------------
18-
id | Integer | Read | Rentals Contents Override's id.
22+
account | Integer | Read | Account's ID related to the Rentals Contents Override
23+
application | Integer | Read | Application's ID related to the Rentals Contents Override
24+
rental | Integer | Read | Rental's ID related to the Rentals Contents Override
1925
-----------------|---------|------------|------------
26+
id | Integer | Read | Rentals Contents Override's ID.
2027
description | [Object](/reference/enums#formats) | Read | Description override for related application, list of locales described in [enums section](/reference/enums#locales).
2128
headline | [Object](/reference/enums#formats) | Read | Headline override for related application, list of locales described in [enums section](/reference/enums#locales).
2229
summary | [Object](/reference/enums#formats) | Read | Summary override for related application, list of locales described in [enums section](/reference/enums#locales).
@@ -26,18 +33,21 @@ updated_at | [Time](/reference/enums#formats) | Read | Rentals Conte
2633
{: class="table table-bordered"}
2734
</div>
2835
<div class="tab-pane" id="rentals_write" markdown="1">
29-
Name | Type | Read/Write | Description
30-
-----------------|---------|------------|------------
31-
id | Integer | Read | Rentals Contents Override's id.
32-
application_id | Integer | Write | Application id related to the Rentals Contents Override.
33-
rental_id | Integer | Write | Rental id related to the Rentals Contents Override.
34-
-----------------|---------|------------|------------
35-
description | [Object](/reference/enums#formats) | Read/Write | Description override for related application, list of locales described in [enums section](/reference/enums#locales).
36-
headline | [Object](/reference/enums#formats) | Read/Write | Headline override for related application, list of locales described in [enums section](/reference/enums#locales).
37-
summary | [Object](/reference/enums#formats) | Read/Write | Summary override for related application, list of locales described in [enums section](/reference/enums#locales).
38-
-----------------|---------|------------|------------
39-
created_at | [Time](/reference/enums#formats) | Read | Rentals Contents Override's create time.
40-
updated_at | [Time](/reference/enums#formats) | Read | Rentals Contents Override's update time.
36+
Name | Type | Read/Write | Description | Constraints
37+
-----------------|---------|------------|-------------|
38+
account | Integer | Read | Account's ID related to the Rentals Contents Override |
39+
application | Integer | Read | Application's ID related to the Rentals Contents Override |
40+
rental | Integer | Read | Rental's ID related to the Rentals Contents Override |
41+
-----------------|---------|------------|-------------|
42+
id | Integer | Read | Rentals Contents Override's ID. |
43+
application_id | Integer | Write | Application's Id related to the Rentals Contents Override. | **Required** on create
44+
rental_id | Integer | Write | Rental's ID related to the Rentals Contents Override. | **Required** on create
45+
description | [Object](/reference/enums#formats) | Read/Write | Description override for related application, list of locales described in [enums section](/reference/enums#locales). | Maximum length: 10 000 (unless customized)
46+
headline | [Object](/reference/enums#formats) | Read/Write | Headline override for related application, list of locales described in [enums section](/reference/enums#locales). | Maximum length: 75 (unless customized)
47+
summary | [Object](/reference/enums#formats) | Read/Write | Summary override for related application, list of locales described in [enums section](/reference/enums#locales). | Maximum length: 150 (unless customized)
48+
-----------------|---------|------------|-------------|
49+
created_at | [Time](/reference/enums#formats) | Read | Rentals Contents Override's create time. |
50+
updated_at | [Time](/reference/enums#formats) | Read | Rentals Contents Override's update time. |
4151
{: class="table table-bordered"}
4252
</div>
4353
</div>

content/reference/endpoints/rentals_fees.md

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
1. TOC
44
{:toc}
55

6+
## Overview
7+
8+
This resource represents Rentals Fees which are a way to define the relationship between [Rentals](/reference/endpoints/rentals/) and [Fees](/reference/endpoints/fees/) and provide a configuration for the behavior of the Fee within the scope of a given ental.
9+
610
### Parameters
711
<ul class="nav nav-pills" role="tablist">
812
<li class="disabled"><a>OAuth Scopes:</a></li>
@@ -13,9 +17,13 @@
1317
<div class="tab-pane active" id="public" markdown="1">
1418
Name | Type | Read/Write | Description
1519
-----------------|---------|------------|------------
16-
id | Integer | Read | Rentals Fee's id.
20+
account | Integer | Read | Account's ID related to the Rentals Fee
21+
fee | Integer | Read | Fee's ID related to the Rentals Fee
22+
rental | Integer | Read | Rental's ID related to the Rentals Fee
23+
seasons | Array | Read | Seasons' IDs related to the Rentals Fee
1724
-----------------|---------|------------|------------
18-
always_applied | Boolean | Read | Available to all seasons and periods if set to true.
25+
id | Integer | Read | Rentals Fee's ID.
26+
always_applied | Boolean | Read | Rentals Fee will always be applicable if set to true (if set to false, the applicability periods are defined via `seasons` or `start_date`/`end_date`)
1927
maximum_bookable | Integer | Read | Rentals Fee's maximum booked count.
2028
name | [Object](/reference/enums#formats) | Read | Rentals Fee's name, list of locales described in [enums section](/reference/enums#locales).
2129
public | Boolean | Read | Publicly bookable by client if set to true.
@@ -26,35 +34,41 @@ required | Boolean | Read | Always included for new bookings, also
2634
archived_at | [Time](/reference/enums#formats) | Read | Rentals Fee's archive time.
2735
created_at | [Time](/reference/enums#formats) | Read | Rentals Fee's create time.
2836
updated_at | [Time](/reference/enums#formats) | Read | Rentals Fee's update time.
29-
start_date | [Date](/reference/enums#formats) | Read | Rentals Fee's start date.
30-
end_date | [Date](/reference/enums#formats) | Read | Rentals Fee's end date.
37+
start_date | [Date](/reference/enums#formats) | Read | Rentals Fee's start date (applicable only if `always_applied` is false and `seasons` are empty).
38+
end_date | [Date](/reference/enums#formats) | Read | Rentals Fee's end date (applicable only if `always_applied` is false and `seasons` are empty).
3139
{: class="table table-bordered"}
3240
</div>
3341
<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-
status | Boolean | Write | Possible values are `public`, `required` or `private`.
48-
-----------------|---------|------------|------------
49-
archived_at | [Time](/reference/enums#formats) | Read | Rentals Fee's archive time.
50-
created_at | [Time](/reference/enums#formats) | Read | Rentals Fee's create time.
51-
updated_at | [Time](/reference/enums#formats) | Read | Rentals Fee's update time.
52-
start_date | [Date](/reference/enums#formats) | Read/Write | Rentals Fee's start date.
53-
end_date | [Date](/reference/enums#formats) | Read/Write | Rentals Fee's end date.
42+
Name | Type | Read/Write | Description | Constraints
43+
-----------------|---------|------------|-------------|
44+
account | Integer | Read | Account's ID related to the Rentals Fee |
45+
fee | Integer | Read | Fee's ID related to the Rentals Fee |
46+
rental | Integer | Read | Rental's ID related to the Rentals Fee |
47+
seasons | Array | Read | Seasons' IDs related to the Rentals Fee |
48+
-----------------|---------|------------|-------------|
49+
id | Integer | Read | Rentals Fee's ID. |
50+
fee_id | Integer | Write | Fee's ID related to the Rentals Fee. | **Required**
51+
season_ids | Array | Write | Seasons' IDs related to the Rentals Fee. | Use only one of these: `season_ids`, `always_applied`, `start_date`/`end_date`
52+
always_applied | Boolean | Read/Write | Rentals Fee will always be applicable if set to true | Use only one of these: `season_ids`, `always_applied`, `start_date`/`end_date`
53+
maximum_bookable | Integer | Read/Write | Rentals Fee's maximum booked count. | Must be greater than 0 if present
54+
name | [Object](/reference/enums#formats) | Read | Rentals Fee's name, list of locales described in [enums section](/reference/enums#locales). |
55+
public | Boolean | Read | Publicly bookable by client if set to true. |
56+
rate | [Decimal](/reference/enums#formats) | Read | Rentals Fee's rate. |
57+
rate_kind | String | Read | Rentals Fee's rate kind, list of fee's rate kinds described in [enums section](/reference/enums#fee-rate-kinds). |
58+
required | Boolean | Read | Always included for new bookings, also public if set to true. |
59+
status | Boolean | Write | Possible values are `public`, `required` or `private`. | Must be `public`, `required` or `private`
60+
-----------------|---------|------------|-------------|
61+
archived_at | [Time](/reference/enums#formats) | Read | Rentals Fee's archive time. |
62+
created_at | [Time](/reference/enums#formats) | Read | Rentals Fee's create time. |
63+
updated_at | [Time](/reference/enums#formats) | Read | Rentals Fee's update time. |
64+
start_date | [Date](/reference/enums#formats) | Read/Write | Rentals Fee's start date. | Use only one of these: `season_ids`, `always_applied`, `start_date`/`end_date`, **required** is `end_date` is present, must be before `end_date`
65+
end_date | [Date](/reference/enums#formats) | Read/Write | Rentals Fee's end date. | Use only one of these: `season_ids`, `always_applied`, `start_date`/`end_date`, **required** is `start_date` is present, must be after `start_date`
5466
{: class="table table-bordered"}
5567
</div>
5668
</div>
5769

70+
71+
5872
## List rentals fees
5973

6074
List all rentals fees for a given account(s).

content/reference/endpoints/rentals_tags.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
1. TOC
44
{:toc}
55

6+
## Overview
7+
8+
This resource represents the Rentals Tags that can be associated with the [Rentals](/reference/endpoints/rentals/).
9+
610
### Parameters
711
<ul class="nav nav-pills" role="tablist">
812
<li class="disabled"><a>OAuth Scopes:</a></li>
@@ -13,8 +17,9 @@
1317
<div class="tab-pane active" id="rentals_read" markdown="1">
1418
Name | Type | Read/Write | Description
1519
-----------------|---------|------------|------------
16-
id | Integer | Read | Rentals Tag's id.
20+
account | Integer | Read | Account's ID related to the Rentals Tag
1721
-----------------|---------|------------|------------
22+
id | Integer | Read | Rentals Tag's ID.
1823
name | [Object](/reference/enums#formats)| Read | Rentals Tag's title, list of locales described in [enums section](/reference/enums#locales).
1924
logo | String | Read | Rentals Tag's logo (Font Awesome class).
2025
color | String | Read | Rentals Tag's color (hex).
@@ -24,16 +29,17 @@ updated_at | [Time](/reference/enums#formats) | Read | Rentals Tag's
2429
{: class="table table-bordered"}
2530
</div>
2631
<div class="tab-pane" id="rentals_write" markdown="1">
27-
Name | Type | Read/Write | Description
28-
-----------------|---------|------------|------------
29-
id | Integer | Read | Rentals Tag's id.
30-
-----------------|---------|------------|------------
31-
name | [Object](/reference/enums#formats)| Read/Write | Rentals Tag's title, list of locales described in [enums section](/reference/enums#locales).
32-
logo | String | Read/Write | Rentals Tag's logo (Font Awesome class).
33-
color | String | Read/Write | Rentals Tag's color (hex).
34-
-----------------|---------|------------|------------
35-
created_at | [Time](/reference/enums#formats) | Read | Rentals Tag's create time.
36-
updated_at | [Time](/reference/enums#formats) | Read | Rentals Tag's update time.
32+
Name | Type | Read/Write | Description | Constraints
33+
-----------------|---------|------------|-------------|
34+
account | Integer | Read | Account's ID related to the Rentals Tag |
35+
-----------------|---------|------------|-------------|
36+
id | Integer | Read | Rentals Tag's ID. |
37+
name | [Object](/reference/enums#formats)| Read/Write | Rentals Tag's title, list of locales described in [enums section](/reference/enums#locales). | **Required**
38+
logo | String | Read/Write | Rentals Tag's logo (Font Awesome class). |
39+
color | String | Read/Write | Rentals Tag's color (hex). | **Required**
40+
-----------------|---------|------------|-------------|
41+
created_at | [Time](/reference/enums#formats) | Read | Rentals Tag's create time. |
42+
updated_at | [Time](/reference/enums#formats) | Read | Rentals Tag's update time. |
3743
{: class="table table-bordered"}
3844
</div>
3945
</div>

0 commit comments

Comments
 (0)