bookingsync-api 0.0.6 → 0.0.7
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/Gemfile +2 -1
- data/Guardfile +3 -6
- data/README.md +11 -3
- data/bookingsync-api.gemspec +2 -2
- data/lib/bookingsync/api.rb +0 -2
- data/lib/bookingsync/api/client.rb +151 -54
- data/lib/bookingsync/api/client/amenities.rb +22 -0
- data/lib/bookingsync/api/client/billing_addresses.rb +22 -0
- data/lib/bookingsync/api/client/bookings.rb +7 -9
- data/lib/bookingsync/api/client/bookings_payments.rb +22 -0
- data/lib/bookingsync/api/client/clients.rb +43 -0
- data/lib/bookingsync/api/client/destinations.rb +22 -0
- data/lib/bookingsync/api/client/inquiries.rb +2 -2
- data/lib/bookingsync/api/client/payments.rb +53 -0
- data/lib/bookingsync/api/client/periods.rb +54 -0
- data/lib/bookingsync/api/client/photos.rb +22 -0
- data/lib/bookingsync/api/client/rates.rb +23 -0
- data/lib/bookingsync/api/client/rates_rules.rb +22 -0
- data/lib/bookingsync/api/client/rates_tables.rb +53 -0
- data/lib/bookingsync/api/client/rental_agreements.rb +50 -0
- data/lib/bookingsync/api/client/rentals.rb +39 -1
- data/lib/bookingsync/api/client/reviews.rb +31 -0
- data/lib/bookingsync/api/client/seasons.rb +53 -0
- data/lib/bookingsync/api/client/special_offers.rb +54 -0
- data/lib/bookingsync/api/relation.rb +87 -0
- data/lib/bookingsync/api/resource.rb +58 -0
- data/lib/bookingsync/api/response.rb +79 -0
- data/lib/bookingsync/api/serializer.rb +100 -0
- data/lib/bookingsync/api/version.rb +1 -1
- data/spec/bookingsync/api/client/amenities_spec.rb +12 -0
- data/spec/bookingsync/api/client/billing_addresses_spec.rb +12 -0
- data/spec/bookingsync/api/client/billings_payments_spec.rb +12 -0
- data/spec/bookingsync/api/client/bookings_spec.rb +10 -8
- data/spec/bookingsync/api/client/clients_spec.rb +55 -0
- data/spec/bookingsync/api/client/destinations_spec.rb +12 -0
- data/spec/bookingsync/api/client/inquiries_spec.rb +1 -1
- data/spec/bookingsync/api/client/payments_spec.rb +56 -0
- data/spec/bookingsync/api/client/periods_spec.rb +61 -0
- data/spec/bookingsync/api/client/photos_spec.rb +12 -0
- data/spec/bookingsync/api/client/rates_rules_spec.rb +13 -0
- data/spec/bookingsync/api/client/rates_spec.rb +12 -0
- data/spec/bookingsync/api/client/rates_tables_spec.rb +59 -0
- data/spec/bookingsync/api/client/rental_agreements_spec.rb +64 -0
- data/spec/bookingsync/api/client/rentals_spec.rb +56 -6
- data/spec/bookingsync/api/client/reviews_spec.rb +33 -0
- data/spec/bookingsync/api/client/seasons_spec.rb +61 -0
- data/spec/bookingsync/api/client/special_offers_spec.rb +63 -0
- data/spec/bookingsync/api/client_spec.rb +31 -10
- data/spec/bookingsync/api/relation_spec.rb +72 -0
- data/spec/bookingsync/api/resource_spec.rb +79 -0
- data/spec/bookingsync/api/response_spec.rb +66 -0
- data/spec/cassettes/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml +72 -0
- data/spec/cassettes/BookingSync_API_Client_BillingAddresses/_billing_addresses/returns_billing_addresses.yml +65 -0
- data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_a_block/yields_block_with_batch_of_bookings.yml +12 -12
- data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_auto_paginate_true/returns_all_bookings_joined_from_many_requests.yml +12 -12
- data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml +3 -3
- data/spec/cassettes/BookingSync_API_Client_Bookings/_clients/returns_clients.yml +66 -0
- data/spec/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml +1 -1
- data/spec/cassettes/BookingSync_API_Client_Bookings/_create_client/creates_a_new_client.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml +18 -14
- data/spec/cassettes/BookingSync_API_Client_Bookings/_edit_client/updates_given_client_by_ID.yml +62 -0
- data/spec/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payments/returns_bookings_payments.yml +65 -0
- data/spec/cassettes/BookingSync_API_Client_Destinations/_destinations/returns_destinations.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Inquiries/_create_inquiry/creates_a_new_inquiry.yml +1 -1
- data/spec/cassettes/BookingSync_API_Client_Inquiries/_inquiries/returns_inquiries.yml +1 -1
- data/spec/cassettes/BookingSync_API_Client_Payments/_cancel_payment/cancels_given_payment.yml +57 -0
- data/spec/cassettes/BookingSync_API_Client_Payments/_create_payment/creates_a_new_payment.yml +63 -0
- data/spec/cassettes/BookingSync_API_Client_Payments/_edit_payment/updates_given_payment_by_ID.yml +61 -0
- data/spec/cassettes/BookingSync_API_Client_Payments/_payments/returns_payments.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Periods/_create_period/creates_a_new_period.yml +63 -0
- data/spec/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +70 -0
- data/spec/cassettes/BookingSync_API_Client_Periods/_edit_period/updates_given_period_by_ID.yml +61 -0
- data/spec/cassettes/BookingSync_API_Client_Periods/_periods/returns_periods.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Photos/_photos/returns_photos.yml +72 -0
- data/spec/cassettes/BookingSync_API_Client_Rates/_rates/returns_rates.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_RatesTables/_create_rates_table/creates_a_new_rates_table.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_RatesTables/_delete_rates_table/deletes_given_rates_table.yml +57 -0
- data/spec/cassettes/BookingSync_API_Client_RatesTables/_edit_rates_table/updates_given_rates_table_by_ID.yml +62 -0
- data/spec/cassettes/BookingSync_API_Client_RatesTables/_rates_tables/returns_rates_tables.yml +74 -0
- data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement/creates_a_new_rental_agreement.yml +63 -0
- data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_booking/creates_a_new_rental_agreement.yml +63 -0
- data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_rental/creates_a_new_rental_agreement.yml +63 -0
- data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreements/returns_rental_agreements.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Rentals/_cancel_rental/cancels_given_rental.yml +57 -0
- data/spec/cassettes/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Rentals/_rental/returns_a_single_rental.yml +67 -0
- data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_associated_photos.yml +152 -0
- data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_links_to_associated_resources.yml +91 -0
- data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/returns_rentals.yml +45 -20
- data/spec/cassettes/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Reviews/_reviews/returns_reviews.yml +83 -0
- data/spec/cassettes/BookingSync_API_Client_Seasons/_create_season/creates_a_new_season.yml +64 -0
- data/spec/cassettes/BookingSync_API_Client_Seasons/_delete_season/deletes_given_season.yml +57 -0
- data/spec/cassettes/BookingSync_API_Client_Seasons/_edit_season/updates_given_season_by_ID.yml +62 -0
- data/spec/cassettes/BookingSync_API_Client_Seasons/_seasons/returns_seasons.yml +74 -0
- data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_create_special_offer/creates_a_new_special_offer.yml +63 -0
- data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_delete_special_offer/deletes_given_special_offer.yml +57 -0
- data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_edit_special_offer/updates_given_special_offer_by_ID.yml +61 -0
- data/spec/cassettes/{BookingSync_API_Client_Rentals/_rentals/with_specified_fields_in_options/returns_rentals_with_filtered_fields.yml → BookingSync_API_Client_SpecialOffers/_special_offers/returns_special_offers.yml} +17 -10
- data/spec/spec_helper.rb +1 -0
- metadata +143 -7
- data/lib/bookingsync/ext/resource.rb +0 -9
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rates_rules
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
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: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1399327200'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '996'
|
31
|
+
Link:
|
32
|
+
- <https://www.bookingsync.com/api/v3/rates_rules?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rates_rules?page=1>;
|
33
|
+
rel="last"
|
34
|
+
X-Total-Pages:
|
35
|
+
- '1'
|
36
|
+
Access-Control-Allow-Origin:
|
37
|
+
- "*"
|
38
|
+
Access-Control-Request-Method:
|
39
|
+
- "*"
|
40
|
+
Content-Type:
|
41
|
+
- application/vnd.api+json; charset=utf-8
|
42
|
+
X-Ua-Compatible:
|
43
|
+
- IE=Edge
|
44
|
+
Etag:
|
45
|
+
- '"fe6c62b3d861528e37782eeb75e83ca6"'
|
46
|
+
Cache-Control:
|
47
|
+
- max-age=0, private, must-revalidate
|
48
|
+
P3p:
|
49
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
50
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
51
|
+
X-Request-Id:
|
52
|
+
- 3ddf4d65541b95731dfc6524df691f9e
|
53
|
+
X-Runtime:
|
54
|
+
- '0.451678'
|
55
|
+
Date:
|
56
|
+
- Mon, 05 May 2014 21:25:25 GMT
|
57
|
+
Connection:
|
58
|
+
- close
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"links":{"rates_rules.seasons":"https://www.bookingsync.com/api/v3/seasons/{rates_rules.seasons}"},"rates_rules":[{"links":{"seasons":[]},"id":1,"rates_table_id":19,"always_applied":true,"percentage":10,"period_name":null,"kind":"late_booking","variables":{"unit":"days","length":10},"start_at":null,"end_at":null,"created_at":"2014-05-05T21:24:56Z","updated_at":"2014-05-05T21:24:56Z"}]}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Mon, 05 May 2014 21:25:25 GMT
|
64
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rates_tables
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"rates_tables":[{"name":"New rate table"}]}'
|
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
|
+
- '1398423600'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '984'
|
31
|
+
Location:
|
32
|
+
- https://www.bookingsync.com/api/v3/rates_tables/42
|
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
|
+
- '"0c650a50d743a26039823cbb90c7d015"'
|
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=b2a3f576a378da6f2e39889cb189f7a1; path=/; secure; HttpOnly
|
50
|
+
X-Request-Id:
|
51
|
+
- 1fd3c9bc59a27179c14119d6cc618aca
|
52
|
+
X-Runtime:
|
53
|
+
- '2.055048'
|
54
|
+
Date:
|
55
|
+
- Fri, 25 Apr 2014 10:41:14 GMT
|
56
|
+
Connection:
|
57
|
+
- close
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"links":{"rates_tables.seasons":"https://www.bookingsync.com/api/v3/seasons/{rates_tables.seasons}","rates_tables.rates_rules":"https://www.bookingsync.com/api/v3/rates_rules/{rates_tables.rates_rules}"},"rates_tables":[{"links":{"seasons":[],"rates_rules":[]},"id":42,"account_id":1,"name":"New
|
61
|
+
rate table","created_at":"2014-04-25T10:41:14Z","updated_at":"2014-04-25T10:41:14Z"}]}'
|
62
|
+
http_version:
|
63
|
+
recorded_at: Fri, 25 Apr 2014 10:41:14 GMT
|
64
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rates_tables/7
|
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
|
+
- '1398423600'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '976'
|
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=455233a19d0e99cd76e5441d2a46afc5; path=/; secure; HttpOnly
|
44
|
+
X-Request-Id:
|
45
|
+
- fa02857c4289672d13ebd0d76ceb5e0c
|
46
|
+
X-Runtime:
|
47
|
+
- '0.077315'
|
48
|
+
Date:
|
49
|
+
- Fri, 25 Apr 2014 10:44:34 GMT
|
50
|
+
Connection:
|
51
|
+
- close
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: ''
|
55
|
+
http_version:
|
56
|
+
recorded_at: Fri, 25 Apr 2014 10:44:34 GMT
|
57
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rates_tables/11
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"rates_tables":[{"name":"Updated rate table"}]}'
|
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: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1398423600'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '973'
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Request-Method:
|
34
|
+
- "*"
|
35
|
+
Content-Type:
|
36
|
+
- application/vnd.api+json; charset=utf-8
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge
|
39
|
+
Etag:
|
40
|
+
- '"6ea22b82aaa5e8dd4d67c799f25a2c1f"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
P3p:
|
44
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
45
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
46
|
+
Set-Cookie:
|
47
|
+
- _BookingSync_session=e67bd134df43976775b9747e877a9519; path=/; secure; HttpOnly
|
48
|
+
X-Request-Id:
|
49
|
+
- 09223fa5083bdb12fa814e3a1774a943
|
50
|
+
X-Runtime:
|
51
|
+
- '0.868142'
|
52
|
+
Date:
|
53
|
+
- Fri, 25 Apr 2014 10:48:09 GMT
|
54
|
+
Connection:
|
55
|
+
- close
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"links":{"rates_tables.seasons":"https://www.bookingsync.com/api/v3/seasons/{rates_tables.seasons}","rates_tables.rates_rules":"https://www.bookingsync.com/api/v3/rates_rules/{rates_tables.rates_rules}"},"rates_tables":[{"links":{"seasons":[6],"rates_rules":[]},"id":11,"account_id":22,"name":"Updated
|
59
|
+
rate table","created_at":"2014-04-14T13:19:04Z","updated_at":"2014-04-25T10:48:08Z"}]}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Fri, 25 Apr 2014 10:48:09 GMT
|
62
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rates_tables
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
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: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '1000'
|
27
|
+
X-Ratelimit-Reset:
|
28
|
+
- '1397649600'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '997'
|
31
|
+
Link:
|
32
|
+
- "<https://www.bookingsync.com/api/v3/rates_tables?page=1>; rel=\"first\",
|
33
|
+
<https://www.bookingsync.com/api/v3/rates_tables?page=1>; rel=\"last\""
|
34
|
+
X-Total-Pages:
|
35
|
+
- '1'
|
36
|
+
Access-Control-Allow-Origin:
|
37
|
+
- "*"
|
38
|
+
Access-Control-Request-Method:
|
39
|
+
- "*"
|
40
|
+
Content-Type:
|
41
|
+
- application/vnd.api+json; charset=utf-8
|
42
|
+
X-Ua-Compatible:
|
43
|
+
- IE=Edge
|
44
|
+
Etag:
|
45
|
+
- "\"81c25f6fbd988a2780b50a43dacd527c\""
|
46
|
+
Cache-Control:
|
47
|
+
- max-age=0, private, must-revalidate
|
48
|
+
P3p:
|
49
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
50
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
51
|
+
X-Request-Id:
|
52
|
+
- 6b6b3fc80d1c57538ec3471f6d38d8c5
|
53
|
+
X-Runtime:
|
54
|
+
- '0.822743'
|
55
|
+
Date:
|
56
|
+
- Wed, 16 Apr 2014 11:59:09 GMT
|
57
|
+
Connection:
|
58
|
+
- close
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: "{\"links\":{\"rates_tables.seasons\":\"https://www.bookingsync.com/api/v3/seasons/{rates_tables.seasons}\",\"rates_tables.rates_rules\":\"https://www.bookingsync.com/api/v3/rates_rules/{rates_tables.rates_rules}\"},\"rates_tables\":[{\"links\":{\"seasons\":[1],\"rates_rules\":[]},\"id\":1,\"account_id\":2,\"name\":\"Rates
|
62
|
+
Table 1\",\"created_at\":\"2014-04-14T13:18:38Z\",\"updated_at\":\"2014-04-14T13:18:39Z\"},{\"links\":{\"seasons\":[2],\"rates_rules\":[]},\"id\":3,\"account_id\":6,\"name\":\"Rates
|
63
|
+
Table 3\",\"created_at\":\"2014-04-14T13:18:43Z\",\"updated_at\":\"2014-04-14T13:18:44Z\"},{\"links\":{\"seasons\":[3],\"rates_rules\":[]},\"id\":5,\"account_id\":10,\"name\":\"Rates
|
64
|
+
Table 5\",\"created_at\":\"2014-04-14T13:18:48Z\",\"updated_at\":\"2014-04-14T13:18:50Z\"},{\"links\":{\"seasons\":[4],\"rates_rules\":[]},\"id\":7,\"account_id\":14,\"name\":\"Rates
|
65
|
+
Table 7\",\"created_at\":\"2014-04-14T13:18:54Z\",\"updated_at\":\"2014-04-14T13:18:55Z\"},{\"links\":{\"seasons\":[5],\"rates_rules\":[]},\"id\":9,\"account_id\":18,\"name\":\"Rates
|
66
|
+
Table 9\",\"created_at\":\"2014-04-14T13:18:59Z\",\"updated_at\":\"2014-04-14T13:19:00Z\"},{\"links\":{\"seasons\":[6],\"rates_rules\":[]},\"id\":11,\"account_id\":22,\"name\":\"Rates
|
67
|
+
Table 11\",\"created_at\":\"2014-04-14T13:19:04Z\",\"updated_at\":\"2014-04-14T13:19:05Z\"},{\"links\":{\"seasons\":[7],\"rates_rules\":[]},\"id\":13,\"account_id\":26,\"name\":\"Rates
|
68
|
+
Table 13\",\"created_at\":\"2014-04-14T13:19:09Z\",\"updated_at\":\"2014-04-14T13:19:10Z\"},{\"links\":{\"seasons\":[8],\"rates_rules\":[]},\"id\":15,\"account_id\":30,\"name\":\"Rates
|
69
|
+
Table 15\",\"created_at\":\"2014-04-14T13:19:15Z\",\"updated_at\":\"2014-04-14T13:19:16Z\"},{\"links\":{\"seasons\":[9],\"rates_rules\":[]},\"id\":17,\"account_id\":34,\"name\":\"Rates
|
70
|
+
Table 17\",\"created_at\":\"2014-04-14T13:19:20Z\",\"updated_at\":\"2014-04-14T13:19:21Z\"},{\"links\":{\"seasons\":[10],\"rates_rules\":[]},\"id\":19,\"account_id\":38,\"name\":\"Rates
|
71
|
+
Table 19\",\"created_at\":\"2014-04-14T13:19:25Z\",\"updated_at\":\"2014-04-14T13:19:26Z\"}]}"
|
72
|
+
http_version:
|
73
|
+
recorded_at: Wed, 16 Apr 2014 11:59:09 GMT
|
74
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://bookingsync.com/api/v3/rental_agreements
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"rental_agreements\":[{\"body\":\"Lorem ipsum\"}]}"
|
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
|
+
- '1398866400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '993'
|
31
|
+
Location:
|
32
|
+
- https://bookingsync.com/api/v3/rental_agreements/17
|
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
|
+
- "\"a6059dbe1dcad8f6945331855d23364b\""
|
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=da79d84157915f3c26f3dfdd12149498; path=/; secure; HttpOnly
|
50
|
+
X-Request-Id:
|
51
|
+
- 411147faa91b01cc132042d3b100f280
|
52
|
+
X-Runtime:
|
53
|
+
- '0.025498'
|
54
|
+
Date:
|
55
|
+
- Wed, 30 Apr 2014 13:45:28 GMT
|
56
|
+
Connection:
|
57
|
+
- close
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: "{\"rental_agreements\":[{\"id\":17,\"body\":\"Lorem ipsum\",\"created_at\":\"2014-04-30T13:45:28Z\",\"updated_at\":\"2014-04-30T13:45:28Z\"}]}"
|
61
|
+
http_version:
|
62
|
+
recorded_at: Wed, 30 Apr 2014 13:45:28 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.com/api/v3/rental_agreements
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"booking_id\":2,\"rental_agreements\":[{\"body\":\"Lorem ipsum\"}]}"
|
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
|
+
- '1398866400'
|
29
|
+
X-Ratelimit-Remaining:
|
30
|
+
- '992'
|
31
|
+
Location:
|
32
|
+
- https://bookingsync.com/api/v3/rental_agreements/18
|
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
|
+
- "\"1a10a99e581c6ea038587ddf013060ca\""
|
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=a3b0d42098813094f5dfcb3cb3ba8809; path=/; secure; HttpOnly
|
50
|
+
X-Request-Id:
|
51
|
+
- eabe3dff06256bcc210a17e8532eeebf
|
52
|
+
X-Runtime:
|
53
|
+
- '0.052492'
|
54
|
+
Date:
|
55
|
+
- Wed, 30 Apr 2014 13:50:50 GMT
|
56
|
+
Connection:
|
57
|
+
- close
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: "{\"rental_agreements\":[{\"id\":18,\"body\":\"Lorem ipsum\",\"created_at\":\"2014-04-30T13:50:50Z\",\"updated_at\":\"2014-04-30T13:50:50Z\"}]}"
|
61
|
+
http_version:
|
62
|
+
recorded_at: Wed, 30 Apr 2014 13:50:50 GMT
|
63
|
+
recorded_with: VCR 2.9.0
|