Skip to content

Commit 133fd7d

Browse files
committed
Merge pull request #155 from BookingSync/rentals-fixes
Add missing associations in rentals responses
2 parents 1b14498 + ac18be4 commit 133fd7d

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

content/reference/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* [api improvement] Add `fees`, `taxes`, `bookings_fees`, `bookings_taxes`, `rentals_fees`, `rentals_taxes`, `fees_taxes`, `tax_rules` endpoints.
66
* [api improvement] Add more currencies.
77
* [api improvement] Add `checkin_details` and `checkout_details` to rentals. Requires `rentals_read` or `rentals_write` scope as this data should not be shared before the booking is confirmed.
8+
* [doc fix] Add missing associations in rentals responses.
89

910
## 2016-02-06
1011

responses/rentals/public-scope.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@
55
"rentals.destination": "https://www.bookingsync.com/api/v3/destinations/{rentals.destination}",
66
"rentals.rates_table": "https://www.bookingsync.com/api/v3/rates_tables/{rentals.rates_table}",
77
"rentals.rental_agreement": "https://www.bookingsync.com/api/v3/rental_agreements/{rentals.rental_agreement}",
8+
"rentals.rental_cancelation_policy": "https://www.bookingsync.com/api/v3/rental_cancelation_policies/{rentals.rental_cancelation_policy}",
89
"rentals.photos": "https://www.bookingsync.com/api/v3/photos/{rentals.photos}",
910
"rentals.reviews": "https://www.bookingsync.com/api/v3/reviews/{rentals.reviews}",
1011
"rentals.special_offers": "https://www.bookingsync.com/api/v3/special_offers/{rentals.special_offers}",
1112
"rentals.rates": "https://www.bookingsync.com/api/v3/rates/{rentals.rates}",
12-
"rentals.rentals_amenities": "https://www.bookingsync.com/api/v3/rentals_amenities/{rentals.rentals_amenities}"
13+
"rentals.rentals_amenities": "https://www.bookingsync.com/api/v3/rentals_amenities/{rentals.rentals_amenities}",
14+
"rentals.rentals_fees": "https://www.bookingsync.com/api/v3/rentals_fees/{rentals.rentals_fees}",
15+
"rentals.bathrooms": "https://www.bookingsync.com/api/v3/bathrooms/{rentals.bathrooms}",
16+
"rentals.bedrooms": "https://www.bookingsync.com/api/v3/bedrooms/{rentals.bedrooms}",
17+
"rentals.rentals_tags": "https://www.bookingsync.com/api/v3/rentals_tags/{rentals.rentals_tags}"
1318
},
1419
"rentals": [
1520
{
@@ -19,6 +24,7 @@
1924
"destination": 134,
2025
"rates_table": 1,
2126
"rental_agreement": 1,
27+
"rental_cancelation_policy": 1,
2228
"photos": [
2329
1
2430
],
@@ -39,6 +45,21 @@
3945
1,
4046
2,
4147
3
48+
],
49+
"rentals_fees": [
50+
],
51+
"bathrooms": [
52+
5,
53+
6,
54+
7
55+
],
56+
"bedrooms": [
57+
8,
58+
9,
59+
10,
60+
11
61+
],
62+
"rentals_tags": [
4263
]
4364
},
4465
"id": 1,

responses/rentals/rentals_read-rentals_write-scope.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@
55
"rentals.destination": "https://www.bookingsync.com/api/v3/destinations/{rentals.destination}",
66
"rentals.rates_table": "https://www.bookingsync.com/api/v3/rates_tables/{rentals.rates_table}",
77
"rentals.rental_agreement": "https://www.bookingsync.com/api/v3/rental_agreements/{rentals.rental_agreement}",
8+
"rentals.rental_cancelation_policy": "https://www.bookingsync.com/api/v3/rental_cancelation_policies/{rentals.rental_cancelation_policy}",
89
"rentals.photos": "https://www.bookingsync.com/api/v3/photos/{rentals.photos}",
910
"rentals.reviews": "https://www.bookingsync.com/api/v3/reviews/{rentals.reviews}",
1011
"rentals.special_offers": "https://www.bookingsync.com/api/v3/special_offers/{rentals.special_offers}",
1112
"rentals.rates": "https://www.bookingsync.com/api/v3/rates/{rentals.rates}",
12-
"rentals.rentals_amenities": "https://www.bookingsync.com/api/v3/rentals_amenities/{rentals.rentals_amenities}"
13+
"rentals.rentals_amenities": "https://www.bookingsync.com/api/v3/rentals_amenities/{rentals.rentals_amenities}",
14+
"rentals.rentals_fees": "https://www.bookingsync.com/api/v3/rentals_fees/{rentals.rentals_fees}",
15+
"rentals.bathrooms": "https://www.bookingsync.com/api/v3/bathrooms/{rentals.bathrooms}",
16+
"rentals.bedrooms": "https://www.bookingsync.com/api/v3/bedrooms/{rentals.bedrooms}",
17+
"rentals.rentals_tags": "https://www.bookingsync.com/api/v3/rentals_tags/{rentals.rentals_tags}"
1318
},
1419
"rentals": [
1520
{
@@ -19,6 +24,7 @@
1924
"destination": 135,
2025
"rates_table": 1,
2126
"rental_agreement": 1,
27+
"rental_cancelation_policy": 1,
2228
"photos": [
2329
2
2430
],
@@ -33,6 +39,22 @@
3339
],
3440
"rentals_amenities": [
3541
4
42+
],
43+
"rentals_fees": [
44+
],
45+
"bathrooms": [
46+
5,
47+
6,
48+
7
49+
],
50+
"bedrooms": [
51+
8,
52+
9,
53+
10,
54+
11,
55+
12
56+
],
57+
"rentals_tags": [
3658
]
3759
},
3860
"id": 2,

0 commit comments

Comments
 (0)