bookingsync-api 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +30 -0
- data/lib/bookingsync/api.rb +3 -3
- data/lib/bookingsync/api/client.rb +22 -2
- data/lib/bookingsync/api/client/bookings.rb +9 -7
- data/lib/bookingsync/api/client/inquiries.rb +6 -4
- data/lib/bookingsync/api/client/payments.rb +4 -4
- data/lib/bookingsync/api/client/periods.rb +14 -13
- data/lib/bookingsync/api/client/photos.rb +53 -0
- data/lib/bookingsync/api/client/rates_tables.rb +5 -5
- data/lib/bookingsync/api/client/rental_agreements.rb +22 -19
- data/lib/bookingsync/api/client/rentals.rb +7 -6
- data/lib/bookingsync/api/client/reviews.rb +6 -5
- data/lib/bookingsync/api/client/seasons.rb +15 -13
- data/lib/bookingsync/api/client/special_offers.rb +19 -18
- data/lib/bookingsync/api/error.rb +18 -0
- data/lib/bookingsync/api/middleware/logger.rb +50 -0
- data/lib/bookingsync/api/version.rb +1 -1
- data/spec/bookingsync/api/client/bookings_spec.rb +5 -4
- data/spec/bookingsync/api/client/inquiries_spec.rb +4 -3
- data/spec/bookingsync/api/client/periods_spec.rb +9 -14
- data/spec/bookingsync/api/client/photos_spec.rb +58 -0
- data/spec/bookingsync/api/client/rental_agreements_spec.rb +10 -10
- data/spec/bookingsync/api/client/rentals_spec.rb +3 -3
- data/spec/bookingsync/api/client/reviews_spec.rb +5 -4
- data/spec/bookingsync/api/client/seasons_spec.rb +5 -4
- data/spec/bookingsync/api/client/special_offers_spec.rb +5 -4
- data/spec/bookingsync/api/client_spec.rb +43 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_BillingAddresses/_billing_addresses/returns_billing_addresses.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_bookings/pagination/with_a_block/yields_block_with_batch_of_bookings.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_bookings/pagination/with_auto_paginate_true/returns_all_bookings_joined_from_many_requests.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_bookings/returns_bookings.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_cancel_booking/cancels_given_booking.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_clients/returns_clients.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_create_client/creates_a_new_client.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Bookings/_edit_client/updates_given_client_by_ID.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_BookingsPayments/_bookings_payments/returns_bookings_payments.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Destinations/_destinations/returns_destinations.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Inquiries/_create_inquiry/creates_a_new_inquiry.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Inquiries/_inquiries/returns_inquiries.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Payments/_cancel_payment/cancels_given_payment.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Payments/_create_payment/creates_a_new_payment.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Payments/_edit_payment/updates_given_payment_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Payments/_payments/returns_payments.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Periods/_create_period/creates_a_new_period.yml +2 -2
- data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +57 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Periods/_edit_period/updates_given_period_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Periods/_periods/returns_periods.yml +1 -1
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_encoded_photo_file.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_photo_path.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_create_photo/creates_a_photo_with_remote_URL.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_delete_photo/delete_given_photo.yml +57 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_edit_photo/updates_photo_s_description.yml +61 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_edit_photo/updates_photo_s_image_file.yml +61 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Photos/_photos/returns_photos.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rates/_rates/returns_rates.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesTables/_create_rates_table/creates_a_new_rates_table.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesTables/_delete_rates_table/deletes_given_rates_table.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesTables/_edit_rates_table/updates_given_rates_table_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RatesTables/_rates_tables/returns_rates_tables.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RentalAgreements/_create_rental_agreement/creates_a_new_rental_agreement.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_booking/creates_a_new_rental_agreement.yml +3 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_rental/creates_a_new_rental_agreement.yml +3 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_RentalAgreements/_rental_agreements/returns_rental_agreements.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml +1 -1
- data/spec/{cassettes/BookingSync_API_Client_Rentals/_cancel_rental/cancels_given_rental.yml → fixtures/cassettes/BookingSync_API_Client_Rentals/_delete_rental/deletes_given_rental.yml} +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_rental/returns_a_single_rental.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_rentals/links/returns_associated_photos.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_rentals/links/returns_links_to_associated_resources.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Rentals/_rentals/returns_rentals.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +3 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Reviews/_reviews/returns_reviews.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Seasons/_create_season/creates_a_new_season.yml +3 -3
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Seasons/_delete_season/deletes_given_season.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Seasons/_edit_season/updates_given_season_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_Seasons/_seasons/returns_seasons.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_SpecialOffers/_create_special_offer/creates_a_new_special_offer.yml +2 -2
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_SpecialOffers/_delete_special_offer/deletes_given_special_offer.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_SpecialOffers/_edit_special_offer/updates_given_special_offer_by_ID.yml +1 -1
- data/spec/{cassettes → fixtures/cassettes}/BookingSync_API_Client_SpecialOffers/_special_offers/returns_special_offers.yml +0 -0
- data/spec/{cassettes → fixtures/cassettes}/spec/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking_yml.yml +0 -0
- data/spec/fixtures/files/test.jpg +0 -0
- data/spec/spec_helper.rb +1 -1
- metadata +141 -124
- data/spec/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +0 -70
@@ -17,16 +17,17 @@ describe BookingSync::API::Client::Seasons do
|
|
17
17
|
ratio: 0.2,
|
18
18
|
minimum_stay: 4
|
19
19
|
}}
|
20
|
+
let(:rates_table) { BookingSync::API::Resource.new(client, id: 13) }
|
20
21
|
|
21
22
|
it "creates a new season" do
|
22
|
-
client.create_season(
|
23
|
-
assert_requested :post, bs_url("seasons"),
|
24
|
-
body: {
|
23
|
+
client.create_season(rates_table, attributes)
|
24
|
+
assert_requested :post, bs_url("rates_tables/13/seasons"),
|
25
|
+
body: {seasons: [attributes]}.to_json
|
25
26
|
end
|
26
27
|
|
27
28
|
it "returns newly created season" do
|
28
29
|
VCR.use_cassette('BookingSync_API_Client_Seasons/_create_season/creates_a_new_season') do
|
29
|
-
season = client.create_season(
|
30
|
+
season = client.create_season(rates_table, attributes)
|
30
31
|
expect(season.name).to eql(attributes[:name])
|
31
32
|
expect(season.minimum_stay).to eql(attributes[:minimum_stay])
|
32
33
|
end
|
@@ -19,16 +19,17 @@ describe BookingSync::API::Client::SpecialOffers do
|
|
19
19
|
discount: 5
|
20
20
|
}
|
21
21
|
}
|
22
|
+
let(:rental) { BookingSync::API::Resource.new(client, id: 12) }
|
22
23
|
|
23
24
|
it "creates a new special_offer" do
|
24
|
-
client.create_special_offer(
|
25
|
-
assert_requested :post, bs_url("special_offers"),
|
26
|
-
body: {
|
25
|
+
client.create_special_offer(rental, attributes)
|
26
|
+
assert_requested :post, bs_url("rentals/12/special_offers"),
|
27
|
+
body: {special_offers: [attributes]}.to_json
|
27
28
|
end
|
28
29
|
|
29
30
|
it "returns newly created special_offer" do
|
30
31
|
VCR.use_cassette('BookingSync_API_Client_SpecialOffers/_create_special_offer/creates_a_new_special_offer') do
|
31
|
-
special_offer = client.create_special_offer(
|
32
|
+
special_offer = client.create_special_offer(rental, attributes)
|
32
33
|
expect(special_offer.name).to eql(attributes[:name])
|
33
34
|
end
|
34
35
|
end
|
@@ -122,10 +122,26 @@ describe BookingSync::API::Client do
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
-
context "API returns
|
126
|
-
it "
|
125
|
+
context "API returns 404" do
|
126
|
+
it "raises NotFound exception" do
|
127
127
|
stub_get("resource", status: 404)
|
128
|
-
expect
|
128
|
+
expect {
|
129
|
+
client.get("resource")
|
130
|
+
}.to raise_error(BookingSync::API::NotFound)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
context "API returns unsupported status code outside 200..299 range" do
|
135
|
+
it "raises UnsupportedResponse exception" do
|
136
|
+
stub_get("resource", status: 405, body: "Whoops!",
|
137
|
+
headers: {"content-type"=>"application/vnd.api+json"})
|
138
|
+
expect {
|
139
|
+
client.get("resource")
|
140
|
+
}.to raise_error(BookingSync::API::UnsupportedResponse) { |error|
|
141
|
+
expect(error.status).to eql(405)
|
142
|
+
expect(error.headers).to eq({"content-type"=>"application/vnd.api+json"})
|
143
|
+
expect(error.body).to eq("Whoops!")
|
144
|
+
}
|
129
145
|
end
|
130
146
|
end
|
131
147
|
|
@@ -172,4 +188,28 @@ describe BookingSync::API::Client do
|
|
172
188
|
end
|
173
189
|
end
|
174
190
|
end
|
191
|
+
|
192
|
+
describe "logging" do
|
193
|
+
before { VCR.turn_off! }
|
194
|
+
let(:log) { StringIO.new }
|
195
|
+
let(:logger) { Logger.new(log) }
|
196
|
+
|
197
|
+
it "uses logger provided by user" do
|
198
|
+
client = BookingSync::API::Client.new(test_access_token, logger: logger)
|
199
|
+
stub_get("resources", body: {"resources" => [{id: 1}, {id: 2}]}.to_json)
|
200
|
+
client.get("resources")
|
201
|
+
messages = log.rewind && log.read
|
202
|
+
expect(messages).to include("GET https://bookingsync.dev/api/v3/resources")
|
203
|
+
end
|
204
|
+
|
205
|
+
context "BOOKINGSYNC_API_DEBUG env variable set to true" do
|
206
|
+
after { ENV["BOOKINGSYNC_API_DEBUG"] = "false" }
|
207
|
+
it "uses STDOUT as logs output" do
|
208
|
+
ENV["BOOKINGSYNC_API_DEBUG"] = "true"
|
209
|
+
expect(Logger).to receive(:new).with(STDOUT).and_return(logger)
|
210
|
+
stub_get("resources")
|
211
|
+
client.get("resources")
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
175
215
|
end
|
@@ -60,6 +60,6 @@ http_interactions:
|
|
60
60
|
encoding: UTF-8
|
61
61
|
string: "{\"billing_addresses\":[{\"id\":1,\"payment_id\":134,\"address1\":\"Nader
|
62
62
|
Drive\",\"address2\":\"\",\"zip\":\"46548-8571\",\"city\":\"Predovicview\",\"state\":\"\",\"country_code\":\"GB\",\"created_at\":\"2014-04-23T08:33:37Z\",\"updated_at\":\"2014-04-23T08:33:37Z\"}]}"
|
63
|
-
http_version:
|
63
|
+
http_version:
|
64
64
|
recorded_at: Wed, 23 Apr 2014 08:37:32 GMT
|
65
65
|
recorded_with: VCR 2.9.0
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://www.bookingsync.com/api/v3/bookings
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals/20/bookings
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: "{\"bookings\":[{\"start_at\":\"2014-01-03\",\"end_at\":\"2014-01-04\",\"rental_id\":20,\"booked\":true}]}"
|
File without changes
|
File without changes
|
File without changes
|
@@ -60,6 +60,6 @@ http_interactions:
|
|
60
60
|
body:
|
61
61
|
encoding: UTF-8
|
62
62
|
string: "{\"bookings_payments\":[{\"id\":2,\"account_id\":1,\"booking_id\":5,\"payment_id\":2,\"amount\":125200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:42Z\",\"updated_at\":\"2014-04-14T13:18:42Z\"},{\"id\":10,\"account_id\":1,\"booking_id\":11,\"payment_id\":10,\"amount\":47300,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\"},{\"id\":11,\"account_id\":1,\"booking_id\":11,\"payment_id\":11,\"amount\":189200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\"},{\"id\":12,\"account_id\":1,\"booking_id\":11,\"payment_id\":12,\"amount\":236500,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\"},{\"id\":13,\"account_id\":1,\"booking_id\":12,\"payment_id\":13,\"amount\":118800,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\"},{\"id\":14,\"account_id\":1,\"booking_id\":12,\"payment_id\":14,\"amount\":79200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\"},{\"id\":18,\"account_id\":1,\"booking_id\":14,\"payment_id\":18,\"amount\":90000,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\"},{\"id\":19,\"account_id\":1,\"booking_id\":15,\"payment_id\":19,\"amount\":117200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\"},{\"id\":20,\"account_id\":1,\"booking_id\":15,\"payment_id\":20,\"amount\":58600,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\"},{\"id\":21,\"account_id\":1,\"booking_id\":15,\"payment_id\":21,\"amount\":117200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\"},{\"id\":23,\"account_id\":1,\"booking_id\":17,\"payment_id\":23,\"amount\":6200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\"},{\"id\":24,\"account_id\":1,\"booking_id\":17,\"payment_id\":24,\"amount\":24800,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\"},{\"id\":28,\"account_id\":1,\"booking_id\":20,\"payment_id\":28,\"amount\":34200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\"},{\"id\":29,\"account_id\":1,\"booking_id\":20,\"payment_id\":29,\"amount\":45600,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\"},{\"id\":30,\"account_id\":1,\"booking_id\":21,\"payment_id\":30,\"amount\":31000,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:02Z\",\"updated_at\":\"2014-04-14T13:19:02Z\"},{\"id\":31,\"account_id\":1,\"booking_id\":21,\"payment_id\":31,\"amount\":31000,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:02Z\",\"updated_at\":\"2014-04-14T13:19:02Z\"},{\"id\":34,\"account_id\":1,\"booking_id\":24,\"payment_id\":34,\"amount\":8400,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\"},{\"id\":35,\"account_id\":1,\"booking_id\":24,\"payment_id\":35,\"amount\":4200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\"},{\"id\":36,\"account_id\":1,\"booking_id\":25,\"payment_id\":36,\"amount\":15400,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\"},{\"id\":37,\"account_id\":1,\"booking_id\":26,\"payment_id\":37,\"amount\":27200,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:07Z\",\"updated_at\":\"2014-04-14T13:19:07Z\"},{\"id\":38,\"account_id\":1,\"booking_id\":26,\"payment_id\":38,\"amount\":40800,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:07Z\",\"updated_at\":\"2014-04-14T13:19:07Z\"},{\"id\":39,\"account_id\":1,\"booking_id\":26,\"payment_id\":39,\"amount\":68000,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\"},{\"id\":40,\"account_id\":1,\"booking_id\":27,\"payment_id\":40,\"amount\":22300,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\"},{\"id\":41,\"account_id\":1,\"booking_id\":27,\"payment_id\":41,\"amount\":22300,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\"},{\"id\":42,\"account_id\":1,\"booking_id\":27,\"payment_id\":42,\"amount\":178400,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\"},{\"id\":44,\"account_id\":1,\"booking_id\":29,\"payment_id\":44,\"amount\":66300,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\"},{\"id\":45,\"account_id\":1,\"booking_id\":30,\"payment_id\":45,\"amount\":26400,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\"},{\"id\":46,\"account_id\":1,\"booking_id\":30,\"payment_id\":46,\"amount\":26400,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\"},{\"id\":70,\"account_id\":1,\"booking_id\":45,\"payment_id\":70,\"amount\":23000,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:24Z\",\"updated_at\":\"2014-04-14T13:19:24Z\"},{\"id\":71,\"account_id\":1,\"booking_id\":45,\"payment_id\":71,\"amount\":23000,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:24Z\",\"updated_at\":\"2014-04-14T13:19:24Z\"},{\"id\":79,\"account_id\":1,\"booking_id\":50,\"payment_id\":79,\"amount\":25000,\"currency\":\"EUR\",\"created_at\":\"2014-04-14T13:19:29Z\",\"updated_at\":\"2014-04-14T13:19:29Z\"},{\"id\":106,\"account_id\":1,\"booking_id\":71,\"payment_id\":106,\"amount\":100000,\"currency\":\"EUR\",\"created_at\":\"2014-04-22T10:16:17Z\",\"updated_at\":\"2014-04-22T10:16:17Z\"},{\"id\":1,\"account_id\":1,\"booking_id\":2,\"payment_id\":1,\"amount\":33000,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:18:42Z\",\"updated_at\":\"2014-04-14T13:18:42Z\"},{\"id\":8,\"account_id\":1,\"booking_id\":10,\"payment_id\":8,\"amount\":38400,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\"},{\"id\":9,\"account_id\":1,\"booking_id\":10,\"payment_id\":9,\"amount\":51200,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\"},{\"id\":22,\"account_id\":1,\"booking_id\":16,\"payment_id\":22,\"amount\":18400,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\"},{\"id\":25,\"account_id\":1,\"booking_id\":19,\"payment_id\":25,\"amount\":10500,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\"},{\"id\":26,\"account_id\":1,\"booking_id\":19,\"payment_id\":26,\"amount\":31500,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\"},{\"id\":27,\"account_id\":1,\"booking_id\":19,\"payment_id\":27,\"amount\":63000,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\"},{\"id\":43,\"account_id\":1,\"booking_id\":28,\"payment_id\":43,\"amount\":43800,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\"},{\"id\":52,\"account_id\":1,\"booking_id\":33,\"payment_id\":52,\"amount\":58400,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-14T13:19:13Z\"},{\"id\":53,\"account_id\":1,\"booking_id\":33,\"payment_id\":53,\"amount\":29200,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-14T13:19:13Z\"},{\"id\":54,\"account_id\":1,\"booking_id\":34,\"payment_id\":54,\"amount\":164400,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:14Z\",\"updated_at\":\"2014-04-14T13:19:14Z\"},{\"id\":55,\"account_id\":1,\"booking_id\":34,\"payment_id\":55,\"amount\":164400,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:14Z\",\"updated_at\":\"2014-04-14T13:19:14Z\"},{\"id\":65,\"account_id\":1,\"booking_id\":41,\"payment_id\":65,\"amount\":79600,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:23Z\",\"updated_at\":\"2014-04-14T13:19:23Z\"},{\"id\":66,\"account_id\":1,\"booking_id\":41,\"payment_id\":66,\"amount\":159200,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:23Z\",\"updated_at\":\"2014-04-14T13:19:23Z\"},{\"id\":67,\"account_id\":1,\"booking_id\":41,\"payment_id\":67,\"amount\":159200,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:23Z\",\"updated_at\":\"2014-04-14T13:19:23Z\"},{\"id\":68,\"account_id\":1,\"booking_id\":42,\"payment_id\":68,\"amount\":132000,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:24Z\",\"updated_at\":\"2014-04-14T13:19:24Z\"},{\"id\":72,\"account_id\":1,\"booking_id\":46,\"payment_id\":72,\"amount\":68400,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:28Z\",\"updated_at\":\"2014-04-14T13:19:28Z\"},{\"id\":73,\"account_id\":1,\"booking_id\":46,\"payment_id\":73,\"amount\":91200,\"currency\":\"GBP\",\"created_at\":\"2014-04-14T13:19:28Z\",\"updated_at\":\"2014-04-14T13:19:28Z\"}]}"
|
63
|
-
http_version:
|
63
|
+
http_version:
|
64
64
|
recorded_at: Tue, 22 Apr 2014 10:36:22 GMT
|
65
65
|
recorded_with: VCR 2.9.0
|
@@ -59,6 +59,6 @@ http_interactions:
|
|
59
59
|
body:
|
60
60
|
encoding: US-ASCII
|
61
61
|
string: ! '{"destinations":[{"id":1,"name":{"en":"Name-1"},"fullname":{"en":"Name-1"},"permalink":{"en":"name-1"},"aliases":{"en":null}},{"id":2,"name":{"en":"Name-2"},"fullname":{"en":"Name-2"},"permalink":{"en":"name-2"},"aliases":{"en":null}},{"id":3,"name":{"en":"Name-3"},"fullname":{"en":"Name-3"},"permalink":{"en":"name-3"},"aliases":{"en":null}},{"id":4,"name":{"en":"Name-4"},"fullname":{"en":"Name-4"},"permalink":{"en":"name-4"},"aliases":{"en":null}},{"id":5,"name":{"en":"Name-5"},"fullname":{"en":"Name-5"},"permalink":{"en":"name-5"},"aliases":{"en":null}},{"id":6,"name":{"en":"Name-6"},"fullname":{"en":"Name-6"},"permalink":{"en":"name-6"},"aliases":{"en":null}},{"id":7,"name":{"en":"Name-7"},"fullname":{"en":"Name-7"},"permalink":{"en":"name-7"},"aliases":{"en":null}},{"id":8,"name":{"en":"Name-8"},"fullname":{"en":"Name-8"},"permalink":{"en":"name-8"},"aliases":{"en":null}},{"id":9,"name":{"en":"Name-9"},"fullname":{"en":"Name-9"},"permalink":{"en":"name-9"},"aliases":{"en":null}},{"id":10,"name":{"en":"Name-10"},"fullname":{"en":"Name-10"},"permalink":{"en":"name-10"},"aliases":{"en":null}}]}'
|
62
|
-
http_version:
|
62
|
+
http_version:
|
63
63
|
recorded_at: Thu, 10 Apr 2014 07:25:25 GMT
|
64
64
|
recorded_with: VCR 2.9.0
|
File without changes
|
@@ -58,6 +58,6 @@ http_interactions:
|
|
58
58
|
body:
|
59
59
|
encoding: UTF-8
|
60
60
|
string: "{\"links\":{\"payments.billing_address\":\"https://www.bookingsync.com/api/v3/billing_addresses/{payments.billing_address}\",\"payments.bookings\":\"https://www.bookingsync.com/api/v3/bookings/{payments.bookings}\",\"payments.bookings_payments\":\"https://www.bookingsync.com/api/v3/bookings_payments/{payments.bookings_payments}\"},\"payments\":[{\"links\":{\"billing_address\":null,\"bookings\":[1],\"bookings_payments\":[133]},\"id\":133,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":200,\"currency\":\"EUR\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-22T12:00:19Z\",\"created_at\":\"2014-04-22T12:00:19Z\",\"updated_at\":\"2014-04-22T12:00:19Z\",\"rejected_at\":null,\"canceled_at\":null}]}"
|
61
|
-
http_version:
|
61
|
+
http_version:
|
62
62
|
recorded_at: Tue, 22 Apr 2014 12:00:20 GMT
|
63
63
|
recorded_with: VCR 2.9.0
|
@@ -56,6 +56,6 @@ http_interactions:
|
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
58
|
string: "{\"links\":{\"payments.billing_address\":\"https://www.bookingsync.com/api/v3/billing_addresses/{payments.billing_address}\",\"payments.bookings\":\"https://www.bookingsync.com/api/v3/bookings/{payments.bookings}\",\"payments.bookings_payments\":\"https://www.bookingsync.com/api/v3/bookings_payments/{payments.bookings_payments}\"},\"payments\":[{\"links\":{\"billing_address\":null,\"bookings\":[5],\"bookings_payments\":[2]},\"id\":2,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":125200,\"currency\":\"EUR\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-07T13:18:42Z\",\"created_at\":\"2014-04-14T13:18:42Z\",\"updated_at\":\"2014-04-22T11:23:32Z\",\"rejected_at\":null,\"canceled_at\":null}]}"
|
59
|
-
http_version:
|
59
|
+
http_version:
|
60
60
|
recorded_at: Tue, 22 Apr 2014 12:00:20 GMT
|
61
61
|
recorded_with: VCR 2.9.0
|
@@ -59,6 +59,6 @@ http_interactions:
|
|
59
59
|
body:
|
60
60
|
encoding: UTF-8
|
61
61
|
string: "{\"links\":{\"payments.billing_address\":\"https://www.bookingsync.com/api/v3/billing_addresses/{payments.billing_address}\",\"payments.bookings\":\"https://www.bookingsync.com/api/v3/bookings/{payments.bookings}\",\"payments.bookings_payments\":\"https://www.bookingsync.com/api/v3/bookings_payments/{payments.bookings_payments}\"},\"payments\":[{\"links\":{\"billing_address\":null,\"bookings\":[2],\"bookings_payments\":[1]},\"id\":1,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":33000,\"currency\":\"GBP\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-21T13:18:42Z\",\"created_at\":\"2014-04-14T13:18:42Z\",\"updated_at\":\"2014-04-14T13:18:42Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[5],\"bookings_payments\":[2]},\"id\":2,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":125200,\"currency\":\"EUR\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-07T13:18:42Z\",\"created_at\":\"2014-04-14T13:18:42Z\",\"updated_at\":\"2014-04-22T11:23:32Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[6],\"bookings_payments\":[3]},\"id\":3,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":39300,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-15T13:18:46Z\",\"created_at\":\"2014-04-14T13:18:46Z\",\"updated_at\":\"2014-04-14T13:18:46Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[7],\"bookings_payments\":[4]},\"id\":4,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":24500,\"currency\":\"USD\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-26T13:18:46Z\",\"created_at\":\"2014-04-14T13:18:46Z\",\"updated_at\":\"2014-04-14T13:18:46Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[7],\"bookings_payments\":[5]},\"id\":5,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":98000,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-04T13:18:46Z\",\"created_at\":\"2014-04-14T13:18:46Z\",\"updated_at\":\"2014-04-14T13:18:46Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[9],\"bookings_payments\":[6]},\"id\":6,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":9500,\"currency\":\"USD\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-02T13:18:47Z\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[9],\"bookings_payments\":[7]},\"id\":7,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":28500,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-20T13:18:47Z\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[10],\"bookings_payments\":[8]},\"id\":8,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":38400,\"currency\":\"GBP\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-14T13:18:47Z\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[10],\"bookings_payments\":[9]},\"id\":9,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":51200,\"currency\":\"GBP\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-19T13:18:47Z\",\"created_at\":\"2014-04-14T13:18:47Z\",\"updated_at\":\"2014-04-14T13:18:47Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[11],\"bookings_payments\":[10]},\"id\":10,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":47300,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-05T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[11],\"bookings_payments\":[11]},\"id\":11,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":189200,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-02T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[11],\"bookings_payments\":[12]},\"id\":12,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":236500,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-18T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[12],\"bookings_payments\":[13]},\"id\":13,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":118800,\"currency\":\"EUR\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-20T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[12],\"bookings_payments\":[14]},\"id\":14,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":79200,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-10T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[13],\"bookings_payments\":[15]},\"id\":15,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":170800,\"currency\":\"USD\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-07T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[13],\"bookings_payments\":[16]},\"id\":16,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":85400,\"currency\":\"USD\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-17T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[13],\"bookings_payments\":[17]},\"id\":17,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":170800,\"currency\":\"USD\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-19T13:18:52Z\",\"created_at\":\"2014-04-14T13:18:52Z\",\"updated_at\":\"2014-04-14T13:18:52Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[14],\"bookings_payments\":[18]},\"id\":18,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":90000,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-06T13:18:53Z\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[15],\"bookings_payments\":[19]},\"id\":19,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":117200,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-21T13:18:53Z\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[15],\"bookings_payments\":[20]},\"id\":20,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":58600,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-02T13:18:53Z\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[15],\"bookings_payments\":[21]},\"id\":21,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":117200,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-19T13:18:53Z\",\"created_at\":\"2014-04-14T13:18:53Z\",\"updated_at\":\"2014-04-14T13:18:53Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[16],\"bookings_payments\":[22]},\"id\":22,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":18400,\"currency\":\"GBP\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-09T13:18:57Z\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[17],\"bookings_payments\":[23]},\"id\":23,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":6200,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-14T13:18:57Z\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[17],\"bookings_payments\":[24]},\"id\":24,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":24800,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-03T13:18:57Z\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[19],\"bookings_payments\":[25]},\"id\":25,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":10500,\"currency\":\"GBP\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-16T13:18:57Z\",\"created_at\":\"2014-04-14T13:18:57Z\",\"updated_at\":\"2014-04-14T13:18:57Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[19],\"bookings_payments\":[26]},\"id\":26,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":31500,\"currency\":\"GBP\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-14T13:18:58Z\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[19],\"bookings_payments\":[27]},\"id\":27,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":63000,\"currency\":\"GBP\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-19T13:18:58Z\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[20],\"bookings_payments\":[28]},\"id\":28,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":34200,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-12T13:18:58Z\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[20],\"bookings_payments\":[29]},\"id\":29,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":45600,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-13T13:18:58Z\",\"created_at\":\"2014-04-14T13:18:58Z\",\"updated_at\":\"2014-04-14T13:18:58Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[21],\"bookings_payments\":[30]},\"id\":30,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":31000,\"currency\":\"EUR\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-23T13:19:02Z\",\"created_at\":\"2014-04-14T13:19:02Z\",\"updated_at\":\"2014-04-14T13:19:02Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[21],\"bookings_payments\":[31]},\"id\":31,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":31000,\"currency\":\"EUR\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-15T13:19:02Z\",\"created_at\":\"2014-04-14T13:19:02Z\",\"updated_at\":\"2014-04-14T13:19:02Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[22],\"bookings_payments\":[32]},\"id\":32,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":24400,\"currency\":\"USD\",\"kind\":\"online\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-13T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[22],\"bookings_payments\":[33]},\"id\":33,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":24400,\"currency\":\"USD\",\"kind\":\"cash\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-27T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[24],\"bookings_payments\":[34]},\"id\":34,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":8400,\"currency\":\"EUR\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-16T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[24],\"bookings_payments\":[35]},\"id\":35,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":4200,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-14T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[25],\"bookings_payments\":[36]},\"id\":36,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":15400,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-03T13:19:03Z\",\"created_at\":\"2014-04-14T13:19:03Z\",\"updated_at\":\"2014-04-14T13:19:03Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[26],\"bookings_payments\":[37]},\"id\":37,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":27200,\"currency\":\"EUR\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-22T13:19:07Z\",\"created_at\":\"2014-04-14T13:19:07Z\",\"updated_at\":\"2014-04-14T13:19:07Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[26],\"bookings_payments\":[38]},\"id\":38,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":40800,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-18T13:19:07Z\",\"created_at\":\"2014-04-14T13:19:07Z\",\"updated_at\":\"2014-04-14T13:19:07Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[26],\"bookings_payments\":[39]},\"id\":39,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":68000,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-15T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[27],\"bookings_payments\":[40]},\"id\":40,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":22300,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-18T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[27],\"bookings_payments\":[41]},\"id\":41,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":22300,\"currency\":\"EUR\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-15T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[27],\"bookings_payments\":[42]},\"id\":42,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":178400,\"currency\":\"EUR\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-05T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[28],\"bookings_payments\":[43]},\"id\":43,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":43800,\"currency\":\"GBP\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-04-06T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[29],\"bookings_payments\":[44]},\"id\":44,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":66300,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-25T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[30],\"bookings_payments\":[45]},\"id\":45,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":26400,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-13T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[30],\"bookings_payments\":[46]},\"id\":46,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":26400,\"currency\":\"EUR\",\"kind\":\"paypal\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-12T13:19:08Z\",\"created_at\":\"2014-04-14T13:19:08Z\",\"updated_at\":\"2014-04-14T13:19:08Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[31],\"bookings_payments\":[47]},\"id\":47,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":35000,\"currency\":\"USD\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-15T13:19:13Z\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-14T13:19:13Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[31],\"bookings_payments\":[48]},\"id\":48,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":17500,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-18T13:19:13Z\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-14T13:19:13Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[32],\"bookings_payments\":[49]},\"id\":49,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":20100,\"currency\":\"USD\",\"kind\":\"wiretransfer\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-02-20T13:19:13Z\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-14T13:19:13Z\",\"rejected_at\":null,\"canceled_at\":null},{\"links\":{\"billing_address\":null,\"bookings\":[32],\"bookings_payments\":[50]},\"id\":50,\"account_id\":1,\"transaction_id\":null,\"order_id\":null,\"card\":null,\"amount\":60300,\"currency\":\"USD\",\"kind\":\"cheque\",\"fullname\":null,\"email\":null,\"locale\":null,\"ip\":null,\"test\":null,\"notes\":null,\"paid_at\":\"2014-03-06T13:19:13Z\",\"created_at\":\"2014-04-14T13:19:13Z\",\"updated_at\":\"2014-04-22T11:45:07Z\",\"rejected_at\":null,\"canceled_at\":\"2014-04-22T11:45:07Z\"}]}"
|
62
|
-
http_version:
|
62
|
+
http_version:
|
63
63
|
recorded_at: Tue, 22 Apr 2014 12:00:18 GMT
|
64
64
|
recorded_with: VCR 2.9.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://www.bookingsync.com/api/v3/periods
|
5
|
+
uri: https://www.bookingsync.com/api/v3/seasons/9/periods
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"season_id":9,"periods":[{"start_at":"2013-04-10","end_at":"2013-04-22"}]}'
|
@@ -58,6 +58,6 @@ http_interactions:
|
|
58
58
|
body:
|
59
59
|
encoding: UTF-8
|
60
60
|
string: '{"periods":[{"id":24,"season_id":9,"start_at":"2013-04-10","end_at":"2013-04-22","created_at":"2014-04-25T16:41:27Z","updated_at":"2014-04-25T16:41:27Z"}]}'
|
61
|
-
http_version:
|
61
|
+
http_version:
|
62
62
|
recorded_at: Fri, 25 Apr 2014 16:41:28 GMT
|
63
63
|
recorded_with: VCR 2.9.0
|
data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://bookingsync.dev/api/v3/periods/3
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept:
|
13
|
+
- application/vnd.api+json
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.api+json
|
16
|
+
Authorization:
|
17
|
+
- Bearer <<ACCESS_TOKEN>>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 204
|
23
|
+
message: No Content
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1400144400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '997'
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Request-Method:
|
34
|
+
- "*"
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge
|
37
|
+
Cache-Control:
|
38
|
+
- no-cache
|
39
|
+
P3p:
|
40
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
41
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
42
|
+
Set-Cookie:
|
43
|
+
- _BookingSync_session=c86328e24bb0f5880c4d4ca6500137e7; path=/; secure; HttpOnly
|
44
|
+
X-Request-Id:
|
45
|
+
- 3648b9115546a75dabf4df8918934a65
|
46
|
+
X-Runtime:
|
47
|
+
- '0.035784'
|
48
|
+
Date:
|
49
|
+
- Thu, 15 May 2014 08:42:39 GMT
|
50
|
+
Connection:
|
51
|
+
- close
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: ''
|
55
|
+
http_version:
|
56
|
+
recorded_at: Thu, 15 May 2014 08:42:39 GMT
|
57
|
+
recorded_with: VCR 2.9.0
|
@@ -56,6 +56,6 @@ http_interactions:
|
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
58
|
string: '{"periods":[{"id":6,"season_id":6,"start_at":"2014-04-14","end_at":"2014-07-15","created_at":"2014-04-14T13:19:05Z","updated_at":"2014-04-25T17:03:17Z"}]}'
|
59
|
-
http_version:
|
59
|
+
http_version:
|
60
60
|
recorded_at: Fri, 25 Apr 2014 17:03:17 GMT
|
61
61
|
recorded_with: VCR 2.9.0
|
@@ -59,6 +59,6 @@ http_interactions:
|
|
59
59
|
body:
|
60
60
|
encoding: US-ASCII
|
61
61
|
string: ! '{"periods":[{"id":1,"season_id":1,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:07:57Z","updated_at":"2014-04-10T13:07:57Z"},{"id":2,"season_id":2,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:02Z","updated_at":"2014-04-10T13:08:02Z"},{"id":3,"season_id":3,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:06Z","updated_at":"2014-04-10T13:08:06Z"},{"id":4,"season_id":4,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:12Z","updated_at":"2014-04-10T13:08:12Z"},{"id":5,"season_id":5,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:16Z","updated_at":"2014-04-10T13:08:16Z"},{"id":6,"season_id":6,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:20Z","updated_at":"2014-04-10T13:08:20Z"},{"id":7,"season_id":7,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:25Z","updated_at":"2014-04-10T13:08:25Z"},{"id":8,"season_id":8,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:29Z","updated_at":"2014-04-10T13:08:29Z"},{"id":9,"season_id":9,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:34Z","updated_at":"2014-04-10T13:08:34Z"},{"id":10,"season_id":10,"start_at":"2014-04-10","end_at":"2014-07-10","created_at":"2014-04-10T13:08:38Z","updated_at":"2014-04-10T13:08:38Z"}]}'
|
62
|
-
http_version:
|
62
|
+
http_version:
|
63
63
|
recorded_at: Fri, 11 Apr 2014 14:18:30 GMT
|
64
64
|
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://bookingsync.dev/api/v3/rentals/2/photos
|
6
|
+
body:
|
7
|
+
encoding: UTF-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
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept:
|
13
|
+
- application/vnd.api+json
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.api+json
|
16
|
+
Authorization:
|
17
|
+
- Bearer <<ACCESS_TOKEN>>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1399640400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '960'
|
31
|
+
Location:
|
32
|
+
- https://bookingsync.dev/api/v3/photos/37
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- '*'
|
35
|
+
Access-Control-Request-Method:
|
36
|
+
- '*'
|
37
|
+
Content-Type:
|
38
|
+
- application/vnd.api+json; charset=utf-8
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge
|
41
|
+
Etag:
|
42
|
+
- '"0b0773b431f2c60694dab2fe4cbd1e2c"'
|
43
|
+
Cache-Control:
|
44
|
+
- max-age=0, private, must-revalidate
|
45
|
+
P3p:
|
46
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
47
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
48
|
+
Set-Cookie:
|
49
|
+
- _BookingSync_session=b6c99c91a21c6a5f7724448256fe6d01; path=/; secure; HttpOnly
|
50
|
+
X-Request-Id:
|
51
|
+
- 861dddefd135e3c306f91e964fb2a9b7
|
52
|
+
X-Runtime:
|
53
|
+
- '0.615572'
|
54
|
+
Date:
|
55
|
+
- Fri, 09 May 2014 12:33:09 GMT
|
56
|
+
Connection:
|
57
|
+
- close
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"photos":[{"id":37,"rental_id":2,"description":{"en":"Funny"},"kind":"livingroom","large_url":"http://bookingsync.dev/files/development/photo/photo/37/large_b0e94d712c4916323d4c7da35635f02e.jpg","normal_url":"http://bookingsync.dev/files/development/photo/photo/37/normal_b0e94d712c4916323d4c7da35635f02e.jpg","thumb_url":"http://bookingsync.dev/files/development/photo/photo/37/thumb_b0e94d712c4916323d4c7da35635f02e.jpg","micro_url":"http://bookingsync.dev/files/development/photo/photo/37/micro_b0e94d712c4916323d4c7da35635f02e.jpg","position":8}]}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Fri, 09 May 2014 12:33:10 GMT
|
63
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://bookingsync.dev/api/v3/rentals/2/photos
|
6
|
+
body:
|
7
|
+
encoding: UTF-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
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept:
|
13
|
+
- application/vnd.api+json
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.api+json
|
16
|
+
Authorization:
|
17
|
+
- Bearer <<ACCESS_TOKEN>>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1399640400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '962'
|
31
|
+
Location:
|
32
|
+
- https://bookingsync.dev/api/v3/photos/35
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- '*'
|
35
|
+
Access-Control-Request-Method:
|
36
|
+
- '*'
|
37
|
+
Content-Type:
|
38
|
+
- application/vnd.api+json; charset=utf-8
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge
|
41
|
+
Etag:
|
42
|
+
- '"df57babb5c78567a8d4f378fdd1614a2"'
|
43
|
+
Cache-Control:
|
44
|
+
- max-age=0, private, must-revalidate
|
45
|
+
P3p:
|
46
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
47
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
48
|
+
Set-Cookie:
|
49
|
+
- _BookingSync_session=4311d2bc52cef56733446754b3292b05; path=/; secure; HttpOnly
|
50
|
+
X-Request-Id:
|
51
|
+
- 7319159e694e892cc010fe61264e313d
|
52
|
+
X-Runtime:
|
53
|
+
- '0.493960'
|
54
|
+
Date:
|
55
|
+
- Fri, 09 May 2014 12:33:05 GMT
|
56
|
+
Connection:
|
57
|
+
- close
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"photos":[{"id":35,"rental_id":2,"description":{"en":null},"kind":"livingroom","large_url":"http://bookingsync.dev/files/development/photo/photo/35/large_c4f99f519298a8beb84fbdf391db639b.jpg","normal_url":"http://bookingsync.dev/files/development/photo/photo/35/normal_c4f99f519298a8beb84fbdf391db639b.jpg","thumb_url":"http://bookingsync.dev/files/development/photo/photo/35/thumb_c4f99f519298a8beb84fbdf391db639b.jpg","micro_url":"http://bookingsync.dev/files/development/photo/photo/35/micro_c4f99f519298a8beb84fbdf391db639b.jpg","position":6}]}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Fri, 09 May 2014 12:33:05 GMT
|
63
|
+
recorded_with: VCR 2.9.0
|