fantasticstay_api 0.1.11 → 0.1.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc5c5fa20b06a9c957ecc4fff66c82404c60e7f08826e9d99218d0a491064ad9
4
- data.tar.gz: d72c3cdba569e622a600681e18b35263d0bfaebba294187b5ebb2d255d8f5aad
3
+ metadata.gz: c222ed03a2903c5b870f1fafdd0cbb72e2ba3164b3d0f7f5dcbd81c401ff1fb7
4
+ data.tar.gz: ff2ad93caacaf8afd969c0833d2c1a6e68ef4e9cb360eae957c1b9221b8e6b90
5
5
  SHA512:
6
- metadata.gz: e4e3c76f33cc3691855e87ae24fd758268802b6819b3e38f74a4841dbaac79ca26fe407c46a9c1b207ad6f2052bba7762bcf0cf36388bc975ca3089629355a6c
7
- data.tar.gz: 91911d1412ceb3a9ab46c853936edbe8e0d70cabc74f84e7cbbfe5ae40b2c18c2c2d4ca01098f23bbf08377dd05786f8f8ae286447ea90a0e254b39341d339cf
6
+ metadata.gz: 9a87934f6ccf6c4bf7cebade00420e2b79e1d6c88d021430687ba06d06de56d4f19beff416aa9609784765c761c98f17b66238b04ea561a1a583c2e3e3acad5e
7
+ data.tar.gz: cec2ed5a55b294281c70bd3cc645a2b5265b15f732e88720fde7cfedfaae35f391dcb91bacdb460498597700babf58ef1b088ec5a89658e6a9ae084ca8f572e2
@@ -42,14 +42,14 @@ module FantasticstayApi
42
42
  end
43
43
 
44
44
  # FantasticstayApi::Client.new.reservations(38859)
45
- def reservations(listing_id, filters = [], sort = { order: 'checkIn', direction: 'desc' }, global_params = {})
45
+ def reservations(listing_id, filters = [], sort = { order: 'checkIn', direction: 'desc' }, global_params = {}, cache_ttl = 3600 * 24)
46
46
  response = request(
47
47
  http_method: :get,
48
48
  endpoint: 'reservations',
49
49
  params: {
50
- listing_id: listing_id, filters: filters.to_json, sort: sort[:order], direction: sort[:direction]
50
+ listing_id: listing_id, filters: filters.to_json, order: sort[:order], direction: sort[:direction]
51
51
  }.merge!(global_params),
52
- cache_ttl: 3600 * 24
52
+ cache_ttl: cache_ttl
53
53
  )
54
54
  process_response(response)
55
55
  end
@@ -76,7 +76,7 @@ module FantasticstayApi
76
76
  response = request(
77
77
  http_method: :post,
78
78
  endpoint: "reservations/custom_field_update",
79
- params: global_params ,
79
+ params: global_params,
80
80
  body: {
81
81
  reservation_id: reservation_id,
82
82
  custom_field_id: custom_field_id,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FantasticstayApi
4
- VERSION = '0.1.11'.freeze
4
+ VERSION = '0.1.13'.freeze
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fantasticstay_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinis
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-08-10 00:00:00.000000000 Z
10
+ date: 2025-10-28 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: api_cache