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
data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://www.bookingsync.com/api/v3/rentals/
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals/5116/photos
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"photos":[{"description_en":"Funny","kind":"livingroom","photo":"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL\nDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/\n2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy\nMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAFABQDASIAAhEBAxEB/8QA\nHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUF\nBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK\nFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1\ndnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG\nx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEB\nAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAEC\nAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRom\nJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE\nhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU\n1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAoo\nooA//9k=\n"}]}'
|
9
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,47 +17,70 @@ 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:17 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:17 UTC
|
25
49
|
X-Ratelimit-Limit:
|
26
50
|
- '1000'
|
27
51
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
52
|
+
- '1481544000'
|
29
53
|
X-Ratelimit-Remaining:
|
30
|
-
- '
|
54
|
+
- '902'
|
55
|
+
Link:
|
56
|
+
- <https://www.bookingsync.com/api/v3/rentals/5116/photos?page=1&photos%5B%5D%5Bdescription_en%5D=Funny&photos%5B%5D%5Bkind%5D=livingroom&photos%5B%5D%5Bphoto%5D=%2F9j%2F4AAQSkZJRgABAQEAYABgAAD%2F2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL%0ADBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL%2F%0A2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy%0AMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL%2FwAARCAAFABQDASIAAhEBAxEB%2F8QA%0AHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL%2F8QAtRAAAgEDAwIEAwUF%0ABAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK%0AFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1%0Adnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG%0Ax8jJytLT1NXW19jZ2uHi4%2BTl5ufo6erx8vP09fb3%2BPn6%2F8QAHwEAAwEBAQEB%0AAQEBAQAAAAAAAAECAwQFBgcICQoL%2F8QAtREAAgECBAQDBAcFBAQAAQJ3AAEC%0AAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRom%0AJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE%0AhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU%0A1dbX2Nna4uPk5ebn6Onq8vP09fb3%2BPn6%2F9oADAMBAAIRAxEAPwD3%2BiiigAoo%0AooA%2F%2F9k%3D%0A>;
|
57
|
+
rel="first"
|
58
|
+
X-Per-Page:
|
59
|
+
- '100'
|
31
60
|
Location:
|
32
|
-
- https://www.bookingsync.com/api/v3/photos/
|
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/photos/314253
|
41
62
|
Etag:
|
42
|
-
-
|
63
|
+
- W/"a350e6f04cf0aa5c86652faf72b14f73"
|
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
|
-
-
|
70
|
+
- ahoy_track=true; path=/; secure
|
71
|
+
- ahoy_visit=1a74a98c-a7b5-406b-9037-c3383b50a9ab; path=/; expires=Mon, 19 Dec
|
72
|
+
2016 11:52:17 -0000; secure
|
73
|
+
- ahoy_visitor=f5187c98-f4cf-4e54-b775-5c6f70b39eae; path=/; expires=Wed, 12
|
74
|
+
Dec 2018 11:52:17 -0000; secure
|
50
75
|
X-Request-Id:
|
51
|
-
-
|
76
|
+
- eea8eb49-392b-4d98-93ca-e792c3a91690
|
52
77
|
X-Runtime:
|
53
|
-
- '0.
|
54
|
-
|
55
|
-
-
|
56
|
-
Connection:
|
57
|
-
- close
|
78
|
+
- '0.948100'
|
79
|
+
Strict-Transport-Security:
|
80
|
+
- max-age=31536000
|
58
81
|
body:
|
59
82
|
encoding: UTF-8
|
60
|
-
string: '{"photos":[{"
|
83
|
+
string: '{"links":{"photos.account":"https://www.bookingsync.com/api/v3/accounts/{photos.account}","photos.rental":"https://www.bookingsync.com/api/v3/rentals/{photos.rental}"},"photos":[{"links":{"account":3837,"rental":5116},"id":314253,"description":{"en":"Funny"},"kind":"livingroom","micro_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_32,q_90,w_48/v1481543537/photo_3y4_jkn2tu.jpg","thumb_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_64,q_90,w_96/v1481543537/photo_3y4_jkn2tu.jpg","small_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_128,q_90,w_192/v1481543537/photo_3y4_jkn2tu.jpg","compact_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_256,q_90,w_384/v1481543537/photo_3y4_jkn2tu.jpg","medium_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_512,q_90,w_768/v1481543537/photo_3y4_jkn2tu.jpg","large_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_800,q_90,w_1200/v1481543537/photo_3y4_jkn2tu.jpg","grande_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_1024,q_90,w_1536/v1481543537/photo_3y4_jkn2tu.jpg","giant_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_1600,q_90,w_2400/v1481543537/photo_3y4_jkn2tu.jpg","position":33,"created_at":"2016-12-12T11:52:17Z","updated_at":"2016-12-12T11:52:17Z"}],"meta":{}}'
|
61
84
|
http_version:
|
62
|
-
recorded_at:
|
63
|
-
recorded_with: VCR
|
85
|
+
recorded_at: Mon, 12 Dec 2016 11:52:17 GMT
|
86
|
+
recorded_with: VCR 3.0.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://www.bookingsync.com/api/v3/rentals/
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals/5116/photos
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"photos":[{"photo":"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL\nDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/\n2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy\nMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAFABQDASIAAhEBAxEB/8QA\nHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUF\nBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK\nFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1\ndnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG\nx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEB\nAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAEC\nAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRom\nJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE\nhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU\n1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAoo\nooA//9k=\n","kind":"livingroom"}]}'
|
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,47 +17,70 @@ 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:15 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:14 UTC
|
25
49
|
X-Ratelimit-Limit:
|
26
50
|
- '1000'
|
27
51
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
52
|
+
- '1481544000'
|
29
53
|
X-Ratelimit-Remaining:
|
30
|
-
- '
|
54
|
+
- '904'
|
55
|
+
Link:
|
56
|
+
- <https://www.bookingsync.com/api/v3/rentals/5116/photos?page=1&photos%5B%5D%5Bkind%5D=livingroom&photos%5B%5D%5Bphoto%5D=%2F9j%2F4AAQSkZJRgABAQEAYABgAAD%2F2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL%0ADBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL%2F%0A2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy%0AMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL%2FwAARCAAFABQDASIAAhEBAxEB%2F8QA%0AHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL%2F8QAtRAAAgEDAwIEAwUF%0ABAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK%0AFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1%0Adnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG%0Ax8jJytLT1NXW19jZ2uHi4%2BTl5ufo6erx8vP09fb3%2BPn6%2F8QAHwEAAwEBAQEB%0AAQEBAQAAAAAAAAECAwQFBgcICQoL%2F8QAtREAAgECBAQDBAcFBAQAAQJ3AAEC%0AAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRom%0AJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE%0AhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU%0A1dbX2Nna4uPk5ebn6Onq8vP09fb3%2BPn6%2F9oADAMBAAIRAxEAPwD3%2BiiigAoo%0AooA%2F%2F9k%3D%0A>;
|
57
|
+
rel="first"
|
58
|
+
X-Per-Page:
|
59
|
+
- '100'
|
31
60
|
Location:
|
32
|
-
- https://www.bookingsync.com/api/v3/photos/
|
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/photos/314251
|
41
62
|
Etag:
|
42
|
-
-
|
63
|
+
- W/"8abdf9892f35df1822b438426ff90ec6"
|
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
|
-
-
|
70
|
+
- ahoy_track=true; path=/; secure
|
71
|
+
- ahoy_visit=0b70c6be-1d3d-4ebc-aebf-d1479820e71a; path=/; expires=Mon, 19 Dec
|
72
|
+
2016 11:52:14 -0000; secure
|
73
|
+
- ahoy_visitor=93f4d111-c769-4722-b7e6-a9de90c93e94; path=/; expires=Wed, 12
|
74
|
+
Dec 2018 11:52:14 -0000; secure
|
50
75
|
X-Request-Id:
|
51
|
-
-
|
76
|
+
- 7819236b-a806-401d-bb91-50123cf178b8
|
52
77
|
X-Runtime:
|
53
|
-
- '0.
|
54
|
-
|
55
|
-
-
|
56
|
-
Connection:
|
57
|
-
- close
|
78
|
+
- '0.767486'
|
79
|
+
Strict-Transport-Security:
|
80
|
+
- max-age=31536000
|
58
81
|
body:
|
59
82
|
encoding: UTF-8
|
60
|
-
string: '{"photos":[{"
|
83
|
+
string: '{"links":{"photos.account":"https://www.bookingsync.com/api/v3/accounts/{photos.account}","photos.rental":"https://www.bookingsync.com/api/v3/rentals/{photos.rental}"},"photos":[{"links":{"account":3837,"rental":5116},"id":314251,"description":{},"kind":"livingroom","micro_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_32,q_90,w_48/v1481543534/photo_3y4_iesq1n.jpg","thumb_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_64,q_90,w_96/v1481543534/photo_3y4_iesq1n.jpg","small_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_128,q_90,w_192/v1481543534/photo_3y4_iesq1n.jpg","compact_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_256,q_90,w_384/v1481543534/photo_3y4_iesq1n.jpg","medium_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_512,q_90,w_768/v1481543534/photo_3y4_iesq1n.jpg","large_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_800,q_90,w_1200/v1481543534/photo_3y4_iesq1n.jpg","grande_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_1024,q_90,w_1536/v1481543534/photo_3y4_iesq1n.jpg","giant_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_1600,q_90,w_2400/v1481543534/photo_3y4_iesq1n.jpg","position":29,"created_at":"2016-12-12T11:52:14Z","updated_at":"2016-12-12T11:52:14Z"}],"meta":{}}'
|
61
84
|
http_version:
|
62
|
-
recorded_at:
|
63
|
-
recorded_with: VCR
|
85
|
+
recorded_at: Mon, 12 Dec 2016 11:52:15 GMT
|
86
|
+
recorded_with: VCR 3.0.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://www.bookingsync.com/api/v3/rentals/
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals/5116/photos
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"photos":[{"description_en":"Funny","kind":"livingroom","photo":"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL\nDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/\n2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy\nMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAFABQDASIAAhEBAxEB/8QA\nHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUF\nBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK\nFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1\ndnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG\nx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEB\nAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAEC\nAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRom\nJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE\nhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU\n1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAoo\nooA//9k=\n"}]}'
|
9
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,47 +17,70 @@ 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:13 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:12 UTC
|
25
49
|
X-Ratelimit-Limit:
|
26
50
|
- '1000'
|
27
51
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
52
|
+
- '1481544000'
|
29
53
|
X-Ratelimit-Remaining:
|
30
|
-
- '
|
54
|
+
- '905'
|
55
|
+
Link:
|
56
|
+
- <https://www.bookingsync.com/api/v3/rentals/5116/photos?page=1&photos%5B%5D%5Bdescription_en%5D=Funny&photos%5B%5D%5Bkind%5D=livingroom&photos%5B%5D%5Bphoto%5D=%2F9j%2F4AAQSkZJRgABAQEAYABgAAD%2F2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL%0ADBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL%2F%0A2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy%0AMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL%2FwAARCAAFABQDASIAAhEBAxEB%2F8QA%0AHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL%2F8QAtRAAAgEDAwIEAwUF%0ABAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK%0AFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1%0Adnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG%0Ax8jJytLT1NXW19jZ2uHi4%2BTl5ufo6erx8vP09fb3%2BPn6%2F8QAHwEAAwEBAQEB%0AAQEBAQAAAAAAAAECAwQFBgcICQoL%2F8QAtREAAgECBAQDBAcFBAQAAQJ3AAEC%0AAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRom%0AJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE%0AhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU%0A1dbX2Nna4uPk5ebn6Onq8vP09fb3%2BPn6%2F9oADAMBAAIRAxEAPwD3%2BiiigAoo%0AooA%2F%2F9k%3D%0A>;
|
57
|
+
rel="first"
|
58
|
+
X-Per-Page:
|
59
|
+
- '100'
|
31
60
|
Location:
|
32
|
-
- https://www.bookingsync.com/api/v3/photos/
|
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/photos/314250
|
41
62
|
Etag:
|
42
|
-
-
|
63
|
+
- W/"8fa3ae95c4aae34e9c6e4cce97c0008b"
|
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
|
-
-
|
70
|
+
- ahoy_track=true; path=/; secure
|
71
|
+
- ahoy_visit=c0049cfa-e168-43bc-b3fd-248fe5ea3cf0; path=/; expires=Mon, 19 Dec
|
72
|
+
2016 11:52:12 -0000; secure
|
73
|
+
- ahoy_visitor=a3833272-1817-4991-b160-65515bc7ae63; path=/; expires=Wed, 12
|
74
|
+
Dec 2018 11:52:12 -0000; secure
|
50
75
|
X-Request-Id:
|
51
|
-
-
|
76
|
+
- ccc0f11f-a83e-4ffc-839f-69a3e63055e0
|
52
77
|
X-Runtime:
|
53
|
-
- '
|
54
|
-
|
55
|
-
-
|
56
|
-
Connection:
|
57
|
-
- close
|
78
|
+
- '1.116056'
|
79
|
+
Strict-Transport-Security:
|
80
|
+
- max-age=31536000
|
58
81
|
body:
|
59
82
|
encoding: UTF-8
|
60
|
-
string: '{"photos":[{"
|
83
|
+
string: '{"links":{"photos.account":"https://www.bookingsync.com/api/v3/accounts/{photos.account}","photos.rental":"https://www.bookingsync.com/api/v3/rentals/{photos.rental}"},"photos":[{"links":{"account":3837,"rental":5116},"id":314250,"description":{"en":"Funny"},"kind":"livingroom","micro_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_32,q_90,w_48/v1481543533/photo_3y4_ipk38n.jpg","thumb_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_64,q_90,w_96/v1481543533/photo_3y4_ipk38n.jpg","small_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_128,q_90,w_192/v1481543533/photo_3y4_ipk38n.jpg","compact_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_256,q_90,w_384/v1481543533/photo_3y4_ipk38n.jpg","medium_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_512,q_90,w_768/v1481543533/photo_3y4_ipk38n.jpg","large_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_800,q_90,w_1200/v1481543533/photo_3y4_ipk38n.jpg","grande_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_1024,q_90,w_1536/v1481543533/photo_3y4_ipk38n.jpg","giant_url":"https://res-1.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_1600,q_90,w_2400/v1481543533/photo_3y4_ipk38n.jpg","position":27,"created_at":"2016-12-12T11:52:12Z","updated_at":"2016-12-12T11:52:12Z"}],"meta":{}}'
|
61
84
|
http_version:
|
62
|
-
recorded_at:
|
63
|
-
recorded_with: VCR
|
85
|
+
recorded_at: Mon, 12 Dec 2016 11:52:14 GMT
|
86
|
+
recorded_with: VCR 3.0.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://www.bookingsync.com/api/v3/rentals/
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals/5116/photos
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"photos":[{"remote_photo_url":"https://www.ruby-lang.org/images/header-ruby-logo.png","kind":"livingroom"}]}'
|
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,47 +17,70 @@ 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:16 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:15 UTC
|
25
49
|
X-Ratelimit-Limit:
|
26
50
|
- '1000'
|
27
51
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
52
|
+
- '1481544000'
|
29
53
|
X-Ratelimit-Remaining:
|
30
|
-
- '
|
54
|
+
- '903'
|
55
|
+
Link:
|
56
|
+
- <https://www.bookingsync.com/api/v3/rentals/5116/photos?page=1&photos%5B%5D%5Bkind%5D=livingroom&photos%5B%5D%5Bremote_photo_url%5D=https%3A%2F%2Fwww.ruby-lang.org%2Fimages%2Fheader-ruby-logo.png>;
|
57
|
+
rel="first"
|
58
|
+
X-Per-Page:
|
59
|
+
- '100'
|
31
60
|
Location:
|
32
|
-
- https://www.bookingsync.com/api/v3/photos/
|
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/photos/314252
|
41
62
|
Etag:
|
42
|
-
-
|
63
|
+
- W/"d988625631f5a08ad374e08cdadc16a5"
|
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
|
-
-
|
70
|
+
- ahoy_track=true; path=/; secure
|
71
|
+
- ahoy_visit=9b567130-881f-492a-b09b-431caa4ed1e7; path=/; expires=Mon, 19 Dec
|
72
|
+
2016 11:52:15 -0000; secure
|
73
|
+
- ahoy_visitor=ea4d6e41-3d31-4ec9-bc10-e3b738f5caf8; path=/; expires=Wed, 12
|
74
|
+
Dec 2018 11:52:15 -0000; secure
|
50
75
|
X-Request-Id:
|
51
|
-
-
|
76
|
+
- 9fb9fa4b-cce9-49a0-bbc8-86a89c6a505b
|
52
77
|
X-Runtime:
|
53
|
-
- '
|
54
|
-
|
55
|
-
-
|
56
|
-
Connection:
|
57
|
-
- close
|
78
|
+
- '1.334948'
|
79
|
+
Strict-Transport-Security:
|
80
|
+
- max-age=31536000
|
58
81
|
body:
|
59
82
|
encoding: UTF-8
|
60
|
-
string: '{"photos":[{"
|
83
|
+
string: '{"links":{"photos.account":"https://www.bookingsync.com/api/v3/accounts/{photos.account}","photos.rental":"https://www.bookingsync.com/api/v3/rentals/{photos.rental}"},"photos":[{"links":{"account":3837,"rental":5116},"id":314252,"description":{},"kind":"livingroom","micro_url":"https://res-3.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_32,q_90,w_48/v1481543535/header-ruby-logo_3y4_xoelj7.jpg","thumb_url":"https://res-3.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_64,q_90,w_96/v1481543535/header-ruby-logo_3y4_xoelj7.jpg","small_url":"https://res-3.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_128,q_90,w_192/v1481543535/header-ruby-logo_3y4_xoelj7.jpg","compact_url":"https://res-3.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_256,q_90,w_384/v1481543535/header-ruby-logo_3y4_xoelj7.jpg","medium_url":"https://res-3.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_512,q_90,w_768/v1481543535/header-ruby-logo_3y4_xoelj7.jpg","large_url":"https://res-3.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_800,q_90,w_1200/v1481543535/header-ruby-logo_3y4_xoelj7.jpg","grande_url":"https://res-3.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_1024,q_90,w_1536/v1481543535/header-ruby-logo_3y4_xoelj7.jpg","giant_url":"https://res-3.cloudinary.com/bookingsync/image/upload/c_fit,f_auto,fl_progressive,h_1600,q_90,w_2400/v1481543535/header-ruby-logo_3y4_xoelj7.jpg","position":31,"created_at":"2016-12-12T11:52:15Z","updated_at":"2016-12-12T11:52:15Z"}],"meta":{}}'
|
61
84
|
http_version:
|
62
|
-
recorded_at:
|
63
|
-
recorded_with: VCR
|
85
|
+
recorded_at: Mon, 12 Dec 2016 11:52:16 GMT
|
86
|
+
recorded_with: VCR 3.0.3
|
data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_delete_photo/delete_given_photo.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://www.bookingsync.com/api/v3/photos/
|
5
|
+
uri: https://www.bookingsync.com/api/v3/photos/314250
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
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,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:19 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:19 UTC
|
25
45
|
X-Ratelimit-Limit:
|
26
46
|
- '1000'
|
27
47
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
48
|
+
- '1481547600'
|
29
49
|
X-Ratelimit-Remaining:
|
30
|
-
- '
|
31
|
-
Access-Control-Allow-Origin:
|
32
|
-
- '*'
|
33
|
-
Access-Control-Request-Method:
|
34
|
-
- '*'
|
35
|
-
X-Ua-Compatible:
|
36
|
-
- IE=Edge
|
50
|
+
- '970'
|
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
|
-
-
|
57
|
+
- ahoy_track=true; path=/; secure
|
58
|
+
- ahoy_visit=dd4db223-658f-45ad-80e6-c249be1af807; path=/; expires=Mon, 19 Dec
|
59
|
+
2016 12:13:19 -0000; secure
|
60
|
+
- ahoy_visitor=fdf184f2-86d6-4c11-aa51-0c030aba6cd5; path=/; expires=Wed, 12
|
61
|
+
Dec 2018 12:13:19 -0000; secure
|
44
62
|
X-Request-Id:
|
45
|
-
-
|
63
|
+
- 77b9e2cd-1a96-4ae7-a819-8832ae5e3df2
|
46
64
|
X-Runtime:
|
47
|
-
- '0.
|
48
|
-
|
49
|
-
-
|
50
|
-
Connection:
|
51
|
-
- close
|
65
|
+
- '0.157201'
|
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:
|
57
|
-
recorded_with: VCR
|
71
|
+
http_version:
|
72
|
+
recorded_at: Mon, 12 Dec 2016 12:13:19 GMT
|
73
|
+
recorded_with: VCR 3.0.3
|