Skip to content

Commit f21ab89

Browse files
author
przemyslaw kedzierski
committed
Allow to set bookings_tag_ids when create / update booking
1 parent 65066c4 commit f21ab89

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ GEM
6262
cri (~> 2.3)
6363
nanoc-sprockets3 (1.0.5)
6464
sprockets (~> 3.2, >= 3.0.0)
65-
nio4r (1.0.0)
65+
nio4r (1.2.1)
6666
nokogiri (1.6.1)
6767
mini_portile (~> 0.5.0)
6868
posix-spawn (0.3.8)

api_calls/reference/bookings/bookings_read-bookings_write-scope-response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"source": null,
2020
"bookings_fees": [],
2121
"bookings_taxes": [],
22-
"bookings_tags": []
22+
"bookings_tags": [1, 2]
2323
},
2424
"id": 80,
2525
"start_at": "START_AT",

api_calls/reference/bookings/create-request.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"final_price": "2700.0",
1010
"initial_price": "3000.0",
1111
"start_at": "START_AT",
12-
"end_at": "END_AT"
12+
"end_at": "END_AT",
13+
"bookings_tag_ids": [1, 2]
1314
}
1415
]
1516
}

api_calls/reference/bookings/public-bookings_write_owned-scope-response.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"links": {
33
"bookings.account": "https://www.bookingsync.com/api/v3/accounts/{bookings.account}",
4-
"bookings.rental": "https://www.bookingsync.com/api/v3/rentals/{bookings.rental}"
4+
"bookings.rental": "https://www.bookingsync.com/api/v3/rentals/{bookings.rental}",
5+
"bookings.bookings_tags": "https://www.bookingsync.com/api/v3/bookings_tags/{bookings.bookings_tags}"
56
},
67
"bookings": [
78
{
89
"links": {
910
"account": 1,
10-
"rental": 16
11+
"rental": 16,
12+
"bookings_tags": [1, 2]
1113
},
1214
"id": 203,
1315
"start_at": "START_AT",

content/reference/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2016-04-18
4+
5+
* [api improvement] Allow to set up bookings_tag_ids when create / update booking.
6+
37
## 2016-04-11
48

59
* [doc fix] Add missing rental's search parameter: `rental_id`.

0 commit comments

Comments
 (0)