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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/bookingsync-api.gemspec +1 -0
- data/lib/bookingsync/api/client.rb +41 -24
- data/lib/bookingsync/api/client/payments.rb +1 -1
- data/lib/bookingsync/api/client/rentals.rb +2 -2
- data/lib/bookingsync/api/version.rb +1 -1
- data/spec/bookingsync/api/client/accounts_spec.rb +8 -2
- data/spec/bookingsync/api/client/amenities_spec.rb +8 -2
- data/spec/bookingsync/api/client/availabilities_spec.rb +8 -2
- data/spec/bookingsync/api/client/bathrooms_spec.rb +25 -12
- data/spec/bookingsync/api/client/bedrooms_spec.rb +24 -11
- data/spec/bookingsync/api/client/booking_comments_spec.rb +23 -10
- data/spec/bookingsync/api/client/bookings_fees_spec.rb +8 -2
- data/spec/bookingsync/api/client/bookings_payments_spec.rb +8 -2
- data/spec/bookingsync/api/client/bookings_spec.rb +36 -20
- data/spec/bookingsync/api/client/bookings_taxes_spec.rb +8 -2
- data/spec/bookingsync/api/client/change_overs_spec.rb +8 -2
- data/spec/bookingsync/api/client/clients_spec.rb +23 -13
- data/spec/bookingsync/api/client/destinations_spec.rb +8 -2
- data/spec/bookingsync/api/client/fees_spec.rb +8 -2
- data/spec/bookingsync/api/client/inquiries_spec.rb +13 -7
- data/spec/bookingsync/api/client/living_rooms_spec.rb +22 -9
- data/spec/bookingsync/api/client/nightly_rate_maps_spec.rb +15 -6
- data/spec/bookingsync/api/client/payment_gateways_spec.rb +8 -2
- data/spec/bookingsync/api/client/payments_spec.rb +34 -16
- data/spec/bookingsync/api/client/periods_spec.rb +29 -14
- data/spec/bookingsync/api/client/photos_spec.rb +23 -9
- data/spec/bookingsync/api/client/preferences_general_settings_spec.rb +11 -4
- data/spec/bookingsync/api/client/rates_rules_spec.rb +25 -12
- data/spec/bookingsync/api/client/rates_spec.rb +8 -2
- data/spec/bookingsync/api/client/rates_tables_spec.rb +23 -10
- data/spec/bookingsync/api/client/rental_agreements_spec.rb +18 -8
- data/spec/bookingsync/api/client/rental_cancelation_policies_spec.rb +8 -1
- data/spec/bookingsync/api/client/rental_cancelation_policy_items_spec.rb +8 -1
- data/spec/bookingsync/api/client/rentals_amenities_spec.rb +22 -9
- data/spec/bookingsync/api/client/rentals_fees_spec.rb +14 -5
- data/spec/bookingsync/api/client/rentals_spec.rb +53 -19
- data/spec/bookingsync/api/client/reviews_spec.rb +12 -6
- data/spec/bookingsync/api/client/seasons_spec.rb +30 -14
- data/spec/bookingsync/api/client/sources_spec.rb +17 -8
- data/spec/bookingsync/api/client/special_offers_spec.rb +30 -15
- data/spec/bookingsync/api/client/strict_bookings_spec.rb +10 -14
- data/spec/bookingsync/api/client/taxes_spec.rb +8 -2
- data/spec/bookingsync/api/client_spec.rb +23 -7
- data/spec/bookingsync/api/relation_spec.rb +1 -1
- data/spec/bookingsync/api/resource_spec.rb +8 -8
- data/spec/bookingsync/api/response_spec.rb +8 -8
- data/spec/fixtures/cassettes/BookingSync_API_Client_Accounts/_account/returns_a_single_account.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Accounts/_accounts/returns_accounts.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml +220 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Amenities/_amenity/returns_amenity.yml +50 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Availabilities/_availabilities/returns_availabilities.yml +37 -21
- data/spec/fixtures/cassettes/BookingSync_API_Client_Availabilities/_availability/returns_a_single_availability.yml +33 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_bathroom/returns_a_single_bathroom.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_bathrooms/returns_bathrooms.yml +33 -22
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_cancel_bathroom/cancels_given_bathroom.yml +21 -15
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_create_bathroom/creates_a_new_bathroom.yml +30 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_edit_bathroom/updates_given_bathroom_by_ID.yml +26 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_bedroom/returns_a_single_bedroom.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_bedrooms/returns_bedrooms.yml +32 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_cancel_bedroom/cancels_given_bedroom.yml +21 -15
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_create_bedroom/creates_a_new_bedroom.yml +29 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_edit_bedroom/updates_given_bedroom_by_ID.yml +25 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_booking_comment/returns_single_booking_comment.yml +42 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_booking_comments/returns_booking_comments.yml +45 -33
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_create_booking_comment/creates_booking_comment.yml +43 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_create_booking_comment/returns_newly_created_booking_comment.yml +43 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_delete_booking_comment/deletes_given_booking_comment.yml +29 -17
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_edit_booking_comment/returns_updated_booking_comment.yml +36 -22
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingComments/_edit_booking_comment/updates_booking_comment.yml +36 -22
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_booking/returns_a_single_booking.yml +44 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_booking/returns_a_single_canceled_booking.yml +30 -23
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_a_block/yields_block_with_batch_of_bookings.yml +100 -115
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_auto_paginate_true/returns_all_bookings_joined_from_many_requests.yml +100 -115
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml +52 -28
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_bookings/returns_bookings.yml +57 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_cancel_booking/cancels_given_booking.yml +36 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml +49 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml +44 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsFees/_bookings_fee/returns_a_single_bookings_fee.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsFees/_bookings_fees/returns_bookings_fees.yml +27 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payment/returns_a_single_bookings_payment.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payments/returns_bookings_payments.yml +51 -28
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsTaxes/_bookings_tax/returns_a_single_bookings_tax.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsTaxes/_bookings_taxes/returns_bookings_taxes.yml +28 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_ChangeOvers/_change_over/returns_a_single_change_over.yml +44 -38
- data/spec/fixtures/cassettes/BookingSync_API_Client_ChangeOvers/_change_overs/returns_change_overs.yml +43 -37
- data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_client/returns_a_single_client.yml +27 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_clients/returns_clients.yml +32 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_create_client/creates_a_new_client.yml +30 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_edit_client/updates_given_client_by_ID.yml +25 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_Destinations/_destination/returns_a_single_destination.yml +29 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_Destinations/_destinations/returns_destinations.yml +59 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Fees/_create_fee/creates_a_new_fee.yml +25 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Fees/_fee/returns_a_single_fee.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Fees/_fees/returns_fees.yml +31 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_Inquiries/_create_inquiry/creates_a_new_inquiry.yml +50 -27
- data/spec/fixtures/cassettes/BookingSync_API_Client_Inquiries/_inquiries/returns_inquiries.yml +50 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Inquiries/_inquiry/returns_a_single_inquiry.yml +29 -21
- data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_cancel_living_room/cancels_given_living_room.yml +35 -31
- data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_create_living_room/creates_a_new_living_room.yml +41 -37
- data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_edit_living_room/updates_given_living_room_by_ID.yml +38 -34
- data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_living_room/returns_a_single_living_room.yml +44 -40
- data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_living_rooms/returns_living_rooms.yml +43 -39
- data/spec/fixtures/cassettes/BookingSync_API_Client_NightlyRateMaps/_edit_nightly_rate_map/updates_given_nightly_rate_map_by_ID.yml +39 -33
- data/spec/fixtures/cassettes/BookingSync_API_Client_NightlyRateMaps/_nightly_rate_map/returns_a_single_nightly_rate_map.yml +44 -38
- data/spec/fixtures/cassettes/BookingSync_API_Client_NightlyRateMaps/_nightly_rate_maps/returns_nightly_rate_maps.yml +44 -38
- data/spec/fixtures/cassettes/BookingSync_API_Client_PaymentGateways/_payment_gateway/returns_a_single_payment_gateway.yml +38 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_PaymentGateways/_payment_gateways/returns_payment_gateways.yml +37 -23
- data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_cancel_payment/cancels_given_payment.yml +36 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_create_payment/creates_a_new_payment.yml +50 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_edit_payment/updates_given_payment_by_ID.yml +44 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_payment/returns_a_single_payment.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_payments/returns_payments.yml +55 -27
- data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_create_period/creates_a_new_period.yml +49 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +35 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_edit_period/updates_given_period_by_ID.yml +43 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_period/returns_a_single_period.yml +28 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_periods/returns_periods.yml +49 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo.yml +47 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_encoded_photo_file.yml +47 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_photo_path.yml +47 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_remote_URL.yml +47 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_delete_photo/delete_given_photo.yml +37 -21
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_edit_photo/updates_photo_s_description.yml +42 -23
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_edit_photo/updates_photo_s_image_file.yml +42 -23
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_photo/returns_a_single_photo.yml +28 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_photos/returns_photos.yml +38 -22
- data/spec/fixtures/cassettes/BookingSync_API_Client_PreferencesGeneralSettings/_edit_preferences_general_setting/updates_given_preferences_general_setting_by_ID.yml +39 -34
- data/spec/fixtures/cassettes/BookingSync_API_Client_PreferencesGeneralSettings/_preferences_general_settings/returns_preferences_general_settings.yml +50 -42
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rates/_rate/returns_a_single_rate.yml +28 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rates/_rates/returns_rates.yml +48 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_create_rates_rule/creates_a_new_rates_rule.yml +29 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_delete_rates_rule/deletes_given_rates_rule.yml +21 -15
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_edit_rates_rule/updates_given_rates_rule_by_ID.yml +24 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rule/returns_a_single_rates_rule.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +27 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_create_rates_table/creates_a_new_rates_table.yml +49 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_delete_rates_table/deletes_given_rates_table.yml +36 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_edit_rates_table/updates_given_rates_table_by_ID.yml +43 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_rates_table/returns_a_single_rates_table.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_rates_tables/returns_rates_tables.yml +54 -36
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement/creates_a_new_rental_agreement.yml +50 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_booking/creates_a_new_rental_agreement.yml +50 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_rental/creates_a_new_rental_agreement.yml +50 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreement/returns_a_single_rental_agreement.yml +30 -21
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreements/returns_rental_agreements.yml +52 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicies/_rental_cancelation_policies/returns_rental_cancelation_policies.yml +48 -27
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicies/_rental_cancelation_policy/returns_a_single_rental_cancelation_policy.yml +42 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicyItems/_rental_cancelation_policy_item/returns_a_single_rental_cancelation_policy_item.yml +41 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalCancelationPolicyItems/_rental_cancelation_policy_items/returns_rental_cancelation_policy_items.yml +43 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml +49 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_delete_rental/deletes_given_rental.yml +36 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml +44 -28
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rental/returns_a_single_rental.yml +234 -31
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rental/with_additional_query_params/returns_a_single_rental_with_defined_params.yml +322 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_associated_photos.yml +453 -77
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals/returns_rentals.yml +405 -54
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals/returns_rentals_by_ids.yml +336 -32
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_meta/returns_meta_information_about_all_rentals.yml +53 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_meta/returns_meta_information_about_requested_rentals.yml +55 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/performs_autopagination_using_POST.yml +121 -81
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/rentals_ids_given/makes_a_search_within_given_rentals.yml +42 -28
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals_search/returns_rentals.yml +42 -28
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rentals_amenity/creates_a_new_rentals_amenity.yml +29 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_delete_rentals_amenity/deletes_given_rentals_amenity.yml +21 -15
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rentals_amenity/updates_given_rentals_amenity_by_ID.yml +24 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/links/returns_associated_amenity.yml +104 -52
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/links/returns_associated_rental.yml +283 -53
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenities/returns_rentals_amenities.yml +51 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_rentals_amenity/returns_rentals_amenity.yml +50 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsFees/_create_rentals_fee/creates_a_new_rentals_fee.yml +30 -19
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsFees/_rentals_fee/returns_a_single_rentals_fee.yml +30 -22
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsFees/_rentals_fees/returns_rentals_fees.yml +27 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +49 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_review/returns_a_single_review.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_reviews/returns_reviews.yml +41 -33
- data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_create_season/creates_a_new_season.yml +50 -27
- data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_delete_season/deletes_given_season.yml +36 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_edit_season/updates_given_season_by_ID.yml +44 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_season/returns_a_single_season.yml +29 -21
- data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_seasons/returns_seasons.yml +55 -36
- data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_create_source/creates_a_new_source.yml +40 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_edit_source/updates_given_source_by_ID.yml +36 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_source/returns_a_single_source.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_sources/returns_sources.yml +42 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_create_special_offer/creates_a_new_special_offer.yml +50 -26
- data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_delete_special_offer/deletes_given_special_offer.yml +36 -20
- data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_edit_special_offer/updates_given_special_offer_by_ID.yml +44 -25
- data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_special_offer/returns_a_single_special_offer.yml +29 -22
- data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_special_offers/returns_special_offers.yml +48 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_StrictBookings/_create_strict_booking/creates_a_booking.yml +43 -24
- data/spec/fixtures/cassettes/BookingSync_API_Client_Taxes/_tax/returns_a_single_tax.yml +26 -18
- data/spec/fixtures/cassettes/BookingSync_API_Client_Taxes/_taxes/returns_taxes.yml +28 -19
- data/spec/spec_helper.rb +6 -0
- data/spec/support/vcr_helper.rb +29 -0
- metadata +21 -10
- data/lib/bookingsync/api/client/preferences_payments.rb +0 -22
- data/spec/bookingsync/api/client/preferences_payments_spec.rb +0 -12
- data/spec/fixtures/cassettes/BookingSync_API_Client_PreferencesPayments/_preferences_payments/returns_preferences_payments.yml +0 -80
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_links_to_associated_resources.yml +0 -91
@@ -4,11 +4,11 @@ http_interactions:
|
|
4
4
|
method: get
|
5
5
|
uri: https://www.bookingsync.com/api/v3/rentals_amenities
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
-
|
11
|
+
- BookingSync API gem v0.1.3
|
12
12
|
Accept:
|
13
13
|
- application/vnd.api+json
|
14
14
|
Content-Type:
|
@@ -17,48 +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:49 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 11:32:49 UTC
|
25
49
|
X-Ratelimit-Limit:
|
26
50
|
- '1000'
|
27
51
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
52
|
+
- '1481544000'
|
29
53
|
X-Ratelimit-Remaining:
|
30
|
-
- '
|
54
|
+
- '966'
|
31
55
|
Link:
|
32
|
-
- <https://www.bookingsync.com/api/v3/rentals_amenities?page=1>; rel="first",
|
33
|
-
rel="last"
|
56
|
+
- <https://www.bookingsync.com/api/v3/rentals_amenities?page=1>; rel="first",
|
57
|
+
<https://www.bookingsync.com/api/v3/rentals_amenities?page=1>; rel="last"
|
34
58
|
X-Total-Pages:
|
35
59
|
- '1'
|
36
|
-
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
-
Content-Type:
|
41
|
-
- application/vnd.api+json; charset=utf-8
|
42
|
-
X-Ua-Compatible:
|
43
|
-
- IE=Edge
|
60
|
+
X-Total-Count:
|
61
|
+
- '62'
|
62
|
+
X-Per-Page:
|
63
|
+
- '100'
|
44
64
|
Etag:
|
45
|
-
-
|
65
|
+
- W/"34fe643fe4cf774d7009a2d73e8ff7e2"
|
46
66
|
Cache-Control:
|
47
67
|
- max-age=0, private, must-revalidate
|
48
68
|
P3p:
|
49
69
|
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
50
70
|
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
71
|
+
Set-Cookie:
|
72
|
+
- ahoy_track=true; path=/; secure
|
73
|
+
- ahoy_visit=548ecc6c-5a5a-45dd-8d6a-51faef05c17b; path=/; expires=Mon, 19 Dec
|
74
|
+
2016 11:32:49 -0000; secure
|
75
|
+
- ahoy_visitor=eda57d97-f81e-4405-bade-b03fdf0ae5f8; path=/; expires=Wed, 12
|
76
|
+
Dec 2018 11:32:49 -0000; secure
|
51
77
|
X-Request-Id:
|
52
|
-
-
|
78
|
+
- 416fdf8f-4e4c-4c8b-9ef6-07977d4849f1
|
53
79
|
X-Runtime:
|
54
|
-
- '0.
|
55
|
-
|
56
|
-
-
|
57
|
-
Connection:
|
58
|
-
- close
|
80
|
+
- '0.095777'
|
81
|
+
Strict-Transport-Security:
|
82
|
+
- max-age=31536000
|
59
83
|
body:
|
60
84
|
encoding: UTF-8
|
61
|
-
string: '{"links":{"rentals_amenities.amenity":"https://www.bookingsync.com/api/v3/amenities/{rentals_amenities.amenity}","rentals_amenities.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_amenities.rental}"},"rentals_amenities":[{"links":{"amenity":
|
62
|
-
|
63
|
-
|
64
|
-
|
85
|
+
string: '{"links":{"rentals_amenities.amenity":"https://www.bookingsync.com/api/v3/amenities/{rentals_amenities.amenity}","rentals_amenities.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_amenities.rental}"},"rentals_amenities":[{"links":{"amenity":32,"rental":5116},"id":6128,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":33,"rental":5116},"id":6129,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":35,"rental":5116},"id":6130,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":39,"rental":5116},"id":6131,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":41,"rental":5116},"id":6132,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":42,"rental":5116},"id":6133,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":75,"rental":5116},"id":6134,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":79,"rental":5116},"id":6135,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":45,"rental":5116},"id":6136,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}},{"links":{"amenity":46,"rental":5116},"id":6137,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":77,"rental":5116},"id":6138,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":50,"rental":5116},"id":6139,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":78,"rental":5116},"id":6140,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":62,"rental":5116},"id":6141,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":73,"rental":5116},"id":6142,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":51,"rental":5116},"id":6143,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":54,"rental":5116},"id":6144,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":74,"rental":5116},"id":6145,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":71,"rental":5116},"id":6146,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":70,"rental":5116},"id":6147,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":65,"rental":5116},"id":6148,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":67,"rental":5116},"id":6149,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":68,"rental":5116},"id":6150,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":56,"rental":5116},"id":6151,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":82,"rental":5116},"id":6152,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":72,"rental":5116},"id":6153,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":63,"rental":5116},"id":6154,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":58,"rental":5116},"id":6155,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":52,"rental":5116},"id":6156,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":85,"rental":5116},"id":6157,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":92,"rental":5116},"id":6158,"created_at":"2014-08-08T18:28:40Z","updated_at":"2014-08-08T18:28:40Z","details":{}},{"links":{"amenity":32,"rental":5117},"id":6159,"created_at":"2014-08-08T19:30:20Z","updated_at":"2015-09-09T20:48:41Z","details":{"en":"New
|
86
|
+
Details"}},{"links":{"amenity":33,"rental":5117},"id":6160,"created_at":"2014-08-08T19:30:20Z","updated_at":"2014-08-08T19:30:20Z","details":{}},{"links":{"amenity":39,"rental":5117},"id":6161,"created_at":"2014-08-08T19:30:20Z","updated_at":"2014-08-08T19:30:20Z","details":{}},{"links":{"amenity":41,"rental":5117},"id":6162,"created_at":"2014-08-08T19:30:20Z","updated_at":"2014-08-08T19:30:20Z","details":{}},{"links":{"amenity":42,"rental":5117},"id":6163,"created_at":"2014-08-08T19:30:20Z","updated_at":"2014-08-08T19:30:20Z","details":{}},{"links":{"amenity":76,"rental":5117},"id":6164,"created_at":"2014-08-08T19:30:20Z","updated_at":"2014-08-08T19:30:20Z","details":{}},{"links":{"amenity":75,"rental":5117},"id":6165,"created_at":"2014-08-08T19:30:20Z","updated_at":"2014-08-08T19:30:20Z","details":{}},{"links":{"amenity":79,"rental":5117},"id":6166,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":44,"rental":5117},"id":6167,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":45,"rental":5117},"id":6168,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":46,"rental":5117},"id":6169,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":47,"rental":5117},"id":6170,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":77,"rental":5117},"id":6171,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":50,"rental":5117},"id":6172,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":78,"rental":5117},"id":6173,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":73,"rental":5117},"id":6174,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":51,"rental":5117},"id":6175,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":53,"rental":5117},"id":6176,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":54,"rental":5117},"id":6177,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":74,"rental":5117},"id":6178,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":71,"rental":5117},"id":6179,"created_at":"2014-08-08T19:30:21Z","updated_at":"2014-08-08T19:30:21Z","details":{}},{"links":{"amenity":70,"rental":5117},"id":6180,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":65,"rental":5117},"id":6181,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":67,"rental":5117},"id":6182,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":68,"rental":5117},"id":6183,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":56,"rental":5117},"id":6184,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":82,"rental":5117},"id":6185,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":72,"rental":5117},"id":6186,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":63,"rental":5117},"id":6187,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":58,"rental":5117},"id":6188,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}},{"links":{"amenity":1,"rental":5117},"id":6189,"created_at":"2014-08-08T19:30:22Z","updated_at":"2014-08-08T19:30:22Z","details":{}}],"meta":{}}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Mon, 12 Dec 2016 11:32:49 GMT
|
89
|
+
recorded_with: VCR 3.0.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://www.bookingsync.com/api/v3/rentals_amenities/
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals_amenities/6128
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
-
|
11
|
+
- BookingSync API gem v0.1.3
|
12
12
|
Accept:
|
13
13
|
- application/vnd.api+json
|
14
14
|
Content-Type:
|
@@ -17,48 +17,72 @@ 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
|
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:43:54 UTC
|
25
49
|
X-Ratelimit-Limit:
|
26
50
|
- '1000'
|
27
51
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
52
|
+
- '1481544000'
|
29
53
|
X-Ratelimit-Remaining:
|
30
|
-
- '
|
54
|
+
- '923'
|
31
55
|
Link:
|
32
|
-
- <https://www.bookingsync.com/api/v3/rentals_amenities/
|
33
|
-
<https://www.bookingsync.com/api/v3/rentals_amenities/
|
56
|
+
- <https://www.bookingsync.com/api/v3/rentals_amenities/6128?page=1>; rel="first",
|
57
|
+
<https://www.bookingsync.com/api/v3/rentals_amenities/6128?page=1>; rel="last"
|
34
58
|
X-Total-Pages:
|
35
59
|
- '1'
|
36
|
-
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
-
Content-Type:
|
41
|
-
- application/vnd.api+json; charset=utf-8
|
42
|
-
X-Ua-Compatible:
|
43
|
-
- IE=Edge
|
60
|
+
X-Total-Count:
|
61
|
+
- '1'
|
62
|
+
X-Per-Page:
|
63
|
+
- '100'
|
44
64
|
Etag:
|
45
|
-
-
|
65
|
+
- W/"d8a902b2d010bd52d27e7bcad00ae3e1"
|
46
66
|
Cache-Control:
|
47
67
|
- max-age=0, private, must-revalidate
|
48
68
|
P3p:
|
49
69
|
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
50
70
|
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
71
|
+
Set-Cookie:
|
72
|
+
- ahoy_track=true; path=/; secure
|
73
|
+
- ahoy_visit=883af9cf-64a0-4fc4-9145-e7d2d3a4bedf; path=/; expires=Mon, 19 Dec
|
74
|
+
2016 11:43:54 -0000; secure
|
75
|
+
- ahoy_visitor=279e6b85-5bdb-4fad-8c0e-93145dd7f1e5; path=/; expires=Wed, 12
|
76
|
+
Dec 2018 11:43:54 -0000; secure
|
51
77
|
X-Request-Id:
|
52
|
-
-
|
78
|
+
- 70da7cd8-6dea-4f70-b241-4e44a406127c
|
53
79
|
X-Runtime:
|
54
|
-
- '0.
|
55
|
-
|
56
|
-
-
|
57
|
-
Connection:
|
58
|
-
- close
|
80
|
+
- '0.035963'
|
81
|
+
Strict-Transport-Security:
|
82
|
+
- max-age=31536000
|
59
83
|
body:
|
60
84
|
encoding: UTF-8
|
61
|
-
string: '{"links":{"rentals_amenities.amenity":"https://www.bookingsync.com/api/v3/amenities/{rentals_amenities.amenity}","rentals_amenities.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_amenities.rental}"},"rentals_amenities":[{"links":{"amenity":
|
85
|
+
string: '{"links":{"rentals_amenities.amenity":"https://www.bookingsync.com/api/v3/amenities/{rentals_amenities.amenity}","rentals_amenities.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_amenities.rental}"},"rentals_amenities":[{"links":{"amenity":32,"rental":5116},"id":6128,"created_at":"2014-08-08T18:28:39Z","updated_at":"2014-08-08T18:28:39Z","details":{}}],"meta":{}}'
|
62
86
|
http_version:
|
63
|
-
recorded_at:
|
64
|
-
recorded_with: VCR
|
87
|
+
recorded_at: Mon, 12 Dec 2016 11:43:54 GMT
|
88
|
+
recorded_with: VCR 3.0.3
|
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: https://www.bookingsync.com/api/v3/rentals/5116/rentals_fees
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"rentals_fees":[{"fee_id":
|
8
|
+
string: '{"rentals_fees":[{"fee_id":474,"maximum_bookable":10,"always_applied":true}]}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BookingSync API gem v0.
|
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: 201
|
@@ -25,7 +29,7 @@ http_interactions:
|
|
25
29
|
Server:
|
26
30
|
- nginx
|
27
31
|
Date:
|
28
|
-
-
|
32
|
+
- Mon, 12 Dec 2016 12:22:50 GMT
|
29
33
|
Content-Type:
|
30
34
|
- application/vnd.api+json; charset=utf-8
|
31
35
|
Transfer-Encoding:
|
@@ -34,24 +38,29 @@ http_interactions:
|
|
34
38
|
- keep-alive
|
35
39
|
Status:
|
36
40
|
- 201 Created
|
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 12:22:50 UTC
|
45
49
|
X-Ratelimit-Limit:
|
46
50
|
- '1000'
|
47
51
|
X-Ratelimit-Reset:
|
48
|
-
- '
|
52
|
+
- '1481547600'
|
49
53
|
X-Ratelimit-Remaining:
|
50
|
-
- '
|
54
|
+
- '961'
|
55
|
+
Link:
|
56
|
+
- <https://www.bookingsync.com/api/v3/rentals/5116/rentals_fees?page=1&rentals_fees%5B%5D%5Balways_applied%5D=true&rentals_fees%5B%5D%5Bfee_id%5D=474&rentals_fees%5B%5D%5Bmaximum_bookable%5D=10>;
|
57
|
+
rel="first"
|
58
|
+
X-Per-Page:
|
59
|
+
- '100'
|
51
60
|
Location:
|
52
|
-
- https://www.bookingsync.com/api/v3/rentals_fees/
|
61
|
+
- https://www.bookingsync.com/api/v3/rentals_fees/15441
|
53
62
|
Etag:
|
54
|
-
-
|
63
|
+
- W/"80a3056120c587033a32d667c35bcad1"
|
55
64
|
Cache-Control:
|
56
65
|
- max-age=0, private, must-revalidate
|
57
66
|
P3p:
|
@@ -59,18 +68,20 @@ http_interactions:
|
|
59
68
|
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
60
69
|
Set-Cookie:
|
61
70
|
- ahoy_track=true; path=/; secure
|
62
|
-
- ahoy_visit=
|
63
|
-
|
64
|
-
- ahoy_visitor=
|
65
|
-
|
71
|
+
- ahoy_visit=c5dd348f-5197-43fb-957d-c9423f146440; path=/; expires=Mon, 19 Dec
|
72
|
+
2016 12:22:50 -0000; secure
|
73
|
+
- ahoy_visitor=1f49078b-3859-4df6-8cd6-364c4263649d; path=/; expires=Wed, 12
|
74
|
+
Dec 2018 12:22:50 -0000; secure
|
66
75
|
X-Request-Id:
|
67
|
-
-
|
76
|
+
- 299163ad-6844-45e7-a65d-a7e0415abc5f
|
68
77
|
X-Runtime:
|
69
|
-
- '0.
|
78
|
+
- '0.085689'
|
79
|
+
Strict-Transport-Security:
|
80
|
+
- max-age=31536000
|
70
81
|
body:
|
71
82
|
encoding: UTF-8
|
72
|
-
string: '{"links":{"rentals_fees.fee":"https://www.bookingsync.com/api/v3/fees/{rentals_fees.fee}","rentals_fees.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_fees.rental}","rentals_fees.seasons":"https://www.bookingsync.com/api/v3/seasons/{rentals_fees.seasons}"},"rentals_fees":[{"links":{"fee":
|
73
|
-
fee"},"rate":"10.0","rate_kind":"fixed","archived_at":null}]}'
|
83
|
+
string: '{"links":{"rentals_fees.fee":"https://www.bookingsync.com/api/v3/fees/{rentals_fees.fee}","rentals_fees.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_fees.rental}","rentals_fees.seasons":"https://www.bookingsync.com/api/v3/seasons/{rentals_fees.seasons}"},"rentals_fees":[{"links":{"fee":474,"rental":5116,"seasons":[]},"id":15441,"always_applied":true,"end_date":null,"maximum_bookable":10,"public":false,"required":false,"start_date":null,"created_at":"2016-12-12T12:22:50Z","updated_at":"2016-12-12T12:22:50Z","name":{"en":"test
|
84
|
+
fee"},"rate":"10.0","rate_kind":"fixed","archived_at":null}],"meta":{}}'
|
74
85
|
http_version:
|
75
|
-
recorded_at:
|
76
|
-
recorded_with: VCR
|
86
|
+
recorded_at: Mon, 12 Dec 2016 12:22:50 GMT
|
87
|
+
recorded_with: VCR 3.0.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://www.bookingsync.com/api/v3/rentals_fees/
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals_fees/15403
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BookingSync API gem v0.
|
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
|
-
-
|
32
|
+
- Mon, 12 Dec 2016 11:43:55 GMT
|
29
33
|
Content-Type:
|
30
34
|
- application/vnd.api+json; charset=utf-8
|
31
35
|
Transfer-Encoding:
|
@@ -34,29 +38,31 @@ 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:55 UTC
|
45
49
|
X-Ratelimit-Limit:
|
46
50
|
- '1000'
|
47
51
|
X-Ratelimit-Reset:
|
48
|
-
- '
|
52
|
+
- '1481544000'
|
49
53
|
X-Ratelimit-Remaining:
|
50
|
-
- '
|
54
|
+
- '922'
|
51
55
|
Link:
|
52
|
-
- <https://www.bookingsync.com/api/v3/rentals_fees/
|
53
|
-
<https://www.bookingsync.com/api/v3/rentals_fees/
|
56
|
+
- <https://www.bookingsync.com/api/v3/rentals_fees/15403?page=1>; rel="first",
|
57
|
+
<https://www.bookingsync.com/api/v3/rentals_fees/15403?page=1>; rel="last"
|
54
58
|
X-Total-Pages:
|
55
59
|
- '1'
|
56
60
|
X-Total-Count:
|
57
61
|
- '1'
|
62
|
+
X-Per-Page:
|
63
|
+
- '100'
|
58
64
|
Etag:
|
59
|
-
-
|
65
|
+
- W/"90a1c4b09fa3af2f07eb9fc3be04bbf5"
|
60
66
|
Cache-Control:
|
61
67
|
- max-age=0, private, must-revalidate
|
62
68
|
P3p:
|
@@ -64,18 +70,20 @@ 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=
|
68
|
-
|
69
|
-
- ahoy_visitor=
|
70
|
-
|
73
|
+
- ahoy_visit=8ac7067a-779a-4491-a06c-34b213fc28ff; path=/; expires=Mon, 19 Dec
|
74
|
+
2016 11:43:55 -0000; secure
|
75
|
+
- ahoy_visitor=51e7f0e8-406f-4f10-a80a-3674185fc9a0; path=/; expires=Wed, 12
|
76
|
+
Dec 2018 11:43:55 -0000; secure
|
71
77
|
X-Request-Id:
|
72
|
-
-
|
78
|
+
- 6885b562-e9d8-4eb4-819c-7c220288ba67
|
73
79
|
X-Runtime:
|
74
|
-
- '0.
|
80
|
+
- '0.037128'
|
81
|
+
Strict-Transport-Security:
|
82
|
+
- max-age=31536000
|
75
83
|
body:
|
76
84
|
encoding: UTF-8
|
77
|
-
string: '{"links":{"rentals_fees.fee":"https://www.bookingsync.com/api/v3/fees/{rentals_fees.fee}","rentals_fees.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_fees.rental}","rentals_fees.seasons":"https://www.bookingsync.com/api/v3/seasons/{rentals_fees.seasons}"},"rentals_fees":[{"links":{"fee":474,"rental":5116,"seasons":[]},"id":
|
78
|
-
fee"},"rate":"10.0","rate_kind":"fixed"}]}'
|
85
|
+
string: '{"links":{"rentals_fees.fee":"https://www.bookingsync.com/api/v3/fees/{rentals_fees.fee}","rentals_fees.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_fees.rental}","rentals_fees.seasons":"https://www.bookingsync.com/api/v3/seasons/{rentals_fees.seasons}"},"rentals_fees":[{"links":{"fee":474,"rental":5116,"seasons":[]},"id":15403,"always_applied":true,"end_date":null,"maximum_bookable":10,"public":false,"required":false,"start_date":null,"created_at":"2016-12-09T10:12:27Z","updated_at":"2016-12-09T10:12:27Z","name":{"en":"test
|
86
|
+
fee"},"rate":"10.0","rate_kind":"fixed","archived_at":null}],"meta":{}}'
|
79
87
|
http_version:
|
80
|
-
recorded_at:
|
81
|
-
recorded_with: VCR
|
88
|
+
recorded_at: Mon, 12 Dec 2016 11:43:55 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/rentals_fees
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BookingSync API gem v0.
|
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
|
-
-
|
32
|
+
- Mon, 12 Dec 2016 11:32:51 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:51 UTC
|
45
49
|
X-Ratelimit-Limit:
|
46
50
|
- '1000'
|
47
51
|
X-Ratelimit-Reset:
|
48
|
-
- '
|
52
|
+
- '1481544000'
|
49
53
|
X-Ratelimit-Remaining:
|
50
|
-
- '
|
54
|
+
- '961'
|
51
55
|
Link:
|
52
56
|
- <https://www.bookingsync.com/api/v3/rentals_fees?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rentals_fees?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
|
-
-
|
65
|
+
- W/"90a1c4b09fa3af2f07eb9fc3be04bbf5"
|
60
66
|
Cache-Control:
|
61
67
|
- max-age=0, private, must-revalidate
|
62
68
|
P3p:
|
@@ -64,17 +70,20 @@ 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=
|
68
|
-
|
69
|
-
- ahoy_visitor=
|
70
|
-
|
73
|
+
- ahoy_visit=0205a991-36e1-4ea2-a26a-febed98a023d; path=/; expires=Mon, 19 Dec
|
74
|
+
2016 11:32:51 -0000; secure
|
75
|
+
- ahoy_visitor=f179b22a-cc50-48bd-8ad2-12b59160224b; path=/; expires=Wed, 12
|
76
|
+
Dec 2018 11:32:51 -0000; secure
|
71
77
|
X-Request-Id:
|
72
|
-
-
|
78
|
+
- 0f2cf1f7-1ef3-4100-8773-7a2d233673ad
|
73
79
|
X-Runtime:
|
74
|
-
- '0.
|
80
|
+
- '0.040091'
|
81
|
+
Strict-Transport-Security:
|
82
|
+
- max-age=31536000
|
75
83
|
body:
|
76
84
|
encoding: UTF-8
|
77
|
-
string: '{"links":{"rentals_fees.fee":"https://www.bookingsync.com/api/v3/fees/{rentals_fees.fee}","rentals_fees.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_fees.rental}"},"rentals_fees":[{"links":{"fee":
|
85
|
+
string: '{"links":{"rentals_fees.fee":"https://www.bookingsync.com/api/v3/fees/{rentals_fees.fee}","rentals_fees.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_fees.rental}","rentals_fees.seasons":"https://www.bookingsync.com/api/v3/seasons/{rentals_fees.seasons}"},"rentals_fees":[{"links":{"fee":474,"rental":5116,"seasons":[]},"id":15403,"always_applied":true,"end_date":null,"maximum_bookable":10,"public":false,"required":false,"start_date":null,"created_at":"2016-12-09T10:12:27Z","updated_at":"2016-12-09T10:12:27Z","name":{"en":"test
|
86
|
+
fee"},"rate":"10.0","rate_kind":"fixed","archived_at":null}],"meta":{}}'
|
78
87
|
http_version:
|
79
|
-
recorded_at:
|
80
|
-
recorded_with: VCR
|
88
|
+
recorded_at: Mon, 12 Dec 2016 11:32:51 GMT
|
89
|
+
recorded_with: VCR 3.0.3
|