bookingsync-api 0.0.33 → 0.0.34

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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -3
  3. data/README.md +1 -1
  4. data/lib/bookingsync/api/client/accounts.rb +1 -1
  5. data/lib/bookingsync/api/client/amenities.rb +1 -1
  6. data/lib/bookingsync/api/client/availabilities.rb +1 -1
  7. data/lib/bookingsync/api/client/bookings.rb +2 -2
  8. data/lib/bookingsync/api/client/bookings_fees.rb +1 -1
  9. data/lib/bookingsync/api/client/bookings_payments.rb +1 -1
  10. data/lib/bookingsync/api/client/bookings_taxes.rb +1 -1
  11. data/lib/bookingsync/api/client/clients.rb +1 -1
  12. data/lib/bookingsync/api/client/destinations.rb +1 -1
  13. data/lib/bookingsync/api/client/fees.rb +1 -1
  14. data/lib/bookingsync/api/client/inquiries.rb +1 -1
  15. data/lib/bookingsync/api/client/payments.rb +1 -1
  16. data/lib/bookingsync/api/client/periods.rb +1 -1
  17. data/lib/bookingsync/api/client/photos.rb +4 -4
  18. data/lib/bookingsync/api/client/preferences_payments.rb +1 -1
  19. data/lib/bookingsync/api/client/rates.rb +1 -1
  20. data/lib/bookingsync/api/client/rates_tables.rb +1 -1
  21. data/lib/bookingsync/api/client/rental_agreements.rb +1 -1
  22. data/lib/bookingsync/api/client/rental_cancelation_policies.rb +1 -1
  23. data/lib/bookingsync/api/client/rental_cancelation_policy_items.rb +1 -1
  24. data/lib/bookingsync/api/client/rentals.rb +1 -1
  25. data/lib/bookingsync/api/client/rentals_fees.rb +1 -1
  26. data/lib/bookingsync/api/client/reviews.rb +1 -1
  27. data/lib/bookingsync/api/client/seasons.rb +1 -1
  28. data/lib/bookingsync/api/client/sources.rb +1 -1
  29. data/lib/bookingsync/api/client/special_offers.rb +1 -1
  30. data/lib/bookingsync/api/client/taxes.rb +1 -1
  31. data/lib/bookingsync/api/version.rb +1 -1
  32. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc79948ffe2690c6ffcce2a593ec60f92a613e23
4
- data.tar.gz: 27a6eee56aab6549201ee42279737c8c4011c3ec
3
+ metadata.gz: c042d61d721bdc02c7659bd39f177976d3b78787
4
+ data.tar.gz: 166f4da37304fc6600bebcb25b1d224d391f7df4
5
5
  SHA512:
6
- metadata.gz: a555a2b2d83fa71d487a9b891697ed542f7a3b242b6a3ac56ceb83607b7ea4b69d55df63d400ff1e66ddc71aa53b3c4672ddb12858b2f51f8f501d0b8c1efee9
7
- data.tar.gz: 9348e3b64c384c4ccfa2b2d8cc44a4e0a4ce1442152558090682ac3957a421e8ae912ab32772f846b767501e40e1eacdf2321a9fd300f4bf54197e6bcb5d72ca
6
+ metadata.gz: 817f039bd587b7373b968941e72dfc3f2ba9de1fa4519afa8758fe46f88ac177dea6548641cc620c35ab317919648204e61a818120a5a538a7b0f3ba67923fe5
7
+ data.tar.gz: 70ce3a4107f8aaa413de882204277ab78617b1a8d752e27f68ebaf867ab8b5a3b42a85014ec4197648f384e5f39dbc3ea0a3a9c265c8ee7882b6ef2875e90ed9
data/CHANGELOG.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## Master
4
-
5
- ## 0.0.33
3
+ ## 0.0.34
6
4
 
5
+ - Fixed documentation urls
7
6
  - Add support for rental_cancelation_policies and rental_cancelation_policy_items endpoints.
8
7
  - Rename instant bookings to strict bookings
9
8
  - Raise RateLimitExceeded error for 429 response status.
data/README.md CHANGED
@@ -110,7 +110,7 @@ See [gem documentation](http://rdoc.info/github/BookingSync/bookingsync-api/mast
110
110
 
111
111
  ## API documentation
112
112
 
113
- See [API documentation](http://docs.api.bookingsync.com).
113
+ See [API documentation](http://developers.bookingsync.com).
114
114
 
115
115
  ## Running specs
116
116
 
@@ -11,7 +11,7 @@ module BookingSync::API
11
11
  # @example Get the list of accounts for the current account
12
12
  # accounts = @api.accounts
13
13
  # accounts.first.email # => "user@example.com"
14
- # @see http://docs.api.bookingsync.com/reference/endpoints/accounts/#list-accounts
14
+ # @see http://developers.bookingsync.com/reference/endpoints/accounts/#list-accounts
15
15
  def accounts(options = {}, &block)
16
16
  paginate :accounts, options, &block
17
17
  end
@@ -11,7 +11,7 @@ module BookingSync::API
11
11
  # @example Get the list of amenities for the current account
12
12
  # amenities = @api.amenities
13
13
  # amenities.first.title # => "Internet"
14
- # @see http://docs.api.bookingsync.com/reference/endpoints/amenities/#list-amenities
14
+ # @see http://developers.bookingsync.com/reference/endpoints/amenities/#list-amenities
15
15
  def amenities(options = {}, &block)
16
16
  paginate :amenities, options, &block
17
17
  end
@@ -11,7 +11,7 @@ module BookingSync::API
11
11
  # @example Get the list of availabilities for the current account
12
12
  # availabilities = @api.availabilities
13
13
  # availabilities.first.start_date # => "2014-05-30"
14
- # @see http://docs.api.bookingsync.com/reference/endpoints/availabilities/#list-availabilities
14
+ # @see http://developers.bookingsync.com/reference/endpoints/availabilities/#list-availabilities
15
15
  def availabilities(options = {}, &block)
16
16
  paginate :availabilities, options, &block
17
17
  end
@@ -24,8 +24,8 @@ module BookingSync::API
24
24
  # @api.bookings(per_page: 10) do |batch|
25
25
  # # do something with ten bookings
26
26
  # end
27
- # @see http://docs.api.bookingsync.com/reference/endpoints/bookings/#list-bookings
28
- # @see http://docs.api.bookingsync.com/reference/endpoints/bookings/#search-bookings
27
+ # @see http://developers.bookingsync.com/reference/endpoints/bookings/#list-bookings
28
+ # @see http://developers.bookingsync.com/reference/endpoints/bookings/#search-bookings
29
29
  def bookings(options = {}, &block)
30
30
  paginate :bookings, options, &block
31
31
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # bookings_fees.first.times_booked # => 1
14
14
  # @example Get the list of bookings fees only with times_booked for smaller response
15
15
  # @api.bookings_fees(fields: [:times_booked])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/bookings_fees/#list-bookings_fees
16
+ # @see http://developers.bookingsync.com/reference/endpoints/bookings_fees/#list-bookings_fees
17
17
  def bookings_fees(options = {}, &block)
18
18
  paginate :bookings_fees, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # bookings_payments.first.amount # => 200
14
14
  # @example Get the list of bookings payments only with amount and currency for smaller response
15
15
  # @api.bookings_payments(fields: [:amount, :currency])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/bookings_payments/#list-bookings-payments
16
+ # @see http://developers.bookingsync.com/reference/endpoints/bookings_payments/#list-bookings-payments
17
17
  def bookings_payments(options = {}, &block)
18
18
  paginate :bookings_payments, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # bookings_taxes.first.percentage # => 20.0
14
14
  # @example Get the list of bookings taxes only with percentage for smaller response
15
15
  # @api.bookings_taxes(fields: [:percentage])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/bookings_taxes/#list-bookings_taxes
16
+ # @see http://developers.bookingsync.com/reference/endpoints/bookings_taxes/#list-bookings_taxes
17
17
  def bookings_taxes(options = {}, &block)
18
18
  paginate :bookings_taxes, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # clients.first.fullname # => "John Smith"
14
14
  # @example Get the list of clients only with fullname and phone for smaller response
15
15
  # @api.clients(fields: [:fullname, :phone])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/clients/#list-clients
16
+ # @see http://developers.bookingsync.com/reference/endpoints/clients/#list-clients
17
17
  def clients(options = {}, &block)
18
18
  paginate :clients, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # destinations.first.fullname # => {"en":"Europe, World"}
14
14
  # @example Get the list of destinations only with name and fullname for smaller response
15
15
  # @api.destinations(fields: [:name, :fullname])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/destinations/#list-destinations
16
+ # @see http://developers.bookingsync.com/reference/endpoints/destinations/#list-destinations
17
17
  def destinations(options = {}, &block)
18
18
  paginate :destinations, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # fees.first.rate # => 20.0
14
14
  # @example Get the list of fees only with name and rate for smaller response
15
15
  # @api.fees(fields: [:name, :rate])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/fees/#list-fees
16
+ # @see http://developers.bookingsync.com/reference/endpoints/fees/#list-fees
17
17
  def fees(options = {}, &block)
18
18
  paginate :fees, options, &block
19
19
  end
@@ -6,7 +6,7 @@ module BookingSync::API
6
6
  # Return list of inquiries for current account.
7
7
  # @param options [Hash] A customizable set of query options.
8
8
  # @return [Array<BookingSync::API::Resource>] Array of inquiries.
9
- # @see http://docs.api.bookingsync.com/reference/endpoints/inquiries/#list-inquiries
9
+ # @see http://developers.bookingsync.com/reference/endpoints/inquiries/#list-inquiries
10
10
  def inquiries(options = {}, &block)
11
11
  paginate :inquiries, options, &block
12
12
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # payments.first.kind # => "cash"
14
14
  # @example Get the list of payments only with kind and currency for smaller response
15
15
  # @api.payments(fields: [:kind, :currency])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/payments/#list-payments
16
+ # @see http://developers.bookingsync.com/reference/endpoints/payments/#list-payments
17
17
  def payments(options = {}, &block)
18
18
  paginate :payments, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # periods.first.start_at # => "2014-04-11"
14
14
  # @example Get the list of periods only with start_at and end_at for smaller response
15
15
  # @api.periods(fields: [:start_at, :end_at])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/periods/#list-periods
16
+ # @see http://developers.bookingsync.com/reference/endpoints/periods/#list-periods
17
17
  def periods(options = {}, &block)
18
18
  paginate :periods, options, &block
19
19
  end
@@ -15,7 +15,7 @@ module BookingSync::API
15
15
  # photos.first.position # => 1
16
16
  # @example Get the list of photos only with medium_url and position for smaller response
17
17
  # @api.photos(fields: [:medium_url, :position])
18
- # @see http://docs.api.bookingsync.com/reference/endpoints/photos/#list-photos
18
+ # @see http://developers.bookingsync.com/reference/endpoints/photos/#list-photos
19
19
  def photos(options = {}, &block)
20
20
  paginate :photos, options, &block
21
21
  end
@@ -44,7 +44,7 @@ module BookingSync::API
44
44
  # @return [BookingSync::API::Resource] Newly created photo.
45
45
  # @example Create a photo.
46
46
  # @api.create_photo(10, photo_path: 'rentals/big_one.jpg')
47
- # @see http://docs.api.bookingsync.com/reference/endpoints/photos/#create-a-new-photo
47
+ # @see http://developers.bookingsync.com/reference/endpoints/photos/#create-a-new-photo
48
48
  def create_photo(rental, options = {})
49
49
  if photo_path = options.delete(:photo_path)
50
50
  options[:photo] ||= encode(photo_path)
@@ -58,7 +58,7 @@ module BookingSync::API
58
58
  # photo to be updated.
59
59
  # @param options [Hash] Photo's attributes.
60
60
  # @return [BookingSync::API::Resource] Updated photo
61
- # @see http://docs.api.bookingsync.com/reference/endpoints/photos/#update-a-photo
61
+ # @see http://developers.bookingsync.com/reference/endpoints/photos/#update-a-photo
62
62
  def edit_photo(photo, options = {})
63
63
  if photo_path = options.delete(:photo_path)
64
64
  options[:photo] ||= encode(photo_path)
@@ -71,7 +71,7 @@ module BookingSync::API
71
71
  # @param photo [BookingSync::API::Resource|Integer] Photo or ID of the
72
72
  # photo to be deleted.
73
73
  # @return [NilClass] Returns nil on success.
74
- # @see http://docs.api.bookingsync.com/reference/endpoints/photos/#destroy-a-photo
74
+ # @see http://developers.bookingsync.com/reference/endpoints/photos/#destroy-a-photo
75
75
  def delete_photo(photo)
76
76
  delete "photos/#{photo}"
77
77
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # preferences_payments.first.gateway # => "blue_pay"
14
14
  # @example Get the list of preferences payments only with gateway and supported_cardtypes for smaller response
15
15
  # @api.preferences_payments(fields: [:gateway, :supported_cardtypes])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/preferences_payments/#list-preferences-payments
16
+ # @see http://developers.bookingsync.com/reference/endpoints/preferences_payments/#list-preferences-payments
17
17
  def preferences_payments(options = {}, &block)
18
18
  paginate :preferences_payments, options, &block
19
19
  end
@@ -14,7 +14,7 @@ module BookingSync::API
14
14
  # @example Get the list of rates only with final rates
15
15
  # for smaller response
16
16
  # @api.rates(fields: %w(final_nightly_rate final_weekely_rate final_monthly_rate))
17
- # @see http://docs.api.bookingsync.com/reference/endpoints/rates/#list-rates
17
+ # @see http://developers.bookingsync.com/reference/endpoints/rates/#list-rates
18
18
  def rates(options = {}, &block)
19
19
  paginate :rates, options, &block
20
20
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # rates_tables.first.name # => "Rates table 2"
14
14
  # @example Get the list of rates tables only with name and account_id for smaller response
15
15
  # @api.rates_tables(fields: [:name, :account_id])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/rates_tables/#list-rates-tables
16
+ # @see http://developers.bookingsync.com/reference/endpoints/rates_tables/#list-rates-tables
17
17
  def rates_tables(options = {}, &block)
18
18
  paginate :rates_tables, options, &block
19
19
  end
@@ -14,7 +14,7 @@ module BookingSync::API
14
14
  # agreement.first.body # => "My rental agreement"
15
15
  # @example Get the list of rental agreements only with body for smaller response
16
16
  # @api.rentals(fields: :body)
17
- # @see http://docs.api.bookingsync.com/reference/endpoints/rental_agreements/#list-rental_agreements
17
+ # @see http://developers.bookingsync.com/reference/endpoints/rental_agreements/#list-rental_agreements
18
18
  def rental_agreements(options = {}, &block)
19
19
  paginate :rental_agreements, options, &block
20
20
  end
@@ -14,7 +14,7 @@ module BookingSync::API
14
14
  # policy.first.body # => "My rental cancelation policy"
15
15
  # @example Get the list of rental cancelation policies only with body for smaller response
16
16
  # @api.rental_cancelation_policies(fields: :body)
17
- # @see http://docs.api.bookingsync.com/reference/endpoints/rental_cancelation_policies/#list-rental_cancelation_policies
17
+ # @see http://developers.bookingsync.com/reference/endpoints/rental_cancelation_policies/#list-rental_cancelation_policies
18
18
  def rental_cancelation_policies(options = {}, &block)
19
19
  paginate :rental_cancelation_policies, options, &block
20
20
  end
@@ -14,7 +14,7 @@ module BookingSync::API
14
14
  # item.first.eligible_days # => 10
15
15
  # @example Get the list of rental cancelation policy items only with eligible_days for smaller response
16
16
  # @api.rental_cancelation_policy_items(fields: :eligible_days)
17
- # @see http://docs.api.bookingsync.com/reference/endpoints/rental_cancelation_policy_items/#list-rental_cancelation_policy_items
17
+ # @see http://developers.bookingsync.com/reference/endpoints/rental_cancelation_policy_items/#list-rental_cancelation_policy_items
18
18
  def rental_cancelation_policy_items(options = {}, &block)
19
19
  paginate :rental_cancelation_policy_items, options, &block
20
20
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # rentals.first.name # => "Small apartment"
14
14
  # @example Get the list of rentals only with name and description for smaller response
15
15
  # @api.rentals(fields: [:name, :description])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/rentals/#list-rentals
16
+ # @see http://developers.bookingsync.com/reference/endpoints/rentals/#list-rentals
17
17
  def rentals(options = {}, &block)
18
18
  paginate :rentals, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # rentals_fees.first.always_applied # => true
14
14
  # @example Get the list of rentals fees only with start_date and end_date for smaller response
15
15
  # @api.rentals fees(fields: [:start_date, :end_date])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/rentals_fees/#list-rentals_fees
16
+ # @see http://developers.bookingsync.com/reference/endpoints/rentals_fees/#list-rentals_fees
17
17
  def rentals_fees(options = {}, &block)
18
18
  paginate :rentals_fees, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # reviews.first.name # => "John Smith"
14
14
  # @example Get the list of reviews only with name and comment for smaller response
15
15
  # @api.reviews(fields: [:name, :comment])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/reviews/#list-reviews
16
+ # @see http://developers.bookingsync.com/reference/endpoints/reviews/#list-reviews
17
17
  def reviews(options = {}, &block)
18
18
  paginate :reviews, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # seasons.first.name # => "Season 2"
14
14
  # @example Get the list of seasons only with name and ratio for smaller response
15
15
  # @api.seasons(fields: [:name, :ratio])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/seasons/#list-seasons
16
+ # @see http://developers.bookingsync.com/reference/endpoints/seasons/#list-seasons
17
17
  def seasons(options = {}, &block)
18
18
  paginate :seasons, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # sources.first.name # => "HomeAway.com"
14
14
  # @example Get the list of sources only with name and account_id for smaller response
15
15
  # @api.sources(fields: [:name, :account_id])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/sources/#list-sources
16
+ # @see http://developers.bookingsync.com/reference/endpoints/sources/#list-sources
17
17
  def sources(options = {}, &block)
18
18
  paginate :sources, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # special_offers.first.name # => "Spring discount"
14
14
  # @example Get the list of special_offers only with name and rental_id for smaller response
15
15
  # @api.special_offers(fields: [:name, :rental_id])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/special_offers/#list-special_offers
16
+ # @see http://developers.bookingsync.com/reference/endpoints/special_offers/#list-special_offers
17
17
  def special_offers(options = {}, &block)
18
18
  paginate :special_offers, options, &block
19
19
  end
@@ -13,7 +13,7 @@ module BookingSync::API
13
13
  # taxes.first.percentage # => 20.0
14
14
  # @example Get the list of taxes only with percentage for smaller response
15
15
  # @api.taxes(fields: [:percentage])
16
- # @see http://docs.api.bookingsync.com/reference/endpoints/taxes/#list-taxes
16
+ # @see http://developers.bookingsync.com/reference/endpoints/taxes/#list-taxes
17
17
  def taxes(options = {}, &block)
18
18
  paginate :taxes, options, &block
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module BookingSync
2
2
  module API
3
- VERSION = "0.0.33"
3
+ VERSION = "0.0.34"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookingsync-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Grosjean
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-18 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday