bookingsync-api 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -26,17 +26,17 @@ describe BookingSync::API::Resource do
26
26
 
27
27
  describe "processing values" do
28
28
  it "makes data accessible" do
29
- expect(resource.name).to eql("foo")
30
- expect(resource.width).to eql(700)
29
+ expect(resource.name).to eq("foo")
30
+ expect(resource.width).to eq(700)
31
31
  end
32
32
 
33
33
  it "makes nested data accessible" do
34
- expect(resource.details.count).to eql(1)
34
+ expect(resource.details.count).to eq(1)
35
35
  end
36
36
 
37
37
  describe "#_resources_key" do
38
38
  it "returns resources_key" do
39
- expect(resource._resources_key).to eql("foo")
39
+ expect(resource._resources_key).to eq("foo")
40
40
  end
41
41
 
42
42
  context "for nested resource" do
@@ -54,7 +54,7 @@ describe BookingSync::API::Resource do
54
54
  it "fetches an association based on links" do
55
55
  stub_request(:get, "http://foo.com/photos/9,10")
56
56
  .to_return(body: { photos: [{ file: "a.jpg" }] }.to_json)
57
- expect(resource.photos).to eql([{ file: "a.jpg" }])
57
+ expect(resource.photos).to eq([{ file: "a.jpg" }])
58
58
  end
59
59
  end
60
60
 
@@ -63,7 +63,7 @@ describe BookingSync::API::Resource do
63
63
  it "fetches an association based on links" do
64
64
  stub_request(:get, "http://foo.com/categories/15")
65
65
  .to_return(body: { categories: [{ name: "Secret one" }] }.to_json)
66
- expect(resource.category).to eql([{ name: "Secret one" }])
66
+ expect(resource.category).to eq([{ name: "Secret one" }])
67
67
  end
68
68
  end
69
69
 
@@ -76,14 +76,14 @@ describe BookingSync::API::Resource do
76
76
  it "fetches association based on links and type" do
77
77
  stub_request(:get, "http://foo.com/articles/15")
78
78
  .to_return(body: { articles: [{ name: "Secret one" }] }.to_json)
79
- expect(resource.taggable).to eql([{ name: "Secret one" }])
79
+ expect(resource.taggable).to eq([{ name: "Secret one" }])
80
80
  end
81
81
  end
82
82
 
83
83
  context "when there are not associated ids" do
84
84
  let(:links) { { photos: [] } }
85
85
  it "returns an empty array" do
86
- expect(resource.photos).to eql([])
86
+ expect(resource.photos).to eq([])
87
87
  end
88
88
  end
89
89
 
@@ -18,7 +18,7 @@ describe BookingSync::API::Response do
18
18
  let(:client) do
19
19
  BookingSync::API::Client.new(test_access_token,
20
20
  base_url: "http://foo.com") do |conn|
21
- conn.builder.handlers.delete(Faraday::Adapter::NetHttp)
21
+ conn.builder.handlers.delete(Faraday::Adapter::NetHttpPersistent)
22
22
  conn.adapter :test, @stubs do |stub|
23
23
  stub.get "/rentals" do
24
24
  body = { links: links, rentals: rentals,
@@ -35,13 +35,13 @@ describe BookingSync::API::Response do
35
35
 
36
36
  describe "#resources_key" do
37
37
  it "returns name of the hash key where resources are" do
38
- expect(response.resources_key).to eql(:rentals)
38
+ expect(response.resources_key).to eq(:rentals)
39
39
  end
40
40
  end
41
41
 
42
42
  describe "#resources" do
43
43
  it "returns an array of resources" do
44
- expect(response.resources).to eql(rentals)
44
+ expect(response.resources).to eq(rentals)
45
45
  end
46
46
  end
47
47
 
@@ -55,26 +55,26 @@ describe BookingSync::API::Response do
55
55
 
56
56
  describe "#status" do
57
57
  it "returns HTTP response status" do
58
- expect(response.status).to eql(200)
58
+ expect(response.status).to eq(200)
59
59
  end
60
60
  end
61
61
 
62
62
  describe "#headers" do
63
63
  it "returns HTTP response headers" do
64
- expect(response.headers).to eql(headers)
64
+ expect(response.headers).to eq(headers)
65
65
  end
66
66
  end
67
67
 
68
68
  describe "#relations" do
69
69
  it "returns relations from Link header" do
70
- expect(response.relations[:next].href).to eql("/rentals?page=2")
71
- expect(response.relations[:last].href).to eql("/rentals?page=19")
70
+ expect(response.relations[:next].href).to eq("/rentals?page=2")
71
+ expect(response.relations[:last].href).to eq("/rentals?page=19")
72
72
  end
73
73
  end
74
74
 
75
75
  describe "#meta" do
76
76
  it "returns meta information from response body" do
77
- expect(response.meta).to eql(count: 10)
77
+ expect(response.meta).to eq(count: 10)
78
78
  end
79
79
  end
80
80
  end
@@ -4,11 +4,11 @@ http_interactions:
4
4
  method: get
5
5
  uri: https://www.bookingsync.com/api/v3/accounts/3837
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,6 +17,10 @@ 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
@@ -25,7 +29,7 @@ http_interactions:
25
29
  Server:
26
30
  - nginx
27
31
  Date:
28
- - Wed, 09 Sep 2015 19:37:08 GMT
32
+ - Mon, 12 Dec 2016 11:43:45 GMT
29
33
  Content-Type:
30
34
  - application/vnd.api+json; charset=utf-8
31
35
  Transfer-Encoding:
@@ -34,20 +38,20 @@ http_interactions:
34
38
  - keep-alive
35
39
  Status:
36
40
  - 200 OK
37
- Strict-Transport-Security:
38
- - max-age=31536000
39
41
  X-Frame-Options:
40
42
  - SAMEORIGIN
41
43
  X-Xss-Protection:
42
44
  - 1; mode=block
43
45
  X-Content-Type-Options:
44
46
  - nosniff
47
+ X-Updated-Since-Request-Synced-At:
48
+ - 2016-12-12 11:43:45 UTC
45
49
  X-Ratelimit-Limit:
46
50
  - '1000'
47
51
  X-Ratelimit-Reset:
48
- - '1441828800'
52
+ - '1481544000'
49
53
  X-Ratelimit-Remaining:
50
- - '997'
54
+ - '951'
51
55
  Link:
52
56
  - <https://www.bookingsync.com/api/v3/accounts/3837?page=1>; rel="first", <https://www.bookingsync.com/api/v3/accounts/3837?page=1>;
53
57
  rel="last"
@@ -55,8 +59,10 @@ http_interactions:
55
59
  - '1'
56
60
  X-Total-Count:
57
61
  - '1'
62
+ X-Per-Page:
63
+ - '100'
58
64
  Etag:
59
- - '"254fcb1ac913a6c215dd91c8071d681b"'
65
+ - W/"4d5e3244a9d623edd253cadeb6fc9913"
60
66
  Cache-Control:
61
67
  - max-age=0, private, must-revalidate
62
68
  P3p:
@@ -64,17 +70,19 @@ http_interactions:
64
70
  OUR SAMi OTRo UNRo PUBi IND UNI STA"
65
71
  Set-Cookie:
66
72
  - ahoy_track=true; path=/; secure
67
- - ahoy_visit=d2f4d16e-e057-4332-a34b-f9ef8b4aa4a9; path=/; expires=Wed, 16 Sep
68
- 2015 19:37:08 -0000; secure
69
- - ahoy_visitor=3469e00e-6a02-48a4-856d-acd2f0f706e1; path=/; expires=Sat, 09
70
- Sep 2017 19:37:08 -0000; secure
73
+ - ahoy_visit=cfd98146-7f11-4ba6-866e-ef2c09d3d79f; path=/; expires=Mon, 19 Dec
74
+ 2016 11:43:45 -0000; secure
75
+ - ahoy_visitor=5f2f9fbe-bdfc-4360-b42e-98b397e53f98; path=/; expires=Wed, 12
76
+ Dec 2018 11:43:45 -0000; secure
71
77
  X-Request-Id:
72
- - db635b47-df38-434e-96df-640168bd62a0
78
+ - b57d71c4-a971-49c0-85e7-c58444bded98
73
79
  X-Runtime:
74
- - '0.070139'
80
+ - '0.033302'
81
+ Strict-Transport-Security:
82
+ - max-age=31536000
75
83
  body:
76
84
  encoding: UTF-8
77
- string: '{"accounts":[{"business_name":"BSA-Website-Test","created_at":"2014-08-08T18:20:53Z","id":3837,"updated_at":"2015-09-09T18:09:40Z","status":"trial","preferences":{"bookings":{"default_arrival_time":16,"default_departure_time":10}},"email":"dev@bookingsync.com"}],"meta":{}}'
85
+ string: '{"accounts":[{"business_name":"BSA-Website-Test","created_at":"2014-08-08T18:20:53Z","id":3837,"updated_at":"2016-12-09T09:42:19Z","status":"trial","preferences":{"bookings":{"default_arrival_time":16,"default_departure_time":10,"default_communication_locale":"en"}},"email":"dev@bookingsync.com","selected_locales":["en","fr","de"],"default_locale":"en","phones":{"phone":"","mobile":"","fax":""},"address1":"","address2":"","city":"","zip":"","state":"","country_code":"","website":""}],"meta":{}}'
78
86
  http_version:
79
- recorded_at: Wed, 09 Sep 2015 19:37:09 GMT
80
- recorded_with: VCR 2.9.2
87
+ recorded_at: Mon, 12 Dec 2016 11:43:45 GMT
88
+ 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/accounts
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.24
11
+ - BookingSync API gem v0.1.3
12
12
  Accept:
13
13
  - application/vnd.api+json
14
14
  Content-Type:
@@ -17,6 +17,10 @@ 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
@@ -25,7 +29,7 @@ http_interactions:
25
29
  Server:
26
30
  - nginx
27
31
  Date:
28
- - Sat, 11 Apr 2015 23:42:07 GMT
32
+ - Mon, 12 Dec 2016 11:32:34 GMT
29
33
  Content-Type:
30
34
  - application/vnd.api+json; charset=utf-8
31
35
  Transfer-Encoding:
@@ -34,20 +38,20 @@ http_interactions:
34
38
  - keep-alive
35
39
  Status:
36
40
  - 200 OK
37
- Strict-Transport-Security:
38
- - max-age=31536000
39
41
  X-Frame-Options:
40
42
  - SAMEORIGIN
41
43
  X-Xss-Protection:
42
44
  - 1; mode=block
43
45
  X-Content-Type-Options:
44
46
  - nosniff
47
+ X-Updated-Since-Request-Synced-At:
48
+ - 2016-12-12 11:32:34 UTC
45
49
  X-Ratelimit-Limit:
46
50
  - '1000'
47
51
  X-Ratelimit-Reset:
48
- - '1428796800'
52
+ - '1481544000'
49
53
  X-Ratelimit-Remaining:
50
- - '908'
54
+ - '999'
51
55
  Link:
52
56
  - <https://www.bookingsync.com/api/v3/accounts?page=1>; rel="first", <https://www.bookingsync.com/api/v3/accounts?page=1>;
53
57
  rel="last"
@@ -55,8 +59,10 @@ http_interactions:
55
59
  - '1'
56
60
  X-Total-Count:
57
61
  - '1'
62
+ X-Per-Page:
63
+ - '100'
58
64
  Etag:
59
- - '"dd45670c9daed0df6d3050130202d15b"'
65
+ - W/"4d5e3244a9d623edd253cadeb6fc9913"
60
66
  Cache-Control:
61
67
  - max-age=0, private, must-revalidate
62
68
  P3p:
@@ -64,17 +70,19 @@ http_interactions:
64
70
  OUR SAMi OTRo UNRo PUBi IND UNI STA"
65
71
  Set-Cookie:
66
72
  - ahoy_track=true; path=/; secure
67
- - ahoy_visit=337dda1c-8ab7-4c2b-9386-feaf79fde9f5; path=/; expires=Sat, 18 Apr
68
- 2015 23:42:07 -0000; secure
69
- - ahoy_visitor=250b9b9a-c236-429c-8cac-c028ac678e94; path=/; expires=Tue, 11
70
- Apr 2017 23:42:07 -0000; secure
73
+ - ahoy_visit=e7b5a0d5-d29f-433a-a4c6-b67ad298dace; path=/; expires=Mon, 19 Dec
74
+ 2016 11:32:34 -0000; secure
75
+ - ahoy_visitor=5f84142e-f4f4-4677-aeb0-9a6a266b46a6; path=/; expires=Wed, 12
76
+ Dec 2018 11:32:34 -0000; secure
71
77
  X-Request-Id:
72
- - 7d5a8d35-4968-477f-950c-269fc3a799b1
78
+ - 6be35e06-f9ff-42ca-b53d-03dfefa45997
73
79
  X-Runtime:
74
- - '0.100572'
80
+ - '0.036977'
81
+ Strict-Transport-Security:
82
+ - max-age=31536000
75
83
  body:
76
84
  encoding: UTF-8
77
- string: '{"accounts":[{"business_name":"My Villas","created_at":"2009-12-19T17:11:16Z","id":1,"updated_at":"2013-06-28T10:23:07Z","status":"trial","preferences":{"bookings":{"default_arrival_time":16,"default_departure_time":10}},"email":"demo_en@bookingsync.com"}]}'
85
+ string: '{"accounts":[{"business_name":"BSA-Website-Test","created_at":"2014-08-08T18:20:53Z","id":3837,"updated_at":"2016-12-09T09:42:19Z","status":"trial","preferences":{"bookings":{"default_arrival_time":16,"default_departure_time":10,"default_communication_locale":"en"}},"email":"dev@bookingsync.com","selected_locales":["en","fr","de"],"default_locale":"en","phones":{"phone":"","mobile":"","fax":""},"address1":"","address2":"","city":"","zip":"","state":"","country_code":"","website":""}],"meta":{}}'
78
86
  http_version:
79
- recorded_at: Sat, 11 Apr 2015 23:42:07 GMT
80
- recorded_with: VCR 2.9.0
87
+ recorded_at: Mon, 12 Dec 2016 11:32:34 GMT
88
+ 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/amenities
6
6
  body:
7
- encoding: US-ASCII
8
- string: ''
7
+ encoding: UTF-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,6 +17,10 @@ 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
@@ -25,7 +29,7 @@ http_interactions:
25
29
  Server:
26
30
  - nginx
27
31
  Date:
28
- - Tue, 08 Apr 2014 13:15:29 GMT
32
+ - Mon, 12 Dec 2016 11:32:34 GMT
29
33
  Content-Type:
30
34
  - application/vnd.api+json; charset=utf-8
31
35
  Transfer-Encoding:
@@ -34,39 +38,229 @@ http_interactions:
34
38
  - keep-alive
35
39
  Status:
36
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 11:32:34 UTC
37
49
  X-Ratelimit-Limit:
38
50
  - '1000'
39
51
  X-Ratelimit-Reset:
40
- - '1396965600.0'
52
+ - '1481544000'
41
53
  X-Ratelimit-Remaining:
42
- - '999'
54
+ - '998'
43
55
  Link:
44
- - <https://www.bookingsync.com/api/v3/amenities?page=1>; rel="first", <https://www.bookingsync.com/api/v3/amenities?page=1>;
45
- rel="last"
56
+ - <https://www.bookingsync.com/api/v3/amenities?page=1>; rel="first", <https://www.bookingsync.com/api/v3/amenities?page=2>;
57
+ rel="next", <https://www.bookingsync.com/api/v3/amenities?page=2>; rel="last"
46
58
  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
59
+ - '2'
60
+ X-Total-Count:
61
+ - '114'
62
+ X-Per-Page:
63
+ - '100'
54
64
  Etag:
55
- - '"a09ddb59a9fd47403fe848bdc859b613"'
65
+ - W/"31ef687a167110bc4e8282b66d278575"
56
66
  Cache-Control:
57
- - must-revalidate, private, max-age=0
67
+ - max-age=0, private, must-revalidate
58
68
  P3p:
59
69
  - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
60
70
  OUR SAMi OTRo UNRo PUBi IND UNI STA"
71
+ Set-Cookie:
72
+ - ahoy_track=true; path=/; secure
73
+ - ahoy_visit=fa0b759e-d899-4aea-8fd7-320c70b5e63f; path=/; expires=Mon, 19 Dec
74
+ 2016 11:32:34 -0000; secure
75
+ - ahoy_visitor=6668c713-8121-4767-84d9-2a11b03008d7; path=/; expires=Wed, 12
76
+ Dec 2018 11:32:34 -0000; secure
61
77
  X-Request-Id:
62
- - 074dc47b33db3edb39248a64090b0645
78
+ - a2b333fe-d873-42ac-af67-6f480c01b530
63
79
  X-Runtime:
64
- - '0.269389'
65
- X-Rack-Cache:
66
- - miss
80
+ - '0.126809'
81
+ Strict-Transport-Security:
82
+ - max-age=31536000
67
83
  body:
68
- encoding: UTF-8
69
- string: '{"amenities":[{"id":1493,"rental_id":836,"title":"air_conditioning"}]}'
70
- http_version:
71
- recorded_at: Tue, 08 Apr 2014 13:15:29 GMT
72
- recorded_with: VCR 2.9.0
84
+ encoding: ASCII-8BIT
85
+ string: !binary |-
86
+ eyJhbWVuaXRpZXMiOlt7ImlkIjoxLCJrZXkiOiJibGVuZGVyIiwidGl0bGUi
87
+ OnsiZW4iOiJCbGVuZGVyIiwiZnIiOiJNaXhldXIifX0seyJpZCI6Miwia2V5
88
+ IjoibXV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252
+ dmF0ZSBCb3dsaW5nIiwiZnIiOiJCb3dsaW5nIFByaXbDqSJ9fSx7ImlkIjox
253
+ MDEsImtleSI6ImJhc2tldGJhbGxfY291cnQiLCJ0aXRsZSI6eyJlbiI6IkJh
254
+ c2tldGJhbGwgQ291cnQiLCJmciI6IlRlcnJhaW4gZGUgYmFza2V0YmFsbCJ9
255
+ fSx7ImlkIjoxMDIsImtleSI6ImJ1dGxlciIsInRpdGxlIjp7ImVuIjoiQnV0
256
+ bGVyIiwiZnIiOiJNYWpvcmRvbWUifX0seyJpZCI6MTAzLCJrZXkiOiJkcml2
257
+ ZXIiLCJ0aXRsZSI6eyJlbiI6IkRyaXZlciIsImZyIjoiQ2hhdWZmZXVyIn19
258
+ LHsiaWQiOjEwNCwia2V5IjoiaGFtbWFtIiwidGl0bGUiOnsiZW4iOiJIYW1t
259
+ YW0iLCJmciI6IkhhbW1hbSJ9fSx7ImlkIjoxMDUsImtleSI6Im1hc3NhZ2Vf
260
+ cm9vbSIsInRpdGxlIjp7ImVuIjoiTWFzc2FnZSByb29tIiwiZnIiOiJTYWxs
261
+ ZSBkZSBtYXNzYWdlIn19LHsiaWQiOjEwNiwia2V5IjoiYm91bGVzX2NvdXJ0
262
+ IiwidGl0bGUiOnsiZW4iOiJCb3VsZXMgQ291cnQiLCJmciI6IlRlcnJhaW4g
263
+ ZGUgcMOpdGFucXVlIn19XSwibWV0YSI6e319
264
+ http_version:
265
+ recorded_at: Mon, 12 Dec 2016 11:32:34 GMT
266
+ recorded_with: VCR 3.0.3