bookingsync-api 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/README.md +44 -18
- data/lib/bookingsync/api/client.rb +0 -2
- data/lib/bookingsync/api/client/accounts.rb +11 -0
- data/lib/bookingsync/api/client/bathrooms.rb +11 -0
- data/lib/bookingsync/api/client/bedrooms.rb +11 -0
- data/lib/bookingsync/api/client/bookings_fees.rb +11 -0
- data/lib/bookingsync/api/client/bookings_payments.rb +11 -0
- data/lib/bookingsync/api/client/bookings_taxes.rb +11 -0
- data/lib/bookingsync/api/client/clients.rb +11 -0
- data/lib/bookingsync/api/client/destinations.rb +11 -0
- data/lib/bookingsync/api/client/fees.rb +11 -0
- data/lib/bookingsync/api/client/inquiries.rb +11 -0
- data/lib/bookingsync/api/client/payments.rb +11 -0
- data/lib/bookingsync/api/client/periods.rb +11 -0
- data/lib/bookingsync/api/client/photos.rb +11 -0
- data/lib/bookingsync/api/client/rates.rb +11 -0
- data/lib/bookingsync/api/client/rates_rules.rb +44 -0
- data/lib/bookingsync/api/client/rates_tables.rb +11 -0
- data/lib/bookingsync/api/client/rental_agreements.rb +11 -0
- data/lib/bookingsync/api/client/rentals_amenities.rb +23 -0
- data/lib/bookingsync/api/client/rentals_fees.rb +11 -0
- data/lib/bookingsync/api/client/reviews.rb +11 -0
- data/lib/bookingsync/api/client/seasons.rb +11 -0
- data/lib/bookingsync/api/client/sources.rb +11 -0
- data/lib/bookingsync/api/client/special_offers.rb +11 -0
- data/lib/bookingsync/api/client/taxes.rb +11 -0
- data/lib/bookingsync/api/version.rb +1 -1
- data/spec/bookingsync/api/client/accounts_spec.rb +7 -0
- data/spec/bookingsync/api/client/bathrooms_spec.rb +7 -0
- data/spec/bookingsync/api/client/bedrooms_spec.rb +7 -0
- data/spec/bookingsync/api/client/bookings_fees_spec.rb +9 -2
- data/spec/bookingsync/api/client/{billings_payments_spec.rb → bookings_payments_spec.rb} +7 -0
- data/spec/bookingsync/api/client/bookings_taxes_spec.rb +9 -2
- data/spec/bookingsync/api/client/clients_spec.rb +16 -13
- data/spec/bookingsync/api/client/destinations_spec.rb +7 -0
- data/spec/bookingsync/api/client/fees_spec.rb +9 -2
- data/spec/bookingsync/api/client/inquiries_spec.rb +7 -0
- data/spec/bookingsync/api/client/payments_spec.rb +7 -0
- data/spec/bookingsync/api/client/periods_spec.rb +7 -0
- data/spec/bookingsync/api/client/photos_spec.rb +7 -0
- data/spec/bookingsync/api/client/rates_rules_spec.rb +59 -0
- data/spec/bookingsync/api/client/rates_spec.rb +7 -0
- data/spec/bookingsync/api/client/rates_tables_spec.rb +7 -0
- data/spec/bookingsync/api/client/rental_agreements_spec.rb +7 -0
- data/spec/bookingsync/api/client/rentals_amenities_spec.rb +36 -8
- data/spec/bookingsync/api/client/rentals_fees_spec.rb +9 -2
- data/spec/bookingsync/api/client/reviews_spec.rb +7 -0
- data/spec/bookingsync/api/client/seasons_spec.rb +7 -0
- data/spec/bookingsync/api/client/sources_spec.rb +7 -0
- data/spec/bookingsync/api/client/special_offers_spec.rb +7 -0
- data/spec/bookingsync/api/client/taxes_spec.rb +9 -2
- data/spec/fixtures/cassettes/BookingSync_API_Client_Accounts/_account/returns_a_single_account.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_bathroom/returns_a_single_bathroom.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_bedroom/returns_a_single_bedroom.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsFees/_bookings_fee/returns_a_single_bookings_fee.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payment/returns_a_single_bookings_payment.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsTaxes/_bookings_tax/returns_a_single_bookings_tax.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_client/returns_a_single_client.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_clients/returns_clients.yml +87 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_create_client/creates_a_new_client.yml +76 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_edit_client/updates_given_client_by_ID.yml +74 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Destinations/_destination/returns_a_single_destination.yml +83 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Fees/_fee/returns_a_single_fee.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Inquiries/_inquiry/returns_a_single_inquiry.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_payment/returns_a_single_payment.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_period/returns_a_single_period.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_photo/returns_a_single_photo.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Rates/_rate/returns_a_single_rate.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_create_rates_rule/creates_a_new_rates_rule.yml +75 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_delete_rates_rule/deletes_given_rates_rule.yml +67 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_edit_rates_rule/updates_given_rates_rule_by_ID.yml +73 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rule/returns_a_single_rates_rule.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +38 -22
- data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_rates_table/returns_a_single_rates_table.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreement/returns_a_single_rental_agreement.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rentals_amenity/{creates_a_new_rental_s_amenity.yml → creates_a_new_rentals_amenity.yml} +31 -23
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_delete_rentals_amenity/deletes_given_rentals_amenity.yml +67 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/{_create_rentals_amenity/returns_newly_created_rental_s_amenity.yml → _edit_rentals_amenity/updates_given_rentals_amenity_by_ID.yml} +34 -27
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsFees/_rentals_fee/returns_a_single_rentals_fee.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_review/returns_a_single_review.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_season/returns_a_single_season.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_source/returns_a_single_source.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_special_offer/returns_a_single_special_offer.yml +81 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Taxes/_tax/returns_a_single_tax.yml +81 -0
- metadata +68 -19
- data/lib/bookingsync/api/client/billing_addresses.rb +0 -22
- data/spec/bookingsync/api/client/billing_addresses_spec.rb +0 -12
- data/spec/fixtures/cassettes/BookingSync_API_Client_BillingAddresses/_billing_addresses/returns_billing_addresses.yml +0 -65
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_clients/returns_clients.yml +0 -66
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_client/creates_a_new_client.yml +0 -64
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_edit_client/updates_given_client_by_ID.yml +0 -62
data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
-
|
11
|
+
- BookingSync API gem v0.0.29
|
12
12
|
Accept:
|
13
13
|
- application/vnd.api+json
|
14
14
|
Content-Type:
|
@@ -22,43 +22,59 @@ http_interactions:
|
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Wed, 09 Sep 2015 20:29:41 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.api+json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000
|
39
|
+
X-Frame-Options:
|
40
|
+
- SAMEORIGIN
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
25
45
|
X-Ratelimit-Limit:
|
26
46
|
- '1000'
|
27
47
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
48
|
+
- '1441832400'
|
29
49
|
X-Ratelimit-Remaining:
|
30
|
-
- '
|
50
|
+
- '948'
|
31
51
|
Link:
|
32
52
|
- <https://www.bookingsync.com/api/v3/rates_rules?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rates_rules?page=1>;
|
33
53
|
rel="last"
|
34
54
|
X-Total-Pages:
|
35
55
|
- '1'
|
36
|
-
|
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
|
56
|
+
X-Total-Count:
|
57
|
+
- '2'
|
44
58
|
Etag:
|
45
|
-
- '"
|
59
|
+
- '"94837e570637bb96c6fc15045ec86d19"'
|
46
60
|
Cache-Control:
|
47
61
|
- max-age=0, private, must-revalidate
|
48
62
|
P3p:
|
49
63
|
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
50
64
|
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
65
|
+
Set-Cookie:
|
66
|
+
- ahoy_track=true; path=/; secure
|
67
|
+
- ahoy_visit=6b4265c9-5ce5-4c04-a15c-2585c425268a; path=/; expires=Wed, 16 Sep
|
68
|
+
2015 20:29:41 -0000; secure
|
69
|
+
- ahoy_visitor=e77e900b-4c8e-4c73-af9b-b66438067b52; path=/; expires=Sat, 09
|
70
|
+
Sep 2017 20:29:41 -0000; secure
|
51
71
|
X-Request-Id:
|
52
|
-
-
|
72
|
+
- 034d9a8e-e26e-430a-8549-194beb2368f0
|
53
73
|
X-Runtime:
|
54
|
-
- '0.
|
55
|
-
Date:
|
56
|
-
- Mon, 05 May 2014 21:25:25 GMT
|
57
|
-
Connection:
|
58
|
-
- close
|
74
|
+
- '0.061595'
|
59
75
|
body:
|
60
76
|
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,"
|
62
|
-
http_version:
|
63
|
-
recorded_at:
|
64
|
-
recorded_with: VCR 2.9.
|
77
|
+
string: '{"links":{"rates_rules.rates_table":"https://www.bookingsync.com/api/v3/rates_tables/{rates_rules.rates_table}","rates_rules.seasons":"https://www.bookingsync.com/api/v3/seasons/{rates_rules.seasons}"},"rates_rules":[{"links":{"rates_table":274,"seasons":[1802,1803]},"id":250,"always_applied":false,"percentage":null,"period_name":"","kind":"prevent_if_booked_ahead_of","variables":{"days":[],"length":1,"unit":"years"},"start_date":null,"end_date":null,"created_at":"2014-08-08T18:34:10Z","updated_at":"2014-11-17T23:03:39Z"},{"links":{"rates_table":274,"seasons":[]},"id":252,"always_applied":true,"percentage":"-7.0","period_name":"","kind":"stay_at_least","variables":{"days":[],"length":21,"unit":"days"},"start_date":null,"end_date":null,"created_at":"2014-08-08T18:34:37Z","updated_at":"2014-11-17T23:03:40Z"}],"meta":{}}'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Wed, 09 Sep 2015 20:29:42 GMT
|
80
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rates_tables/274
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BookingSync API gem v0.0.29
|
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
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Wed, 09 Sep 2015 20:36:47 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.api+json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000
|
39
|
+
X-Frame-Options:
|
40
|
+
- SAMEORIGIN
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Ratelimit-Limit:
|
46
|
+
- '1000'
|
47
|
+
X-Ratelimit-Reset:
|
48
|
+
- '1441832400'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '932'
|
51
|
+
Link:
|
52
|
+
- <https://www.bookingsync.com/api/v3/rates_tables/274?page=1>; rel="first",
|
53
|
+
<https://www.bookingsync.com/api/v3/rates_tables/274?page=1>; rel="last"
|
54
|
+
X-Total-Pages:
|
55
|
+
- '1'
|
56
|
+
X-Total-Count:
|
57
|
+
- '1'
|
58
|
+
Etag:
|
59
|
+
- '"3cc5c74f278143419a0f3440a771c075"'
|
60
|
+
Cache-Control:
|
61
|
+
- max-age=0, private, must-revalidate
|
62
|
+
P3p:
|
63
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
64
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
65
|
+
Set-Cookie:
|
66
|
+
- ahoy_track=true; path=/; secure
|
67
|
+
- ahoy_visit=be1d08b2-074a-41a8-8365-90dca83a4415; path=/; expires=Wed, 16 Sep
|
68
|
+
2015 20:36:47 -0000; secure
|
69
|
+
- ahoy_visitor=a79b6525-df91-4b73-867b-8512a07f5d6e; path=/; expires=Sat, 09
|
70
|
+
Sep 2017 20:36:47 -0000; secure
|
71
|
+
X-Request-Id:
|
72
|
+
- 1a9f6ed1-02b8-4563-9a41-9ce0452b5fc4
|
73
|
+
X-Runtime:
|
74
|
+
- '0.080432'
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"links":{"rates_tables.account":"https://www.bookingsync.com/api/v3/accounts/{rates_tables.account}","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.periods":"https://www.bookingsync.com/api/v3/periods/{rates_tables.periods}","rates_tables.rentals":"https://www.bookingsync.com/api/v3/rentals/{rates_tables.rentals}"},"rates_tables":[{"links":{"account":3837,"seasons":[1806,1805,1804,1803,1802],"rates_rules":[13777,252],"periods":[4727,4729,4730,4731,4732,4733,4734,4735,4736,4737,4738,4739],"rentals":[5116,5117]},"id":274,"name":"Saturday","created_at":"2014-08-08T18:29:36Z","updated_at":"2015-09-09T20:36:12Z","shared":true}]}'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Wed, 09 Sep 2015 20:36:48 GMT
|
80
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rental_agreements/6905
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BookingSync API gem v0.0.29
|
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
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Wed, 09 Sep 2015 20:39:06 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.api+json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000
|
39
|
+
X-Frame-Options:
|
40
|
+
- SAMEORIGIN
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Ratelimit-Limit:
|
46
|
+
- '1000'
|
47
|
+
X-Ratelimit-Reset:
|
48
|
+
- '1441832400'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '928'
|
51
|
+
Link:
|
52
|
+
- <https://www.bookingsync.com/api/v3/rental_agreements/6905?page=1>; rel="first",
|
53
|
+
<https://www.bookingsync.com/api/v3/rental_agreements/6905?page=1>; rel="last"
|
54
|
+
X-Total-Pages:
|
55
|
+
- '1'
|
56
|
+
X-Total-Count:
|
57
|
+
- '1'
|
58
|
+
Etag:
|
59
|
+
- '"29c9725e89fd0d39cd8660c5e530cf23"'
|
60
|
+
Cache-Control:
|
61
|
+
- max-age=0, private, must-revalidate
|
62
|
+
P3p:
|
63
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
64
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
65
|
+
Set-Cookie:
|
66
|
+
- ahoy_track=true; path=/; secure
|
67
|
+
- ahoy_visit=c92eb1d4-8ab7-4696-ae43-38300eeeb720; path=/; expires=Wed, 16 Sep
|
68
|
+
2015 20:39:06 -0000; secure
|
69
|
+
- ahoy_visitor=4add8309-6680-4b94-92cd-7b99b8382af9; path=/; expires=Sat, 09
|
70
|
+
Sep 2017 20:39:06 -0000; secure
|
71
|
+
X-Request-Id:
|
72
|
+
- 7b985ea0-774f-4d06-8453-c432382b13c0
|
73
|
+
X-Runtime:
|
74
|
+
- '0.069653'
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"rental_agreements":[{"id":6905,"body":"test","created_at":"2015-09-09T20:38:42Z","updated_at":"2015-09-09T20:38:42Z"}]}'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Wed, 09 Sep 2015 20:39:07 GMT
|
80
|
+
recorded_with: VCR 2.9.2
|
@@ -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/rentals_amenities
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"rentals_amenities":[{"amenity_id":
|
8
|
+
string: '{"rentals_amenities":[{"amenity_id":44,"details_en":"Details"}]}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BookingSync API gem v0.0.
|
11
|
+
- BookingSync API gem v0.0.29
|
12
12
|
Accept:
|
13
13
|
- application/vnd.api+json
|
14
14
|
Content-Type:
|
@@ -22,6 +22,20 @@ http_interactions:
|
|
22
22
|
code: 201
|
23
23
|
message: Created
|
24
24
|
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Wed, 09 Sep 2015 20:46:30 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.api+json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 201 Created
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000
|
25
39
|
X-Frame-Options:
|
26
40
|
- SAMEORIGIN
|
27
41
|
X-Xss-Protection:
|
@@ -31,37 +45,31 @@ http_interactions:
|
|
31
45
|
X-Ratelimit-Limit:
|
32
46
|
- '1000'
|
33
47
|
X-Ratelimit-Reset:
|
34
|
-
- '
|
48
|
+
- '1441832400'
|
35
49
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
50
|
+
- '915'
|
37
51
|
Location:
|
38
|
-
- https://www.bookingsync.com/api/v3/rentals_amenities/
|
39
|
-
Content-Type:
|
40
|
-
- application/vnd.api+json; charset=utf-8
|
52
|
+
- https://www.bookingsync.com/api/v3/rentals_amenities/32833
|
41
53
|
Etag:
|
42
|
-
- '"
|
54
|
+
- '"aba295b26ac136614052adb7f76ac748"'
|
43
55
|
Cache-Control:
|
44
56
|
- max-age=0, private, must-revalidate
|
45
57
|
P3p:
|
46
58
|
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
47
59
|
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
48
60
|
Set-Cookie:
|
49
|
-
- ahoy_track=true; path
|
50
|
-
- ahoy_visit=
|
51
|
-
2015
|
52
|
-
- ahoy_visitor=
|
53
|
-
|
61
|
+
- ahoy_track=true; path=/; secure
|
62
|
+
- ahoy_visit=94177a9f-c500-4713-98dd-07bd972b8ea3; path=/; expires=Wed, 16 Sep
|
63
|
+
2015 20:46:30 -0000; secure
|
64
|
+
- ahoy_visitor=341d4e5e-6646-474e-ba90-44b131b3e711; path=/; expires=Sat, 09
|
65
|
+
Sep 2017 20:46:30 -0000; secure
|
54
66
|
X-Request-Id:
|
55
|
-
-
|
67
|
+
- 07e2f4ed-43f5-46ea-b880-9a49153d0e17
|
56
68
|
X-Runtime:
|
57
|
-
- '0.
|
58
|
-
Date:
|
59
|
-
- Sat, 27 Jun 2015 18:35:11 GMT
|
60
|
-
Connection:
|
61
|
-
- close
|
69
|
+
- '0.080690'
|
62
70
|
body:
|
63
71
|
encoding: UTF-8
|
64
|
-
string: '{"links":{"rentals_amenities.amenity":"https://www.bookingsync.com/api/v3/amenities/{rentals_amenities.amenity}","rentals_amenities.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_amenities.rental}"},"rentals_amenities":[{"links":{"amenity":
|
72
|
+
string: '{"links":{"rentals_amenities.amenity":"https://www.bookingsync.com/api/v3/amenities/{rentals_amenities.amenity}","rentals_amenities.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_amenities.rental}"},"rentals_amenities":[{"links":{"amenity":44,"rental":5116},"id":32833,"created_at":"2015-09-09T20:46:30Z","updated_at":"2015-09-09T20:46:30Z","details":{"en":"Details"}}]}'
|
65
73
|
http_version:
|
66
|
-
recorded_at:
|
67
|
-
recorded_with: VCR 2.9.
|
74
|
+
recorded_at: Wed, 09 Sep 2015 20:46:31 GMT
|
75
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals_amenities/32833
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BookingSync API gem v0.0.29
|
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
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Wed, 09 Sep 2015 20:48:42 GMT
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 204 No Content
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000
|
35
|
+
X-Frame-Options:
|
36
|
+
- SAMEORIGIN
|
37
|
+
X-Xss-Protection:
|
38
|
+
- 1; mode=block
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '1000'
|
43
|
+
X-Ratelimit-Reset:
|
44
|
+
- '1441832400'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '908'
|
47
|
+
Cache-Control:
|
48
|
+
- no-cache
|
49
|
+
P3p:
|
50
|
+
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
51
|
+
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
52
|
+
Set-Cookie:
|
53
|
+
- ahoy_track=true; path=/; secure
|
54
|
+
- ahoy_visit=1a31893f-d2ee-4133-a050-25799a74f033; path=/; expires=Wed, 16 Sep
|
55
|
+
2015 20:48:42 -0000; secure
|
56
|
+
- ahoy_visitor=92d08fcc-e985-4566-b200-179835716c2c; path=/; expires=Sat, 09
|
57
|
+
Sep 2017 20:48:42 -0000; secure
|
58
|
+
X-Request-Id:
|
59
|
+
- b112bf2c-f281-4e35-a0e1-6275e6fdc69e
|
60
|
+
X-Runtime:
|
61
|
+
- '0.069645'
|
62
|
+
body:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: ''
|
65
|
+
http_version:
|
66
|
+
recorded_at: Wed, 09 Sep 2015 20:48:43 GMT
|
67
|
+
recorded_with: VCR 2.9.2
|
@@ -1,14 +1,14 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri: https://www.bookingsync.com/api/v3/
|
4
|
+
method: put
|
5
|
+
uri: https://www.bookingsync.com/api/v3/rentals_amenities/6159
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"rentals_amenities":[{"
|
8
|
+
string: '{"rentals_amenities":[{"details_en":"New Details"}]}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BookingSync API gem v0.0.
|
11
|
+
- BookingSync API gem v0.0.29
|
12
12
|
Accept:
|
13
13
|
- application/vnd.api+json
|
14
14
|
Content-Type:
|
@@ -19,9 +19,23 @@ http_interactions:
|
|
19
19
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
|
-
code:
|
23
|
-
message:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
24
|
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Wed, 09 Sep 2015 20:48:41 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.api+json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000
|
25
39
|
X-Frame-Options:
|
26
40
|
- SAMEORIGIN
|
27
41
|
X-Xss-Protection:
|
@@ -31,37 +45,30 @@ http_interactions:
|
|
31
45
|
X-Ratelimit-Limit:
|
32
46
|
- '1000'
|
33
47
|
X-Ratelimit-Reset:
|
34
|
-
- '
|
48
|
+
- '1441832400'
|
35
49
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
37
|
-
Location:
|
38
|
-
- https://www.bookingsync.com/api/v3/rentals_amenities/5
|
39
|
-
Content-Type:
|
40
|
-
- application/vnd.api+json; charset=utf-8
|
50
|
+
- '909'
|
41
51
|
Etag:
|
42
|
-
- '"
|
52
|
+
- '"175931c11ccc557ce07e0c60f043b57e"'
|
43
53
|
Cache-Control:
|
44
54
|
- max-age=0, private, must-revalidate
|
45
55
|
P3p:
|
46
56
|
- CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
|
47
57
|
OUR SAMi OTRo UNRo PUBi IND UNI STA"
|
48
58
|
Set-Cookie:
|
49
|
-
- ahoy_track=true; path
|
50
|
-
- ahoy_visit=
|
51
|
-
2015
|
52
|
-
- ahoy_visitor=
|
53
|
-
|
59
|
+
- ahoy_track=true; path=/; secure
|
60
|
+
- ahoy_visit=7f5d1946-ad28-474a-b7ae-d6cf8ed9201b; path=/; expires=Wed, 16 Sep
|
61
|
+
2015 20:48:41 -0000; secure
|
62
|
+
- ahoy_visitor=d01538fc-5903-4680-b1b4-4536d654b562; path=/; expires=Sat, 09
|
63
|
+
Sep 2017 20:48:41 -0000; secure
|
54
64
|
X-Request-Id:
|
55
|
-
-
|
65
|
+
- ff51e414-9f3f-4cdc-bf4e-da017eedf72c
|
56
66
|
X-Runtime:
|
57
|
-
- '0.
|
58
|
-
Date:
|
59
|
-
- Sat, 27 Jun 2015 18:35:11 GMT
|
60
|
-
Connection:
|
61
|
-
- close
|
67
|
+
- '0.126405'
|
62
68
|
body:
|
63
69
|
encoding: UTF-8
|
64
|
-
string: '{"links":{"rentals_amenities.amenity":"https://www.bookingsync.com/api/v3/amenities/{rentals_amenities.amenity}","rentals_amenities.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_amenities.rental}"},"rentals_amenities":[{"links":{"amenity":
|
70
|
+
string: '{"links":{"rentals_amenities.amenity":"https://www.bookingsync.com/api/v3/amenities/{rentals_amenities.amenity}","rentals_amenities.rental":"https://www.bookingsync.com/api/v3/rentals/{rentals_amenities.rental}"},"rentals_amenities":[{"links":{"amenity":32,"rental":5117},"id":6159,"created_at":"2014-08-08T19:30:20Z","updated_at":"2015-09-09T20:48:41Z","details":{"en":"New
|
71
|
+
Details"}}]}'
|
65
72
|
http_version:
|
66
|
-
recorded_at:
|
67
|
-
recorded_with: VCR 2.9.
|
73
|
+
recorded_at: Wed, 09 Sep 2015 20:48:42 GMT
|
74
|
+
recorded_with: VCR 2.9.2
|