bookingsync-api 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/bookingsync-api.gemspec +1 -0
  4. data/lib/bookingsync/api/client.rb +41 -24
  5. data/lib/bookingsync/api/client/payments.rb +1 -1
  6. data/lib/bookingsync/api/client/rentals.rb +2 -2
  7. data/lib/bookingsync/api/version.rb +1 -1
  8. data/spec/bookingsync/api/client/accounts_spec.rb +8 -2
  9. data/spec/bookingsync/api/client/amenities_spec.rb +8 -2
  10. data/spec/bookingsync/api/client/availabilities_spec.rb +8 -2
  11. data/spec/bookingsync/api/client/bathrooms_spec.rb +25 -12
  12. data/spec/bookingsync/api/client/bedrooms_spec.rb +24 -11
  13. data/spec/bookingsync/api/client/booking_comments_spec.rb +23 -10
  14. data/spec/bookingsync/api/client/bookings_fees_spec.rb +8 -2
  15. data/spec/bookingsync/api/client/bookings_payments_spec.rb +8 -2
  16. data/spec/bookingsync/api/client/bookings_spec.rb +36 -20
  17. data/spec/bookingsync/api/client/bookings_taxes_spec.rb +8 -2
  18. data/spec/bookingsync/api/client/change_overs_spec.rb +8 -2
  19. data/spec/bookingsync/api/client/clients_spec.rb +23 -13
  20. data/spec/bookingsync/api/client/destinations_spec.rb +8 -2
  21. data/spec/bookingsync/api/client/fees_spec.rb +8 -2
  22. data/spec/bookingsync/api/client/inquiries_spec.rb +13 -7
  23. data/spec/bookingsync/api/client/living_rooms_spec.rb +22 -9
  24. data/spec/bookingsync/api/client/nightly_rate_maps_spec.rb +15 -6
  25. data/spec/bookingsync/api/client/payment_gateways_spec.rb +8 -2
  26. data/spec/bookingsync/api/client/payments_spec.rb +34 -16
  27. data/spec/bookingsync/api/client/periods_spec.rb +29 -14
  28. data/spec/bookingsync/api/client/photos_spec.rb +23 -9
  29. data/spec/bookingsync/api/client/preferences_general_settings_spec.rb +11 -4
  30. data/spec/bookingsync/api/client/rates_rules_spec.rb +25 -12
  31. data/spec/bookingsync/api/client/rates_spec.rb +8 -2
  32. data/spec/bookingsync/api/client/rates_tables_spec.rb +23 -10
  33. data/spec/bookingsync/api/client/rental_agreements_spec.rb +18 -8
  34. data/spec/bookingsync/api/client/rental_cancelation_policies_spec.rb +8 -1
  35. data/spec/bookingsync/api/client/rental_cancelation_policy_items_spec.rb +8 -1
  36. data/spec/bookingsync/api/client/rentals_amenities_spec.rb +22 -9
  37. data/spec/bookingsync/api/client/rentals_fees_spec.rb +14 -5
  38. data/spec/bookingsync/api/client/rentals_spec.rb +53 -19
  39. data/spec/bookingsync/api/client/reviews_spec.rb +12 -6
  40. data/spec/bookingsync/api/client/seasons_spec.rb +30 -14
  41. data/spec/bookingsync/api/client/sources_spec.rb +17 -8
  42. data/spec/bookingsync/api/client/special_offers_spec.rb +30 -15
  43. data/spec/bookingsync/api/client/strict_bookings_spec.rb +10 -14
  44. data/spec/bookingsync/api/client/taxes_spec.rb +8 -2
  45. data/spec/bookingsync/api/client_spec.rb +23 -7
  46. data/spec/bookingsync/api/relation_spec.rb +1 -1
  47. data/spec/bookingsync/api/resource_spec.rb +8 -8
  48. data/spec/bookingsync/api/response_spec.rb +8 -8
  49. data/spec/fixtures/cassettes/BookingSync_API_Client_Accounts/_account/returns_a_single_account.yml +26 -18
  50. data/spec/fixtures/cassettes/BookingSync_API_Client_Accounts/_accounts/returns_accounts.yml +26 -18
  51. data/spec/fixtures/cassettes/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml +220 -26
  52. data/spec/fixtures/cassettes/BookingSync_API_Client_Amenities/_amenity/returns_amenity.yml +50 -26
  53. data/spec/fixtures/cassettes/BookingSync_API_Client_Availabilities/_availabilities/returns_availabilities.yml +37 -21
  54. data/spec/fixtures/cassettes/BookingSync_API_Client_Availabilities/_availability/returns_a_single_availability.yml +33 -25
  55. data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_bathroom/returns_a_single_bathroom.yml +26 -18
  56. data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_bathrooms/returns_bathrooms.yml +33 -22
  57. data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_cancel_bathroom/cancels_given_bathroom.yml +21 -15
  58. data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_create_bathroom/creates_a_new_bathroom.yml +30 -19
  59. data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_edit_bathroom/updates_given_bathroom_by_ID.yml +26 -19
  60. data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_bedroom/returns_a_single_bedroom.yml +26 -18
  61. data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_bedrooms/returns_bedrooms.yml +32 -24
  62. data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_cancel_bedroom/cancels_given_bedroom.yml +21 -15
  63. data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_create_bedroom/creates_a_new_bedroom.yml +29 -18
  64. data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_edit_bedroom/updates_given_bedroom_by_ID.yml +25 -19
  65. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_booking_comment/returns_single_booking_comment.yml +42 -26
  66. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_booking_comments/returns_booking_comments.yml +45 -33
  67. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_create_booking_comment/creates_booking_comment.yml +43 -24
  68. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_create_booking_comment/returns_newly_created_booking_comment.yml +43 -24
  69. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_delete_booking_comment/deletes_given_booking_comment.yml +29 -17
  70. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_edit_booking_comment/returns_updated_booking_comment.yml +36 -22
  71. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_edit_booking_comment/updates_booking_comment.yml +36 -22
  72. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_booking/returns_a_single_booking.yml +44 -26
  73. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_booking/returns_a_single_canceled_booking.yml +30 -23
  74. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_a_block/yields_block_with_batch_of_bookings.yml +100 -115
  75. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_auto_paginate_true/returns_all_bookings_joined_from_many_requests.yml +100 -115
  76. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml +52 -28
  77. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/returns_bookings.yml +57 -25
  78. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_cancel_booking/cancels_given_booking.yml +36 -20
  79. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml +49 -26
  80. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml +44 -24
  81. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsFees/_bookings_fee/returns_a_single_bookings_fee.yml +26 -18
  82. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsFees/_bookings_fees/returns_bookings_fees.yml +27 -19
  83. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payment/returns_a_single_bookings_payment.yml +26 -18
  84. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payments/returns_bookings_payments.yml +51 -28
  85. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsTaxes/_bookings_tax/returns_a_single_bookings_tax.yml +26 -18
  86. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsTaxes/_bookings_taxes/returns_bookings_taxes.yml +28 -20
  87. data/spec/fixtures/cassettes/BookingSync_API_Client_ChangeOvers/_change_over/returns_a_single_change_over.yml +44 -38
  88. data/spec/fixtures/cassettes/BookingSync_API_Client_ChangeOvers/_change_overs/returns_change_overs.yml +43 -37
  89. data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_client/returns_a_single_client.yml +27 -19
  90. data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_clients/returns_clients.yml +32 -26
  91. data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_create_client/creates_a_new_client.yml +30 -19
  92. data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_edit_client/updates_given_client_by_ID.yml +25 -19
  93. data/spec/fixtures/cassettes/BookingSync_API_Client_Destinations/_destination/returns_a_single_destination.yml +29 -24
  94. data/spec/fixtures/cassettes/BookingSync_API_Client_Destinations/_destinations/returns_destinations.yml +59 -25
  95. data/spec/fixtures/cassettes/BookingSync_API_Client_Fees/_create_fee/creates_a_new_fee.yml +25 -18
  96. data/spec/fixtures/cassettes/BookingSync_API_Client_Fees/_fee/returns_a_single_fee.yml +26 -18
  97. data/spec/fixtures/cassettes/BookingSync_API_Client_Fees/_fees/returns_fees.yml +31 -19
  98. data/spec/fixtures/cassettes/BookingSync_API_Client_Inquiries/_create_inquiry/creates_a_new_inquiry.yml +50 -27
  99. data/spec/fixtures/cassettes/BookingSync_API_Client_Inquiries/_inquiries/returns_inquiries.yml +50 -26
  100. data/spec/fixtures/cassettes/BookingSync_API_Client_Inquiries/_inquiry/returns_a_single_inquiry.yml +29 -21
  101. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_cancel_living_room/cancels_given_living_room.yml +35 -31
  102. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_create_living_room/creates_a_new_living_room.yml +41 -37
  103. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_edit_living_room/updates_given_living_room_by_ID.yml +38 -34
  104. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_living_room/returns_a_single_living_room.yml +44 -40
  105. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_living_rooms/returns_living_rooms.yml +43 -39
  106. data/spec/fixtures/cassettes/BookingSync_API_Client_NightlyRateMaps/_edit_nightly_rate_map/updates_given_nightly_rate_map_by_ID.yml +39 -33
  107. data/spec/fixtures/cassettes/BookingSync_API_Client_NightlyRateMaps/_nightly_rate_map/returns_a_single_nightly_rate_map.yml +44 -38
  108. data/spec/fixtures/cassettes/BookingSync_API_Client_NightlyRateMaps/_nightly_rate_maps/returns_nightly_rate_maps.yml +44 -38
  109. data/spec/fixtures/cassettes/BookingSync_API_Client_PaymentGateways/_payment_gateway/returns_a_single_payment_gateway.yml +38 -24
  110. data/spec/fixtures/cassettes/BookingSync_API_Client_PaymentGateways/_payment_gateways/returns_payment_gateways.yml +37 -23
  111. data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_cancel_payment/cancels_given_payment.yml +36 -20
  112. data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_create_payment/creates_a_new_payment.yml +50 -26
  113. data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_edit_payment/updates_given_payment_by_ID.yml +44 -25
  114. data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_payment/returns_a_single_payment.yml +26 -18
  115. data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_payments/returns_payments.yml +55 -27
  116. data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_create_period/creates_a_new_period.yml +49 -26
  117. data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +35 -19
  118. data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_edit_period/updates_given_period_by_ID.yml +43 -25
  119. data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_period/returns_a_single_period.yml +28 -20
  120. data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_periods/returns_periods.yml +49 -25
  121. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo.yml +47 -24
  122. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_encoded_photo_file.yml +47 -24
  123. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_photo_path.yml +47 -24
  124. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_remote_URL.yml +47 -24
  125. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_delete_photo/delete_given_photo.yml +37 -21
  126. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_edit_photo/updates_photo_s_description.yml +42 -23
  127. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_edit_photo/updates_photo_s_image_file.yml +42 -23
  128. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_photo/returns_a_single_photo.yml +28 -20
  129. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_photos/returns_photos.yml +38 -22
  130. data/spec/fixtures/cassettes/BookingSync_API_Client_PreferencesGeneralSettings/_edit_preferences_general_setting/updates_given_preferences_general_setting_by_ID.yml +39 -34
  131. data/spec/fixtures/cassettes/BookingSync_API_Client_PreferencesGeneralSettings/_preferences_general_settings/returns_preferences_general_settings.yml +50 -42
  132. data/spec/fixtures/cassettes/BookingSync_API_Client_Rates/_rate/returns_a_single_rate.yml +28 -20
  133. data/spec/fixtures/cassettes/BookingSync_API_Client_Rates/_rates/returns_rates.yml +48 -24
  134. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_create_rates_rule/creates_a_new_rates_rule.yml +29 -18
  135. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_delete_rates_rule/deletes_given_rates_rule.yml +21 -15
  136. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_edit_rates_rule/updates_given_rates_rule_by_ID.yml +24 -18
  137. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rule/returns_a_single_rates_rule.yml +26 -18
  138. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +27 -19
  139. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_create_rates_table/creates_a_new_rates_table.yml +49 -26
  140. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_delete_rates_table/deletes_given_rates_table.yml +36 -20
  141. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_edit_rates_table/updates_given_rates_table_by_ID.yml +43 -25
  142. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_rates_table/returns_a_single_rates_table.yml +26 -18
  143. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_rates_tables/returns_rates_tables.yml +54 -36
  144. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement/creates_a_new_rental_agreement.yml +50 -26
  145. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_booking/creates_a_new_rental_agreement.yml +50 -26
  146. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_rental/creates_a_new_rental_agreement.yml +50 -26
  147. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreement/returns_a_single_rental_agreement.yml +30 -21
  148. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreements/returns_rental_agreements.yml +52 -26
  149. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicies/_rental_cancelation_policies/returns_rental_cancelation_policies.yml +48 -27
  150. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicies/_rental_cancelation_policy/returns_a_single_rental_cancelation_policy.yml +42 -26
  151. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicyItems/_rental_cancelation_policy_item/returns_a_single_rental_cancelation_policy_item.yml +41 -25
  152. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicyItems/_rental_cancelation_policy_items/returns_rental_cancelation_policy_items.yml +43 -26
  153. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml +49 -26
  154. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_delete_rental/deletes_given_rental.yml +36 -20
  155. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml +44 -28
  156. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rental/returns_a_single_rental.yml +234 -31
  157. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rental/with_additional_query_params/returns_a_single_rental_with_defined_params.yml +322 -0
  158. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_associated_photos.yml +453 -77
  159. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals/returns_rentals.yml +405 -54
  160. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals/returns_rentals_by_ids.yml +336 -32
  161. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_meta/returns_meta_information_about_all_rentals.yml +53 -25
  162. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_meta/returns_meta_information_about_requested_rentals.yml +55 -26
  163. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/performs_autopagination_using_POST.yml +121 -81
  164. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/rentals_ids_given/makes_a_search_within_given_rentals.yml +42 -28
  165. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/returns_rentals.yml +42 -28
  166. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rentals_amenity/creates_a_new_rentals_amenity.yml +29 -18
  167. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_delete_rentals_amenity/deletes_given_rentals_amenity.yml +21 -15
  168. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rentals_amenity/updates_given_rentals_amenity_by_ID.yml +24 -18
  169. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/links/returns_associated_amenity.yml +104 -52
  170. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/links/returns_associated_rental.yml +283 -53
  171. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/returns_rentals_amenities.yml +51 -26
  172. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenity/returns_rentals_amenity.yml +50 -26
  173. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsFees/_create_rentals_fee/creates_a_new_rentals_fee.yml +30 -19
  174. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsFees/_rentals_fee/returns_a_single_rentals_fee.yml +30 -22
  175. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsFees/_rentals_fees/returns_rentals_fees.yml +27 -18
  176. data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +49 -26
  177. data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_review/returns_a_single_review.yml +26 -18
  178. data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_reviews/returns_reviews.yml +41 -33
  179. data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_create_season/creates_a_new_season.yml +50 -27
  180. data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_delete_season/deletes_given_season.yml +36 -20
  181. data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_edit_season/updates_given_season_by_ID.yml +44 -26
  182. data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_season/returns_a_single_season.yml +29 -21
  183. data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_seasons/returns_seasons.yml +55 -36
  184. data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_create_source/creates_a_new_source.yml +40 -25
  185. data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_edit_source/updates_given_source_by_ID.yml +36 -25
  186. data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_source/returns_a_single_source.yml +26 -18
  187. data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_sources/returns_sources.yml +42 -24
  188. data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_create_special_offer/creates_a_new_special_offer.yml +50 -26
  189. data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_delete_special_offer/deletes_given_special_offer.yml +36 -20
  190. data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_edit_special_offer/updates_given_special_offer_by_ID.yml +44 -25
  191. data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_special_offer/returns_a_single_special_offer.yml +29 -22
  192. data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_special_offers/returns_special_offers.yml +48 -24
  193. data/spec/fixtures/cassettes/BookingSync_API_Client_StrictBookings/_create_strict_booking/creates_a_booking.yml +43 -24
  194. data/spec/fixtures/cassettes/BookingSync_API_Client_Taxes/_tax/returns_a_single_tax.yml +26 -18
  195. data/spec/fixtures/cassettes/BookingSync_API_Client_Taxes/_taxes/returns_taxes.yml +28 -19
  196. data/spec/spec_helper.rb +6 -0
  197. data/spec/support/vcr_helper.rb +29 -0
  198. metadata +21 -10
  199. data/lib/bookingsync/api/client/preferences_payments.rb +0 -22
  200. data/spec/bookingsync/api/client/preferences_payments_spec.rb +0 -12
  201. data/spec/fixtures/cassettes/BookingSync_API_Client_PreferencesPayments/_preferences_payments/returns_preferences_payments.yml +0 -80
  202. data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_links_to_associated_resources.yml +0 -91
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://bookingsync.dev/api/v3/rental_cancelation_policy_items/13
5
+ uri: https://www.bookingsync.com/api/v3/rental_cancelation_policy_items/14849
6
6
  body:
7
- encoding: US-ASCII
8
- string: ''
7
+ encoding: UTF-8
8
+ string: "{}"
9
9
  headers:
10
10
  User-Agent:
11
- - BookingSync API gem v0.0.29
11
+ - BookingSync API gem v0.1.3
12
12
  Accept:
13
13
  - application/vnd.api+json
14
14
  Content-Type:
@@ -17,57 +17,73 @@ http_interactions:
17
17
  - Bearer <<ACCESS_TOKEN>>
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - 30
20
24
  response:
21
25
  status:
22
26
  code: 200
23
27
  message: OK
24
28
  headers:
29
+ Server:
30
+ - nginx
31
+ Date:
32
+ - Mon, 12 Dec 2016 11:43:54 GMT
33
+ Content-Type:
34
+ - application/vnd.api+json; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Connection:
38
+ - keep-alive
39
+ Status:
40
+ - 200 OK
25
41
  X-Frame-Options:
26
42
  - SAMEORIGIN
27
43
  X-Xss-Protection:
28
44
  - 1; mode=block
29
45
  X-Content-Type-Options:
30
46
  - nosniff
47
+ X-Updated-Since-Request-Synced-At:
48
+ - 2016-12-12 11:43:54 UTC
31
49
  X-Ratelimit-Limit:
32
50
  - '1000'
33
51
  X-Ratelimit-Reset:
34
- - '1445256000'
52
+ - '1481544000'
35
53
  X-Ratelimit-Remaining:
36
- - '998'
54
+ - '924'
37
55
  Link:
38
- - <https://bookingsync.dev/api/v3/rental_cancelation_policy_items/13?page=1>;
39
- rel="first", <https://bookingsync.dev/api/v3/rental_cancelation_policy_items/13?page=1>;
56
+ - <https://www.bookingsync.com/api/v3/rental_cancelation_policy_items/14849?page=1>;
57
+ rel="first", <https://www.bookingsync.com/api/v3/rental_cancelation_policy_items/14849?page=1>;
40
58
  rel="last"
41
59
  X-Total-Pages:
42
60
  - '1'
43
61
  X-Total-Count:
44
62
  - '1'
45
- Content-Type:
46
- - application/vnd.api+json; charset=utf-8
63
+ X-Per-Page:
64
+ - '100'
47
65
  Etag:
48
- - '"53510fc2643891459d4f0f2b24d37fc4"'
66
+ - W/"186bc9b244de262dbb9af8e9f82560e2"
49
67
  Cache-Control:
50
68
  - max-age=0, private, must-revalidate
51
69
  P3p:
52
70
  - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
53
71
  OUR SAMi OTRo UNRo PUBi IND UNI STA"
54
72
  Set-Cookie:
55
- - ahoy_track=true; path=/
56
- - ahoy_visit=c1ec7f75-65d6-4a01-8414-a1aed019a27b; path=/; expires=Mon, 26 Oct
57
- 2015 11:41:09 -0000
58
- - ahoy_visitor=6991d1d4-2988-4a77-8658-5a617130d0bc; path=/; expires=Thu, 19
59
- Oct 2017 11:41:09 -0000
73
+ - ahoy_track=true; path=/; secure
74
+ - ahoy_visit=a4373fa0-bf9d-4490-9a66-8e61150116fd; path=/; expires=Mon, 19 Dec
75
+ 2016 11:43:54 -0000; secure
76
+ - ahoy_visitor=785c3dbc-2c78-4769-9eec-be2a9fcd51f5; path=/; expires=Wed, 12
77
+ Dec 2018 11:43:54 -0000; secure
60
78
  X-Request-Id:
61
- - 1a0a2baa-949b-4fb8-bccb-21bc7ac7d80e
79
+ - 5635bd93-2eec-42c9-a395-9d0d97a8753c
62
80
  X-Runtime:
63
- - '0.093684'
64
- Date:
65
- - Mon, 19 Oct 2015 11:41:09 GMT
66
- Connection:
67
- - close
81
+ - '0.038262'
82
+ Strict-Transport-Security:
83
+ - max-age=31536000
68
84
  body:
69
85
  encoding: UTF-8
70
- string: '{"links":{"rental_cancelation_policy_items.rental_cancelation_policy":"https://bookingsync.dev/api/v3/rental_cancelation_policies/{rental_cancelation_policy_items.rental_cancelation_policy}"},"rental_cancelation_policy_items":[{"links":{"rental_cancelation_policy":13},"id":13,"eligible_days":12,"penalty_percentage":"20.0","created_at":"2015-09-30T13:09:26Z","updated_at":"2015-09-30T13:09:26Z"}]}'
86
+ string: '{"links":{"rental_cancelation_policy_items.rental_cancelation_policy":"https://www.bookingsync.com/api/v3/rental_cancelation_policies/{rental_cancelation_policy_items.rental_cancelation_policy}"},"rental_cancelation_policy_items":[{"links":{"rental_cancelation_policy":16404},"id":14849,"eligible_days":2,"penalty_percentage":"20.0","created_at":"2016-12-05T22:37:43Z","updated_at":"2016-12-05T22:37:43Z"}]}'
71
87
  http_version:
72
- recorded_at: Mon, 19 Oct 2015 11:41:09 GMT
73
- recorded_with: VCR 2.9.3
88
+ recorded_at: Mon, 12 Dec 2016 11:43:54 GMT
89
+ recorded_with: VCR 3.0.3
@@ -4,11 +4,11 @@ http_interactions:
4
4
  method: get
5
5
  uri: https://www.bookingsync.com/api/v3/rental_cancelation_policy_items
6
6
  body:
7
- encoding: US-ASCII
8
- string: ''
7
+ encoding: UTF-8
8
+ string: "{}"
9
9
  headers:
10
10
  User-Agent:
11
- - BookingSync API gem v0.0.29
11
+ - BookingSync API gem v0.1.3
12
12
  Accept:
13
13
  - application/vnd.api+json
14
14
  Content-Type:
@@ -17,56 +17,73 @@ http_interactions:
17
17
  - Bearer <<ACCESS_TOKEN>>
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - 30
20
24
  response:
21
25
  status:
22
26
  code: 200
23
27
  message: OK
24
28
  headers:
29
+ Server:
30
+ - nginx
31
+ Date:
32
+ - Mon, 12 Dec 2016 11:32:48 GMT
33
+ Content-Type:
34
+ - application/vnd.api+json; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Connection:
38
+ - keep-alive
39
+ Status:
40
+ - 200 OK
25
41
  X-Frame-Options:
26
42
  - SAMEORIGIN
27
43
  X-Xss-Protection:
28
44
  - 1; mode=block
29
45
  X-Content-Type-Options:
30
46
  - nosniff
47
+ X-Updated-Since-Request-Synced-At:
48
+ - 2016-12-12 11:32:48 UTC
31
49
  X-Ratelimit-Limit:
32
50
  - '1000'
33
51
  X-Ratelimit-Reset:
34
- - '1443110400'
52
+ - '1481544000'
35
53
  X-Ratelimit-Remaining:
36
- - '998'
54
+ - '967'
37
55
  Link:
38
- - <https://bookingsync.dev/api/v3/rental_cancelation_policy_items?page=1>; rel="first",
39
- <https://bookingsync.dev/api/v3/rental_cancelation_policy_items?page=1>; rel="last"
56
+ - <https://www.bookingsync.com/api/v3/rental_cancelation_policy_items?page=1>;
57
+ rel="first", <https://www.bookingsync.com/api/v3/rental_cancelation_policy_items?page=1>;
58
+ rel="last"
40
59
  X-Total-Pages:
41
60
  - '1'
42
61
  X-Total-Count:
43
- - '2'
44
- Content-Type:
45
- - application/vnd.api+json; charset=utf-8
62
+ - '4'
63
+ X-Per-Page:
64
+ - '100'
46
65
  Etag:
47
- - '"f53584d748c2c10a0fd445f538bbfc41"'
66
+ - W/"e86638f0eaf779c8452c9829913dd5d7"
48
67
  Cache-Control:
49
68
  - max-age=0, private, must-revalidate
50
69
  P3p:
51
70
  - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
52
71
  OUR SAMi OTRo UNRo PUBi IND UNI STA"
53
72
  Set-Cookie:
54
- - ahoy_track=true; path=/
55
- - ahoy_visit=0cac88d7-dbe3-4c19-8a0f-52fb7907821e; path=/; expires=Thu, 01 Oct
56
- 2015 15:44:43 -0000
57
- - ahoy_visitor=d413b060-d3e8-4880-9d29-2ae2573fcb82; path=/; expires=Sun, 24
58
- Sep 2017 15:44:43 -0000
73
+ - ahoy_track=true; path=/; secure
74
+ - ahoy_visit=de6c8a06-7438-49ed-bc23-2903ca213d41; path=/; expires=Mon, 19 Dec
75
+ 2016 11:32:48 -0000; secure
76
+ - ahoy_visitor=b5daeea3-1f94-4c1c-aa9e-bdc395cd96c1; path=/; expires=Wed, 12
77
+ Dec 2018 11:32:48 -0000; secure
59
78
  X-Request-Id:
60
- - bb775035-3649-4b9c-958f-ce65c12b114d
79
+ - 44431ac5-c13c-4ec9-81e6-44996f6f3427
61
80
  X-Runtime:
62
- - '0.127527'
63
- Date:
64
- - Thu, 24 Sep 2015 15:44:43 GMT
65
- Connection:
66
- - close
81
+ - '0.049114'
82
+ Strict-Transport-Security:
83
+ - max-age=31536000
67
84
  body:
68
85
  encoding: UTF-8
69
- string: '{"links":{"rental_cancelation_policy_items.rental_cancelation_policy":"https://bookingsync.dev/api/v3/rental_cancelation_policies/{rental_cancelation_policy_items.rental_cancelation_policy}"},"rental_cancelation_policy_items":[{"links":{"rental_cancelation_policy":1},"id":1,"eligible_days":20,"penalty_percentage":"12.0","created_at":"2015-09-23T11:48:15Z","updated_at":"2015-09-23T11:48:15Z"},{"links":{"rental_cancelation_policy":2},"id":2,"eligible_days":20,"penalty_percentage":"10.0","created_at":"2015-09-23T12:03:46Z","updated_at":"2015-09-23T12:03:46Z"}]}'
70
- http_version:
71
- recorded_at: Thu, 24 Sep 2015 15:44:43 GMT
72
- recorded_with: VCR 2.9.3
86
+ string: '{"links":{"rental_cancelation_policy_items.rental_cancelation_policy":"https://www.bookingsync.com/api/v3/rental_cancelation_policies/{rental_cancelation_policy_items.rental_cancelation_policy}"},"rental_cancelation_policy_items":[{"links":{"rental_cancelation_policy":16404},"id":14849,"eligible_days":2,"penalty_percentage":"20.0","created_at":"2016-12-05T22:37:43Z","updated_at":"2016-12-05T22:37:43Z"},{"links":{"rental_cancelation_policy":16438},"id":14872,"eligible_days":20,"penalty_percentage":"10.0","created_at":"2016-12-07T12:35:09Z","updated_at":"2016-12-07T12:35:09Z"},{"links":{"rental_cancelation_policy":16441},"id":14875,"eligible_days":20,"penalty_percentage":"10.0","created_at":"2016-12-07T12:35:09Z","updated_at":"2016-12-07T12:35:09Z"},{"links":{"rental_cancelation_policy":16442},"id":14876,"eligible_days":20,"penalty_percentage":"10.0","created_at":"2016-12-07T12:35:09Z","updated_at":"2016-12-07T12:35:09Z"}]}'
87
+ http_version:
88
+ recorded_at: Mon, 12 Dec 2016 11:32:48 GMT
89
+ recorded_with: VCR 3.0.3
@@ -5,10 +5,10 @@ http_interactions:
5
5
  uri: https://www.bookingsync.com/api/v3/rentals
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "{\"rentals\":[{\"name\":\"New rental\",\"sleeps\":2}]}"
8
+ string: '{"rentals":[{"name":"New rental","sleeps":2}]}'
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.9.0
11
+ - BookingSync API gem v0.1.3
12
12
  Accept:
13
13
  - application/vnd.api+json
14
14
  Content-Type:
@@ -17,48 +17,71 @@ http_interactions:
17
17
  - Bearer <<ACCESS_TOKEN>>
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - 30
20
24
  response:
21
25
  status:
22
26
  code: 201
23
27
  message: Created
24
28
  headers:
29
+ Server:
30
+ - nginx
31
+ Date:
32
+ - Mon, 12 Dec 2016 11:52:22 GMT
33
+ Content-Type:
34
+ - application/vnd.api+json; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Connection:
38
+ - keep-alive
39
+ Status:
40
+ - 201 Created
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Updated-Since-Request-Synced-At:
48
+ - 2016-12-12 11:52:22 UTC
25
49
  X-Ratelimit-Limit:
26
50
  - '1000'
27
51
  X-Ratelimit-Reset:
28
- - '1398265200'
52
+ - '1481544000'
29
53
  X-Ratelimit-Remaining:
30
- - '986'
54
+ - '894'
55
+ Link:
56
+ - <https://www.bookingsync.com/api/v3/rentals?page=1&rentals%5B%5D%5Bname%5D=New+rental&rentals%5B%5D%5Bsleeps%5D=2>;
57
+ rel="first"
58
+ X-Per-Page:
59
+ - '50'
31
60
  Location:
32
- - https://www.bookingsync.com/api/v3/rentals/49
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
61
+ - https://www.bookingsync.com/api/v3/rentals/26373
41
62
  Etag:
42
- - "\"fcd4f71deda5f59020d892a9cb37c95c\""
63
+ - W/"8c170b2fc0ae6b64e81aebdc9e1876c7"
43
64
  Cache-Control:
44
65
  - max-age=0, private, must-revalidate
45
66
  P3p:
46
67
  - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
47
68
  OUR SAMi OTRo UNRo PUBi IND UNI STA"
48
69
  Set-Cookie:
49
- - _BookingSync_session=5e931f0f43f705327f78ac704b7487f5; path=/; secure; HttpOnly
70
+ - ahoy_track=true; path=/; secure
71
+ - ahoy_visit=a74098bf-627a-4d60-912d-4e0ccab26532; path=/; expires=Mon, 19 Dec
72
+ 2016 11:52:22 -0000; secure
73
+ - ahoy_visitor=e72fc391-a9a1-4eb9-b8b6-e0d2d6e9c73f; path=/; expires=Wed, 12
74
+ Dec 2018 11:52:22 -0000; secure
50
75
  X-Request-Id:
51
- - 30c4195436aded43dbc2fafd458d264f
76
+ - 8705025b-8acb-4f77-8b73-a910157fee2e
52
77
  X-Runtime:
53
- - '0.059327'
54
- Date:
55
- - Wed, 23 Apr 2014 14:06:44 GMT
56
- Connection:
57
- - close
78
+ - '0.572776'
79
+ Strict-Transport-Security:
80
+ - max-age=31536000
58
81
  body:
59
82
  encoding: UTF-8
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
- 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:
63
- recorded_at: Wed, 23 Apr 2014 14:06:44 GMT
64
- recorded_with: VCR 2.9.0
83
+ string: '{"links":{"rentals.account":"https://www.bookingsync.com/api/v3/accounts/{rentals.account}","rentals.availability":"https://www.bookingsync.com/api/v3/availabilities/{rentals.availability}","rentals.change_over":"https://www.bookingsync.com/api/v3/change_overs/{rentals.change_over}","rentals.destination":"https://www.bookingsync.com/api/v3/destinations/{rentals.destination}","rentals.payment_gateway":"https://www.bookingsync.com/api/v3/payment_gateways/{rentals.payment_gateway}","rentals.rates_table":"https://www.bookingsync.com/api/v3/rates_tables/{rentals.rates_table}","rentals.rental_agreement":"https://www.bookingsync.com/api/v3/rental_agreements/{rentals.rental_agreement}","rentals.rental_cancelation_policy":"https://www.bookingsync.com/api/v3/rental_cancelation_policies/{rentals.rental_cancelation_policy}","rentals.nightly_rate_map":"https://www.bookingsync.com/api/v3/nightly_rate_maps/{rentals.nightly_rate_map}","rentals.photos":"https://www.bookingsync.com/api/v3/photos/{rentals.photos}","rentals.reviews":"https://www.bookingsync.com/api/v3/reviews/{rentals.reviews}","rentals.special_offers":"https://www.bookingsync.com/api/v3/special_offers/{rentals.special_offers}","rentals.rates":"https://www.bookingsync.com/api/v3/rates/{rentals.rates}","rentals.rentals_amenities":"https://www.bookingsync.com/api/v3/rentals_amenities/{rentals.rentals_amenities}","rentals.rentals_fees":"https://www.bookingsync.com/api/v3/rentals_fees/{rentals.rentals_fees}","rentals.bathrooms":"https://www.bookingsync.com/api/v3/bathrooms/{rentals.bathrooms}","rentals.bedrooms":"https://www.bookingsync.com/api/v3/bedrooms/{rentals.bedrooms}","rentals.living_rooms":"https://www.bookingsync.com/api/v3/living_rooms/{rentals.living_rooms}","rentals.rentals_tags":"https://www.bookingsync.com/api/v3/rentals_tags/{rentals.rentals_tags}"},"rentals":[{"links":{"account":3837,"availability":24724,"change_over":23413,"destination":null,"payment_gateway":null,"rates_table":85292,"rental_agreement":29795,"rental_cancelation_policy":16546,"nightly_rate_map":23413,"photos":[],"reviews":[],"special_offers":[],"rates":[],"rentals_amenities":[],"rentals_fees":[],"bathrooms":[],"bedrooms":[],"living_rooms":[],"rentals_tags":[]},"id":26373,"name":"New
84
+ rental","headline":{},"summary":{},"description":{},"rental_type":null,"downpayment":30,"bedrooms_count":0,"sleeps":2,"sleeps_max":null,"bathrooms_count":0,"surface":null,"surface_unit":null,"bookable_online":false,"bookable_on_request":false,"min_price":null,"max_price":null,"price_kind":null,"currency":null,"price_public_notes":{},"lat":null,"lng":null,"city":null,"state":null,"country_code":null,"contact_name":null,"reviews_count":0,"reviews_average_rating":null,"published_at":null,"created_at":"2016-12-12T11:52:22Z","updated_at":"2016-12-12T11:52:22Z","address1":null,"address2":null,"zip":null,"checkin_time":16,"checkout_time":10,"initial_price":null,"final_price":null,"position":9,"base_rate":null,"base_rate_kind":null,"absolute_min_price":"0.0","notes":null,"stories_count":null,"floor":"","damage_deposit":"0.0","owner_fullname":null,"owner_email":null,"owner_notes":null,"checkin_details":{},"checkout_details":{},"balance_due":30,"website_url":{},"charge_damage_deposit_on_arrival":true,"full_bathrooms_count":0,"standalone_toilets_count":0,"vr_bathrooms_count":0,"nightly_rates_managed_externally":false,"rounding_kind":"no-rounding"}]}'
85
+ http_version:
86
+ recorded_at: Mon, 12 Dec 2016 11:52:22 GMT
87
+ recorded_with: VCR 3.0.3
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: https://www.bookingsync.com/api/v3/rentals/4
5
+ uri: https://www.bookingsync.com/api/v3/rentals/26373
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: "{}"
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.9.0
11
+ - BookingSync API gem v0.1.3
12
12
  Accept:
13
13
  - application/vnd.api+json
14
14
  Content-Type:
@@ -17,41 +17,57 @@ http_interactions:
17
17
  - Bearer <<ACCESS_TOKEN>>
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - 30
20
24
  response:
21
25
  status:
22
26
  code: 204
23
27
  message: No Content
24
28
  headers:
29
+ Server:
30
+ - nginx
31
+ Date:
32
+ - Mon, 12 Dec 2016 12:13:21 GMT
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 204 No Content
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Updated-Since-Request-Synced-At:
44
+ - 2016-12-12 12:13:20 UTC
25
45
  X-Ratelimit-Limit:
26
46
  - '1000'
27
47
  X-Ratelimit-Reset:
28
- - '1398265200'
48
+ - '1481547600'
29
49
  X-Ratelimit-Remaining:
30
- - '963'
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Request-Method:
34
- - "*"
35
- X-Ua-Compatible:
36
- - IE=Edge
50
+ - '967'
37
51
  Cache-Control:
38
52
  - no-cache
39
53
  P3p:
40
54
  - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
41
55
  OUR SAMi OTRo UNRo PUBi IND UNI STA"
42
56
  Set-Cookie:
43
- - _BookingSync_session=bcbd4439e346e3bf8341242fa7cf0f02; path=/; secure; HttpOnly
57
+ - ahoy_track=true; path=/; secure
58
+ - ahoy_visit=a6913852-eead-491d-ab5c-bd188083eda0; path=/; expires=Mon, 19 Dec
59
+ 2016 12:13:20 -0000; secure
60
+ - ahoy_visitor=3cea1020-7fd1-4ecd-9f84-e137c816df18; path=/; expires=Wed, 12
61
+ Dec 2018 12:13:20 -0000; secure
44
62
  X-Request-Id:
45
- - 4311136581ff8a351f1a8159a6126105
63
+ - 4100eba9-8b5e-4c77-a23b-9dad298577a0
46
64
  X-Runtime:
47
- - '0.082469'
48
- Date:
49
- - Wed, 23 Apr 2014 14:27:22 GMT
50
- Connection:
51
- - close
65
+ - '0.061788'
66
+ Strict-Transport-Security:
67
+ - max-age=31536000
52
68
  body:
53
69
  encoding: UTF-8
54
70
  string: ''
55
- http_version:
56
- recorded_at: Wed, 23 Apr 2014 14:27:22 GMT
57
- recorded_with: VCR 2.9.0
71
+ http_version:
72
+ recorded_at: Mon, 12 Dec 2016 12:13:21 GMT
73
+ recorded_with: VCR 3.0.3
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: https://www.bookingsync.com/api/v3/rentals/2
5
+ uri: https://www.bookingsync.com/api/v3/rentals/26373
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "{\"rentals\":[{\"name\":\"Updated Rental name\"}]}"
8
+ string: '{"rentals":[{"name":"Updated Rental name"}]}'
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.9.0
11
+ - BookingSync API gem v0.1.3
12
12
  Accept:
13
13
  - application/vnd.api+json
14
14
  Content-Type:
@@ -17,48 +17,64 @@ http_interactions:
17
17
  - Bearer <<ACCESS_TOKEN>>
18
18
  Accept-Encoding:
19
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Connection:
21
+ - keep-alive
22
+ Keep-Alive:
23
+ - 30
20
24
  response:
21
25
  status:
22
26
  code: 200
23
27
  message: OK
24
28
  headers:
29
+ Server:
30
+ - nginx
31
+ Date:
32
+ - Mon, 12 Dec 2016 12:04:36 GMT
33
+ Content-Type:
34
+ - application/vnd.api+json; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Connection:
38
+ - keep-alive
39
+ Status:
40
+ - 200 OK
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Updated-Since-Request-Synced-At:
48
+ - 2016-12-12 12:04:36 UTC
25
49
  X-Ratelimit-Limit:
26
50
  - '1000'
27
51
  X-Ratelimit-Reset:
28
- - '1398265200'
52
+ - '1481547600'
29
53
  X-Ratelimit-Remaining:
30
- - '985'
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
54
+ - '984'
39
55
  Etag:
40
- - "\"ab7e1e0c70f49f65e25d05a6af9cf8be\""
56
+ - W/"8b23d7740b87ca8740fecd49ec3b2791"
41
57
  Cache-Control:
42
58
  - max-age=0, private, must-revalidate
43
59
  P3p:
44
60
  - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
45
61
  OUR SAMi OTRo UNRo PUBi IND UNI STA"
46
62
  Set-Cookie:
47
- - _BookingSync_session=0bd7169bde0720ba5062c89f3bf64aea; path=/; secure; HttpOnly
63
+ - ahoy_track=true; path=/; secure
64
+ - ahoy_visit=cda7a7bd-d67d-41d4-856e-e9be42a25d09; path=/; expires=Mon, 19 Dec
65
+ 2016 12:04:36 -0000; secure
66
+ - ahoy_visitor=7fb15bab-e9d6-4dda-a128-e3db576ff5a5; path=/; expires=Wed, 12
67
+ Dec 2018 12:04:36 -0000; secure
48
68
  X-Request-Id:
49
- - 25f22d1946754feeb824dce34aff1d93
69
+ - c318423a-6b95-41b1-847e-d81185e401e6
50
70
  X-Runtime:
51
- - '0.180833'
52
- Date:
53
- - Wed, 23 Apr 2014 14:06:45 GMT
54
- Connection:
55
- - close
71
+ - '0.128348'
72
+ Strict-Transport-Security:
73
+ - max-age=31536000
56
74
  body:
57
75
  encoding: UTF-8
58
- 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\":1,\"photos\":[1]},\"account_id\":1,\"id\":2,\"name\":\"Updated
59
- Rental name\",\"headline\":{\"en\":\"Super Headline\"},\"summary\":{\"en\":\"Super
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
- 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:
63
- recorded_at: Wed, 23 Apr 2014 14:06:45 GMT
64
- recorded_with: VCR 2.9.0
76
+ string: '{"links":{"rentals.account":"https://www.bookingsync.com/api/v3/accounts/{rentals.account}","rentals.availability":"https://www.bookingsync.com/api/v3/availabilities/{rentals.availability}","rentals.change_over":"https://www.bookingsync.com/api/v3/change_overs/{rentals.change_over}","rentals.destination":"https://www.bookingsync.com/api/v3/destinations/{rentals.destination}","rentals.payment_gateway":"https://www.bookingsync.com/api/v3/payment_gateways/{rentals.payment_gateway}","rentals.rates_table":"https://www.bookingsync.com/api/v3/rates_tables/{rentals.rates_table}","rentals.rental_agreement":"https://www.bookingsync.com/api/v3/rental_agreements/{rentals.rental_agreement}","rentals.rental_cancelation_policy":"https://www.bookingsync.com/api/v3/rental_cancelation_policies/{rentals.rental_cancelation_policy}","rentals.nightly_rate_map":"https://www.bookingsync.com/api/v3/nightly_rate_maps/{rentals.nightly_rate_map}","rentals.photos":"https://www.bookingsync.com/api/v3/photos/{rentals.photos}","rentals.reviews":"https://www.bookingsync.com/api/v3/reviews/{rentals.reviews}","rentals.special_offers":"https://www.bookingsync.com/api/v3/special_offers/{rentals.special_offers}","rentals.rates":"https://www.bookingsync.com/api/v3/rates/{rentals.rates}","rentals.rentals_amenities":"https://www.bookingsync.com/api/v3/rentals_amenities/{rentals.rentals_amenities}","rentals.rentals_fees":"https://www.bookingsync.com/api/v3/rentals_fees/{rentals.rentals_fees}","rentals.bathrooms":"https://www.bookingsync.com/api/v3/bathrooms/{rentals.bathrooms}","rentals.bedrooms":"https://www.bookingsync.com/api/v3/bedrooms/{rentals.bedrooms}","rentals.living_rooms":"https://www.bookingsync.com/api/v3/living_rooms/{rentals.living_rooms}","rentals.rentals_tags":"https://www.bookingsync.com/api/v3/rentals_tags/{rentals.rentals_tags}"},"rentals":[{"links":{"account":3837,"availability":24724,"change_over":23413,"destination":null,"payment_gateway":null,"rates_table":85292,"rental_agreement":29795,"rental_cancelation_policy":16546,"nightly_rate_map":23413,"photos":[],"reviews":[],"special_offers":[],"rates":[],"rentals_amenities":[],"rentals_fees":[],"bathrooms":[],"bedrooms":[],"living_rooms":[],"rentals_tags":[]},"id":26373,"name":"Updated
77
+ Rental name","headline":{},"summary":{},"description":{},"rental_type":null,"downpayment":30,"bedrooms_count":0,"sleeps":2,"sleeps_max":null,"bathrooms_count":0,"surface":null,"surface_unit":null,"bookable_online":false,"bookable_on_request":false,"min_price":null,"max_price":null,"price_kind":null,"currency":null,"price_public_notes":{},"lat":null,"lng":null,"city":null,"state":null,"country_code":null,"contact_name":null,"reviews_count":0,"reviews_average_rating":null,"published_at":null,"created_at":"2016-12-12T11:52:22Z","updated_at":"2016-12-12T12:04:36Z","address1":null,"address2":null,"zip":null,"checkin_time":16,"checkout_time":10,"initial_price":null,"final_price":null,"position":9,"base_rate":null,"base_rate_kind":null,"absolute_min_price":"0.0","notes":null,"stories_count":null,"floor":"","damage_deposit":"0.0","owner_fullname":null,"owner_email":null,"owner_notes":null,"checkin_details":{},"checkout_details":{},"balance_due":30,"website_url":{},"charge_damage_deposit_on_arrival":true,"full_bathrooms_count":0,"standalone_toilets_count":0,"vr_bathrooms_count":0,"nightly_rates_managed_externally":false,"rounding_kind":"no-rounding"}]}'
78
+ http_version:
79
+ recorded_at: Mon, 12 Dec 2016 12:04:36 GMT
80
+ recorded_with: VCR 3.0.3