bookingsync-api 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/Gemfile +2 -1
  4. data/Guardfile +3 -6
  5. data/README.md +11 -3
  6. data/bookingsync-api.gemspec +2 -2
  7. data/lib/bookingsync/api.rb +0 -2
  8. data/lib/bookingsync/api/client.rb +151 -54
  9. data/lib/bookingsync/api/client/amenities.rb +22 -0
  10. data/lib/bookingsync/api/client/billing_addresses.rb +22 -0
  11. data/lib/bookingsync/api/client/bookings.rb +7 -9
  12. data/lib/bookingsync/api/client/bookings_payments.rb +22 -0
  13. data/lib/bookingsync/api/client/clients.rb +43 -0
  14. data/lib/bookingsync/api/client/destinations.rb +22 -0
  15. data/lib/bookingsync/api/client/inquiries.rb +2 -2
  16. data/lib/bookingsync/api/client/payments.rb +53 -0
  17. data/lib/bookingsync/api/client/periods.rb +54 -0
  18. data/lib/bookingsync/api/client/photos.rb +22 -0
  19. data/lib/bookingsync/api/client/rates.rb +23 -0
  20. data/lib/bookingsync/api/client/rates_rules.rb +22 -0
  21. data/lib/bookingsync/api/client/rates_tables.rb +53 -0
  22. data/lib/bookingsync/api/client/rental_agreements.rb +50 -0
  23. data/lib/bookingsync/api/client/rentals.rb +39 -1
  24. data/lib/bookingsync/api/client/reviews.rb +31 -0
  25. data/lib/bookingsync/api/client/seasons.rb +53 -0
  26. data/lib/bookingsync/api/client/special_offers.rb +54 -0
  27. data/lib/bookingsync/api/relation.rb +87 -0
  28. data/lib/bookingsync/api/resource.rb +58 -0
  29. data/lib/bookingsync/api/response.rb +79 -0
  30. data/lib/bookingsync/api/serializer.rb +100 -0
  31. data/lib/bookingsync/api/version.rb +1 -1
  32. data/spec/bookingsync/api/client/amenities_spec.rb +12 -0
  33. data/spec/bookingsync/api/client/billing_addresses_spec.rb +12 -0
  34. data/spec/bookingsync/api/client/billings_payments_spec.rb +12 -0
  35. data/spec/bookingsync/api/client/bookings_spec.rb +10 -8
  36. data/spec/bookingsync/api/client/clients_spec.rb +55 -0
  37. data/spec/bookingsync/api/client/destinations_spec.rb +12 -0
  38. data/spec/bookingsync/api/client/inquiries_spec.rb +1 -1
  39. data/spec/bookingsync/api/client/payments_spec.rb +56 -0
  40. data/spec/bookingsync/api/client/periods_spec.rb +61 -0
  41. data/spec/bookingsync/api/client/photos_spec.rb +12 -0
  42. data/spec/bookingsync/api/client/rates_rules_spec.rb +13 -0
  43. data/spec/bookingsync/api/client/rates_spec.rb +12 -0
  44. data/spec/bookingsync/api/client/rates_tables_spec.rb +59 -0
  45. data/spec/bookingsync/api/client/rental_agreements_spec.rb +64 -0
  46. data/spec/bookingsync/api/client/rentals_spec.rb +56 -6
  47. data/spec/bookingsync/api/client/reviews_spec.rb +33 -0
  48. data/spec/bookingsync/api/client/seasons_spec.rb +61 -0
  49. data/spec/bookingsync/api/client/special_offers_spec.rb +63 -0
  50. data/spec/bookingsync/api/client_spec.rb +31 -10
  51. data/spec/bookingsync/api/relation_spec.rb +72 -0
  52. data/spec/bookingsync/api/resource_spec.rb +79 -0
  53. data/spec/bookingsync/api/response_spec.rb +66 -0
  54. data/spec/cassettes/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml +72 -0
  55. data/spec/cassettes/BookingSync_API_Client_BillingAddresses/_billing_addresses/returns_billing_addresses.yml +65 -0
  56. data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_a_block/yields_block_with_batch_of_bookings.yml +12 -12
  57. data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_auto_paginate_true/returns_all_bookings_joined_from_many_requests.yml +12 -12
  58. data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml +3 -3
  59. data/spec/cassettes/BookingSync_API_Client_Bookings/_clients/returns_clients.yml +66 -0
  60. data/spec/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml +1 -1
  61. data/spec/cassettes/BookingSync_API_Client_Bookings/_create_client/creates_a_new_client.yml +64 -0
  62. data/spec/cassettes/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml +18 -14
  63. data/spec/cassettes/BookingSync_API_Client_Bookings/_edit_client/updates_given_client_by_ID.yml +62 -0
  64. data/spec/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payments/returns_bookings_payments.yml +65 -0
  65. data/spec/cassettes/BookingSync_API_Client_Destinations/_destinations/returns_destinations.yml +64 -0
  66. data/spec/cassettes/BookingSync_API_Client_Inquiries/_create_inquiry/creates_a_new_inquiry.yml +1 -1
  67. data/spec/cassettes/BookingSync_API_Client_Inquiries/_inquiries/returns_inquiries.yml +1 -1
  68. data/spec/cassettes/BookingSync_API_Client_Payments/_cancel_payment/cancels_given_payment.yml +57 -0
  69. data/spec/cassettes/BookingSync_API_Client_Payments/_create_payment/creates_a_new_payment.yml +63 -0
  70. data/spec/cassettes/BookingSync_API_Client_Payments/_edit_payment/updates_given_payment_by_ID.yml +61 -0
  71. data/spec/cassettes/BookingSync_API_Client_Payments/_payments/returns_payments.yml +64 -0
  72. data/spec/cassettes/BookingSync_API_Client_Periods/_create_period/creates_a_new_period.yml +63 -0
  73. data/spec/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +70 -0
  74. data/spec/cassettes/BookingSync_API_Client_Periods/_edit_period/updates_given_period_by_ID.yml +61 -0
  75. data/spec/cassettes/BookingSync_API_Client_Periods/_periods/returns_periods.yml +64 -0
  76. data/spec/cassettes/BookingSync_API_Client_Photos/_photos/returns_photos.yml +72 -0
  77. data/spec/cassettes/BookingSync_API_Client_Rates/_rates/returns_rates.yml +64 -0
  78. data/spec/cassettes/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +64 -0
  79. data/spec/cassettes/BookingSync_API_Client_RatesTables/_create_rates_table/creates_a_new_rates_table.yml +64 -0
  80. data/spec/cassettes/BookingSync_API_Client_RatesTables/_delete_rates_table/deletes_given_rates_table.yml +57 -0
  81. data/spec/cassettes/BookingSync_API_Client_RatesTables/_edit_rates_table/updates_given_rates_table_by_ID.yml +62 -0
  82. data/spec/cassettes/BookingSync_API_Client_RatesTables/_rates_tables/returns_rates_tables.yml +74 -0
  83. data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement/creates_a_new_rental_agreement.yml +63 -0
  84. data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_booking/creates_a_new_rental_agreement.yml +63 -0
  85. data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_rental/creates_a_new_rental_agreement.yml +63 -0
  86. data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreements/returns_rental_agreements.yml +64 -0
  87. data/spec/cassettes/BookingSync_API_Client_Rentals/_cancel_rental/cancels_given_rental.yml +57 -0
  88. data/spec/cassettes/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml +64 -0
  89. data/spec/cassettes/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml +64 -0
  90. data/spec/cassettes/BookingSync_API_Client_Rentals/_rental/returns_a_single_rental.yml +67 -0
  91. data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_associated_photos.yml +152 -0
  92. data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_links_to_associated_resources.yml +91 -0
  93. data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/returns_rentals.yml +45 -20
  94. data/spec/cassettes/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +64 -0
  95. data/spec/cassettes/BookingSync_API_Client_Reviews/_reviews/returns_reviews.yml +83 -0
  96. data/spec/cassettes/BookingSync_API_Client_Seasons/_create_season/creates_a_new_season.yml +64 -0
  97. data/spec/cassettes/BookingSync_API_Client_Seasons/_delete_season/deletes_given_season.yml +57 -0
  98. data/spec/cassettes/BookingSync_API_Client_Seasons/_edit_season/updates_given_season_by_ID.yml +62 -0
  99. data/spec/cassettes/BookingSync_API_Client_Seasons/_seasons/returns_seasons.yml +74 -0
  100. data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_create_special_offer/creates_a_new_special_offer.yml +63 -0
  101. data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_delete_special_offer/deletes_given_special_offer.yml +57 -0
  102. data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_edit_special_offer/updates_given_special_offer_by_ID.yml +61 -0
  103. data/spec/cassettes/{BookingSync_API_Client_Rentals/_rentals/with_specified_fields_in_options/returns_rentals_with_filtered_fields.yml → BookingSync_API_Client_SpecialOffers/_special_offers/returns_special_offers.yml} +17 -10
  104. data/spec/spec_helper.rb +1 -0
  105. metadata +143 -7
  106. data/lib/bookingsync/ext/resource.rb +0 -9
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/payments
6
+ body:
7
+ encoding: US-ASCII
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: 200
23
+ message: OK
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1398171600'
29
+ X-Ratelimit-Remaining:
30
+ - '999'
31
+ Link:
32
+ - "<https://www.bookingsync.com/api/v3/payments?page=1>; rel=\"first\", <https://www.bookingsync.com/api/v3/payments?page=2>;
33
+ rel=\"next\", <https://www.bookingsync.com/api/v3/payments?page=3>; rel=\"last\""
34
+ X-Total-Pages:
35
+ - '3'
36
+ Access-Control-Allow-Origin:
37
+ - "*"
38
+ Access-Control-Request-Method:
39
+ - "*"
40
+ Content-Type:
41
+ - application/vnd.api+json; charset=utf-8
42
+ X-Ua-Compatible:
43
+ - IE=Edge
44
+ Etag:
45
+ - "\"e596806dc3f0c3f91d4aea5c73d91ea2\""
46
+ Cache-Control:
47
+ - max-age=0, private, must-revalidate
48
+ P3p:
49
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
50
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
51
+ X-Request-Id:
52
+ - 849cb70014c3da4ec8f4c38df50881b3
53
+ X-Runtime:
54
+ - '0.864469'
55
+ Date:
56
+ - Tue, 22 Apr 2014 12:00:18 GMT
57
+ Connection:
58
+ - close
59
+ body:
60
+ encoding: UTF-8
61
+ string: "{\"links\":{\"payments.billing_address\":\"https://www.bookingsync.com/api/v3/billing_addresses/{payments.billing_address}\",\"payments.bookings\":\"https://www.bookingsync.com/api/v3/bookings/{payments.bookings}\",\"payments.bookings_payments\":\"https://www.bookingsync.com/api/v3/bookings_payments/{payments.bookings_payments}\"},\"payments\":[{\"links\":{\"billing_address\":null,\"bookings\":[2],\"bookings_payments\":[1]},\"id\":1,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":33000,\"currency\":\"GBP\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-21T13:18:42Z\",\"created_at\":\"2014-04-14T13:18:42Z\",\"updated_at\":\"2014-04-14T13:18:42Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[5],\"bookings_payments\":[2]},\"id\":2,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":125200,\"currency\":\"EUR\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-07T13:18:42Z\",\"created_at\":\"2014-04-14T13:18:42Z\",\"updated_at\":\"2014-04-22T11:23:32Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[6],\"bookings_payments\":[3]},\"id\":3,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":39300,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-15T13:18:46Z\",\"created_at\":\"2014-04-14T13:18:46Z\",\"updated_at\":\"2014-04-14T13:18:46Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[7],\"bookings_payments\":[4]},\"id\":4,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":24500,\"currency\":\"USD\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-26T13:18:46Z\",\"created_at\":\"2014-04-14T13:18:46Z\",\"updated_at\":\"2014-04-14T13:18:46Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[7],\"bookings_payments\":[5]},\"id\":5,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":98000,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-04T13:18:46Z\",\"created_at\":\"2014-04-14T13:18:46Z\",\"updated_at\":\"2014-04-14T13:18:46Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[9],\"bookings_payments\":[6]},\"id\":6,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":9500,\"currency\":\"USD\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-02T13:18:47Z\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[9],\"bookings_payments\":[7]},\"id\":7,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":28500,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-20T13:18:47Z\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[10],\"bookings_payments\":[8]},\"id\":8,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":38400,\"currency\":\"GBP\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-14T13:18:47Z\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[10],\"bookings_payments\":[9]},\"id\":9,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":51200,\"currency\":\"GBP\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-19T13:18:47Z\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[11],\"bookings_payments\":[10]},\"id\":10,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":47300,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-05T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[11],\"bookings_payments\":[11]},\"id\":11,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":189200,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-02T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[11],\"bookings_payments\":[12]},\"id\":12,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":236500,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-18T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[12],\"bookings_payments\":[13]},\"id\":13,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":118800,\"currency\":\"EUR\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-20T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[12],\"bookings_payments\":[14]},\"id\":14,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":79200,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-10T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[13],\"bookings_payments\":[15]},\"id\":15,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":170800,\"currency\":\"USD\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-07T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[13],\"bookings_payments\":[16]},\"id\":16,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":85400,\"currency\":\"USD\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-17T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[13],\"bookings_payments\":[17]},\"id\":17,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":170800,\"currency\":\"USD\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-19T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[14],\"bookings_payments\":[18]},\"id\":18,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":90000,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-06T13:18:53Z\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[15],\"bookings_payments\":[19]},\"id\":19,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":117200,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-21T13:18:53Z\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[15],\"bookings_payments\":[20]},\"id\":20,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":58600,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-02T13:18:53Z\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[15],\"bookings_payments\":[21]},\"id\":21,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":117200,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-19T13:18:53Z\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[16],\"bookings_payments\":[22]},\"id\":22,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":18400,\"currency\":\"GBP\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-09T13:18:57Z\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[17],\"bookings_payments\":[23]},\"id\":23,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":6200,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-14T13:18:57Z\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[17],\"bookings_payments\":[24]},\"id\":24,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":24800,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-03T13:18:57Z\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[19],\"bookings_payments\":[25]},\"id\":25,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":10500,\"currency\":\"GBP\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-16T13:18:57Z\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[19],\"bookings_payments\":[26]},\"id\":26,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":31500,\"currency\":\"GBP\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-14T13:18:58Z\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[19],\"bookings_payments\":[27]},\"id\":27,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":63000,\"currency\":\"GBP\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-19T13:18:58Z\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[20],\"bookings_payments\":[28]},\"id\":28,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":34200,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-12T13:18:58Z\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[20],\"bookings_payments\":[29]},\"id\":29,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":45600,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-13T13:18:58Z\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[21],\"bookings_payments\":[30]},\"id\":30,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":31000,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-23T13:19:02Z\",\"created_at\":\"2014-04-14T13:19:02Z\",\"updated_at\":\"2014-04-14T13:19:02Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[21],\"bookings_payments\":[31]},\"id\":31,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":31000,\"currency\":\"EUR\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-15T13:19:02Z\",\"created_at\":\"2014-04-14T13:19:02Z\",\"updated_at\":\"2014-04-14T13:19:02Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[22],\"bookings_payments\":[32]},\"id\":32,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":24400,\"currency\":\"USD\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-13T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[22],\"bookings_payments\":[33]},\"id\":33,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":24400,\"currency\":\"USD\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-27T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[24],\"bookings_payments\":[34]},\"id\":34,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":8400,\"currency\":\"EUR\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-16T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[24],\"bookings_payments\":[35]},\"id\":35,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":4200,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-14T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[25],\"bookings_payments\":[36]},\"id\":36,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":15400,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-03T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[26],\"bookings_payments\":[37]},\"id\":37,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":27200,\"currency\":\"EUR\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-22T13:19:07Z\",\"created_at\":\"2014-04-14T13:19:07Z\",\"updated_at\":\"2014-04-14T13:19:07Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[26],\"bookings_payments\":[38]},\"id\":38,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":40800,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-18T13:19:07Z\",\"created_at\":\"2014-04-14T13:19:07Z\",\"updated_at\":\"2014-04-14T13:19:07Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[26],\"bookings_payments\":[39]},\"id\":39,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":68000,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-15T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[27],\"bookings_payments\":[40]},\"id\":40,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":22300,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-18T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[27],\"bookings_payments\":[41]},\"id\":41,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":22300,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-15T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[27],\"bookings_payments\":[42]},\"id\":42,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":178400,\"currency\":\"EUR\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-05T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[28],\"bookings_payments\":[43]},\"id\":43,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":43800,\"currency\":\"GBP\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-06T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[29],\"bookings_payments\":[44]},\"id\":44,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":66300,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-25T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[30],\"bookings_payments\":[45]},\"id\":45,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":26400,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-13T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[30],\"bookings_payments\":[46]},\"id\":46,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":26400,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-12T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[31],\"bookings_payments\":[47]},\"id\":47,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":35000,\"currency\":\"USD\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-15T13:19:13Z\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-14T13:19:13Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[31],\"bookings_payments\":[48]},\"id\":48,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":17500,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-18T13:19:13Z\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-14T13:19:13Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[32],\"bookings_payments\":[49]},\"id\":49,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":20100,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-20T13:19:13Z\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-14T13:19:13Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[32],\"bookings_payments\":[50]},\"id\":50,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":60300,\"currency\":\"USD\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-06T13:19:13Z\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-22T11:45:07Z\",\"rejected_at\":null,\"canceled_at\":\"2014-04-22T11:45:07Z\"}]}"
62
+ http_version:
63
+ recorded_at: Tue, 22 Apr 2014 12:00:18 GMT
64
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/periods
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"season_id":9,"periods":[{"start_at":"2013-04-10","end_at":"2013-04-22"}]}'
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
+ - '1398445200'
29
+ X-Ratelimit-Remaining:
30
+ - '975'
31
+ Location:
32
+ - https://www.bookingsync.com/api/v3/periods/24
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
+ - '"7017ff0286edc15ebb248ae8ea96d1ad"'
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=1afc3637810bfb090700aba824b63358; path=/; secure; HttpOnly
50
+ X-Request-Id:
51
+ - 75eb9981cef583d7fec35bbeafcb41fd
52
+ X-Runtime:
53
+ - '0.852016'
54
+ Date:
55
+ - Fri, 25 Apr 2014 16:41:28 GMT
56
+ Connection:
57
+ - close
58
+ body:
59
+ encoding: UTF-8
60
+ string: '{"periods":[{"id":24,"season_id":9,"start_at":"2013-04-10","end_at":"2013-04-22","created_at":"2014-04-25T16:41:27Z","updated_at":"2014-04-25T16:41:27Z"}]}'
61
+ http_version:
62
+ recorded_at: Fri, 25 Apr 2014 16:41:28 GMT
63
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,70 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://www.bookingsync.com/api/v3/periods/10
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: 404
23
+ message: Not Found
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Fri, 25 Apr 2014 15:28:54 GMT
29
+ Content-Type:
30
+ - text/html; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 404 Not Found
37
+ X-Request-Id:
38
+ - 58d9d0fdbb7c667003c10f24ede196ec
39
+ X-Runtime:
40
+ - '0.002702'
41
+ X-Rack-Cache:
42
+ - invalidate, pass
43
+ body:
44
+ encoding: UTF-8
45
+ string: |
46
+ <!DOCTYPE html >
47
+ <html>
48
+ <head>
49
+ <title>The page you were looking for doesn't exist (404)</title>
50
+ <style type="text/css">
51
+ html { height: 100%; }
52
+ body{font-size: 75%;font-family: Helvetica,Arial,sans-serif;color:#333;background:url("data:image/png;base64,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") repeat scroll 0 0 transparent; }
53
+ .container{font-size:1.1em;width:50%;min-width:330px;text-align:center;margin:80px auto;}
54
+ .message{background:#FFF;border:1px solid #ccc;padding:30px;-moz-border-radius: 10px;-webkit-border-radius: 10px;-o-border-radius: 10px;-ms-border-radius: 10px;-khtml-border-radius: 10px;border-radius: 10px;box-shadow: 0 0 42px #ddd;}
55
+ h1{margin:0 0 0.5em;font-weight:normal;line-height:1.2em;color: #f00;}
56
+ p{margin:0;line-height:1.75em;}
57
+ </style>
58
+ </head>
59
+ <body>
60
+ <div class="container">
61
+ <div class="message">
62
+ <h1>The page you were looking for doesn't exist.</h1>
63
+ <p>You may have mistyped the address or the page may have moved.</p>
64
+ </div>
65
+ </div>
66
+ </body>
67
+ </html>
68
+ http_version:
69
+ recorded_at: Fri, 25 Apr 2014 15:28:54 GMT
70
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/periods/6
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"periods":[{"end_at":"2014-07-15"}]}'
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
+ - '1398448800'
29
+ X-Ratelimit-Remaining:
30
+ - '998'
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
+ - '"2499775e119775500bdf274a8f1b4e23"'
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=30a8a347ae446998b12cd5416b4e6cf0; path=/; secure; HttpOnly
48
+ X-Request-Id:
49
+ - ad3f5a420ae438c276c7e6d6b56ff0fa
50
+ X-Runtime:
51
+ - '0.086501'
52
+ Date:
53
+ - Fri, 25 Apr 2014 17:03:17 GMT
54
+ Connection:
55
+ - close
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"periods":[{"id":6,"season_id":6,"start_at":"2014-04-14","end_at":"2014-07-15","created_at":"2014-04-14T13:19:05Z","updated_at":"2014-04-25T17:03:17Z"}]}'
59
+ http_version:
60
+ recorded_at: Fri, 25 Apr 2014 17:03:17 GMT
61
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/periods
6
+ body:
7
+ encoding: US-ASCII
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: 200
23
+ message: OK
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1397228400'
29
+ X-Ratelimit-Remaining:
30
+ - '996'
31
+ Link:
32
+ - <https://www.bookingsync.com/api/v3/periods?page=1>; rel="first", <https://www.bookingsync.com/api/v3/periods?page=1>;
33
+ rel="last"
34
+ X-Total-Pages:
35
+ - '1'
36
+ Access-Control-Allow-Origin:
37
+ - ! '*'
38
+ Access-Control-Request-Method:
39
+ - ! '*'
40
+ Content-Type:
41
+ - application/vnd.api+json; charset=utf-8
42
+ X-Ua-Compatible:
43
+ - IE=Edge
44
+ Etag:
45
+ - ! '"4a494ff511e56a635ef461ff38bfeca2"'
46
+ Cache-Control:
47
+ - max-age=0, private, must-revalidate
48
+ P3p:
49
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
50
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
51
+ X-Request-Id:
52
+ - 31c86b3edfdd99c35cf20358a796ab4f
53
+ X-Runtime:
54
+ - '0.747321'
55
+ Date:
56
+ - Fri, 11 Apr 2014 14:18:30 GMT
57
+ Connection:
58
+ - close
59
+ body:
60
+ encoding: US-ASCII
61
+ string: ! '{"periods":[{"id":1,"season_id":1,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:07:57Z","updated_at":"2014-04-10T13:07:57Z"},{"id":2,"season_id":2,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:02Z","updated_at":"2014-04-10T13:08:02Z"},{"id":3,"season_id":3,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:06Z","updated_at":"2014-04-10T13:08:06Z"},{"id":4,"season_id":4,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:12Z","updated_at":"2014-04-10T13:08:12Z"},{"id":5,"season_id":5,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:16Z","updated_at":"2014-04-10T13:08:16Z"},{"id":6,"season_id":6,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:20Z","updated_at":"2014-04-10T13:08:20Z"},{"id":7,"season_id":7,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:25Z","updated_at":"2014-04-10T13:08:25Z"},{"id":8,"season_id":8,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:29Z","updated_at":"2014-04-10T13:08:29Z"},{"id":9,"season_id":9,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:34Z","updated_at":"2014-04-10T13:08:34Z"},{"id":10,"season_id":10,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:38Z","updated_at":"2014-04-10T13:08:38Z"}]}'
62
+ http_version:
63
+ recorded_at: Fri, 11 Apr 2014 14:18:30 GMT
64
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,72 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/photos
6
+ body:
7
+ encoding: US-ASCII
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: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Tue, 08 Apr 2014 20:04:46 GMT
29
+ Content-Type:
30
+ - application/vnd.api+json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 200 OK
37
+ X-Ratelimit-Limit:
38
+ - '1000'
39
+ X-Ratelimit-Reset:
40
+ - '1396990800.0'
41
+ X-Ratelimit-Remaining:
42
+ - '998'
43
+ Link:
44
+ - <https://www.bookingsync.com/api/v3/photos?page=1>; rel="first", <https://www.bookingsync.com/api/v3/photos?page=1>;
45
+ rel="last"
46
+ X-Total-Pages:
47
+ - '1'
48
+ Access-Control-Allow-Origin:
49
+ - '*'
50
+ Access-Control-Request-Method:
51
+ - '*'
52
+ X-Ua-Compatible:
53
+ - IE=Edge,chrome=1
54
+ Etag:
55
+ - '"017d37489332e3a29069c74028c63efa"'
56
+ Cache-Control:
57
+ - must-revalidate, private, max-age=0
58
+ P3p:
59
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
60
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
61
+ X-Request-Id:
62
+ - dad79aed88286af48066f52389be2aac
63
+ X-Runtime:
64
+ - '0.282323'
65
+ X-Rack-Cache:
66
+ - miss
67
+ body:
68
+ encoding: UTF-8
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:
71
+ recorded_at: Tue, 08 Apr 2014 20:04:46 GMT
72
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/rates
6
+ body:
7
+ encoding: US-ASCII
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: 200
23
+ message: OK
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1399312800'
29
+ X-Ratelimit-Remaining:
30
+ - '997'
31
+ Link:
32
+ - <https://www.bookingsync.com/api/v3/rates?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rates?page=1>;
33
+ rel="last"
34
+ X-Total-Pages:
35
+ - '1'
36
+ Access-Control-Allow-Origin:
37
+ - "*"
38
+ Access-Control-Request-Method:
39
+ - "*"
40
+ Content-Type:
41
+ - application/vnd.api+json; charset=utf-8
42
+ X-Ua-Compatible:
43
+ - IE=Edge
44
+ Etag:
45
+ - '"2497b7acaaee2cf80147109225197463"'
46
+ Cache-Control:
47
+ - max-age=0, private, must-revalidate
48
+ P3p:
49
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
50
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
51
+ X-Request-Id:
52
+ - 4d76f5655c5f427be5cd20815ed9b646
53
+ X-Runtime:
54
+ - '0.197010'
55
+ Date:
56
+ - Mon, 05 May 2014 17:53:51 GMT
57
+ Connection:
58
+ - close
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"rates":[{"id":2,"start_at":"2014-02-11","end_at":"2014-05-10","rental_id":14,"initial_nightly_rate":"100.0","initial_weekly_rate":"700.0","initial_monthly_rate":"3000.0","final_nightly_rate":"100.0","final_weekly_rate":"700.0","final_monthly_rate":"3000.0","minimum_stay":7,"created_at":"2014-04-30T22:57:10Z","updated_at":"2014-04-30T22:57:10Z"}]}'
62
+ http_version:
63
+ recorded_at: Mon, 05 May 2014 17:53:51 GMT
64
+ recorded_with: VCR 2.9.0