bookingsync-api 0.1.11 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.travis.yml +3 -1
  4. data/CHANGELOG.md +12 -0
  5. data/bookingsync-api.gemspec +3 -3
  6. data/lib/bookingsync/api/client/applications.rb +43 -0
  7. data/lib/bookingsync/api/client/applications_periods_rentals.rb +49 -0
  8. data/lib/bookingsync/api/client/booking_comments.rb +1 -1
  9. data/lib/bookingsync/api/client/contacts.rb +63 -0
  10. data/lib/bookingsync/api/client/rental_urls.rb +72 -0
  11. data/lib/bookingsync/api/client/rentals.rb +3 -2
  12. data/lib/bookingsync/api/client.rb +12 -2
  13. data/lib/bookingsync/api/version.rb +1 -1
  14. data/spec/bookingsync/api/client/applications_periods_rentals_spec.rb +70 -0
  15. data/spec/bookingsync/api/client/applications_spec.rb +44 -0
  16. data/spec/bookingsync/api/client/contacts_spec.rb +116 -0
  17. data/spec/bookingsync/api/client/rental_urls_spec.rb +83 -0
  18. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_application/returns_a_single_application.yml +84 -0
  19. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_applications/returns_applications.yml +85 -0
  20. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/returns_updated_application.yml +73 -0
  21. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/updates_given_application_by_ID.yml +73 -0
  22. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rental/returns_applications_periods_rental.yml +80 -0
  23. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rentals/returns_applications_periods_rentals.yml +80 -0
  24. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_create_applications_periods_rental/creates_a_applications_periods_rental.yml +71 -0
  25. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/returns_updated_applications_periods_rental.yml +69 -0
  26. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/updates_given_applications_periods_rental_by_ID.yml +69 -0
  27. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_applications_periods_rental/creates_an_applications_periods_rental.yml +71 -0
  28. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_a_single_contact.yml +99 -0
  29. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_contact.yml +99 -0
  30. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts.yml +99 -0
  31. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts_by_ids.yml +99 -0
  32. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_create_contact/creates_a_new_contact.yml +74 -0
  33. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_delete_contact/deletes_given_contact.yml +63 -0
  34. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_edit_contact/updates_given_contact_by_ID.yml +71 -0
  35. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_cancel_rental_url/cancels_given_rental_url.yml +63 -0
  36. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_create_rental_url/creates_a_new_rental_url.yml +71 -0
  37. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_edit_rental_url/updates_given_rental_url_by_ID.yml +69 -0
  38. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_url/returns_rental_url.yml +81 -0
  39. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/links/returns_associated_rental.yml +166 -0
  40. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/returns_rental_urls.yml +80 -0
  41. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rental_url/creates_a_new_rental_url.yml +71 -0
  42. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url.yml +69 -0
  43. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url_by_ID.yml +69 -0
  44. metadata +88 -19
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://www.bookingsync.com/api/v3/contacts/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.13
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: 204
27
+ message: No Content
28
+ headers:
29
+ Cache-Control:
30
+ - no-cache
31
+ Set-Cookie:
32
+ - ahoy_visit=12d81028-4326-4e6a-a7ee-cfc56248beb5; path=/; expires=Tue, 15 Oct
33
+ 2019 12:29:25 -0000
34
+ - ahoy_visitor=9aef93aa-5482-482d-8798-1053f1f1370e; path=/; expires=Fri, 08
35
+ Oct 2021 12:29:25 -0000
36
+ Vary:
37
+ - Origin
38
+ X-Content-Type-Options:
39
+ - nosniff
40
+ X-Frame-Options:
41
+ - SAMEORIGIN
42
+ X-Ratelimit-Limit:
43
+ - '1000'
44
+ X-Ratelimit-Remaining:
45
+ - '986'
46
+ X-Ratelimit-Reset:
47
+ - '1570539600'
48
+ X-Request-Id:
49
+ - 0fdc84d1-655c-4162-8376-1df38f37d8db
50
+ X-Runtime:
51
+ - '0.123755'
52
+ X-Updated-Since-Request-Synced-At:
53
+ - 2019-10-08 12:29:25 UTC
54
+ X-Xss-Protection:
55
+ - 1; mode=block
56
+ Date:
57
+ - Tue, 08 Oct 2019 12:29:25 GMT
58
+ body:
59
+ encoding: UTF-8
60
+ string: ''
61
+ http_version:
62
+ recorded_at: Tue, 08 Oct 2019 12:29:25 GMT
63
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/contacts/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"contacts":[{"firstname":"Knut","lastname":"Eljassen"}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.13
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/"65a82e4d429ffacd6752e17c87d81f27"
35
+ Set-Cookie:
36
+ - ahoy_visit=b8acefd7-a469-4351-9ceb-89fac8da1226; path=/; expires=Tue, 15 Oct
37
+ 2019 12:26:20 -0000
38
+ - ahoy_visitor=77f7d972-8119-411c-bf19-23751447c1e0; path=/; expires=Fri, 08
39
+ Oct 2021 12:26:20 -0000
40
+ Vary:
41
+ - Origin
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - SAMEORIGIN
46
+ X-Ratelimit-Limit:
47
+ - '1000'
48
+ X-Ratelimit-Remaining:
49
+ - '987'
50
+ X-Ratelimit-Reset:
51
+ - '1570539600'
52
+ X-Request-Id:
53
+ - ac24a74d-2082-444b-97d8-b86117a24125
54
+ X-Runtime:
55
+ - '0.092898'
56
+ X-Updated-Since-Request-Synced-At:
57
+ - 2019-10-08 12:26:20 UTC
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ Date:
61
+ - Tue, 08 Oct 2019 12:26:20 GMT
62
+ Content-Length:
63
+ - '643'
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"links":{"contacts.account":"https://www.bookingsync.com/api/v3/accounts/{contacts.account}"},"contacts":[{"links":{"account":1},"id":2,"fullname":"Knut
67
+ Eljassen","spoken_languages":["en"],"email":"halldor@example.com","phones":[{"label":"default","number":"123456789"}],"website":"http://www.demo.com","private_notes":null,"address1":"Demo
68
+ address","address2":null,"city":"Reykjavik","state":"Demo","zip":"33209","country_code":"IS","firstname":"Knut","lastname":"Eljassen","gender":"male","created_at":"2019-10-08T12:23:10Z","updated_at":"2019-10-08T12:26:20Z","canceled_at":null,"forget_me_at":null,"processing_restricted_at":null}],"meta":{}}'
69
+ http_version:
70
+ recorded_at: Tue, 08 Oct 2019 12:26:20 GMT
71
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://www.bookingsync.com/api/v3/rental_urls/33878e9a-4c09-4f02-a340-6c3c099e66ad
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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: 204
27
+ message: No Content
28
+ headers:
29
+ Cache-Control:
30
+ - no-cache
31
+ Set-Cookie:
32
+ - ahoy_visit=4304281b-8ba2-471f-977f-699854495c54; path=/; expires=Tue, 15 Oct
33
+ 2019 15:12:18 -0000
34
+ - ahoy_visitor=6b0d2fdf-038f-4bfe-8d9b-0152e57344f1; path=/; expires=Fri, 08
35
+ Oct 2021 15:12:18 -0000
36
+ Vary:
37
+ - Origin
38
+ X-Content-Type-Options:
39
+ - nosniff
40
+ X-Frame-Options:
41
+ - SAMEORIGIN
42
+ X-Ratelimit-Limit:
43
+ - '1000'
44
+ X-Ratelimit-Remaining:
45
+ - '996'
46
+ X-Ratelimit-Reset:
47
+ - '1570550400'
48
+ X-Request-Id:
49
+ - 113886b2-30d6-4835-a24b-b6e2333136a7
50
+ X-Runtime:
51
+ - '0.113546'
52
+ X-Updated-Since-Request-Synced-At:
53
+ - 2019-10-08 15:12:18 UTC
54
+ X-Xss-Protection:
55
+ - 1; mode=block
56
+ Date:
57
+ - Tue, 08 Oct 2019 15:12:18 GMT
58
+ body:
59
+ encoding: UTF-8
60
+ string: ''
61
+ http_version:
62
+ recorded_at: Tue, 08 Oct 2019 15:12:18 GMT
63
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/rentals/1/rental_urls
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"rental_urls":{"url":"test_test.com","label":"HomeAway","locked":"true"}}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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/"75b65c06b7d92e5e2da7f519254c4652"
35
+ Location:
36
+ - https://www.bookingsync.com/api/v3/rental_urls/33878e9a-4c09-4f02-a340-6c3c099e66ad
37
+ Set-Cookie:
38
+ - ahoy_visit=b4ef2473-41f9-49a1-876e-973c617d4a0a; path=/; expires=Tue, 15 Oct
39
+ 2019 15:12:14 -0000
40
+ - ahoy_visitor=18b4c1fa-fe28-4d61-8410-ff28cec55dcc; path=/; expires=Fri, 08
41
+ Oct 2021 15:12:14 -0000
42
+ Vary:
43
+ - Origin
44
+ X-Content-Type-Options:
45
+ - nosniff
46
+ X-Frame-Options:
47
+ - SAMEORIGIN
48
+ X-Ratelimit-Limit:
49
+ - '1000'
50
+ X-Ratelimit-Remaining:
51
+ - '997'
52
+ X-Ratelimit-Reset:
53
+ - '1570550400'
54
+ X-Request-Id:
55
+ - dc9e47d6-c6a6-461c-a794-168fd62879d4
56
+ X-Runtime:
57
+ - '0.169877'
58
+ X-Updated-Since-Request-Synced-At:
59
+ - 2019-10-08 15:12:14 UTC
60
+ X-Xss-Protection:
61
+ - 1; mode=block
62
+ Date:
63
+ - Tue, 08 Oct 2019 15:12:14 GMT
64
+ Content-Length:
65
+ - '385'
66
+ body:
67
+ encoding: UTF-8
68
+ string: '{"links":{"rental_urls.rental":"https://www.bookingsync.com/api/v3/rentals/{rental_urls.rental}"},"rental_urls":[{"links":{"rental":1},"id":"33878e9a-4c09-4f02-a340-6c3c099e66ad","label":"HomeAway","url":"test_test.com","lock":{"record":"doorkeeper/application-9","attributes":{}},"canceled_at":null,"created_at":"2019-10-08T15:12:14Z","updated_at":"2019-10-08T15:12:14Z"}],"meta":{}}'
69
+ http_version:
70
+ recorded_at: Tue, 08 Oct 2019 15:12:14 GMT
71
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/rental_urls/33878e9a-4c09-4f02-a340-6c3c099e66ad
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"rental_urls":{"url":"new_url.com"}}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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/"49d42f08bf0f177db57311ced8bea84e"
35
+ Set-Cookie:
36
+ - ahoy_visit=e876c8b0-54ed-456f-b672-28945dd4bdc7; path=/; expires=Sat, 12 Oct
37
+ 2019 21:02:46 -0000
38
+ - ahoy_visitor=2710a1d1-7669-41fe-98dc-0a9a2b4e20fd; path=/; expires=Tue, 05
39
+ Oct 2021 21:02:46 -0000
40
+ Vary:
41
+ - Origin
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - SAMEORIGIN
46
+ X-Ratelimit-Limit:
47
+ - '1000'
48
+ X-Ratelimit-Remaining:
49
+ - '997'
50
+ X-Ratelimit-Reset:
51
+ - '1570312800'
52
+ X-Request-Id:
53
+ - 59a2821c-86ba-40ca-8ecf-ada97b1aee7d
54
+ X-Runtime:
55
+ - '0.134106'
56
+ X-Updated-Since-Request-Synced-At:
57
+ - 2019-10-05 21:02:46 UTC
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ Date:
61
+ - Sat, 05 Oct 2019 21:02:46 GMT
62
+ Content-Length:
63
+ - '383'
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"links":{"rental_urls.rental":"https://www.bookingsync.com/api/v3/rentals/{rental_urls.rental}"},"rental_urls":[{"links":{"rental":1},"id":"33878e9a-4c09-4f02-a340-6c3c099e66ad","label":"HomeAway","url":"new_url.com","lock":{"record":"doorkeeper/application-9","attributes":{}},"canceled_at":null,"created_at":"2019-10-05T20:58:12Z","updated_at":"2019-10-05T21:02:46Z"}],"meta":{}}'
67
+ http_version:
68
+ recorded_at: Sat, 05 Oct 2019 21:02:46 GMT
69
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/rental_urls/a6e9b7a2-0fb9-42dc-8bf6-4bfa0b1aae25
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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/"e67a18ed72f604bf0952cc9ba5423e24"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/rental_urls/a6e9b7a2-0fb9-42dc-8bf6-4bfa0b1aae25?page=1>;
37
+ rel="first", <https://www.bookingsync.com/api/v3/rental_urls/a6e9b7a2-0fb9-42dc-8bf6-4bfa0b1aae25?page=1>;
38
+ rel="last"
39
+ Set-Cookie:
40
+ - ahoy_visit=d2d57da9-0114-4ac8-89ac-442a2536be7f; path=/; expires=Sat, 12 Oct
41
+ 2019 20:25:54 -0000
42
+ - ahoy_visitor=24f4783d-0d4d-47ff-ad11-37d8c0b028dc; path=/; expires=Tue, 05
43
+ Oct 2021 20:25:54 -0000
44
+ Vary:
45
+ - Origin
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ X-Current-Page:
49
+ - '1'
50
+ X-Frame-Options:
51
+ - SAMEORIGIN
52
+ X-Per-Page:
53
+ - '100'
54
+ X-Ratelimit-Limit:
55
+ - '1000'
56
+ X-Ratelimit-Remaining:
57
+ - '996'
58
+ X-Ratelimit-Reset:
59
+ - '1570309200'
60
+ X-Request-Id:
61
+ - 063aa135-2485-47e5-ac14-6997dca4ab4c
62
+ X-Runtime:
63
+ - '0.124854'
64
+ X-Total-Count:
65
+ - '1'
66
+ X-Total-Pages:
67
+ - '1'
68
+ X-Updated-Since-Request-Synced-At:
69
+ - 2019-10-05 20:25:54 UTC
70
+ X-Xss-Protection:
71
+ - 1; mode=block
72
+ Date:
73
+ - Sat, 05 Oct 2019 20:25:54 GMT
74
+ Content-Length:
75
+ - '626'
76
+ body:
77
+ encoding: UTF-8
78
+ 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/a6e9b7a2-0fb9-42dc-8bf6-4bfa0b1aae25?page=1","last":"https://www.bookingsync.com/api/v3/rental_urls/a6e9b7a2-0fb9-42dc-8bf6-4bfa0b1aae25?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
79
+ http_version:
80
+ recorded_at: Sat, 05 Oct 2019 20:25:54 GMT
81
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,166 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/rental_urls
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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/"7c8aa051de8288e54fe0909f1b295531"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/rental_urls?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rental_urls?page=1>;
37
+ rel="last"
38
+ Set-Cookie:
39
+ - ahoy_visit=00a81267-5cda-432d-8ec9-3f690aa4d1e7; path=/; expires=Sat, 12 Oct
40
+ 2019 20:24:01 -0000
41
+ - ahoy_visitor=1e49482b-c239-4770-800e-52925ebcdde2; path=/; expires=Tue, 05
42
+ Oct 2021 20:24:01 -0000
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Current-Page:
48
+ - '1'
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Per-Page:
52
+ - '100'
53
+ X-Ratelimit-Limit:
54
+ - '1000'
55
+ X-Ratelimit-Remaining:
56
+ - '998'
57
+ X-Ratelimit-Reset:
58
+ - '1570309200'
59
+ X-Request-Id:
60
+ - f93a22cc-a5d9-415c-aa72-0f1f415f6919
61
+ X-Runtime:
62
+ - '0.338754'
63
+ X-Total-Count:
64
+ - '1'
65
+ X-Total-Pages:
66
+ - '1'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2019-10-05 20:24:01 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Sat, 05 Oct 2019 20:24:01 GMT
73
+ Content-Length:
74
+ - '552'
75
+ body:
76
+ encoding: UTF-8
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:
79
+ recorded_at: Sat, 05 Oct 2019 20:24:01 GMT
80
+ - request:
81
+ method: get
82
+ uri: https://www.bookingsync.com/api/v3/rentals/1
83
+ body:
84
+ encoding: UTF-8
85
+ string: "{}"
86
+ headers:
87
+ User-Agent:
88
+ - BookingSync API gem v0.1.12
89
+ Accept:
90
+ - application/vnd.api+json
91
+ Content-Type:
92
+ - application/vnd.api+json
93
+ Authorization:
94
+ - Bearer <<ACCESS_TOKEN>>
95
+ Accept-Encoding:
96
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
97
+ Connection:
98
+ - keep-alive
99
+ Keep-Alive:
100
+ - '30'
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: OK
105
+ headers:
106
+ Cache-Control:
107
+ - max-age=0, private, must-revalidate
108
+ Content-Type:
109
+ - application/vnd.api+json; charset=utf-8
110
+ Etag:
111
+ - W/"18b30f17fc2645d39067742442947f7d"
112
+ Link:
113
+ - <https://www.bookingsync.com/api/v3/rentals/1?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rentals/1?page=1>;
114
+ rel="last"
115
+ Set-Cookie:
116
+ - ahoy_visit=b98fe6d0-14b5-4686-8c2f-108db2706e5a; path=/; expires=Sat, 12 Oct
117
+ 2019 20:24:02 -0000
118
+ - ahoy_visitor=827549c2-c039-4814-9e2e-967828cc29d6; path=/; expires=Tue, 05
119
+ Oct 2021 20:24:02 -0000
120
+ Vary:
121
+ - Origin
122
+ X-Content-Type-Options:
123
+ - nosniff
124
+ X-Current-Page:
125
+ - '1'
126
+ X-Frame-Options:
127
+ - SAMEORIGIN
128
+ X-Per-Page:
129
+ - '50'
130
+ X-Ratelimit-Limit:
131
+ - '1000'
132
+ X-Ratelimit-Remaining:
133
+ - '997'
134
+ X-Ratelimit-Reset:
135
+ - '1570309200'
136
+ X-Request-Id:
137
+ - 3ee9171d-a992-4ef8-a0fe-eed7476b9040
138
+ X-Runtime:
139
+ - '0.217933'
140
+ X-Total-Count:
141
+ - '1'
142
+ X-Total-Pages:
143
+ - '1'
144
+ X-Updated-Since-Request-Synced-At:
145
+ - 2019-10-05 20:24:02 UTC
146
+ X-Xss-Protection:
147
+ - 1; mode=block
148
+ Date:
149
+ - Sat, 05 Oct 2019 20:24:02 GMT
150
+ Transfer-Encoding:
151
+ - chunked
152
+ body:
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
155
+ Badminton","headline":{"en":"Farmhouse Badminton Surfing"},"summary":{"en":"Ipsum
156
+ consequatur voluptas beatae laudantium quo libero architecto."},"description":{"en":"Eum
157
+ quia quo repellat natus aut consequatur est. Ipsum rerum qui consequatur aut
158
+ laudantium placeat quod. Architecto aut dolorem amet quibusdam.Velit impedit
159
+ dolores saepe aut aut hic amet. Cumque perferendis et est repellat rerum id
160
+ occaecati. Autem dolorem quam porro corrupti laudantium in quia.Ut nihil blanditiis
161
+ impedit sint non. Natus est sit non est laudantium. Non quis quia non et.
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
+ 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:
165
+ recorded_at: Sat, 05 Oct 2019 20:24:02 GMT
166
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,80 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/rental_urls
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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/"7c8aa051de8288e54fe0909f1b295531"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/rental_urls?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rental_urls?page=1>;
37
+ rel="last"
38
+ Set-Cookie:
39
+ - ahoy_visit=36ff77de-880d-422a-b5b2-31f81a741141; path=/; expires=Sat, 12 Oct
40
+ 2019 20:23:39 -0000
41
+ - ahoy_visitor=bb0a998b-c693-4277-b7b1-1b8023e42bea; path=/; expires=Tue, 05
42
+ Oct 2021 20:23:39 -0000
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Current-Page:
48
+ - '1'
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Per-Page:
52
+ - '100'
53
+ X-Ratelimit-Limit:
54
+ - '1000'
55
+ X-Ratelimit-Remaining:
56
+ - '999'
57
+ X-Ratelimit-Reset:
58
+ - '1570309200'
59
+ X-Request-Id:
60
+ - 0a023299-f121-477c-80fb-9ffe55d6cf4b
61
+ X-Runtime:
62
+ - '0.353069'
63
+ X-Total-Count:
64
+ - '1'
65
+ X-Total-Pages:
66
+ - '1'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2019-10-05 20:23:39 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Sat, 05 Oct 2019 20:23:39 GMT
73
+ Content-Length:
74
+ - '552'
75
+ body:
76
+ encoding: UTF-8
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:
79
+ recorded_at: Sat, 05 Oct 2019 20:23:39 GMT
80
+ recorded_with: VCR 5.0.0