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.
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,74 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/clients/77703
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"clients":[{"fullname":"Gary Smith"}]}'
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:09:09 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
+ - '976'
51
+ Etag:
52
+ - '"d42b7322ff42d48054159c24f952af38"'
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=0ccdd038-60ab-4a18-a78f-de9bd69b80b0; path=/; expires=Wed, 16 Sep
61
+ 2015 20:09:09 -0000; secure
62
+ - ahoy_visitor=14155540-844b-4bd6-bd33-af034d820c44; path=/; expires=Sat, 09
63
+ Sep 2017 20:09:09 -0000; secure
64
+ X-Request-Id:
65
+ - d0ecc981-61da-49c0-98be-32a65aacb54b
66
+ X-Runtime:
67
+ - '0.092873'
68
+ body:
69
+ encoding: UTF-8
70
+ string: '{"links":{"clients.account":"https://www.bookingsync.com/api/v3/accounts/{clients.account}"},"clients":[{"links":{"account":3837},"id":77703,"addresses":[],"emails":[{"label":"default","email":"aa@test.com"}],"phones":[],"created_at":"2015-09-09T19:58:00Z","updated_at":"2015-09-09T20:09:09Z","fullname":"Gary
71
+ Smith","notes":"","preferred_locale":"","passport":""}]}'
72
+ http_version:
73
+ recorded_at: Wed, 09 Sep 2015 20:09:10 GMT
74
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,83 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/destinations/7301
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:18: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
+ - '970'
51
+ Link:
52
+ - <https://www.bookingsync.com/api/v3/destinations/7301?page=1>; rel="first",
53
+ <https://www.bookingsync.com/api/v3/destinations/7301?page=1>; rel="last"
54
+ X-Total-Pages:
55
+ - '1'
56
+ X-Total-Count:
57
+ - '1'
58
+ Etag:
59
+ - '"47249ebadc8b5a23bf610c28b73892d9"'
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=09a218d5-c4d0-40fb-aad7-9fecc2a44c54; path=/; expires=Wed, 16 Sep
68
+ 2015 20:18:52 -0000; secure
69
+ - ahoy_visitor=f972ba50-384c-4513-ba1b-685107d8790d; path=/; expires=Sat, 09
70
+ Sep 2017 20:18:52 -0000; secure
71
+ X-Request-Id:
72
+ - 8d1b991c-ef2d-4a36-9e25-5d126e2e6ec8
73
+ X-Runtime:
74
+ - '0.091339'
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"destinations":[{"id":7301,"name":{"en":"Sivota Lefkada"},"fullname":{"en":"Sivota
78
+ Lefkada, Lefkada (Lefkas), Ionian Islands, Greece, Europe, World","fr":"Sivota
79
+ Lefkada, Lefkada (Lefkas), Ionian Islands, Greece, Europe, World"},"permalink":{"en":"world/europe/greece/ionian-islands/lefkada-lefkas/sivota-lefkada","fr":"world/europe/greece/ionian-islands/lefkada-lefkas/sivota-lefkada"},"aliases":{"en":"---\n-
80
+ Syvota\n"},"counter":2}]}'
81
+ http_version:
82
+ recorded_at: Wed, 09 Sep 2015 20:18:54 GMT
83
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/fees/474
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 21:13:16 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
+ - '1441836000'
49
+ X-Ratelimit-Remaining:
50
+ - '974'
51
+ Link:
52
+ - <https://www.bookingsync.com/api/v3/fees/474?page=1>; rel="first", <https://www.bookingsync.com/api/v3/fees/474?page=1>;
53
+ rel="last"
54
+ X-Total-Pages:
55
+ - '1'
56
+ X-Total-Count:
57
+ - '1'
58
+ Etag:
59
+ - '"70d379460c62943346fad5ed20f730b2"'
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=7dfd0b20-10ca-49da-94c6-e7af8a7c49c6; path=/; expires=Wed, 16 Sep
68
+ 2015 21:13:16 -0000; secure
69
+ - ahoy_visitor=4134a363-9027-493d-a702-cd33e52830f3; path=/; expires=Sat, 09
70
+ Sep 2017 21:13:16 -0000; secure
71
+ X-Request-Id:
72
+ - 0ef203fd-5b8d-4066-a912-9d5faf8e7f7d
73
+ X-Runtime:
74
+ - '0.072005'
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"links":{"fees.account":"https://www.bookingsync.com/api/v3/accounts/{fees.account}"},"fees":[{"links":{"account":3837},"id":474,"name":{"en":"test
78
+ fee"},"rate":"10.0","rate_kind":"fixed","created_at":"2015-09-09T20:23:53Z","updated_at":"2015-09-09T20:23:54Z","downpayment_percentage":"10.0"}]}'
79
+ http_version:
80
+ recorded_at: Wed, 09 Sep 2015 21:13:17 GMT
81
+ 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/inquiries/6087
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:20:23 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
+ - '967'
51
+ Link:
52
+ - <https://www.bookingsync.com/api/v3/inquiries/6087?page=1>; rel="first", <https://www.bookingsync.com/api/v3/inquiries/6087?page=1>;
53
+ rel="last"
54
+ X-Total-Pages:
55
+ - '1'
56
+ X-Total-Count:
57
+ - '1'
58
+ Etag:
59
+ - '"7ad75254fa31e77e6358c4387c7f14aa"'
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=17c3a9b5-46d3-4c02-b7bb-3242d7831ac1; path=/; expires=Wed, 16 Sep
68
+ 2015 20:20:23 -0000; secure
69
+ - ahoy_visitor=afc3ddaa-a46c-4d2d-ad0c-fb16b5402bbe; path=/; expires=Sat, 09
70
+ Sep 2017 20:20:23 -0000; secure
71
+ X-Request-Id:
72
+ - f0f3fae1-0c52-410a-9985-57c6ae02cc2a
73
+ X-Runtime:
74
+ - '0.064880'
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"links":{"inquiries.rental":"https://www.bookingsync.com/api/v3/rentals/{inquiries.rental}"},"inquiries":[{"links":{"rental":5117},"id":6087,"firstname":"aa","lastname":"aa","email":"a@op.pl","country_code":"","phone":"","start_at":null,"end_at":null,"adults":null,"children":null,"message":"","created_at":"2015-09-09T20:19:46Z","updated_at":"2015-09-09T20:19:46Z"}]}'
78
+ http_version:
79
+ recorded_at: Wed, 09 Sep 2015 20:20:24 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/payments/71959
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:21:29 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
+ - '964'
51
+ Link:
52
+ - <https://www.bookingsync.com/api/v3/payments/71959?page=1>; rel="first", <https://www.bookingsync.com/api/v3/payments/71959?page=1>;
53
+ rel="last"
54
+ X-Total-Pages:
55
+ - '1'
56
+ X-Total-Count:
57
+ - '1'
58
+ Etag:
59
+ - '"de3828affd8fd0467ae7f8dd184c9145"'
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=2ddf3ca7-683d-4c18-9cfd-bd49fca5878d; path=/; expires=Wed, 16 Sep
68
+ 2015 20:21:29 -0000; secure
69
+ - ahoy_visitor=a92053d0-dd01-4e84-80a3-aac59e828041; path=/; expires=Sat, 09
70
+ Sep 2017 20:21:29 -0000; secure
71
+ X-Request-Id:
72
+ - 1f876fc5-afa6-4e0f-a64b-a8cc3a7126e0
73
+ X-Runtime:
74
+ - '0.116286'
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"links":{"payments.account":"https://www.bookingsync.com/api/v3/accounts/{payments.account}","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":{"account":3837,"bookings":[142616],"bookings_payments":[71982]},"id":71959,"transaction_id":null,"order_id":null,"card":null,"amount_in_cents":100000,"currency":"EUR","kind":"online","fullname":"aa","email":"aa@test.com","address1":null,"address2":null,"zip":null,"city":null,"state":null,"country_code":null,"locale":null,"ip":null,"test":false,"notes":"","paid_at":"2015-09-09T00:00:00Z","created_at":"2015-09-09T19:58:06Z","updated_at":"2015-09-09T19:58:06Z","rejected_at":null,"canceled_at":null}]}'
78
+ http_version:
79
+ recorded_at: Wed, 09 Sep 2015 20:21:30 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/periods/4737
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:14 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
+ - '962'
51
+ Link:
52
+ - <https://www.bookingsync.com/api/v3/periods/4737?page=1>; rel="first", <https://www.bookingsync.com/api/v3/periods/4737?page=1>;
53
+ rel="last"
54
+ X-Total-Pages:
55
+ - '1'
56
+ X-Total-Count:
57
+ - '1'
58
+ Etag:
59
+ - '"417c24e30f24356166b181b60b87b336"'
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=08d1066d-b03a-4930-bddf-6fad43d1b29a; path=/; expires=Wed, 16 Sep
68
+ 2015 20:22:13 -0000; secure
69
+ - ahoy_visitor=3b89d058-3938-4770-9a48-3a50c4f74969; path=/; expires=Sat, 09
70
+ Sep 2017 20:22:13 -0000; secure
71
+ X-Request-Id:
72
+ - 4f65eb4a-9b91-4240-9cb2-f50b2234586a
73
+ X-Runtime:
74
+ - '0.069400'
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"links":{"periods.season":"https://www.bookingsync.com/api/v3/seasons/{periods.season}","periods.rates_table":"https://www.bookingsync.com/api/v3/rates_tables/{periods.rates_table}"},"periods":[{"links":{"season":1804,"rates_table":274},"id":4737,"start_date":"2015-08-29","end_date":"2015-09-19","created_at":"2014-08-08T18:33:28Z","updated_at":"2014-08-08T18:33:28Z"}]}'
78
+ http_version:
79
+ recorded_at: Wed, 09 Sep 2015 20:22:14 GMT
80
+ recorded_with: VCR 2.9.2