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
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/bookings_fees/8112
|
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:14:17 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
|
+
- '971'
|
51
|
+
Link:
|
52
|
+
- <https://www.bookingsync.com/api/v3/bookings_fees/8112?page=1>; rel="first",
|
53
|
+
<https://www.bookingsync.com/api/v3/bookings_fees/8112?page=1>; rel="last"
|
54
|
+
X-Total-Pages:
|
55
|
+
- '1'
|
56
|
+
X-Total-Count:
|
57
|
+
- '1'
|
58
|
+
Etag:
|
59
|
+
- '"11196184ecd06659695c489cde1521d6"'
|
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=b22b8731-b6ff-4872-b2e4-e818ec62253e; path=/; expires=Wed, 16 Sep
|
68
|
+
2015 21:14:17 -0000; secure
|
69
|
+
- ahoy_visitor=85dcd0ae-0428-464f-aa4d-ac3135de0c42; path=/; expires=Sat, 09
|
70
|
+
Sep 2017 21:14:17 -0000; secure
|
71
|
+
X-Request-Id:
|
72
|
+
- d1d0b936-a36e-40d2-9c1c-5bb6ee1d54d9
|
73
|
+
X-Runtime:
|
74
|
+
- '0.083536'
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"links":{"bookings_fees.rentals_fee":"https://www.bookingsync.com/api/v3/rentals_fees/{bookings_fees.rentals_fee}","bookings_fees.booking":"https://www.bookingsync.com/api/v3/bookings/{bookings_fees.booking}","bookings_fees.fee":"https://www.bookingsync.com/api/v3/fees/{bookings_fees.fee}","bookings_fees.bookings_taxes":"https://www.bookingsync.com/api/v3/bookings_taxes/{bookings_fees.bookings_taxes}"},"bookings_fees":[{"links":{"rentals_fee":3306,"booking":142616,"fee":474,"bookings_taxes":[]},"id":8112,"name":{"en":"test
|
78
|
+
fee"},"price":"0.0","required":false,"included_in_price":true,"times_booked":2,"created_at":"2015-09-09T21:13:53Z","updated_at":"2015-09-09T21:13:53Z"}],"meta":{}}'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Wed, 09 Sep 2015 21:14:18 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/bookings_payments/71982
|
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:15:03 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
|
+
- '969'
|
51
|
+
Link:
|
52
|
+
- <https://www.bookingsync.com/api/v3/bookings_payments/71982?page=1>; rel="first",
|
53
|
+
<https://www.bookingsync.com/api/v3/bookings_payments/71982?page=1>; rel="last"
|
54
|
+
X-Total-Pages:
|
55
|
+
- '1'
|
56
|
+
X-Total-Count:
|
57
|
+
- '1'
|
58
|
+
Etag:
|
59
|
+
- '"435be0b6c0ab126ec5d6c9f0e195e338"'
|
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=3f10c19d-8d9e-43d2-9f6a-355abde1b2ed; path=/; expires=Wed, 16 Sep
|
68
|
+
2015 21:15:03 -0000; secure
|
69
|
+
- ahoy_visitor=d481da67-acd0-4226-ab2f-1013d2b8edef; path=/; expires=Sat, 09
|
70
|
+
Sep 2017 21:15:03 -0000; secure
|
71
|
+
X-Request-Id:
|
72
|
+
- 3fd2a4f5-e733-4bf7-b92b-32ebba76d67f
|
73
|
+
X-Runtime:
|
74
|
+
- '0.082159'
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"links":{"bookings_payments.account":"https://www.bookingsync.com/api/v3/accounts/{bookings_payments.account}","bookings_payments.booking":"https://www.bookingsync.com/api/v3/bookings/{bookings_payments.booking}","bookings_payments.payment":"https://www.bookingsync.com/api/v3/payments/{bookings_payments.payment}","bookings_payments.rental":"https://www.bookingsync.com/api/v3/rentals/{bookings_payments.rental}"},"bookings_payments":[{"links":{"account":3837,"booking":142616,"payment":71959,"rental":5116},"id":71982,"amount_in_cents":100000,"currency":"EUR","created_at":"2015-09-09T19:58:06Z","updated_at":"2015-09-09T19:58:06Z"}]}'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Wed, 09 Sep 2015 21:15:03 GMT
|
80
|
+
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/bookings_taxes/8157
|
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:15:35 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
|
+
- '967'
|
51
|
+
Link:
|
52
|
+
- <https://www.bookingsync.com/api/v3/bookings_taxes/8157?page=1>; rel="first",
|
53
|
+
<https://www.bookingsync.com/api/v3/bookings_taxes/8157?page=1>; rel="last"
|
54
|
+
X-Total-Pages:
|
55
|
+
- '1'
|
56
|
+
X-Total-Count:
|
57
|
+
- '1'
|
58
|
+
Etag:
|
59
|
+
- '"f100a682735a4eaf8dcc65e936d065be"'
|
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=d7bb5bbf-319d-4f03-b0b4-a417136f5198; path=/; expires=Wed, 16 Sep
|
68
|
+
2015 21:15:35 -0000; secure
|
69
|
+
- ahoy_visitor=9a154867-437e-4489-9d8d-6591a0e9c7be; path=/; expires=Sat, 09
|
70
|
+
Sep 2017 21:15:35 -0000; secure
|
71
|
+
X-Request-Id:
|
72
|
+
- 35d2af3f-4890-43a2-9bdc-77ba17eb13f0
|
73
|
+
X-Runtime:
|
74
|
+
- '0.079789'
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"links":{"bookings_taxes.booking":"https://www.bookingsync.com/api/v3/bookings/{bookings_taxes.booking}","bookings_taxes.tax":"https://www.bookingsync.com/api/v3/taxes/{bookings_taxes.tax}","bookings_taxes.rental":"https://www.bookingsync.com/api/v3/rentals/{bookings_taxes.taxable.id}","bookings_taxes.fee":"https://www.bookingsync.com/api/v3/fees/{bookings_taxes.taxable.id}"},"bookings_taxes":[{"links":{"booking":142616,"tax":168,"taxable":{"id":5116,"type":"Rental"}},"id":8157,"name":{"en":"test
|
78
|
+
tax"},"tax_included_in_price":true,"percentage":"0.0","amount":null}],"meta":{}}'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Wed, 09 Sep 2015 21:15:36 GMT
|
81
|
+
recorded_with: VCR 2.9.2
|
data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_client/returns_a_single_client.yml
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/clients/77703
|
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:09:05 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
|
+
- '978'
|
51
|
+
Link:
|
52
|
+
- <https://www.bookingsync.com/api/v3/clients/77703?page=1>; rel="first", <https://www.bookingsync.com/api/v3/clients/77703?page=1>;
|
53
|
+
rel="last"
|
54
|
+
X-Total-Pages:
|
55
|
+
- '1'
|
56
|
+
X-Total-Count:
|
57
|
+
- '1'
|
58
|
+
Etag:
|
59
|
+
- '"d09581465982553e8120354ea2e078af"'
|
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=6da50b57-c531-4ccb-af3e-b943c0255d87; path=/; expires=Wed, 16 Sep
|
68
|
+
2015 20:09:05 -0000; secure
|
69
|
+
- ahoy_visitor=58b9dc3b-d5ca-4241-bcc3-ef13f3b51a9f; path=/; expires=Sat, 09
|
70
|
+
Sep 2017 20:09:05 -0000; secure
|
71
|
+
X-Request-Id:
|
72
|
+
- 57708e6c-c9b6-4e16-b358-f7cc1f422fcf
|
73
|
+
X-Runtime:
|
74
|
+
- '0.072296'
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
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:07:42Z","fullname":"Gary
|
78
|
+
Smith","notes":"","preferred_locale":"","passport":""}]}'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Wed, 09 Sep 2015 20:09:06 GMT
|
81
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/clients
|
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:09:05 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
|
+
- '979'
|
51
|
+
Link:
|
52
|
+
- <https://www.bookingsync.com/api/v3/clients?page=1>; rel="first", <https://www.bookingsync.com/api/v3/clients?page=1>;
|
53
|
+
rel="last"
|
54
|
+
X-Total-Pages:
|
55
|
+
- '1'
|
56
|
+
X-Total-Count:
|
57
|
+
- '7'
|
58
|
+
Etag:
|
59
|
+
- '"45e2bfc45bfb5c3a203922e86ed61a50"'
|
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=0499799e-9309-45f7-9a07-667e8263be8e; path=/; expires=Wed, 16 Sep
|
68
|
+
2015 20:09:04 -0000; secure
|
69
|
+
- ahoy_visitor=72b6d853-1b72-4fa1-8941-04eda50b6596; path=/; expires=Sat, 09
|
70
|
+
Sep 2017 20:09:04 -0000; secure
|
71
|
+
X-Request-Id:
|
72
|
+
- dddd7478-db29-46af-9e7c-bf6b01ca53f4
|
73
|
+
X-Runtime:
|
74
|
+
- '0.070235'
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
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:07:42Z","fullname":"Gary
|
78
|
+
Smith","notes":"","preferred_locale":"","passport":""},{"links":{"account":3837},"id":77704,"addresses":[],"emails":[],"phones":[],"created_at":"2015-09-09T20:03:44Z","updated_at":"2015-09-09T20:03:44Z","fullname":"John
|
79
|
+
Smith","notes":null,"preferred_locale":null,"passport":null},{"links":{"account":3837},"id":77705,"addresses":[],"emails":[],"phones":[],"created_at":"2015-09-09T20:04:41Z","updated_at":"2015-09-09T20:04:41Z","fullname":"John
|
80
|
+
Smith","notes":null,"preferred_locale":null,"passport":null},{"links":{"account":3837},"id":77706,"addresses":[],"emails":[],"phones":[],"created_at":"2015-09-09T20:05:08Z","updated_at":"2015-09-09T20:05:08Z","fullname":"John
|
81
|
+
Smith","notes":null,"preferred_locale":null,"passport":null},{"links":{"account":3837},"id":77707,"addresses":[],"emails":[],"phones":[],"created_at":"2015-09-09T20:05:46Z","updated_at":"2015-09-09T20:05:46Z","fullname":"John
|
82
|
+
Smith","notes":null,"preferred_locale":null,"passport":null},{"links":{"account":3837},"id":77708,"addresses":[],"emails":[],"phones":[],"created_at":"2015-09-09T20:06:56Z","updated_at":"2015-09-09T20:06:56Z","fullname":"John
|
83
|
+
Smith","notes":null,"preferred_locale":null,"passport":null},{"links":{"account":3837},"id":77709,"addresses":[],"emails":[],"phones":[],"created_at":"2015-09-09T20:07:40Z","updated_at":"2015-09-09T20:07:40Z","fullname":"John
|
84
|
+
Smith","notes":null,"preferred_locale":null,"passport":null}]}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 09 Sep 2015 20:09:05 GMT
|
87
|
+
recorded_with: VCR 2.9.2
|
data/spec/fixtures/cassettes/BookingSync_API_Client_Clients/_create_client/creates_a_new_client.yml
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.bookingsync.com/api/v3/clients
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"clients":[{"fullname":"John Smith","emails":[{"label":"default","email":"smith@example.com"}],"country_code":"IT","city":"Rome"}]}'
|
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:12:27 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
|
+
- '973'
|
51
|
+
Location:
|
52
|
+
- https://www.bookingsync.com/api/v3/clients/77710
|
53
|
+
Etag:
|
54
|
+
- '"315799e6d1eeda96ad5f811e96c8a19f"'
|
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=f08f8b2d-017d-4b54-8bbc-415129187985; path=/; expires=Wed, 16 Sep
|
63
|
+
2015 20:12:27 -0000; secure
|
64
|
+
- ahoy_visitor=d3a73869-c4b6-40c7-91de-ba789dba03d5; path=/; expires=Sat, 09
|
65
|
+
Sep 2017 20:12:27 -0000; secure
|
66
|
+
X-Request-Id:
|
67
|
+
- c50332ee-14bf-4083-8864-63250605f403
|
68
|
+
X-Runtime:
|
69
|
+
- '0.055171'
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"links":{"clients.account":"https://www.bookingsync.com/api/v3/accounts/{clients.account}"},"clients":[{"links":{"account":3837},"id":77710,"addresses":[],"emails":[{"label":"default","email":"smith@example.com"}],"phones":[],"created_at":"2015-09-09T20:12:27Z","updated_at":"2015-09-09T20:12:27Z","fullname":"John
|
73
|
+
Smith","notes":null,"preferred_locale":null,"passport":null}]}'
|
74
|
+
http_version:
|
75
|
+
recorded_at: Wed, 09 Sep 2015 20:12:28 GMT
|
76
|
+
recorded_with: VCR 2.9.2
|