bookingsync-api 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/lib/bookingsync/api/client/host_reviews.rb +95 -0
  4. data/lib/bookingsync/api/client/review_replies.rb +53 -0
  5. data/lib/bookingsync/api/client/reviews.rb +10 -0
  6. data/lib/bookingsync/api/client.rb +4 -0
  7. data/lib/bookingsync/api/version.rb +1 -1
  8. data/spec/bookingsync/api/client/host_reviews_spec.rb +150 -0
  9. data/spec/bookingsync/api/client/review_replies_spec.rb +61 -0
  10. data/spec/bookingsync/api/client/reviews_spec.rb +21 -1
  11. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rental/returns_applications_periods_rental.yml +5 -5
  12. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rentals/returns_applications_periods_rentals.yml +5 -5
  13. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_create_applications_periods_rental/creates_a_applications_periods_rental.yml +3 -3
  14. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/returns_updated_applications_periods_rental.yml +2 -2
  15. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/updates_given_applications_periods_rental_by_ID.yml +2 -2
  16. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_applications_periods_rental/creates_an_applications_periods_rental.yml +3 -3
  17. data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_create_draft_host_review/creates_a_new_draft_review.yml +78 -0
  18. data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_create_submitted_host_review/creates_a_new_submitted_review.yml +78 -0
  19. data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_dismiss_host_review/dismisses_host_review.yml +76 -0
  20. data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_edit_draft_host_review/updates_given_host_review_by_ID.yml +77 -0
  21. data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_host_review/returns_a_single_host_review.yml +88 -0
  22. data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_host_reviews/returns_host_reviews.yml +87 -0
  23. data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_submit_draft_host_review/submits_given_host_review_by_ID.yml +77 -0
  24. data/spec/fixtures/cassettes/BookingSync_API_Client_Hosts/_hosts/returns_hosts.yml +1 -1
  25. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/links/returns_associated_rental.yml +3 -3
  26. data/spec/fixtures/cassettes/BookingSync_API_Client_ReviewReplies/_create_guest_review_reply/creates_new_reply_to_a_guest_review.yml +77 -0
  27. data/spec/fixtures/cassettes/BookingSync_API_Client_ReviewReplies/_create_host_review_reply/creates_a_new_reply_to_host_review.yml +77 -0
  28. data/spec/fixtures/cassettes/BookingSync_API_Client_ReviewReplies/_review_replies/returns_review_replies.yml +86 -0
  29. data/spec/fixtures/cassettes/BookingSync_API_Client_ReviewReplies/_review_reply/returns_a_single_review_reply.yml +87 -0
  30. data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +41 -50
  31. data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_dismiss_review/dismisses_review.yml +126 -0
  32. metadata +33 -3
@@ -0,0 +1,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/bookings/228/host_reviews/draft
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"host_reviews":[{"comment":"Awesome guest","expires_at":"2045-06-07T12:00:00Z","shareable":false}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.14
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - '30'
24
+ response:
25
+ status:
26
+ code: 201
27
+ message: Created
28
+ headers:
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/vnd.api+json; charset=utf-8
33
+ Etag:
34
+ - W/"8a190c64ff1437e4a18cdc2dc9fdaf8c"
35
+ Location:
36
+ - https://www.bookingsync.com/api/v3/host_reviews/c571047a-0055-448a-8651-56461fbf30e2
37
+ Referrer-Policy:
38
+ - strict-origin-when-cross-origin
39
+ Set-Cookie:
40
+ - ahoy_visit=ff8e8a6b-1b47-45b1-9d88-be41290cff32; path=/; expires=Thu, 13 May
41
+ 2021 10:55:37 GMT
42
+ - ahoy_visitor=66457c2f-dcb3-451e-a07c-37dc0675be51; path=/; expires=Sat, 06
43
+ May 2023 10:55:37 GMT
44
+ Vary:
45
+ - Origin
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ X-Download-Options:
49
+ - noopen
50
+ X-Frame-Options:
51
+ - SAMEORIGIN
52
+ X-Permitted-Cross-Domain-Policies:
53
+ - none
54
+ X-Ratelimit-Limit:
55
+ - '1000'
56
+ X-Ratelimit-Remaining:
57
+ - '990'
58
+ X-Ratelimit-Reset:
59
+ - '1620298800'
60
+ X-Request-Id:
61
+ - 0c05768a-83e7-4f3d-a6b7-c1d836ad2c9f
62
+ X-Runtime:
63
+ - '0.421751'
64
+ X-Updated-Since-Request-Synced-At:
65
+ - 2021-05-06 10:55:37 UTC
66
+ X-Xss-Protection:
67
+ - 1; mode=block
68
+ Date:
69
+ - Thu, 06 May 2021 10:55:38 GMT
70
+ Content-Length:
71
+ - '902'
72
+ body:
73
+ encoding: UTF-8
74
+ string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":228,"rental":1,"reply":null,"source":null},"id":"c571047a-0055-448a-8651-56461fbf30e2","comment":"Awesome
75
+ guest","created_at":"2021-05-06T10:55:37Z","updated_at":"2021-05-06T10:55:37Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":null,"is_guest_recommended":null,"expires_at":"2045-06-07T12:00:00Z"}],"meta":{}}'
76
+ http_version:
77
+ recorded_at: Thu, 06 May 2021 10:55:38 GMT
78
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/bookings/3/host_reviews
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"host_reviews":[{"comment":"Awesome guest","submitted_at":"2020-06-06T12:00:00Z","expires_at":"2020-06-07T12:00:00Z","is_guest_recommended":true,"shareable":false,"source_id":2,"criteria":{"cleanliness":{"rating":5},"respect_house_rules":{"rating":4},"communication":{"rating":5}}}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.14
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - '30'
24
+ response:
25
+ status:
26
+ code: 201
27
+ message: Created
28
+ headers:
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/vnd.api+json; charset=utf-8
33
+ Etag:
34
+ - W/"8aaea846312e42d6a5c9f440860ad6d7"
35
+ Location:
36
+ - https://www.bookingsync.com/api/v3/host_reviews/e479505f-e07c-4787-b920-3519a943562d
37
+ Referrer-Policy:
38
+ - strict-origin-when-cross-origin
39
+ Set-Cookie:
40
+ - ahoy_visit=e1998ede-bbd3-4f05-ad98-17395049028e; path=/; expires=Wed, 08 Dec
41
+ 2021 13:41:20 GMT
42
+ - ahoy_visitor=a4636ca2-5162-4dab-b422-472f32872432; path=/; expires=Fri, 01
43
+ Dec 2023 13:41:20 GMT
44
+ Vary:
45
+ - Accept, Origin
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ X-Download-Options:
49
+ - noopen
50
+ X-Frame-Options:
51
+ - SAMEORIGIN
52
+ X-Permitted-Cross-Domain-Policies:
53
+ - none
54
+ X-Ratelimit-Limit:
55
+ - '1000'
56
+ X-Ratelimit-Remaining:
57
+ - '993'
58
+ X-Ratelimit-Reset:
59
+ - '1638367200'
60
+ X-Request-Id:
61
+ - d815ae97-05db-4b1b-a1de-c2ff8300f250
62
+ X-Runtime:
63
+ - '1.188677'
64
+ X-Updated-Since-Request-Synced-At:
65
+ - 2021-12-01 13:41:20 UTC
66
+ X-Xss-Protection:
67
+ - 1; mode=block
68
+ Date:
69
+ - Wed, 01 Dec 2021 13:41:21 GMT
70
+ Content-Length:
71
+ - '1060'
72
+ body:
73
+ encoding: UTF-8
74
+ string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":3,"rental":1,"reply":null,"source":2},"id":"e479505f-e07c-4787-b920-3519a943562d","comment":"Awesome
75
+ guest","created_at":"2021-12-01T13:41:20Z","updated_at":"2021-12-01T13:41:20Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":{"rating":"5.0","comment":null},"communication":{"rating":"5.0","comment":null},"respect_house_rules":{"rating":"4.0","comment":null}},"submitted_at":"2020-06-06T12:00:00Z","is_guest_recommended":true,"expires_at":"2020-06-07T12:00:00Z","dismissed_at":null,"dismissed_by":null,"dismissal_reason":null}],"meta":{}}'
76
+ http_version:
77
+ recorded_at: Wed, 01 Dec 2021 13:41:21 GMT
78
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/host_reviews/e479505f-e07c-4787-b920-3519a943562d/dismiss
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"host_reviews":[{"dismissed_at":"2021-12-01T16:00:00Z"}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.14
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - '30'
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/vnd.api+json; charset=utf-8
33
+ Etag:
34
+ - W/"3ad985c84389f975a95729501ad8d914"
35
+ Referrer-Policy:
36
+ - strict-origin-when-cross-origin
37
+ Set-Cookie:
38
+ - ahoy_visit=f2626bcb-3f8b-4522-bb3d-c08b9930ef5b; path=/; expires=Wed, 08 Dec
39
+ 2021 13:55:08 GMT
40
+ - ahoy_visitor=b142d3ae-cb46-4ab4-a919-da1d362b8fb8; path=/; expires=Fri, 01
41
+ Dec 2023 13:55:08 GMT
42
+ Vary:
43
+ - Accept, Origin
44
+ X-Content-Type-Options:
45
+ - nosniff
46
+ X-Download-Options:
47
+ - noopen
48
+ X-Frame-Options:
49
+ - SAMEORIGIN
50
+ X-Permitted-Cross-Domain-Policies:
51
+ - none
52
+ X-Ratelimit-Limit:
53
+ - '1000'
54
+ X-Ratelimit-Remaining:
55
+ - '992'
56
+ X-Ratelimit-Reset:
57
+ - '1638367200'
58
+ X-Request-Id:
59
+ - fcfcd3bf-8ef9-4824-a449-d670d6d6b39c
60
+ X-Runtime:
61
+ - '17.461036'
62
+ X-Updated-Since-Request-Synced-At:
63
+ - 2021-12-01 13:55:08 UTC
64
+ X-Xss-Protection:
65
+ - 1; mode=block
66
+ Date:
67
+ - Wed, 01 Dec 2021 13:55:09 GMT
68
+ Content-Length:
69
+ - '1078'
70
+ body:
71
+ encoding: UTF-8
72
+ string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":3,"rental":1,"reply":null,"source":2},"id":"e479505f-e07c-4787-b920-3519a943562d","comment":"Awesome
73
+ guest","created_at":"2021-12-01T13:41:20Z","updated_at":"2021-12-01T13:55:08Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":{"rating":"5.0","comment":null},"communication":{"rating":"5.0","comment":null},"respect_house_rules":{"rating":"4.0","comment":null}},"submitted_at":"2020-06-06T12:00:00Z","is_guest_recommended":true,"expires_at":"2020-06-07T12:00:00Z","dismissed_at":"2021-12-01T16:00:00Z","dismissed_by":null,"dismissal_reason":null}],"meta":{}}'
74
+ http_version:
75
+ recorded_at: Wed, 01 Dec 2021 13:55:09 GMT
76
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,77 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/host_reviews/draft/c571047a-0055-448a-8651-56461fbf30e2
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"host_reviews":[{"comment":"Woops, not great after all, he emptied
9
+ the fridge"}]}'
10
+ headers:
11
+ User-Agent:
12
+ - BookingSync API gem v0.1.14
13
+ Accept:
14
+ - application/vnd.api+json
15
+ Content-Type:
16
+ - application/vnd.api+json
17
+ Authorization:
18
+ - Bearer <<ACCESS_TOKEN>>
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Connection:
22
+ - keep-alive
23
+ Keep-Alive:
24
+ - '30'
25
+ response:
26
+ status:
27
+ code: 200
28
+ message: OK
29
+ headers:
30
+ Cache-Control:
31
+ - max-age=0, private, must-revalidate
32
+ Content-Type:
33
+ - application/vnd.api+json; charset=utf-8
34
+ Etag:
35
+ - W/"e697833c0978de5df707b05aaeaf6f7c"
36
+ Referrer-Policy:
37
+ - strict-origin-when-cross-origin
38
+ Set-Cookie:
39
+ - ahoy_visit=1a0880e6-5499-4370-a6ae-1844415a71db; path=/; expires=Thu, 13 May
40
+ 2021 10:55:38 GMT
41
+ - ahoy_visitor=b875df99-003c-4ce9-9bea-a92bc7ad28ac; path=/; expires=Sat, 06
42
+ May 2023 10:55:38 GMT
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Download-Options:
48
+ - noopen
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Permitted-Cross-Domain-Policies:
52
+ - none
53
+ X-Ratelimit-Limit:
54
+ - '1000'
55
+ X-Ratelimit-Remaining:
56
+ - '989'
57
+ X-Ratelimit-Reset:
58
+ - '1620298800'
59
+ X-Request-Id:
60
+ - ccb5a8a1-314f-4a29-a79f-406e90518923
61
+ X-Runtime:
62
+ - '0.361907'
63
+ X-Updated-Since-Request-Synced-At:
64
+ - 2021-05-06 10:55:38 UTC
65
+ X-Xss-Protection:
66
+ - 1; mode=block
67
+ Date:
68
+ - Thu, 06 May 2021 10:55:38 GMT
69
+ Content-Length:
70
+ - '938'
71
+ body:
72
+ encoding: UTF-8
73
+ string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":228,"rental":1,"reply":null,"source":null},"id":"c571047a-0055-448a-8651-56461fbf30e2","comment":"Woops,
74
+ not great after all, he emptied the fridge","created_at":"2021-05-06T10:55:37Z","updated_at":"2021-05-06T10:55:38Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":null,"is_guest_recommended":null,"expires_at":"2045-06-07T12:00:00Z"}],"meta":{}}'
75
+ http_version:
76
+ recorded_at: Thu, 06 May 2021 10:55:38 GMT
77
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,88 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.14
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - '30'
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/vnd.api+json; charset=utf-8
33
+ Etag:
34
+ - W/"2bbaed797f40dd87050510f595e83645"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd?page=1>;
37
+ rel="first", <https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd?page=1>;
38
+ rel="last"
39
+ Referrer-Policy:
40
+ - strict-origin-when-cross-origin
41
+ Set-Cookie:
42
+ - ahoy_visit=bb7a7df5-af8d-4c3a-b356-22911704cbad; path=/; expires=Mon, 29 Mar
43
+ 2021 15:24:09 GMT
44
+ - ahoy_visitor=6ff42ba0-78ad-4df2-8ee7-5e73297f84a1; path=/; expires=Wed, 22
45
+ Mar 2023 15:24:09 GMT
46
+ Vary:
47
+ - Origin
48
+ X-Content-Type-Options:
49
+ - nosniff
50
+ X-Current-Page:
51
+ - '1'
52
+ X-Download-Options:
53
+ - noopen
54
+ X-Frame-Options:
55
+ - SAMEORIGIN
56
+ X-Per-Page:
57
+ - '100'
58
+ X-Permitted-Cross-Domain-Policies:
59
+ - none
60
+ X-Ratelimit-Limit:
61
+ - '1000'
62
+ X-Ratelimit-Remaining:
63
+ - '996'
64
+ X-Ratelimit-Reset:
65
+ - '1616428800'
66
+ X-Request-Id:
67
+ - 77d8ea39-be9e-4f7d-a2da-5bb73dfbd52a
68
+ X-Runtime:
69
+ - '0.226179'
70
+ X-Total-Count:
71
+ - '1'
72
+ X-Total-Pages:
73
+ - '1'
74
+ X-Updated-Since-Request-Synced-At:
75
+ - 2021-03-22 15:24:09 UTC
76
+ X-Xss-Protection:
77
+ - 1; mode=block
78
+ Date:
79
+ - Mon, 22 Mar 2021 15:24:09 GMT
80
+ Content-Length:
81
+ - '1146'
82
+ body:
83
+ encoding: UTF-8
84
+ string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":96,"rental":1,"reply":null,"source":null},"id":"04356dc9-1349-4e05-b818-09ccdac8d5dd","comment":"Awesome
85
+ place","created_at":"2021-03-22T15:23:27Z","updated_at":"2021-03-22T15:23:27Z","shareable":true,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":null,"is_guest_recommended":null,"expires_at":null}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd?page=1","last":"https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
86
+ http_version:
87
+ recorded_at: Mon, 22 Mar 2021 15:24:09 GMT
88
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,87 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/host_reviews
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.14
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - '30'
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/vnd.api+json; charset=utf-8
33
+ Etag:
34
+ - W/"34d06aaa8a03d8ab7fc1ecd9fe2435de"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/host_reviews?page=1>; rel="first", <https://www.bookingsync.com/api/v3/host_reviews?page=1>;
37
+ rel="last"
38
+ Referrer-Policy:
39
+ - strict-origin-when-cross-origin
40
+ Set-Cookie:
41
+ - ahoy_visit=18b0e6dd-4d68-43be-90f9-57b650705c8d; path=/; expires=Mon, 29 Mar
42
+ 2021 15:23:56 GMT
43
+ - ahoy_visitor=606c015a-fcc9-43cf-81e4-af9073aa647c; path=/; expires=Wed, 22
44
+ Mar 2023 15:23:56 GMT
45
+ Vary:
46
+ - Origin
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Current-Page:
50
+ - '1'
51
+ X-Download-Options:
52
+ - noopen
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ X-Per-Page:
56
+ - '100'
57
+ X-Permitted-Cross-Domain-Policies:
58
+ - none
59
+ X-Ratelimit-Limit:
60
+ - '1000'
61
+ X-Ratelimit-Remaining:
62
+ - '997'
63
+ X-Ratelimit-Reset:
64
+ - '1616428800'
65
+ X-Request-Id:
66
+ - b91285d5-0c81-49d5-a3f5-b491ab1e4a5e
67
+ X-Runtime:
68
+ - '0.235913'
69
+ X-Total-Count:
70
+ - '1'
71
+ X-Total-Pages:
72
+ - '1'
73
+ X-Updated-Since-Request-Synced-At:
74
+ - 2021-03-22 15:23:56 UTC
75
+ X-Xss-Protection:
76
+ - 1; mode=block
77
+ Date:
78
+ - Mon, 22 Mar 2021 15:23:56 GMT
79
+ Content-Length:
80
+ - '1072'
81
+ body:
82
+ encoding: UTF-8
83
+ string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":96,"rental":1,"reply":null,"source":null},"id":"04356dc9-1349-4e05-b818-09ccdac8d5dd","comment":"Awesome
84
+ place","created_at":"2021-03-22T15:23:27Z","updated_at":"2021-03-22T15:23:27Z","shareable":true,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":null,"is_guest_recommended":null,"expires_at":null}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/host_reviews?page=1","last":"https://www.bookingsync.com/api/v3/host_reviews?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
85
+ http_version:
86
+ recorded_at: Mon, 22 Mar 2021 15:23:56 GMT
87
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,77 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/host_reviews/draft/c571047a-0055-448a-8651-56461fbf30e2/submit
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"host_reviews":[{"comment":"Woops, not great after all, he emptied
9
+ the fridge","submitted_at":"2021-06-06T12:00:00Z","is_guest_recommended":false}]}'
10
+ headers:
11
+ User-Agent:
12
+ - BookingSync API gem v0.1.14
13
+ Accept:
14
+ - application/vnd.api+json
15
+ Content-Type:
16
+ - application/vnd.api+json
17
+ Authorization:
18
+ - Bearer <<ACCESS_TOKEN>>
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Connection:
22
+ - keep-alive
23
+ Keep-Alive:
24
+ - '30'
25
+ response:
26
+ status:
27
+ code: 200
28
+ message: OK
29
+ headers:
30
+ Cache-Control:
31
+ - max-age=0, private, must-revalidate
32
+ Content-Type:
33
+ - application/vnd.api+json; charset=utf-8
34
+ Etag:
35
+ - W/"1cba4be802f03f3278c2dbb595411e4b"
36
+ Referrer-Policy:
37
+ - strict-origin-when-cross-origin
38
+ Set-Cookie:
39
+ - ahoy_visit=f8cd74ec-c485-46b7-9400-a5bf571ed0de; path=/; expires=Thu, 13 May
40
+ 2021 10:55:38 GMT
41
+ - ahoy_visitor=14c6ee55-dbae-4dd5-8363-7fd7fef9fb1d; path=/; expires=Sat, 06
42
+ May 2023 10:55:38 GMT
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Download-Options:
48
+ - noopen
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Permitted-Cross-Domain-Policies:
52
+ - none
53
+ X-Ratelimit-Limit:
54
+ - '1000'
55
+ X-Ratelimit-Remaining:
56
+ - '988'
57
+ X-Ratelimit-Reset:
58
+ - '1620298800'
59
+ X-Request-Id:
60
+ - d2e25319-8415-4aa2-be15-ce1c4a84e699
61
+ X-Runtime:
62
+ - '0.381850'
63
+ X-Updated-Since-Request-Synced-At:
64
+ - 2021-05-06 10:55:38 UTC
65
+ X-Xss-Protection:
66
+ - 1; mode=block
67
+ Date:
68
+ - Thu, 06 May 2021 10:55:39 GMT
69
+ Content-Length:
70
+ - '957'
71
+ body:
72
+ encoding: UTF-8
73
+ string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":228,"rental":1,"reply":null,"source":null},"id":"c571047a-0055-448a-8651-56461fbf30e2","comment":"Woops,
74
+ not great after all, he emptied the fridge","created_at":"2021-05-06T10:55:37Z","updated_at":"2021-05-06T10:55:38Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":"2021-06-06T12:00:00Z","is_guest_recommended":false,"expires_at":"2045-06-07T12:00:00Z"}],"meta":{}}'
75
+ http_version:
76
+ recorded_at: Thu, 06 May 2021 10:55:39 GMT
77
+ recorded_with: VCR 3.0.3
@@ -77,6 +77,6 @@ http_interactions:
77
77
  body:
78
78
  encoding: UTF-8
79
79
  string: '{"links":{"hosts.user":"https://www.bookingsync.com/api/v3/users/{hosts.user}","hosts.source":"https://www.bookingsync.com/api/v3/sources/{hosts.source}","hosts.account":"https://www.bookingsync.com/api/v3/accounts/{hosts.account}","hosts.participants":"https://www.bookingsync.com/api/v3/inbox/participants/{hosts.participants}"},"hosts":[{"links":{"account":1,"participants":[7,6,5,4,3,2],"source":null,"user":null},"id":1,"firstname":"John","lastname":"Doe","email":"johns@example.com","created_at":"2018-03-22T22:45:04Z","updated_at":"2018-03-22T22:45:04Z"}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/hosts?page=1","last":"https://www.bookingsync.com/api/v3/hosts?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
80
- http_version:
80
+ http_version:
81
81
  recorded_at: Fri, 23 Mar 2018 20:40:36 GMT
82
82
  recorded_with: VCR 4.0.0
@@ -75,7 +75,7 @@ http_interactions:
75
75
  body:
76
76
  encoding: UTF-8
77
77
  string: '{"links":{"rental_urls.rental":"https://www.bookingsync.com/api/v3/rentals/{rental_urls.rental}"},"rental_urls":[{"links":{"rental":1},"id":"a6e9b7a2-0fb9-42dc-8bf6-4bfa0b1aae25","label":"HomeAway","url":"test.com","lock":{"record":"","attributes":{}},"canceled_at":null,"created_at":"2019-10-05T20:23:21Z","updated_at":"2019-10-05T20:23:21Z"}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/rental_urls?page=1","last":"https://www.bookingsync.com/api/v3/rental_urls?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
78
- http_version:
78
+ http_version:
79
79
  recorded_at: Sat, 05 Oct 2019 20:24:01 GMT
80
80
  - request:
81
81
  method: get
@@ -151,7 +151,7 @@ http_interactions:
151
151
  - chunked
152
152
  body:
153
153
  encoding: UTF-8
154
- string: '{"links":{"rentals.account":"http://bookingsync.test/api/v3/accounts/{rentals.account}","rentals.availability":"http://bookingsync.test/api/v3/availabilities/{rentals.availability}","rentals.change_over":"http://bookingsync.test/api/v3/change_overs/{rentals.change_over}","rentals.destination":"http://bookingsync.test/api/v3/destinations/{rentals.destination}","rentals.rates_table":"http://bookingsync.test/api/v3/rates_tables/{rentals.rates_table}","rentals.rental_agreement":"http://bookingsync.test/api/v3/rental_agreements/{rentals.rental_agreement}","rentals.rental_cancelation_policy":"http://bookingsync.test/api/v3/rental_cancelation_policies/{rentals.rental_cancelation_policy}","rentals.nightly_rate_map":"http://bookingsync.test/api/v3/nightly_rate_maps/{rentals.nightly_rate_map}","rentals.photos":"http://bookingsync.test/api/v3/photos/{rentals.photos}","rentals.reviews":"http://bookingsync.test/api/v3/reviews/{rentals.reviews}","rentals.special_offers":"http://bookingsync.test/api/v3/special_offers/{rentals.special_offers}","rentals.rates":"http://bookingsync.test/api/v3/rates/{rentals.rates}","rentals.rentals_amenities":"http://bookingsync.test/api/v3/rentals_amenities/{rentals.rentals_amenities}","rentals.rentals_fees":"http://bookingsync.test/api/v3/rentals_fees/{rentals.rentals_fees}","rentals.bathrooms":"http://bookingsync.test/api/v3/bathrooms/{rentals.bathrooms}","rentals.bedrooms":"http://bookingsync.test/api/v3/bedrooms/{rentals.bedrooms}","rentals.living_rooms":"http://bookingsync.test/api/v3/living_rooms/{rentals.living_rooms}","rentals.rentals_tags":"http://bookingsync.test/api/v3/rentals_tags/{rentals.rentals_tags}","rentals.rental_contacts":"http://bookingsync.test/api/v3/rental_contacts/{rentals.rental_contacts}","rentals.videos":"http://bookingsync.test/api/v3/videos/{rentals.videos}"},"rentals":[{"links":{"account":1,"availability":1,"bathrooms":[1],"bedrooms":[],"change_over":1,"destination":85,"living_rooms":[],"nightly_rate_map":1,"photos":[1],"rates":[1,2,3],"rates_table":1,"rental_agreement":1,"rental_cancelation_policy":2,"rental_contacts":[],"rentals_amenities":[1,2,3],"rentals_fees":[],"rentals_tags":[],"reviews":[1,2,3,4,5,6,7,8,9,10,11,12,13],"special_offers":[1],"videos":[]},"id":1,"name":"Farmhouse
154
+ string: '{"links":{"rentals.account":"http://www.bookingsync.com/api/v3/accounts/{rentals.account}","rentals.availability":"http://www.bookingsync.com/api/v3/availabilities/{rentals.availability}","rentals.change_over":"http://www.bookingsync.com/api/v3/change_overs/{rentals.change_over}","rentals.destination":"http://www.bookingsync.com/api/v3/destinations/{rentals.destination}","rentals.rates_table":"http://www.bookingsync.com/api/v3/rates_tables/{rentals.rates_table}","rentals.rental_agreement":"http://www.bookingsync.com/api/v3/rental_agreements/{rentals.rental_agreement}","rentals.rental_cancelation_policy":"http://www.bookingsync.com/api/v3/rental_cancelation_policies/{rentals.rental_cancelation_policy}","rentals.nightly_rate_map":"http://www.bookingsync.com/api/v3/nightly_rate_maps/{rentals.nightly_rate_map}","rentals.photos":"http://www.bookingsync.com/api/v3/photos/{rentals.photos}","rentals.reviews":"http://www.bookingsync.com/api/v3/reviews/{rentals.reviews}","rentals.special_offers":"http://www.bookingsync.com/api/v3/special_offers/{rentals.special_offers}","rentals.rates":"http://www.bookingsync.com/api/v3/rates/{rentals.rates}","rentals.rentals_amenities":"http://www.bookingsync.com/api/v3/rentals_amenities/{rentals.rentals_amenities}","rentals.rentals_fees":"http://www.bookingsync.com/api/v3/rentals_fees/{rentals.rentals_fees}","rentals.bathrooms":"http://www.bookingsync.com/api/v3/bathrooms/{rentals.bathrooms}","rentals.bedrooms":"http://www.bookingsync.com/api/v3/bedrooms/{rentals.bedrooms}","rentals.living_rooms":"http://www.bookingsync.com/api/v3/living_rooms/{rentals.living_rooms}","rentals.rentals_tags":"http://www.bookingsync.com/api/v3/rentals_tags/{rentals.rentals_tags}","rentals.rental_contacts":"http://www.bookingsync.com/api/v3/rental_contacts/{rentals.rental_contacts}","rentals.videos":"http://www.bookingsync.com/api/v3/videos/{rentals.videos}"},"rentals":[{"links":{"account":1,"availability":1,"bathrooms":[1],"bedrooms":[],"change_over":1,"destination":85,"living_rooms":[],"nightly_rate_map":1,"photos":[1],"rates":[1,2,3],"rates_table":1,"rental_agreement":1,"rental_cancelation_policy":2,"rental_contacts":[],"rentals_amenities":[1,2,3],"rentals_fees":[],"rentals_tags":[],"reviews":[1,2,3,4,5,6,7,8,9,10,11,12,13],"special_offers":[1],"videos":[]},"id":1,"name":"Farmhouse
155
155
  Badminton","headline":{"en":"Farmhouse Badminton Surfing"},"summary":{"en":"Ipsum
156
156
  consequatur voluptas beatae laudantium quo libero architecto."},"description":{"en":"Eum
157
157
  quia quo repellat natus aut consequatur est. Ipsum rerum qui consequatur aut
@@ -161,6 +161,6 @@ http_interactions:
161
161
  impedit sint non. Natus est sit non est laudantium. Non quis quia non et.
162
162
  Vel accusamus temporibus ducimus rerum unde est sapiente qui."},"rental_type":"villa","downpayment":30,"bedrooms_count":0,"sleeps":7,"sleeps_max":null,"bathrooms_count":1,"surface":120,"surface_unit":"metric","bookable_online":false,"bookable_on_request":true,"instantly_bookable":false,"min_price":"45.0","max_price":"500.0","currency":"EUR","price_public_notes":{"en":"Public
163
163
  notes in english"},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country_code":"FR","contact_name":null,"reviews_count":13,"reviews_average_rating":"4.5","published_at":"2019-10-04T16:27:30Z","created_at":"2019-10-04T16:26:11Z","updated_at":"2019-10-04T16:27:39Z","address1":null,"address2":null,"zip":null,"checkin_time":16,"checkin_end_time":null,"checkout_time":10,"initial_price":null,"final_price":null,"position":1,"base_rate":"500.0","base_rate_kind":"weekly","absolute_min_price":"0.0","notes":null,"stories_count":null,"floor":"","damage_deposit":"35.5","owner_fullname":null,"owner_email":null,"owner_notes":null,"checkin_details":{},"checkout_details":{},"balance_due":30,"website_url":{},"charge_damage_deposit_on_arrival":true,"full_bathrooms_count":0,"standalone_toilets_count":0,"vr_bathrooms_count":1,"nightly_rates_managed_externally":false,"rounding_kind":"no-rounding","original_currency":"EUR","exchange_rate":"1.0","permit_number":null,"absolute_min_stay":7,"space":{},"guests_access":{},"guests_interaction":{},"guests_interaction_kind":null,"public_notes":{},"neighborhood_overview":{},"neighborhood_transit":{},"residency_category":null,"content_requirements_met":false,"certifications":{},"canceled_at":null}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/rentals/1?page=1","last":"https://www.bookingsync.com/api/v3/rentals/1?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"50"}}'
164
- http_version:
164
+ http_version:
165
165
  recorded_at: Sat, 05 Oct 2019 20:24:02 GMT
166
166
  recorded_with: VCR 5.0.0