bookingsync-api 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a09e07498321ef580ddd8236abc2981e51f1292ffe3816fd888247a4ce01d34
4
- data.tar.gz: 8d5794b071cdb51115431a1598e5635ce8cde59fb11abe7ac564cf1f08700951
3
+ metadata.gz: 959a0d4f8ed8fb3e53beb473e99f628db3bae0c9d1d8529761f616b4d233f228
4
+ data.tar.gz: 5ff8c46a9f97630b779d9aaf3b59dcea832838f7f9129425ce038717ffcd2ab5
5
5
  SHA512:
6
- metadata.gz: 42b832673aea07e5cf57c2a50ec5982f4f0972e05a8f2c7f5eeedba239eeb5e840ae2672b13bdbbd6528ab582a5b733e626b349c54f550c4fc98443aa50fefa3
7
- data.tar.gz: 293aba124873f3f84bb6417ef9dc271e0efc1e2d64bbbf3e9865ed6101901432ad1bfd2a02df76d12153ef3ba17fead418d479bf40077d6f67514fc33c19558e
6
+ metadata.gz: 9b478ad564dd1968ec00cbc0d838f4568bd22a5cff889c733f3f75d6c2ef068f78936dde7121acc5a1b793c1c1243b77d3a08391a7803410e563cc526404bb21
7
+ data.tar.gz: 40488c557277ea6f155f34863b0b9267e2515534a22a3a68ebf761c495719e56b0ae14079373277d5395c85fb4282eecea33a98e3390ad080aa8d3e017feedef
@@ -2,6 +2,9 @@
2
2
 
3
3
  # master
4
4
 
5
+ ## 0.1.14 - 2019-10-15
6
+ - Add supports for `rental_urls` endpoint.
7
+
5
8
  ## 0.1.13 - 2019-10-08
6
9
  - Add supports for `contacts` endpoint.
7
10
 
@@ -38,6 +38,7 @@ require "bookingsync/api/client/rental_agreements"
38
38
  require "bookingsync/api/client/rental_cancelation_policies"
39
39
  require "bookingsync/api/client/rental_cancelation_policy_items"
40
40
  require "bookingsync/api/client/rentals_contents_overrides"
41
+ require "bookingsync/api/client/rental_urls"
41
42
  require "bookingsync/api/client/reviews"
42
43
  require "bookingsync/api/client/seasons"
43
44
  require "bookingsync/api/client/special_offers"
@@ -99,6 +100,7 @@ module BookingSync::API
99
100
  include BookingSync::API::Client::RentalCancelationPolicies
100
101
  include BookingSync::API::Client::RentalCancelationPolicyItems
101
102
  include BookingSync::API::Client::RentalsContentsOverrides
103
+ include BookingSync::API::Client::RentalUrls
102
104
  include BookingSync::API::Client::Reviews
103
105
  include BookingSync::API::Client::Seasons
104
106
  include BookingSync::API::Client::SpecialOffers
@@ -0,0 +1,72 @@
1
+ module BookingSync::API
2
+ class Client
3
+ module RentalUrls
4
+ # List rental_urls
5
+ #
6
+ # Returns rental_urls for the account user is authenticated with.
7
+ # @param options [Hash] A customizable set of options.
8
+ # @option options [Array] fields: List of fields to be fetched.
9
+ # @return [Array<BookingSync::API::Resource>] Array of rental_urls.
10
+ #
11
+ # @example Get the list of rental_urls for the current account
12
+ # rental_urls = @api.rental_urls
13
+ # rental_urls.first.label # => "HomeAway"
14
+ # @see http://developers.bookingsync.com/reference/endpoints/rental_urls/#list-rental_urls
15
+ def rental_urls(options = {}, &block)
16
+ paginate :rental_urls, options, &block
17
+ end
18
+
19
+ # Get a single rental_url
20
+ #
21
+ # @param rental_url [BookingSync::API::Resource|Integer] RentalUrl or ID
22
+ # of the rental_url.
23
+ # @return [BookingSync::API::Resource]
24
+ def rental_url(rental_url)
25
+ get("rental_urls/#{rental_url}").pop
26
+ end
27
+
28
+ # Create a new rental_url
29
+ #
30
+ # @param options [Hash] RentalUrl's attributes.
31
+ # @return [BookingSync::API::Resource] Newly created rental_url.
32
+ def create_rental_url(rental, options = {})
33
+ if file_path = options.delete(:file_path)
34
+ options[:file] ||= base_64_encode(file_path)
35
+ end
36
+ post("rentals/#{rental}/rental_urls", rental_urls: options).pop
37
+ end
38
+
39
+ # Edit a rental_url
40
+ #
41
+ # @param rental_url [BookingSync::API::Resource|Integer] RentalUrl or ID of
42
+ # the rental_url to be updated.
43
+ # @param options [Hash] RentalUrl attributes to be updated.
44
+ # @return [BookingSync::API::Resource] Updated rental_url on success,
45
+ # exception is raised otherwise.
46
+ # @example
47
+ # rental_url = @api.rental_urls.first
48
+ # @api.edit_rental_url(rental_url, { label: "Airbnb" })
49
+ def edit_rental_url(rental_url, options = {})
50
+ if file_path = options.delete(:file_path)
51
+ options[:file] ||= base_64_encode(file_path)
52
+ end
53
+ put("rental_urls/#{rental_url}", rental_urls: options).pop
54
+ end
55
+
56
+ # Cancel a RentalUrl
57
+ #
58
+ # @param rental_url [BookingSync::API::Resource|Integer] RentalUrl or ID
59
+ # of the rental_url to be canceled.
60
+ # @return [NilClass] Returns nil on success.
61
+ def cancel_rental_url(rental_url)
62
+ delete "rental_urls/#{rental_url}"
63
+ end
64
+
65
+ private
66
+
67
+ def base_64_encode(file_path)
68
+ Base64.encode64(File.read(file_path))
69
+ end
70
+ end
71
+ end
72
+ end
@@ -1,5 +1,5 @@
1
1
  module BookingSync
2
2
  module API
3
- VERSION = "0.1.13"
3
+ VERSION = "0.1.14"
4
4
  end
5
5
  end
@@ -0,0 +1,83 @@
1
+ require "spec_helper"
2
+
3
+ describe BookingSync::API::Client::RentalUrls do
4
+ let(:client) { BookingSync::API::Client.new(test_access_token) }
5
+
6
+ before { |ex| @casette_base_path = casette_path(casette_dir, ex.metadata) }
7
+
8
+ describe "#rental_urls", :vcr do
9
+ it "returns rental urls" do
10
+ expect(client.rental_urls).not_to be_empty
11
+ assert_requested :get, bs_url("rental_urls")
12
+ end
13
+
14
+ describe "links" do
15
+ it "returns associated rental" do
16
+ rentals_url = client.rental_urls.first
17
+ expect(rentals_url.rental).not_to be_empty
18
+ end
19
+ end
20
+ end
21
+
22
+ describe "#rental_url", :vcr do
23
+ let(:prefetched_rental_url) {
24
+ find_resource("#{@casette_base_path}_rental_urls/returns_rental_urls.yml", "rental_urls")[:id]
25
+ }
26
+
27
+ it "returns rental_url" do
28
+ client.rental_url(prefetched_rental_url)
29
+ assert_requested :get, bs_url("rental_urls/#{prefetched_rental_url}")
30
+ end
31
+ end
32
+
33
+ describe "#create_rental_url", :vcr do
34
+ let(:attributes) { { url: "test_test.com", label: "HomeAway", locked: "true" } }
35
+ let(:rental) { BookingSync::API::Resource.new(client, id: 1) }
36
+
37
+ it "creates a new rental_url" do
38
+ client.create_rental_url(rental, attributes)
39
+ assert_requested :post, bs_url("rentals/#{rental}/rental_urls"),
40
+ body: { rental_urls: attributes }.to_json
41
+ end
42
+
43
+ it "returns newly created rental_url" do
44
+ VCR.use_cassette("BookingSync_API_Client_RentalsAmenities/_create_rental_url/creates_a_new_rental_url") do
45
+ rental_url = client.create_rental_url(rental, attributes)
46
+ expect(rental_url.url).to eq("test_test.com")
47
+ expect(rental_url.label).to eq("HomeAway")
48
+ end
49
+ end
50
+ end
51
+
52
+ describe "#edit_rental_url", :vcr do
53
+ let(:attributes) { { url: "new_url.com" } }
54
+ let(:created_rental_url) {
55
+ find_resource("#{@casette_base_path}_create_rental_url/creates_a_new_rental_url.yml", "rental_urls")[:id]
56
+ }
57
+
58
+ it "updates given rental_url by ID" do
59
+ client.edit_rental_url(created_rental_url, attributes)
60
+ assert_requested :put, bs_url("rental_urls/#{created_rental_url}"),
61
+ body: { rental_urls: attributes }.to_json
62
+ end
63
+
64
+ it "returns updated rental_url" do
65
+ VCR.use_cassette("BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url_by_ID") do
66
+ rental_url = client.edit_rental_url(created_rental_url, attributes)
67
+ expect(rental_url).to be_kind_of(BookingSync::API::Resource)
68
+ expect(rental_url.url).to eq("new_url.com")
69
+ end
70
+ end
71
+ end
72
+
73
+ describe "#cancel_rental_url", :vcr do
74
+ let(:created_rental_url_id) {
75
+ find_resource("#{@casette_base_path}_create_rental_url/creates_a_new_rental_url.yml", "rental_urls")[:id]
76
+ }
77
+
78
+ it "cancels given rental_url" do
79
+ client.cancel_rental_url(created_rental_url_id)
80
+ assert_requested :delete, bs_url("rental_urls/#{created_rental_url_id}")
81
+ end
82
+ end
83
+ end
@@ -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
@@ -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/"8f7cd36f61943dce0009b0abcddfab58"
35
+ Location:
36
+ - https://www.bookingsync.com/api/v3/rental_urls/7c3d1561-36a1-41e7-92f5-97f99e7c5439
37
+ Set-Cookie:
38
+ - ahoy_visit=86f3390d-d229-4839-84cf-47f0d84981c3; path=/; expires=Sat, 12 Oct
39
+ 2019 20:58:20 -0000
40
+ - ahoy_visitor=23357ec8-1d79-4e34-9cad-ee41bcfc622b; path=/; expires=Tue, 05
41
+ Oct 2021 20:58:20 -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
+ - '994'
52
+ X-Ratelimit-Reset:
53
+ - '1570309200'
54
+ X-Request-Id:
55
+ - d2744d7c-01cb-4025-8ca8-6e282458d0c5
56
+ X-Runtime:
57
+ - '0.144553'
58
+ X-Updated-Since-Request-Synced-At:
59
+ - 2019-10-05 20:58:20 UTC
60
+ X-Xss-Protection:
61
+ - 1; mode=block
62
+ Date:
63
+ - Sat, 05 Oct 2019 20:58:20 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":"7c3d1561-36a1-41e7-92f5-97f99e7c5439","label":"HomeAway","url":"test_test.com","lock":{"record":"doorkeeper/application-9","attributes":{}},"canceled_at":null,"created_at":"2019-10-05T20:58:20Z","updated_at":"2019-10-05T20:58:20Z"}],"meta":{}}'
69
+ http_version:
70
+ recorded_at: Sat, 05 Oct 2019 20:58:20 GMT
71
+ recorded_with: VCR 5.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/9185bcf8-3cc5-4f1d-9ec6-e6b69049ae8e
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"rental_urls":{"details_en":"New Details"}}'
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/"91a1eeb4e5ce70412cbb4d9002e0dca7"
35
+ Set-Cookie:
36
+ - ahoy_visit=e75ab825-18bd-4e72-86ba-962494854d7a; path=/; expires=Sat, 12 Oct
37
+ 2019 21:01:32 -0000
38
+ - ahoy_visitor=b0e5e899-9125-42a3-ae55-6013b183d0f0; path=/; expires=Tue, 05
39
+ Oct 2021 21:01:32 -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
+ - '998'
50
+ X-Ratelimit-Reset:
51
+ - '1570312800'
52
+ X-Request-Id:
53
+ - fd77086d-bddb-4243-b03b-5e9efda4eaa3
54
+ X-Runtime:
55
+ - '0.124515'
56
+ X-Updated-Since-Request-Synced-At:
57
+ - 2019-10-05 21:01:32 UTC
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ Date:
61
+ - Sat, 05 Oct 2019 21:01:32 GMT
62
+ Content-Length:
63
+ - '385'
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":"9185bcf8-3cc5-4f1d-9ec6-e6b69049ae8e","label":"HomeAway","url":"test_test.com","lock":{"record":"doorkeeper/application-9","attributes":{}},"canceled_at":null,"created_at":"2019-10-05T20:58:12Z","updated_at":"2019-10-05T21:01:32Z"}],"meta":{}}'
67
+ http_version:
68
+ recorded_at: Sat, 05 Oct 2019 21:01:32 GMT
69
+ recorded_with: VCR 5.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/"2de3956cf7d8d2b907bd0874431a7f12"
35
+ Set-Cookie:
36
+ - ahoy_visit=67620388-67f4-4822-baef-756523e60ecc; path=/; expires=Sat, 12 Oct
37
+ 2019 21:04:03 -0000
38
+ - ahoy_visitor=2707f05a-24e0-452d-a3b3-b3772973a2fb; path=/; expires=Tue, 05
39
+ Oct 2021 21:04:03 -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
+ - '996'
50
+ X-Ratelimit-Reset:
51
+ - '1570312800'
52
+ X-Request-Id:
53
+ - c444bedb-29de-49d3-a435-f751324c19ef
54
+ X-Runtime:
55
+ - '0.235368'
56
+ X-Updated-Since-Request-Synced-At:
57
+ - 2019-10-05 21:04:03 UTC
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ Date:
61
+ - Sat, 05 Oct 2019 21:04:03 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:04:03Z"}],"meta":{}}'
67
+ http_version:
68
+ recorded_at: Sat, 05 Oct 2019 21:04:03 GMT
69
+ 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.13
4
+ version: 0.1.14
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: 2019-10-09 00:00:00.000000000 Z
11
+ date: 2019-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -165,6 +165,7 @@ files:
165
165
  - lib/bookingsync/api/client/rental_agreements.rb
166
166
  - lib/bookingsync/api/client/rental_cancelation_policies.rb
167
167
  - lib/bookingsync/api/client/rental_cancelation_policy_items.rb
168
+ - lib/bookingsync/api/client/rental_urls.rb
168
169
  - lib/bookingsync/api/client/rentals.rb
169
170
  - lib/bookingsync/api/client/rentals_amenities.rb
170
171
  - lib/bookingsync/api/client/rentals_contents_overrides.rb
@@ -219,6 +220,7 @@ files:
219
220
  - spec/bookingsync/api/client/rental_agreements_spec.rb
220
221
  - spec/bookingsync/api/client/rental_cancelation_policies_spec.rb
221
222
  - spec/bookingsync/api/client/rental_cancelation_policy_items_spec.rb
223
+ - spec/bookingsync/api/client/rental_urls_spec.rb
222
224
  - spec/bookingsync/api/client/rentals_amenities_spec.rb
223
225
  - spec/bookingsync/api/client/rentals_contents_overrides_spec.rb
224
226
  - spec/bookingsync/api/client/rentals_fees_spec.rb
@@ -386,6 +388,12 @@ files:
386
388
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicies/_rental_cancelation_policy/returns_a_single_rental_cancelation_policy.yml
387
389
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicyItems/_rental_cancelation_policy_item/returns_a_single_rental_cancelation_policy_item.yml
388
390
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicyItems/_rental_cancelation_policy_items/returns_rental_cancelation_policy_items.yml
391
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_cancel_rental_url/cancels_given_rental_url.yml
392
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_create_rental_url/creates_a_new_rental_url.yml
393
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_edit_rental_url/updates_given_rental_url_by_ID.yml
394
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_url/returns_rental_url.yml
395
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/links/returns_associated_rental.yml
396
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/returns_rental_urls.yml
389
397
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml
390
398
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_delete_rental/deletes_given_rental.yml
391
399
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml
@@ -399,8 +407,11 @@ files:
399
407
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/performs_autopagination_using_POST.yml
400
408
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/rentals_ids_given/makes_a_search_within_given_rentals.yml
401
409
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/returns_rentals.yml
410
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rental_url/creates_a_new_rental_url.yml
402
411
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rentals_amenity/creates_a_new_rentals_amenity.yml
403
412
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_delete_rentals_amenity/deletes_given_rentals_amenity.yml
413
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url.yml
414
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url_by_ID.yml
404
415
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rentals_amenity/updates_given_rentals_amenity_by_ID.yml
405
416
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/links/returns_associated_amenity.yml
406
417
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/links/returns_associated_rental.yml
@@ -500,6 +511,7 @@ test_files:
500
511
  - spec/bookingsync/api/client/rental_agreements_spec.rb
501
512
  - spec/bookingsync/api/client/rental_cancelation_policies_spec.rb
502
513
  - spec/bookingsync/api/client/rental_cancelation_policy_items_spec.rb
514
+ - spec/bookingsync/api/client/rental_urls_spec.rb
503
515
  - spec/bookingsync/api/client/rentals_amenities_spec.rb
504
516
  - spec/bookingsync/api/client/rentals_contents_overrides_spec.rb
505
517
  - spec/bookingsync/api/client/rentals_fees_spec.rb
@@ -667,6 +679,12 @@ test_files:
667
679
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicies/_rental_cancelation_policy/returns_a_single_rental_cancelation_policy.yml
668
680
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicyItems/_rental_cancelation_policy_item/returns_a_single_rental_cancelation_policy_item.yml
669
681
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicyItems/_rental_cancelation_policy_items/returns_rental_cancelation_policy_items.yml
682
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_cancel_rental_url/cancels_given_rental_url.yml
683
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_create_rental_url/creates_a_new_rental_url.yml
684
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_edit_rental_url/updates_given_rental_url_by_ID.yml
685
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_url/returns_rental_url.yml
686
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/links/returns_associated_rental.yml
687
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/returns_rental_urls.yml
670
688
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml
671
689
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_delete_rental/deletes_given_rental.yml
672
690
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml
@@ -680,8 +698,11 @@ test_files:
680
698
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/performs_autopagination_using_POST.yml
681
699
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/rentals_ids_given/makes_a_search_within_given_rentals.yml
682
700
  - spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/returns_rentals.yml
701
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rental_url/creates_a_new_rental_url.yml
683
702
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rentals_amenity/creates_a_new_rentals_amenity.yml
684
703
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_delete_rentals_amenity/deletes_given_rentals_amenity.yml
704
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url.yml
705
+ - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url_by_ID.yml
685
706
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rentals_amenity/updates_given_rentals_amenity_by_ID.yml
686
707
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/links/returns_associated_amenity.yml
687
708
  - spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/links/returns_associated_rental.yml