bookingsync-api 0.1.12 → 0.1.13

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 +5 -5
  2. data/.gitignore +1 -0
  3. data/.travis.yml +3 -1
  4. data/CHANGELOG.md +3 -0
  5. data/lib/bookingsync/api/client.rb +10 -0
  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/rentals.rb +3 -2
  11. data/lib/bookingsync/api/version.rb +1 -1
  12. data/spec/bookingsync/api/client/applications_periods_rentals_spec.rb +70 -0
  13. data/spec/bookingsync/api/client/applications_spec.rb +44 -0
  14. data/spec/bookingsync/api/client/contacts_spec.rb +116 -0
  15. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_application/returns_a_single_application.yml +84 -0
  16. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_applications/returns_applications.yml +85 -0
  17. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/returns_updated_application.yml +73 -0
  18. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/updates_given_application_by_ID.yml +73 -0
  19. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rental/returns_applications_periods_rental.yml +80 -0
  20. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rentals/returns_applications_periods_rentals.yml +80 -0
  21. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_create_applications_periods_rental/creates_a_applications_periods_rental.yml +71 -0
  22. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/returns_updated_applications_periods_rental.yml +69 -0
  23. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/updates_given_applications_periods_rental_by_ID.yml +69 -0
  24. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_applications_periods_rental/creates_an_applications_periods_rental.yml +71 -0
  25. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_a_single_contact.yml +99 -0
  26. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_contact.yml +99 -0
  27. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts.yml +99 -0
  28. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts_by_ids.yml +99 -0
  29. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_create_contact/creates_a_new_contact.yml +74 -0
  30. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_delete_contact/deletes_given_contact.yml +63 -0
  31. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_edit_contact/updates_given_contact_by_ID.yml +71 -0
  32. metadata +46 -4
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/contacts
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: 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/"6d40a9df44cbfd4f6e31af938c30f15e"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/contacts?page=1>; rel="first", <https://www.bookingsync.com/api/v3/contacts?page=1>;
37
+ rel="last"
38
+ Set-Cookie:
39
+ - ahoy_visit=21d8d4cf-735b-4d60-a916-f5da7890620d; path=/; expires=Tue, 15 Oct
40
+ 2019 12:14:17 -0000
41
+ - ahoy_visitor=ad8819cd-447e-400f-851c-34882f0e97dd; path=/; expires=Fri, 08
42
+ Oct 2021 12:14:17 -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
+ - '992'
57
+ X-Ratelimit-Reset:
58
+ - '1570539600'
59
+ X-Request-Id:
60
+ - 7aecd0b8-0be5-46b4-8eca-e0dde3ab8bce
61
+ X-Runtime:
62
+ - '0.080301'
63
+ X-Total-Count:
64
+ - '1'
65
+ X-Total-Pages:
66
+ - '1'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2019-10-08 12:14:17 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Tue, 08 Oct 2019 12:14:17 GMT
73
+ Content-Length:
74
+ - '824'
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: !binary |-
78
+ eyJsaW5rcyI6eyJjb250YWN0cy5hY2NvdW50IjoiaHR0cDovL2Jvb2tpbmdz
79
+ eW5jLnRlc3QvYXBpL3YzL2FjY291bnRzL3tjb250YWN0cy5hY2NvdW50fSJ9
80
+ LCJjb250YWN0cyI6W3sibGlua3MiOnsiYWNjb3VudCI6MX0sImlkIjoxLCJm
81
+ dWxsbmFtZSI6IkpvaG4gRG9lIiwic3Bva2VuX2xhbmd1YWdlcyI6WyJlbiIs
82
+ ImVzIl0sImVtYWlsIjoiYWRyaWFuQGJvb2tpbmdzeW5jLmNvbSIsInBob25l
83
+ cyI6W3sibGFiZWwiOiJkZW1vIiwibnVtYmVyIjoiMTIzNDU2Nzg5In1dLCJ3
84
+ ZWJzaXRlIjoiaHR0cDovL3d3LmJvb2tpbmdzeW5jLmNvbSIsInByaXZhdGVf
85
+ bm90ZXMiOm51bGwsImFkZHJlc3MxIjoiZGVtbyBhZGRyZXNzIiwiYWRkcmVz
86
+ czIiOm51bGwsImNpdHkiOiJOw6l2YWNoZSIsInN0YXRlIjoiU3RhdGUiLCJ6
87
+ aXAiOiIzMzIwOSIsImNvdW50cnlfY29kZSI6IkZSIiwiZmlyc3RuYW1lIjoi
88
+ Sm9obiIsImxhc3RuYW1lIjoiRG9lIiwiZ2VuZGVyIjoibWFsZSIsImNyZWF0
89
+ ZWRfYXQiOiIyMDE5LTEwLTA4VDEyOjA2OjQ5WiIsInVwZGF0ZWRfYXQiOiIy
90
+ MDE5LTEwLTA4VDEyOjA2OjQ5WiIsImNhbmNlbGVkX2F0IjpudWxsLCJmb3Jn
91
+ ZXRfbWVfYXQiOm51bGwsInByb2Nlc3NpbmdfcmVzdHJpY3RlZF9hdCI6bnVs
92
+ bH1dLCJtZXRhIjp7IkxpbmsiOnsiZmlyc3QiOiJodHRwOi8vYm9va2luZ3N5
93
+ bmMudGVzdC9hcGkvdjMvY29udGFjdHM/cGFnZT0xIiwibGFzdCI6Imh0dHA6
94
+ Ly9ib29raW5nc3luYy50ZXN0L2FwaS92My9jb250YWN0cz9wYWdlPTEifSwi
95
+ WC1Ub3RhbC1QYWdlcyI6IjEiLCJYLVRvdGFsLUNvdW50IjoiMSIsIlgtUGVy
96
+ LVBhZ2UiOiIxMDAifX0=
97
+ http_version:
98
+ recorded_at: Tue, 08 Oct 2019 12:14:17 GMT
99
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/contacts/1
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: 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/"0eca489f8874ba9dde96f615bd9fb9b7"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/contacts/1?page=1>; rel="first", <https://www.bookingsync.com/api/v3/contacts/1?page=1>;
37
+ rel="last"
38
+ Set-Cookie:
39
+ - ahoy_visit=db3ad9fb-3ff1-4a63-befa-f8c567d68070; path=/; expires=Tue, 15 Oct
40
+ 2019 12:12:34 -0000
41
+ - ahoy_visitor=98b81e55-7220-4020-881a-8853b7c3ef87; path=/; expires=Fri, 08
42
+ Oct 2021 12:12:34 -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
+ - '994'
57
+ X-Ratelimit-Reset:
58
+ - '1570539600'
59
+ X-Request-Id:
60
+ - 1446ac7b-b6e4-4e6f-be72-0b4879c340d7
61
+ X-Runtime:
62
+ - '0.085136'
63
+ X-Total-Count:
64
+ - '1'
65
+ X-Total-Pages:
66
+ - '1'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2019-10-08 12:12:34 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Tue, 08 Oct 2019 12:12:34 GMT
73
+ Content-Length:
74
+ - '828'
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: !binary |-
78
+ eyJsaW5rcyI6eyJjb250YWN0cy5hY2NvdW50IjoiaHR0cDovL2Jvb2tpbmdz
79
+ eW5jLnRlc3QvYXBpL3YzL2FjY291bnRzL3tjb250YWN0cy5hY2NvdW50fSJ9
80
+ LCJjb250YWN0cyI6W3sibGlua3MiOnsiYWNjb3VudCI6MX0sImlkIjoxLCJm
81
+ dWxsbmFtZSI6IkpvaG4gRG9lIiwic3Bva2VuX2xhbmd1YWdlcyI6WyJlbiIs
82
+ ImVzIl0sImVtYWlsIjoiYWRyaWFuQGJvb2tpbmdzeW5jLmNvbSIsInBob25l
83
+ cyI6W3sibGFiZWwiOiJkZW1vIiwibnVtYmVyIjoiMTIzNDU2Nzg5In1dLCJ3
84
+ ZWJzaXRlIjoiaHR0cDovL3d3LmJvb2tpbmdzeW5jLmNvbSIsInByaXZhdGVf
85
+ bm90ZXMiOm51bGwsImFkZHJlc3MxIjoiZGVtbyBhZGRyZXNzIiwiYWRkcmVz
86
+ czIiOm51bGwsImNpdHkiOiJOw6l2YWNoZSIsInN0YXRlIjoiU3RhdGUiLCJ6
87
+ aXAiOiIzMzIwOSIsImNvdW50cnlfY29kZSI6IkZSIiwiZmlyc3RuYW1lIjoi
88
+ Sm9obiIsImxhc3RuYW1lIjoiRG9lIiwiZ2VuZGVyIjoibWFsZSIsImNyZWF0
89
+ ZWRfYXQiOiIyMDE5LTEwLTA4VDEyOjA2OjQ5WiIsInVwZGF0ZWRfYXQiOiIy
90
+ MDE5LTEwLTA4VDEyOjA2OjQ5WiIsImNhbmNlbGVkX2F0IjpudWxsLCJmb3Jn
91
+ ZXRfbWVfYXQiOm51bGwsInByb2Nlc3NpbmdfcmVzdHJpY3RlZF9hdCI6bnVs
92
+ bH1dLCJtZXRhIjp7IkxpbmsiOnsiZmlyc3QiOiJodHRwOi8vYm9va2luZ3N5
93
+ bmMudGVzdC9hcGkvdjMvY29udGFjdHMvMT9wYWdlPTEiLCJsYXN0IjoiaHR0
94
+ cDovL2Jvb2tpbmdzeW5jLnRlc3QvYXBpL3YzL2NvbnRhY3RzLzE/cGFnZT0x
95
+ In0sIlgtVG90YWwtUGFnZXMiOiIxIiwiWC1Ub3RhbC1Db3VudCI6IjEiLCJY
96
+ LVBlci1QYWdlIjoiMTAwIn19
97
+ http_version:
98
+ recorded_at: Tue, 08 Oct 2019 12:12:34 GMT
99
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,74 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/contacts
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"contacts":[{"firstname":"John","lastname":"Doe","email":"halldor@example.com","website":"http://www.demo.com","address1":"Demo
9
+ address","gender":"male","phones":[{"label":"default","number":"123456789"}],"country_code":"IS","city":"Reykjavik","zip":"33209","state":"Demo","spoken_languages":["en"]}]}'
10
+ headers:
11
+ User-Agent:
12
+ - BookingSync API gem v0.1.13
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: 201
28
+ message: Created
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/"109d9e77fc462040fed610a1804f174b"
36
+ Location:
37
+ - https://www.bookingsync.com/api/v3/contacts/2
38
+ Set-Cookie:
39
+ - ahoy_visit=927716d7-6aed-44ba-a636-cb1edfae464c; path=/; expires=Tue, 15 Oct
40
+ 2019 12:23:10 -0000
41
+ - ahoy_visitor=aa6a9b4c-f97d-44c5-adde-376832ea98f3; path=/; expires=Fri, 08
42
+ Oct 2021 12:23:10 -0000
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Ratelimit-Limit:
50
+ - '1000'
51
+ X-Ratelimit-Remaining:
52
+ - '990'
53
+ X-Ratelimit-Reset:
54
+ - '1570539600'
55
+ X-Request-Id:
56
+ - 17912562-0f48-4ef3-9cf5-ec3e289dfda4
57
+ X-Runtime:
58
+ - '0.288931'
59
+ X-Updated-Since-Request-Synced-At:
60
+ - 2019-10-08 12:23:10 UTC
61
+ X-Xss-Protection:
62
+ - 1; mode=block
63
+ Date:
64
+ - Tue, 08 Oct 2019 12:23:10 GMT
65
+ Content-Length:
66
+ - '633'
67
+ body:
68
+ encoding: UTF-8
69
+ string: '{"links":{"contacts.account":"https://www.bookingsync.com/api/v3/accounts/{contacts.account}"},"contacts":[{"links":{"account":1},"id":2,"fullname":"John
70
+ Doe","spoken_languages":["en"],"email":"halldor@example.com","phones":[{"label":"default","number":"123456789"}],"website":"http://www.demo.com","private_notes":null,"address1":"Demo
71
+ address","address2":null,"city":"Reykjavik","state":"Demo","zip":"33209","country_code":"IS","firstname":"John","lastname":"Doe","gender":"male","created_at":"2019-10-08T12:23:10Z","updated_at":"2019-10-08T12:23:10Z","canceled_at":null,"forget_me_at":null,"processing_restricted_at":null}],"meta":{}}'
72
+ http_version:
73
+ recorded_at: Tue, 08 Oct 2019 12:23:10 GMT
74
+ 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/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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookingsync-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Grosjean
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-25 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -130,6 +130,8 @@ files:
130
130
  - lib/bookingsync/api/client.rb
131
131
  - lib/bookingsync/api/client/accounts.rb
132
132
  - lib/bookingsync/api/client/amenities.rb
133
+ - lib/bookingsync/api/client/applications.rb
134
+ - lib/bookingsync/api/client/applications_periods_rentals.rb
133
135
  - lib/bookingsync/api/client/attachments.rb
134
136
  - lib/bookingsync/api/client/availabilities.rb
135
137
  - lib/bookingsync/api/client/bathrooms.rb
@@ -142,6 +144,7 @@ files:
142
144
  - lib/bookingsync/api/client/bookings_taxes.rb
143
145
  - lib/bookingsync/api/client/change_overs.rb
144
146
  - lib/bookingsync/api/client/clients.rb
147
+ - lib/bookingsync/api/client/contacts.rb
145
148
  - lib/bookingsync/api/client/conversations.rb
146
149
  - lib/bookingsync/api/client/destinations.rb
147
150
  - lib/bookingsync/api/client/fees.rb
@@ -181,6 +184,8 @@ files:
181
184
  - lib/bookingsync/api/version.rb
182
185
  - spec/bookingsync/api/client/accounts_spec.rb
183
186
  - spec/bookingsync/api/client/amenities_spec.rb
187
+ - spec/bookingsync/api/client/applications_periods_rentals_spec.rb
188
+ - spec/bookingsync/api/client/applications_spec.rb
184
189
  - spec/bookingsync/api/client/attachments_spec.rb
185
190
  - spec/bookingsync/api/client/availabilities_spec.rb
186
191
  - spec/bookingsync/api/client/bathrooms_spec.rb
@@ -193,6 +198,7 @@ files:
193
198
  - spec/bookingsync/api/client/bookings_taxes_spec.rb
194
199
  - spec/bookingsync/api/client/change_overs_spec.rb
195
200
  - spec/bookingsync/api/client/clients_spec.rb
201
+ - spec/bookingsync/api/client/contacts_spec.rb
196
202
  - spec/bookingsync/api/client/conversations_spec.rb
197
203
  - spec/bookingsync/api/client/destinations_spec.rb
198
204
  - spec/bookingsync/api/client/fees_spec.rb
@@ -233,6 +239,15 @@ files:
233
239
  - spec/fixtures/cassettes/BookingSync_API_Client_Accounts/_accounts/returns_accounts.yml
234
240
  - spec/fixtures/cassettes/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml
235
241
  - spec/fixtures/cassettes/BookingSync_API_Client_Amenities/_amenity/returns_amenity.yml
242
+ - spec/fixtures/cassettes/BookingSync_API_Client_Applications/_application/returns_a_single_application.yml
243
+ - spec/fixtures/cassettes/BookingSync_API_Client_Applications/_applications/returns_applications.yml
244
+ - spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/returns_updated_application.yml
245
+ - spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/updates_given_application_by_ID.yml
246
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rental/returns_applications_periods_rental.yml
247
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rentals/returns_applications_periods_rentals.yml
248
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_create_applications_periods_rental/creates_a_applications_periods_rental.yml
249
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/returns_updated_applications_periods_rental.yml
250
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/updates_given_applications_periods_rental_by_ID.yml
236
251
  - spec/fixtures/cassettes/BookingSync_API_Client_Attachments/_attachment/returns_a_single_attachment.yml
237
252
  - spec/fixtures/cassettes/BookingSync_API_Client_Attachments/_attachments/returns_attachments.yml
238
253
  - spec/fixtures/cassettes/BookingSync_API_Client_Attachments/_create_attachment/creates_a_attachment_with_file_path.yml
@@ -267,6 +282,7 @@ files:
267
282
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml
268
283
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/returns_bookings.yml
269
284
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_cancel_booking/cancels_given_booking_and_passes_options_along_as_bookings_payload.yml
285
+ - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_applications_periods_rental/creates_an_applications_periods_rental.yml
270
286
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml
271
287
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml
272
288
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_remove_bookings_fee/removes_bookings_fee_and_returns_with_booking.yml
@@ -284,6 +300,13 @@ files:
284
300
  - spec/fixtures/cassettes/BookingSync_API_Client_Clients/_clients/returns_clients.yml
285
301
  - spec/fixtures/cassettes/BookingSync_API_Client_Clients/_create_client/creates_a_new_client.yml
286
302
  - spec/fixtures/cassettes/BookingSync_API_Client_Clients/_edit_client/updates_given_client_by_ID.yml
303
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_a_single_contact.yml
304
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_contact.yml
305
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts.yml
306
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts_by_ids.yml
307
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_create_contact/creates_a_new_contact.yml
308
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_delete_contact/deletes_given_contact.yml
309
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_edit_contact/updates_given_contact_by_ID.yml
287
310
  - spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_connect_booking_to_conversation/connects_given_conversation_with_booking.yml
288
311
  - spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_conversation/returns_a_single_conversation.yml
289
312
  - spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_conversations/returns_conversations.yml
@@ -435,14 +458,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
435
458
  - !ruby/object:Gem::Version
436
459
  version: '0'
437
460
  requirements: []
438
- rubyforge_project:
439
- rubygems_version: 2.5.1
461
+ rubygems_version: 3.0.6
440
462
  signing_key:
441
463
  specification_version: 4
442
464
  summary: Ruby interface for accessing https://www.bookingsync.com
443
465
  test_files:
444
466
  - spec/bookingsync/api/client/accounts_spec.rb
445
467
  - spec/bookingsync/api/client/amenities_spec.rb
468
+ - spec/bookingsync/api/client/applications_periods_rentals_spec.rb
469
+ - spec/bookingsync/api/client/applications_spec.rb
446
470
  - spec/bookingsync/api/client/attachments_spec.rb
447
471
  - spec/bookingsync/api/client/availabilities_spec.rb
448
472
  - spec/bookingsync/api/client/bathrooms_spec.rb
@@ -455,6 +479,7 @@ test_files:
455
479
  - spec/bookingsync/api/client/bookings_taxes_spec.rb
456
480
  - spec/bookingsync/api/client/change_overs_spec.rb
457
481
  - spec/bookingsync/api/client/clients_spec.rb
482
+ - spec/bookingsync/api/client/contacts_spec.rb
458
483
  - spec/bookingsync/api/client/conversations_spec.rb
459
484
  - spec/bookingsync/api/client/destinations_spec.rb
460
485
  - spec/bookingsync/api/client/fees_spec.rb
@@ -495,6 +520,15 @@ test_files:
495
520
  - spec/fixtures/cassettes/BookingSync_API_Client_Accounts/_accounts/returns_accounts.yml
496
521
  - spec/fixtures/cassettes/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml
497
522
  - spec/fixtures/cassettes/BookingSync_API_Client_Amenities/_amenity/returns_amenity.yml
523
+ - spec/fixtures/cassettes/BookingSync_API_Client_Applications/_application/returns_a_single_application.yml
524
+ - spec/fixtures/cassettes/BookingSync_API_Client_Applications/_applications/returns_applications.yml
525
+ - spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/returns_updated_application.yml
526
+ - spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/updates_given_application_by_ID.yml
527
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rental/returns_applications_periods_rental.yml
528
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rentals/returns_applications_periods_rentals.yml
529
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_create_applications_periods_rental/creates_a_applications_periods_rental.yml
530
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/returns_updated_applications_periods_rental.yml
531
+ - spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/updates_given_applications_periods_rental_by_ID.yml
498
532
  - spec/fixtures/cassettes/BookingSync_API_Client_Attachments/_attachment/returns_a_single_attachment.yml
499
533
  - spec/fixtures/cassettes/BookingSync_API_Client_Attachments/_attachments/returns_attachments.yml
500
534
  - spec/fixtures/cassettes/BookingSync_API_Client_Attachments/_create_attachment/creates_a_attachment_with_file_path.yml
@@ -529,6 +563,7 @@ test_files:
529
563
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml
530
564
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/returns_bookings.yml
531
565
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_cancel_booking/cancels_given_booking_and_passes_options_along_as_bookings_payload.yml
566
+ - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_applications_periods_rental/creates_an_applications_periods_rental.yml
532
567
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml
533
568
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml
534
569
  - spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_remove_bookings_fee/removes_bookings_fee_and_returns_with_booking.yml
@@ -546,6 +581,13 @@ test_files:
546
581
  - spec/fixtures/cassettes/BookingSync_API_Client_Clients/_clients/returns_clients.yml
547
582
  - spec/fixtures/cassettes/BookingSync_API_Client_Clients/_create_client/creates_a_new_client.yml
548
583
  - spec/fixtures/cassettes/BookingSync_API_Client_Clients/_edit_client/updates_given_client_by_ID.yml
584
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_a_single_contact.yml
585
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_contact.yml
586
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts.yml
587
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts_by_ids.yml
588
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_create_contact/creates_a_new_contact.yml
589
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_delete_contact/deletes_given_contact.yml
590
+ - spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_edit_contact/updates_given_contact_by_ID.yml
549
591
  - spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_connect_booking_to_conversation/connects_given_conversation_with_booking.yml
550
592
  - spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_conversation/returns_a_single_conversation.yml
551
593
  - spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_conversations/returns_conversations.yml