bookingsync-api 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +30 -0
- data/lib/bookingsync/api.rb +3 -3
- data/lib/bookingsync/api/client.rb +22 -2
- data/lib/bookingsync/api/client/bookings.rb +9 -7
- data/lib/bookingsync/api/client/inquiries.rb +6 -4
- data/lib/bookingsync/api/client/payments.rb +4 -4
- data/lib/bookingsync/api/client/periods.rb +14 -13
- data/lib/bookingsync/api/client/photos.rb +53 -0
- data/lib/bookingsync/api/client/rates_tables.rb +5 -5
- data/lib/bookingsync/api/client/rental_agreements.rb +22 -19
- data/lib/bookingsync/api/client/rentals.rb +7 -6
- data/lib/bookingsync/api/client/reviews.rb +6 -5
- data/lib/bookingsync/api/client/seasons.rb +15 -13
- data/lib/bookingsync/api/client/special_offers.rb +19 -18
- data/lib/bookingsync/api/error.rb +18 -0
- data/lib/bookingsync/api/middleware/logger.rb +50 -0
- data/lib/bookingsync/api/version.rb +1 -1
- data/spec/bookingsync/api/client/bookings_spec.rb +5 -4
- data/spec/bookingsync/api/client/inquiries_spec.rb +4 -3
- data/spec/bookingsync/api/client/periods_spec.rb +9 -14
- data/spec/bookingsync/api/client/photos_spec.rb +58 -0
- data/spec/bookingsync/api/client/rental_agreements_spec.rb +10 -10
- data/spec/bookingsync/api/client/rentals_spec.rb +3 -3
- data/spec/bookingsync/api/client/reviews_spec.rb +5 -4
- data/spec/bookingsync/api/client/seasons_spec.rb +5 -4
- data/spec/bookingsync/api/client/special_offers_spec.rb +5 -4
- data/spec/bookingsync/api/client_spec.rb +43 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_BillingAddresses/_billing_addresses/returns_billing_addresses.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_bookings/pagination/with_a_block/yields_block_with_batch_of_bookings.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_bookings/pagination/with_auto_paginate_true/returns_all_bookings_joined_from_many_requests.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_bookings/returns_bookings.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_cancel_booking/cancels_given_booking.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_clients/returns_clients.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_create_client/creates_a_new_client.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_edit_client/updates_given_client_by_ID.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_BookingsPayments/_bookings_payments/returns_bookings_payments.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Destinations/_destinations/returns_destinations.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Inquiries/_create_inquiry/creates_a_new_inquiry.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Inquiries/_inquiries/returns_inquiries.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Payments/_cancel_payment/cancels_given_payment.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Payments/_create_payment/creates_a_new_payment.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Payments/_edit_payment/updates_given_payment_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Payments/_payments/returns_payments.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Periods/_create_period/creates_a_new_period.yml +2 -2
- data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +57 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Periods/_edit_period/updates_given_period_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Periods/_periods/returns_periods.yml +1 -1
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_encoded_photo_file.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_photo_path.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_remote_URL.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_delete_photo/delete_given_photo.yml +57 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_edit_photo/updates_photo_s_description.yml +61 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_edit_photo/updates_photo_s_image_file.yml +61 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Photos/_photos/returns_photos.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rates/_rates/returns_rates.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesTables/_create_rates_table/creates_a_new_rates_table.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesTables/_delete_rates_table/deletes_given_rates_table.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesTables/_edit_rates_table/updates_given_rates_table_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesTables/_rates_tables/returns_rates_tables.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RentalAgreements/_create_rental_agreement/creates_a_new_rental_agreement.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_booking/creates_a_new_rental_agreement.yml +3 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_rental/creates_a_new_rental_agreement.yml +3 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RentalAgreements/_rental_agreements/returns_rental_agreements.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml +1 -1
- data/spec/{cassettes/BookingSync_API_Client_Rentals/_cancel_rental/cancels_given_rental.yml → fixtures/cassettes/BookingSync_API_Client_Rentals/_delete_rental/deletes_given_rental.yml} +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_rental/returns_a_single_rental.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_rentals/links/returns_associated_photos.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_rentals/links/returns_links_to_associated_resources.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_rentals/returns_rentals.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +3 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Reviews/_reviews/returns_reviews.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Seasons/_create_season/creates_a_new_season.yml +3 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Seasons/_delete_season/deletes_given_season.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Seasons/_edit_season/updates_given_season_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Seasons/_seasons/returns_seasons.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_SpecialOffers/_create_special_offer/creates_a_new_special_offer.yml +2 -2
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_SpecialOffers/_delete_special_offer/deletes_given_special_offer.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_SpecialOffers/_edit_special_offer/updates_given_special_offer_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_SpecialOffers/_special_offers/returns_special_offers.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/spec/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking_yml.yml +0 -0
- data/spec/fixtures/files/test.jpg +0 -0
- data/spec/spec_helper.rb +1 -1
- metadata +141 -124
- data/spec/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +0 -70
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://bookingsync.dev/api/v3/rentals/2/photos
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"photos":[{"description_en":"Funny","kind":"livingroom","photo":"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL\nDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/\n2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy\nMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAFABQDASIAAhEBAxEB/8QA\nHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUF\nBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK\nFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1\ndnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG\nx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEB\nAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAEC\nAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRom\nJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE\nhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU\n1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAoo\nooA//9k=\n"}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1399640400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '963'
|
31
|
+
Location:
|
32
|
+
- https://bookingsync.dev/api/v3/photos/34
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- '*'
|
35
|
+
Access-Control-Request-Method:
|
36
|
+
- '*'
|
37
|
+
Content-Type:
|
38
|
+
- application/vnd.api+json; charset=utf-8
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge
|
41
|
+
Etag:
|
42
|
+
- '"f33c3aff58cf8ecfdd7e1c0a8b86be43"'
|
43
|
+
Cache-Control:
|
44
|
+
- max-age=0, private, must-revalidate
|
45
|
+
P3p:
|
46
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
47
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
48
|
+
Set-Cookie:
|
49
|
+
- _BookingSync_session=8189122fdf88c42103d09a636f6945db; path=/; secure; HttpOnly
|
50
|
+
X-Request-Id:
|
51
|
+
- f64c679b9ea639b03eede3a57627ae2b
|
52
|
+
X-Runtime:
|
53
|
+
- '0.375561'
|
54
|
+
Date:
|
55
|
+
- Fri, 09 May 2014 12:33:04 GMT
|
56
|
+
Connection:
|
57
|
+
- close
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"photos":[{"id":34,"rental_id":2,"description":{"en":"Funny"},"kind":"livingroom","large_url":"http://bookingsync.dev/files/development/photo/photo/34/large_fba820ae0b51959ff4f560ec050c281c.jpg","normal_url":"http://bookingsync.dev/files/development/photo/photo/34/normal_fba820ae0b51959ff4f560ec050c281c.jpg","thumb_url":"http://bookingsync.dev/files/development/photo/photo/34/thumb_fba820ae0b51959ff4f560ec050c281c.jpg","micro_url":"http://bookingsync.dev/files/development/photo/photo/34/micro_fba820ae0b51959ff4f560ec050c281c.jpg","position":5}]}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Fri, 09 May 2014 12:33:05 GMT
|
63
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://bookingsync.dev/api/v3/rentals/2/photos
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"photos":[{"remote_photo_url":"https://www.ruby-lang.org/images/header-ruby-logo.png","kind":"livingroom"}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1399640400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '961'
|
31
|
+
Location:
|
32
|
+
- https://bookingsync.dev/api/v3/photos/36
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- '*'
|
35
|
+
Access-Control-Request-Method:
|
36
|
+
- '*'
|
37
|
+
Content-Type:
|
38
|
+
- application/vnd.api+json; charset=utf-8
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge
|
41
|
+
Etag:
|
42
|
+
- '"b2616b56d1659dbc24cc2ff49cf4038a"'
|
43
|
+
Cache-Control:
|
44
|
+
- max-age=0, private, must-revalidate
|
45
|
+
P3p:
|
46
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
47
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
48
|
+
Set-Cookie:
|
49
|
+
- _BookingSync_session=a132dfc7225938f44b9d0ac906e1cd06; path=/; secure; HttpOnly
|
50
|
+
X-Request-Id:
|
51
|
+
- f9c6ee68336f66e828dc7b043727ba8f
|
52
|
+
X-Runtime:
|
53
|
+
- '3.485488'
|
54
|
+
Date:
|
55
|
+
- Fri, 09 May 2014 12:33:09 GMT
|
56
|
+
Connection:
|
57
|
+
- close
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"photos":[{"id":36,"rental_id":2,"description":{"en":null},"kind":"livingroom","large_url":"http://bookingsync.dev/files/development/photo/photo/36/large_3b2a5fb7453e698aa5222f863bb8e601.jpg","normal_url":"http://bookingsync.dev/files/development/photo/photo/36/normal_3b2a5fb7453e698aa5222f863bb8e601.jpg","thumb_url":"http://bookingsync.dev/files/development/photo/photo/36/thumb_3b2a5fb7453e698aa5222f863bb8e601.jpg","micro_url":"http://bookingsync.dev/files/development/photo/photo/36/micro_3b2a5fb7453e698aa5222f863bb8e601.jpg","position":7}]}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Fri, 09 May 2014 12:33:09 GMT
|
63
|
+
recorded_with: VCR 2.9.0
|
data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_delete_photo/delete_given_photo.yml
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://www.bookingsync.com/api/v3/photos/37
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 204
|
23
|
+
message: No Content
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1399633200'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '987'
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- '*'
|
33
|
+
Access-Control-Request-Method:
|
34
|
+
- '*'
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge
|
37
|
+
Cache-Control:
|
38
|
+
- no-cache
|
39
|
+
P3p:
|
40
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
41
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
42
|
+
Set-Cookie:
|
43
|
+
- _BookingSync_session=35d75b64e1c0bfeb9c64e766021cee70; path=/; secure; HttpOnly
|
44
|
+
X-Request-Id:
|
45
|
+
- c06bf42b2fa618f689bdbcddb05db317
|
46
|
+
X-Runtime:
|
47
|
+
- '0.154167'
|
48
|
+
Date:
|
49
|
+
- Fri, 09 May 2014 10:41:48 GMT
|
50
|
+
Connection:
|
51
|
+
- close
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: ''
|
55
|
+
http_version:
|
56
|
+
recorded_at: Fri, 09 May 2014 10:41:48 GMT
|
57
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://bookingsync.dev/api/v3/photos/37
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"photos":[{"description_en":"Not funny anymore"}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1399640400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '957'
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- '*'
|
33
|
+
Access-Control-Request-Method:
|
34
|
+
- '*'
|
35
|
+
Content-Type:
|
36
|
+
- application/vnd.api+json; charset=utf-8
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge
|
39
|
+
Etag:
|
40
|
+
- '"fa2396ab07706d75fb2eabf114b05611"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
P3p:
|
44
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
45
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
46
|
+
Set-Cookie:
|
47
|
+
- _BookingSync_session=732488fdeccb8022b7b1e9a65c95a122; path=/; secure; HttpOnly
|
48
|
+
X-Request-Id:
|
49
|
+
- ea1b2fbf648f9690df17c411c8d50147
|
50
|
+
X-Runtime:
|
51
|
+
- '0.055268'
|
52
|
+
Date:
|
53
|
+
- Fri, 09 May 2014 12:37:34 GMT
|
54
|
+
Connection:
|
55
|
+
- close
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"photos":[{"id":37,"rental_id":2,"description":{"en":"Not funny anymore"},"kind":"livingroom","large_url":"http://bookingsync.dev/files/development/photo/photo/37/large_b0e94d712c4916323d4c7da35635f02e.jpg","normal_url":"http://bookingsync.dev/files/development/photo/photo/37/normal_b0e94d712c4916323d4c7da35635f02e.jpg","thumb_url":"http://bookingsync.dev/files/development/photo/photo/37/thumb_b0e94d712c4916323d4c7da35635f02e.jpg","micro_url":"http://bookingsync.dev/files/development/photo/photo/37/micro_b0e94d712c4916323d4c7da35635f02e.jpg","position":8}]}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Fri, 09 May 2014 12:37:34 GMT
|
61
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://bookingsync.dev/api/v3/photos/37
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"photos":[{"file_path":"spec/fixtures/files/test.jpg"}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1399640400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '956'
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- '*'
|
33
|
+
Access-Control-Request-Method:
|
34
|
+
- '*'
|
35
|
+
Content-Type:
|
36
|
+
- application/vnd.api+json; charset=utf-8
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge
|
39
|
+
Etag:
|
40
|
+
- '"fa2396ab07706d75fb2eabf114b05611"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
P3p:
|
44
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
45
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
46
|
+
Set-Cookie:
|
47
|
+
- _BookingSync_session=0c097a8bd41227def9c3094c3fa7dd39; path=/; secure; HttpOnly
|
48
|
+
X-Request-Id:
|
49
|
+
- 52e6a798d206d50f21080e02a7ed83c6
|
50
|
+
X-Runtime:
|
51
|
+
- '0.049991'
|
52
|
+
Date:
|
53
|
+
- Fri, 09 May 2014 12:37:34 GMT
|
54
|
+
Connection:
|
55
|
+
- close
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"photos":[{"id":37,"rental_id":2,"description":{"en":"Not funny anymore"},"kind":"livingroom","large_url":"http://bookingsync.dev/files/development/photo/photo/37/large_b0e94d712c4916323d4c7da35635f02e.jpg","normal_url":"http://bookingsync.dev/files/development/photo/photo/37/normal_b0e94d712c4916323d4c7da35635f02e.jpg","thumb_url":"http://bookingsync.dev/files/development/photo/photo/37/thumb_b0e94d712c4916323d4c7da35635f02e.jpg","micro_url":"http://bookingsync.dev/files/development/photo/photo/37/micro_b0e94d712c4916323d4c7da35635f02e.jpg","position":8}]}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Fri, 09 May 2014 12:37:34 GMT
|
61
|
+
recorded_with: VCR 2.9.0
|
data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Photos/_photos/returns_photos.yml
RENAMED
@@ -67,6 +67,6 @@ http_interactions:
|
|
67
67
|
body:
|
68
68
|
encoding: UTF-8
|
69
69
|
string: '{"photos":[{"id":2,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/2/large_28da69f9d820e5fdbb783e0db394c898.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/2/normal_28da69f9d820e5fdbb783e0db394c898.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/2/thumb_28da69f9d820e5fdbb783e0db394c898.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/2/micro_28da69f9d820e5fdbb783e0db394c898.jpg","position":1},{"id":1,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/1/large_75bfb755b66a9f209f108bb5ae8153a2.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/1/normal_75bfb755b66a9f209f108bb5ae8153a2.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/1/thumb_75bfb755b66a9f209f108bb5ae8153a2.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/1/micro_75bfb755b66a9f209f108bb5ae8153a2.jpg","position":2},{"id":3,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/3/large_5afe2959201eb7359fec4046f36424f3.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/3/normal_5afe2959201eb7359fec4046f36424f3.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/3/thumb_5afe2959201eb7359fec4046f36424f3.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/3/micro_5afe2959201eb7359fec4046f36424f3.jpg","position":3},{"id":4,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/4/large_6740d21a417c6afd724f3c7422f880db.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/4/normal_6740d21a417c6afd724f3c7422f880db.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/4/thumb_6740d21a417c6afd724f3c7422f880db.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/4/micro_6740d21a417c6afd724f3c7422f880db.jpg","position":4},{"id":5,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/5/large_43b778404e56cef89df86c02ca0bdbf4.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/5/normal_43b778404e56cef89df86c02ca0bdbf4.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/5/thumb_43b778404e56cef89df86c02ca0bdbf4.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/5/micro_43b778404e56cef89df86c02ca0bdbf4.jpg","position":5},{"id":6,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/6/large_4d9dd35e89b2058dde70bb65c6c2056e.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/6/normal_4d9dd35e89b2058dde70bb65c6c2056e.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/6/thumb_4d9dd35e89b2058dde70bb65c6c2056e.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/6/micro_4d9dd35e89b2058dde70bb65c6c2056e.jpg","position":6},{"id":7,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/7/large_acde4ebf6062393e85efb04880f6e776.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/7/normal_acde4ebf6062393e85efb04880f6e776.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/7/thumb_acde4ebf6062393e85efb04880f6e776.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/7/micro_acde4ebf6062393e85efb04880f6e776.jpg","position":7},{"id":8,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/8/large_94ef2e074a6a04878a66cd54615db0c1.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/8/normal_94ef2e074a6a04878a66cd54615db0c1.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/8/thumb_94ef2e074a6a04878a66cd54615db0c1.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/8/micro_94ef2e074a6a04878a66cd54615db0c1.jpg","position":8},{"id":9,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/9/large_bca3f46f3550eed7d195fb8f00a682df.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/9/normal_bca3f46f3550eed7d195fb8f00a682df.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/9/thumb_bca3f46f3550eed7d195fb8f00a682df.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/9/micro_bca3f46f3550eed7d195fb8f00a682df.jpg","position":9},{"id":10,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/10/large_daa9e65b80e100312521282442944638.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/10/normal_daa9e65b80e100312521282442944638.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/10/thumb_daa9e65b80e100312521282442944638.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/10/micro_daa9e65b80e100312521282442944638.jpg","position":10},{"id":11,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/11/large_162067b9692e669992402e2421f857d7.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/11/normal_162067b9692e669992402e2421f857d7.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/11/thumb_162067b9692e669992402e2421f857d7.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/11/micro_162067b9692e669992402e2421f857d7.jpg","position":11},{"id":12,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/12/large_11bcce36e72628c0e037941912f1513a.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/12/normal_11bcce36e72628c0e037941912f1513a.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/12/thumb_11bcce36e72628c0e037941912f1513a.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/12/micro_11bcce36e72628c0e037941912f1513a.jpg","position":12},{"id":13,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/13/large_71cca9e4fdd1a5ed636b9ae30b500b11.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/13/normal_71cca9e4fdd1a5ed636b9ae30b500b11.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/13/thumb_71cca9e4fdd1a5ed636b9ae30b500b11.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/13/micro_71cca9e4fdd1a5ed636b9ae30b500b11.jpg","position":13},{"id":14,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/14/large_a47967cb43c871514f53f07d7737ab74.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/14/normal_a47967cb43c871514f53f07d7737ab74.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/14/thumb_a47967cb43c871514f53f07d7737ab74.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/14/micro_a47967cb43c871514f53f07d7737ab74.jpg","position":14},{"id":15,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/15/large_f093131ff9b016f3374c44393836fd06.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/15/normal_f093131ff9b016f3374c44393836fd06.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/15/thumb_f093131ff9b016f3374c44393836fd06.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/15/micro_f093131ff9b016f3374c44393836fd06.jpg","position":15},{"id":16,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/16/large_8f0589265aeda7fbf368633f955c0d1a.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/16/normal_8f0589265aeda7fbf368633f955c0d1a.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/16/thumb_8f0589265aeda7fbf368633f955c0d1a.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/16/micro_8f0589265aeda7fbf368633f955c0d1a.jpg","position":16},{"id":17,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/17/large_68012b53b5a352eff9abc496b0f0513f.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/17/normal_68012b53b5a352eff9abc496b0f0513f.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/17/thumb_68012b53b5a352eff9abc496b0f0513f.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/17/micro_68012b53b5a352eff9abc496b0f0513f.jpg","position":17},{"id":18,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/18/large_19ec4f1b91623196107c05c5d01157c8.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/18/normal_19ec4f1b91623196107c05c5d01157c8.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/18/thumb_19ec4f1b91623196107c05c5d01157c8.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/18/micro_19ec4f1b91623196107c05c5d01157c8.jpg","position":18},{"id":19,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/19/large_57312e99e31c2e2864ab7e227625afe6.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/19/normal_57312e99e31c2e2864ab7e227625afe6.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/19/thumb_57312e99e31c2e2864ab7e227625afe6.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/19/micro_57312e99e31c2e2864ab7e227625afe6.jpg","position":19},{"id":20,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/20/large_b56b96b6ba1ae4f1f5f004005e4ff9aa.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/20/normal_b56b96b6ba1ae4f1f5f004005e4ff9aa.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/20/thumb_b56b96b6ba1ae4f1f5f004005e4ff9aa.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/20/micro_b56b96b6ba1ae4f1f5f004005e4ff9aa.jpg","position":20},{"id":21,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/21/large_309cada884759394fa1768f39837fcc8.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/21/normal_309cada884759394fa1768f39837fcc8.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/21/thumb_309cada884759394fa1768f39837fcc8.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/21/micro_309cada884759394fa1768f39837fcc8.jpg","position":21},{"id":22,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/22/large_4a68b492046e7a5a607318b73cecab25.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/22/normal_4a68b492046e7a5a607318b73cecab25.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/22/thumb_4a68b492046e7a5a607318b73cecab25.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/22/micro_4a68b492046e7a5a607318b73cecab25.jpg","position":22},{"id":23,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/23/large_091b7b3646237e9235fc262550c4b2e6.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/23/normal_091b7b3646237e9235fc262550c4b2e6.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/23/thumb_091b7b3646237e9235fc262550c4b2e6.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/23/micro_091b7b3646237e9235fc262550c4b2e6.jpg","position":23},{"id":24,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/24/large_aa7f908792d14824c66430d34f4b2c96.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/24/normal_aa7f908792d14824c66430d34f4b2c96.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/24/thumb_aa7f908792d14824c66430d34f4b2c96.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/24/micro_aa7f908792d14824c66430d34f4b2c96.jpg","position":24},{"id":25,"rental_id":836,"description":{"en":null},"kind":null,"large_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/25/large_536e2fb7620c3f3a22470db50a21096d.jpg","normal_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/25/normal_536e2fb7620c3f3a22470db50a21096d.jpg","thumb_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/25/thumb_536e2fb7620c3f3a22470db50a21096d.jpg","micro_url":"https://bs-eu.s3.amazonaws.com/app/production/photo/photo/25/micro_536e2fb7620c3f3a22470db50a21096d.jpg","position":25}]}'
|
70
|
-
http_version:
|
70
|
+
http_version:
|
71
71
|
recorded_at: Tue, 08 Apr 2014 20:04:46 GMT
|
72
72
|
recorded_with: VCR 2.9.0
|
data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rates/_rates/returns_rates.yml
RENAMED
File without changes
|
File without changes
|
@@ -59,6 +59,6 @@ http_interactions:
|
|
59
59
|
encoding: UTF-8
|
60
60
|
string: '{"links":{"rates_tables.seasons":"https://www.bookingsync.com/api/v3/seasons/{rates_tables.seasons}","rates_tables.rates_rules":"https://www.bookingsync.com/api/v3/rates_rules/{rates_tables.rates_rules}"},"rates_tables":[{"links":{"seasons":[],"rates_rules":[]},"id":42,"account_id":1,"name":"New
|
61
61
|
rate table","created_at":"2014-04-25T10:41:14Z","updated_at":"2014-04-25T10:41:14Z"}]}'
|
62
|
-
http_version:
|
62
|
+
http_version:
|
63
63
|
recorded_at: Fri, 25 Apr 2014 10:41:14 GMT
|
64
64
|
recorded_with: VCR 2.9.0
|
@@ -57,6 +57,6 @@ http_interactions:
|
|
57
57
|
encoding: UTF-8
|
58
58
|
string: '{"links":{"rates_tables.seasons":"https://www.bookingsync.com/api/v3/seasons/{rates_tables.seasons}","rates_tables.rates_rules":"https://www.bookingsync.com/api/v3/rates_rules/{rates_tables.rates_rules}"},"rates_tables":[{"links":{"seasons":[6],"rates_rules":[]},"id":11,"account_id":22,"name":"Updated
|
59
59
|
rate table","created_at":"2014-04-14T13:19:04Z","updated_at":"2014-04-25T10:48:08Z"}]}'
|
60
|
-
http_version:
|
60
|
+
http_version:
|
61
61
|
recorded_at: Fri, 25 Apr 2014 10:48:09 GMT
|
62
62
|
recorded_with: VCR 2.9.0
|
@@ -69,6 +69,6 @@ http_interactions:
|
|
69
69
|
Table 15\",\"created_at\":\"2014-04-14T13:19:15Z\",\"updated_at\":\"2014-04-14T13:19:16Z\"},{\"links\":{\"seasons\":[9],\"rates_rules\":[]},\"id\":17,\"account_id\":34,\"name\":\"Rates
|
70
70
|
Table 17\",\"created_at\":\"2014-04-14T13:19:20Z\",\"updated_at\":\"2014-04-14T13:19:21Z\"},{\"links\":{\"seasons\":[10],\"rates_rules\":[]},\"id\":19,\"account_id\":38,\"name\":\"Rates
|
71
71
|
Table 19\",\"created_at\":\"2014-04-14T13:19:25Z\",\"updated_at\":\"2014-04-14T13:19:26Z\"}]}"
|
72
|
-
http_version:
|
72
|
+
http_version:
|
73
73
|
recorded_at: Wed, 16 Apr 2014 11:59:09 GMT
|
74
74
|
recorded_with: VCR 2.9.0
|
@@ -58,6 +58,6 @@ http_interactions:
|
|
58
58
|
body:
|
59
59
|
encoding: UTF-8
|
60
60
|
string: "{\"rental_agreements\":[{\"id\":17,\"body\":\"Lorem ipsum\",\"created_at\":\"2014-04-30T13:45:28Z\",\"updated_at\":\"2014-04-30T13:45:28Z\"}]}"
|
61
|
-
http_version:
|
61
|
+
http_version:
|
62
62
|
recorded_at: Wed, 30 Apr 2014 13:45:28 GMT
|
63
63
|
recorded_with: VCR 2.9.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://bookingsync.com/api/v3/rental_agreements
|
5
|
+
uri: https://bookingsync.com/api/v3/bookings/2/rental_agreements
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: "{\"
|
8
|
+
string: "{\"rental_agreements\":[{\"body\":\"Lorem ipsum\"}]}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.0
|
@@ -58,6 +58,6 @@ http_interactions:
|
|
58
58
|
body:
|
59
59
|
encoding: UTF-8
|
60
60
|
string: "{\"rental_agreements\":[{\"id\":18,\"body\":\"Lorem ipsum\",\"created_at\":\"2014-04-30T13:50:50Z\",\"updated_at\":\"2014-04-30T13:50:50Z\"}]}"
|
61
|
-
http_version:
|
61
|
+
http_version:
|
62
62
|
recorded_at: Wed, 30 Apr 2014 13:50:50 GMT
|
63
63
|
recorded_with: VCR 2.9.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://bookingsync.com/api/v3/rental_agreements
|
5
|
+
uri: https://bookingsync.com/api/v3/rentals/20/rental_agreements
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: "{\"
|
8
|
+
string: "{\"rental_agreements\":[{\"body\":\"Lorem ipsum\"}]}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.0
|
@@ -58,6 +58,6 @@ http_interactions:
|
|
58
58
|
body:
|
59
59
|
encoding: UTF-8
|
60
60
|
string: "{\"rental_agreements\":[{\"id\":19,\"body\":\"Lorem ipsum\",\"created_at\":\"2014-04-30T13:50:50Z\",\"updated_at\":\"2014-04-30T13:50:50Z\"}]}"
|
61
|
-
http_version:
|
61
|
+
http_version:
|
62
62
|
recorded_at: Wed, 30 Apr 2014 13:50:51 GMT
|
63
63
|
recorded_with: VCR 2.9.0
|
@@ -59,6 +59,6 @@ http_interactions:
|
|
59
59
|
body:
|
60
60
|
encoding: UTF-8
|
61
61
|
string: '{"rental_agreements":[{"id":1,"body":"My Agreement","created_at":"2014-04-14T15:16:42Z","updated_at":"2014-04-14T15:16:42Z"}]}'
|
62
|
-
http_version:
|
62
|
+
http_version:
|
63
63
|
recorded_at: Mon, 14 Apr 2014 15:16:53 GMT
|
64
64
|
recorded_with: VCR 2.9.0
|
@@ -59,6 +59,6 @@ http_interactions:
|
|
59
59
|
encoding: UTF-8
|
60
60
|
string: "{\"links\":{\"rentals.destination\":\"https://www.bookingsync.com/api/v3/destinations/{rentals.destination}\",\"rentals.photos\":\"https://www.bookingsync.com/api/v3/photos/{rentals.photos}\"},\"rentals\":[{\"links\":{\"destination\":null,\"photos\":[]},\"account_id\":1,\"id\":49,\"name\":\"New
|
61
61
|
rental\",\"headline\":{\"en\":null},\"summary\":{\"en\":null},\"description\":{\"en\":null},\"rental_type\":null,\"units\":1,\"bedrooms_count\":null,\"sleeps\":2,\"sleeps_max\":null,\"bathrooms_count\":null,\"surface\":null,\"bookable_online\":false,\"min_price\":null,\"max_price\":null,\"price_kind\":null,\"currency\":null,\"rates_public_notes\":{\"en\":null},\"lat\":null,\"lng\":null,\"city\":null,\"state\":null,\"country\":\"\",\"contact_name\":null,\"amenities\":[],\"reviews_count\":0,\"reviews_average_rating\":null,\"updated_at\":\"2014-04-23T14:06:44Z\",\"checkin_time\":16,\"checkout_time\":10}]}"
|
62
|
-
http_version:
|
62
|
+
http_version:
|
63
63
|
recorded_at: Wed, 23 Apr 2014 14:06:44 GMT
|
64
64
|
recorded_with: VCR 2.9.0
|
@@ -59,6 +59,6 @@ http_interactions:
|
|
59
59
|
Rental name\",\"headline\":{\"en\":\"Super Headline\"},\"summary\":{\"en\":\"Super
|
60
60
|
summary\"},\"description\":{\"en\":\"Complete description\"},\"rental_type\":\"villa\",\"units\":1,\"bedrooms_count\":null,\"sleeps\":7,\"sleeps_max\":null,\"bathrooms_count\":3,\"surface\":120,\"bookable_online\":false,\"min_price\":700,\"max_price\":700,\"price_kind\":\"weekly\",\"currency\":\"EUR\",\"rates_public_notes\":{\"en\":null},\"lat\":45.02,\"lng\":6.6,\"city\":\"Nevache\",\"state\":null,\"country\":\"France\",\"contact_name\":\"Contact
|
61
61
|
Fullname\",\"amenities\":[],\"reviews_count\":0,\"reviews_average_rating\":null,\"updated_at\":\"2014-04-23T14:06:45Z\",\"checkin_time\":16,\"checkout_time\":10}]}"
|
62
|
-
http_version:
|
62
|
+
http_version:
|
63
63
|
recorded_at: Wed, 23 Apr 2014 14:06:45 GMT
|
64
64
|
recorded_with: VCR 2.9.0
|