bookingsync-api 0.0.29 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -1
  3. data/README.md +44 -18
  4. data/lib/bookingsync/api/client.rb +0 -2
  5. data/lib/bookingsync/api/client/accounts.rb +11 -0
  6. data/lib/bookingsync/api/client/bathrooms.rb +11 -0
  7. data/lib/bookingsync/api/client/bedrooms.rb +11 -0
  8. data/lib/bookingsync/api/client/bookings_fees.rb +11 -0
  9. data/lib/bookingsync/api/client/bookings_payments.rb +11 -0
  10. data/lib/bookingsync/api/client/bookings_taxes.rb +11 -0
  11. data/lib/bookingsync/api/client/clients.rb +11 -0
  12. data/lib/bookingsync/api/client/destinations.rb +11 -0
  13. data/lib/bookingsync/api/client/fees.rb +11 -0
  14. data/lib/bookingsync/api/client/inquiries.rb +11 -0
  15. data/lib/bookingsync/api/client/payments.rb +11 -0
  16. data/lib/bookingsync/api/client/periods.rb +11 -0
  17. data/lib/bookingsync/api/client/photos.rb +11 -0
  18. data/lib/bookingsync/api/client/rates.rb +11 -0
  19. data/lib/bookingsync/api/client/rates_rules.rb +44 -0
  20. data/lib/bookingsync/api/client/rates_tables.rb +11 -0
  21. data/lib/bookingsync/api/client/rental_agreements.rb +11 -0
  22. data/lib/bookingsync/api/client/rentals_amenities.rb +23 -0
  23. data/lib/bookingsync/api/client/rentals_fees.rb +11 -0
  24. data/lib/bookingsync/api/client/reviews.rb +11 -0
  25. data/lib/bookingsync/api/client/seasons.rb +11 -0
  26. data/lib/bookingsync/api/client/sources.rb +11 -0
  27. data/lib/bookingsync/api/client/special_offers.rb +11 -0
  28. data/lib/bookingsync/api/client/taxes.rb +11 -0
  29. data/lib/bookingsync/api/version.rb +1 -1
  30. data/spec/bookingsync/api/client/accounts_spec.rb +7 -0
  31. data/spec/bookingsync/api/client/bathrooms_spec.rb +7 -0
  32. data/spec/bookingsync/api/client/bedrooms_spec.rb +7 -0
  33. data/spec/bookingsync/api/client/bookings_fees_spec.rb +9 -2
  34. data/spec/bookingsync/api/client/{billings_payments_spec.rb → bookings_payments_spec.rb} +7 -0
  35. data/spec/bookingsync/api/client/bookings_taxes_spec.rb +9 -2
  36. data/spec/bookingsync/api/client/clients_spec.rb +16 -13
  37. data/spec/bookingsync/api/client/destinations_spec.rb +7 -0
  38. data/spec/bookingsync/api/client/fees_spec.rb +9 -2
  39. data/spec/bookingsync/api/client/inquiries_spec.rb +7 -0
  40. data/spec/bookingsync/api/client/payments_spec.rb +7 -0
  41. data/spec/bookingsync/api/client/periods_spec.rb +7 -0
  42. data/spec/bookingsync/api/client/photos_spec.rb +7 -0
  43. data/spec/bookingsync/api/client/rates_rules_spec.rb +59 -0
  44. data/spec/bookingsync/api/client/rates_spec.rb +7 -0
  45. data/spec/bookingsync/api/client/rates_tables_spec.rb +7 -0
  46. data/spec/bookingsync/api/client/rental_agreements_spec.rb +7 -0
  47. data/spec/bookingsync/api/client/rentals_amenities_spec.rb +36 -8
  48. data/spec/bookingsync/api/client/rentals_fees_spec.rb +9 -2
  49. data/spec/bookingsync/api/client/reviews_spec.rb +7 -0
  50. data/spec/bookingsync/api/client/seasons_spec.rb +7 -0
  51. data/spec/bookingsync/api/client/sources_spec.rb +7 -0
  52. data/spec/bookingsync/api/client/special_offers_spec.rb +7 -0
  53. data/spec/bookingsync/api/client/taxes_spec.rb +9 -2
  54. data/spec/fixtures/cassettes/BookingSync_API_Client_Accounts/_account/returns_a_single_account.yml +80 -0
  55. data/spec/fixtures/cassettes/BookingSync_API_Client_Bathrooms/_bathroom/returns_a_single_bathroom.yml +81 -0
  56. data/spec/fixtures/cassettes/BookingSync_API_Client_Bedrooms/_bedroom/returns_a_single_bedroom.yml +81 -0
  57. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsFees/_bookings_fee/returns_a_single_bookings_fee.yml +81 -0
  58. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payment/returns_a_single_bookings_payment.yml +80 -0
  59. data/spec/fixtures/cassettes/BookingSync_API_Client_BookingsTaxes/_bookings_tax/returns_a_single_bookings_tax.yml +81 -0
  60. data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_client/returns_a_single_client.yml +81 -0
  61. data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_clients/returns_clients.yml +87 -0
  62. data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_create_client/creates_a_new_client.yml +76 -0
  63. data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_edit_client/updates_given_client_by_ID.yml +74 -0
  64. data/spec/fixtures/cassettes/BookingSync_API_Client_Destinations/_destination/returns_a_single_destination.yml +83 -0
  65. data/spec/fixtures/cassettes/BookingSync_API_Client_Fees/_fee/returns_a_single_fee.yml +81 -0
  66. data/spec/fixtures/cassettes/BookingSync_API_Client_Inquiries/_inquiry/returns_a_single_inquiry.yml +80 -0
  67. data/spec/fixtures/cassettes/BookingSync_API_Client_Payments/_payment/returns_a_single_payment.yml +80 -0
  68. data/spec/fixtures/cassettes/BookingSync_API_Client_Periods/_period/returns_a_single_period.yml +80 -0
  69. data/spec/fixtures/cassettes/BookingSync_API_Client_Photos/_photo/returns_a_single_photo.yml +80 -0
  70. data/spec/fixtures/cassettes/BookingSync_API_Client_Rates/_rate/returns_a_single_rate.yml +80 -0
  71. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_create_rates_rule/creates_a_new_rates_rule.yml +75 -0
  72. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_delete_rates_rule/deletes_given_rates_rule.yml +67 -0
  73. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_edit_rates_rule/updates_given_rates_rule_by_ID.yml +73 -0
  74. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rule/returns_a_single_rates_rule.yml +80 -0
  75. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +38 -22
  76. data/spec/fixtures/cassettes/BookingSync_API_Client_RatesTables/_rates_table/returns_a_single_rates_table.yml +80 -0
  77. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreement/returns_a_single_rental_agreement.yml +80 -0
  78. 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
  79. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_delete_rentals_amenity/deletes_given_rentals_amenity.yml +67 -0
  80. 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
  81. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsFees/_rentals_fee/returns_a_single_rentals_fee.yml +81 -0
  82. data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_review/returns_a_single_review.yml +81 -0
  83. data/spec/fixtures/cassettes/BookingSync_API_Client_Seasons/_season/returns_a_single_season.yml +81 -0
  84. data/spec/fixtures/cassettes/BookingSync_API_Client_Sources/_source/returns_a_single_source.yml +80 -0
  85. data/spec/fixtures/cassettes/BookingSync_API_Client_SpecialOffers/_special_offer/returns_a_single_special_offer.yml +81 -0
  86. data/spec/fixtures/cassettes/BookingSync_API_Client_Taxes/_tax/returns_a_single_tax.yml +81 -0
  87. metadata +68 -19
  88. data/lib/bookingsync/api/client/billing_addresses.rb +0 -22
  89. data/spec/bookingsync/api/client/billing_addresses_spec.rb +0 -12
  90. data/spec/fixtures/cassettes/BookingSync_API_Client_BillingAddresses/_billing_addresses/returns_billing_addresses.yml +0 -65
  91. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_clients/returns_clients.yml +0 -66
  92. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_client/creates_a_new_client.yml +0 -64
  93. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_edit_client/updates_given_client_by_ID.yml +0 -62
@@ -0,0 +1,80 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/photos/5793
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:22:52 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
+ - '960'
51
+ Link:
52
+ - <https://www.bookingsync.com/api/v3/photos/5793?page=1>; rel="first", <https://www.bookingsync.com/api/v3/photos/5793?page=1>;
53
+ rel="last"
54
+ X-Total-Pages:
55
+ - '1'
56
+ X-Total-Count:
57
+ - '1'
58
+ Etag:
59
+ - '"c35696f1c1211f3bb66c729759174d94"'
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=14a93957-acaf-4fc1-865a-a187dd8542d8; path=/; expires=Wed, 16 Sep
68
+ 2015 20:22:52 -0000; secure
69
+ - ahoy_visitor=fb271695-12ce-48dc-b1b6-ec890886a612; path=/; expires=Sat, 09
70
+ Sep 2017 20:22:52 -0000; secure
71
+ X-Request-Id:
72
+ - ef15145c-aee1-4cd6-b47a-98107590a667
73
+ X-Runtime:
74
+ - '0.085202'
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"links":{"photos.rental":"https://www.bookingsync.com/api/v3/rentals/{photos.rental}"},"photos":[{"links":{"rental":5117},"id":5793,"description":{},"kind":null,"micro_url":"https://res-5.cloudinary.com/bookingsync/image/upload/c_fill,fl_progressive,g_center,h_32,q_90,w_48/v1418041610/4cb2bb4f8bd14003ad3ef47867367512.jpg","thumb_url":"https://res-5.cloudinary.com/bookingsync/image/upload/c_fill,fl_progressive,g_center,h_64,q_90,w_96/v1418041610/4cb2bb4f8bd14003ad3ef47867367512.jpg","small_url":"https://res-5.cloudinary.com/bookingsync/image/upload/c_fill,fl_progressive,g_center,h_128,q_90,w_192/v1418041610/4cb2bb4f8bd14003ad3ef47867367512.jpg","compact_url":"https://res-5.cloudinary.com/bookingsync/image/upload/c_fill,fl_progressive,g_center,h_256,q_90,w_384/v1418041610/4cb2bb4f8bd14003ad3ef47867367512.jpg","medium_url":"https://res-5.cloudinary.com/bookingsync/image/upload/c_fill,fl_progressive,g_center,h_512,q_90,w_768/v1418041610/4cb2bb4f8bd14003ad3ef47867367512.jpg","large_url":"https://res-5.cloudinary.com/bookingsync/image/upload/c_fill,fl_progressive,g_center,h_800,q_90,w_1200/v1418041610/4cb2bb4f8bd14003ad3ef47867367512.jpg","grande_url":"https://res-5.cloudinary.com/bookingsync/image/upload/c_fill,fl_progressive,g_center,h_1024,q_90,w_1536/v1418041610/4cb2bb4f8bd14003ad3ef47867367512.jpg","giant_url":"https://res-5.cloudinary.com/bookingsync/image/upload/c_fill,fl_progressive,g_center,h_1600,q_90,w_2400/v1418041610/4cb2bb4f8bd14003ad3ef47867367512.jpg","position":10,"created_at":"2014-08-08T19:33:22Z","updated_at":"2014-12-08T12:26:48Z"}]}'
78
+ http_version:
79
+ recorded_at: Wed, 09 Sep 2015 20:22:53 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/18577
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:23: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
+ - '957'
51
+ Link:
52
+ - <https://www.bookingsync.com/api/v3/rates/18577?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rates/18577?page=1>;
53
+ rel="last"
54
+ X-Total-Pages:
55
+ - '1'
56
+ X-Total-Count:
57
+ - '1'
58
+ Etag:
59
+ - '"0e1e2fedffbd2e140d6807bb3a59f5ee"'
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=def2c3dc-8349-413c-a6b7-7b3dcd68d944; path=/; expires=Wed, 16 Sep
68
+ 2015 20:23:47 -0000; secure
69
+ - ahoy_visitor=21ab6437-5b97-47f1-b681-542778c0cb1d; path=/; expires=Sat, 09
70
+ Sep 2017 20:23:47 -0000; secure
71
+ X-Request-Id:
72
+ - 53b92be6-f6f5-44c4-b67a-28d21016cf91
73
+ X-Runtime:
74
+ - '0.097459'
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"links":{"rates.rental":"https://www.bookingsync.com/api/v3/rentals/{rates.rental}"},"rates":[{"links":{"rental":5117},"id":18577,"currency":"EUR","start_date":"2015-10-10","end_date":"2015-10-31","initial_nightly_rate":"162.51429","initial_weekly_rate":"1137.6","initial_monthly_rate":"4875.42857","final_nightly_rate":"162.51429","final_weekly_rate":"1137.6","final_monthly_rate":"4875.42857","minimum_stay":2,"created_at":"2014-10-29T19:57:52Z","updated_at":"2015-09-09T18:27:04Z"}],"meta":{}}'
78
+ http_version:
79
+ recorded_at: Wed, 09 Sep 2015 20:23:48 GMT
80
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,75 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/rates_tables/274/rates_rules
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"rates_rules":[{"start_date":"2013-04-10","end_date":"2013-04-22","kind":"stay_at_least","percentage":10,"variables":{"length":1,"unit":"days"}}]}'
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: 201
23
+ message: Created
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Wed, 09 Sep 2015 20:36:13 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
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
+ - '933'
51
+ Location:
52
+ - https://www.bookingsync.com/api/v3/rates_rules/13777
53
+ Etag:
54
+ - '"30cfbc778aacad11a25e6514e6da7fe7"'
55
+ Cache-Control:
56
+ - max-age=0, private, must-revalidate
57
+ P3p:
58
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
59
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
60
+ Set-Cookie:
61
+ - ahoy_track=true; path=/; secure
62
+ - ahoy_visit=8827bc97-8687-4cf1-9053-41120272a38d; path=/; expires=Wed, 16 Sep
63
+ 2015 20:36:12 -0000; secure
64
+ - ahoy_visitor=fd213858-7820-4e5f-ad9a-d00cf4ae7d8d; path=/; expires=Sat, 09
65
+ Sep 2017 20:36:12 -0000; secure
66
+ X-Request-Id:
67
+ - b19dfd8e-1c70-4ef3-a52b-d8009ee38db6
68
+ X-Runtime:
69
+ - '0.565818'
70
+ body:
71
+ encoding: UTF-8
72
+ 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":[]},"id":13777,"always_applied":false,"percentage":"10.0","period_name":null,"kind":"stay_at_least","variables":{"length":1,"unit":"days"},"start_date":"2013-04-10","end_date":"2013-04-22","created_at":"2015-09-09T20:36:12Z","updated_at":"2015-09-09T20:36:12Z"}]}'
73
+ http_version:
74
+ recorded_at: Wed, 09 Sep 2015 20:36:13 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/rates_rules/250
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:31:37 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
+ - '937'
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=94903a5e-433c-44d6-98ca-ef3aafa51987; path=/; expires=Wed, 16 Sep
55
+ 2015 20:31:36 -0000; secure
56
+ - ahoy_visitor=4e5becfe-73ed-4dc5-a9a2-39c65f2fad92; path=/; expires=Sat, 09
57
+ Sep 2017 20:31:36 -0000; secure
58
+ X-Request-Id:
59
+ - 1dea1e87-9fd8-4f7e-a423-617805c1282c
60
+ X-Runtime:
61
+ - '0.533819'
62
+ body:
63
+ encoding: UTF-8
64
+ string: ''
65
+ http_version:
66
+ recorded_at: Wed, 09 Sep 2015 20:31:38 GMT
67
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/rates_rules/252
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"rates_rules":[{"end_date":"2014-07-15"}]}'
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:30:59 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
+ - '939'
51
+ Etag:
52
+ - '"55d7af1127f12c1e23b68a508bf0226a"'
53
+ Cache-Control:
54
+ - max-age=0, private, must-revalidate
55
+ P3p:
56
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
57
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
58
+ Set-Cookie:
59
+ - ahoy_track=true; path=/; secure
60
+ - ahoy_visit=dae0b887-4e77-41d2-b566-f554cb3f55b5; path=/; expires=Wed, 16 Sep
61
+ 2015 20:30:59 -0000; secure
62
+ - ahoy_visitor=ccda9b99-e451-4772-b8ca-26d008dddb76; path=/; expires=Sat, 09
63
+ Sep 2017 20:30:59 -0000; secure
64
+ X-Request-Id:
65
+ - 78593dcd-5328-4ecd-a31f-95671ccb4068
66
+ X-Runtime:
67
+ - '0.573996'
68
+ body:
69
+ encoding: UTF-8
70
+ 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":[]},"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":"2014-07-15","created_at":"2014-08-08T18:34:37Z","updated_at":"2015-09-09T20:30:59Z"}]}'
71
+ http_version:
72
+ recorded_at: Wed, 09 Sep 2015 20:31:00 GMT
73
+ 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_rules/252
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:30:58 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
+ - '941'
51
+ Link:
52
+ - <https://www.bookingsync.com/api/v3/rates_rules/252?page=1>; rel="first",
53
+ <https://www.bookingsync.com/api/v3/rates_rules/252?page=1>; rel="last"
54
+ X-Total-Pages:
55
+ - '1'
56
+ X-Total-Count:
57
+ - '1'
58
+ Etag:
59
+ - '"6d1591039a912f0fababfd535793b2ff"'
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=eae6883f-1e5d-4a43-a997-56478fba963c; path=/; expires=Wed, 16 Sep
68
+ 2015 20:30:58 -0000; secure
69
+ - ahoy_visitor=a82d381f-ee60-4af9-b6b7-f0c41c990d5c; path=/; expires=Sat, 09
70
+ Sep 2017 20:30:58 -0000; secure
71
+ X-Request-Id:
72
+ - 4e3c552c-aa3b-4b33-857d-9c1f8ba4c1da
73
+ X-Runtime:
74
+ - '0.073746'
75
+ body:
76
+ encoding: UTF-8
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":[]},"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:30:59 GMT
80
+ recorded_with: VCR 2.9.2