Skip to content

Commit

Permalink
Update booking docs (#18)
Browse files Browse the repository at this point in the history
* Fix incorrect lang example

* Create gitignore to ignore build files

* Fix booking/update?notify stating that it incorrectly has a default of true

* Add partner_id query parameter to booking/index
  • Loading branch information
brettgoss committed Jun 7, 2018
1 parent ecefb9a commit 3d1fd5a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Sphinx build folder
_build*
2 changes: 1 addition & 1 deletion docs/examples/response/booking-form.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Your Company",
"locale": {
"id": "en_US",
"lang": "_en",
"lang": "en",
"currency": "CAD"
},
"request": {
Expand Down
2 changes: 1 addition & 1 deletion docs/ref/booking/booking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Specifying the ``status_id`` is **required**, but any other update fields are op
:param string booking_id: The unique booking code identifying a booking in the system.
:query string status_id: The status that this booking should be set to. See **Manage / Layout / Statuses** in your account for a list of all available statuses. The default available statuses are: **PEND, HOLD, PART, PAID, WAIT, STOP,** and **VOID**

:query boolean notify: Toggle whether to trigger notifications when this booking is changed. (default: 1)
:query boolean notify: Toggle whether to trigger notifications when this booking is changed. (default: false)
:query boolean set_paid: When set to **1** (true) on an *unpaid* booking, and the requested status_id is '**PAID**', attempt to create a POS transaction covering the remaining cost of the booking (cannot be used with other input).

booking/[booking_id]/bookmark
Expand Down
1 change: 1 addition & 0 deletions docs/ref/booking/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ booking/index
:query string/timestamp start_date: The date the booking starts on (i.e. check-in).
:query string/timestamp end_date: The date the booking ends on (i.e. check-out).
:query string/timestamp last_modified: The date the booking was last changed. Useful for getting bookings added or changed since your last call.
:query string partner_id: The partner account ID that a booking is attributed to.
:query integer limit: The limit of bookings to return per page (default: 100).
:query integer page: The page of results to return.

Expand Down

0 comments on commit 3d1fd5a

Please sign in to comment.