fantasticstay_api 0.1.11 → 0.1.12

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: 61c7c8e9ac360e9a4b64ec4813ff0b3da4f9ed73b6c8b89298208ae937a65f66
4
+ data.tar.gz: 527e2dde65e7533e466dfb94016fedea3ce17cd815471f7fd6cf945a3c06f7bb
5
5
  SHA512:
6
- metadata.gz: e4e3c76f33cc3691855e87ae24fd758268802b6819b3e38f74a4841dbaac79ca26fe407c46a9c1b207ad6f2052bba7762bcf0cf36388bc975ca3089629355a6c
7
- data.tar.gz: 91911d1412ceb3a9ab46c853936edbe8e0d70cabc74f84e7cbbfe5ae40b2c18c2c2d4ca01098f23bbf08377dd05786f8f8ae286447ea90a0e254b39341d339cf
6
+ metadata.gz: 27d89ebc3deb1b633cd32a3024d01641552e46fb2d7000d6c7212b5431b4e80cba979c7069d1a1f5462a9697b1c62221b7c1de66e174704bdaab91a1ff36651a
7
+ data.tar.gz: 33cabc72170bdb2fae13a0e76939f6e9f1ad33b2a8d9bb0040565b31d1c8abdf067c6b15da87ca505ba70f6c4e54a8f19024271405442a76306f83c8ab7b3e6a
@@ -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
50
  listing_id: listing_id, filters: filters.to_json, sort: 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.12'.freeze
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
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.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinis
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 2025-08-10 00:00:00.000000000 Z
11
+ date: 2025-09-17 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: api_cache
@@ -104,6 +105,7 @@ metadata:
104
105
  homepage_uri: https://github.com/dlage/fantasticstay_api_gem
105
106
  source_code_uri: https://github.com/dlage/fantasticstay_api_gem
106
107
  changelog_uri: https://github.com/dlage/fantasticstay_api_gem/blob/master/CHANGELOG.md
108
+ post_install_message:
107
109
  rdoc_options: []
108
110
  require_paths:
109
111
  - lib
@@ -118,7 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
120
  - !ruby/object:Gem::Version
119
121
  version: '0'
120
122
  requirements: []
121
- rubygems_version: 3.6.2
123
+ rubygems_version: 3.5.22
124
+ signing_key:
122
125
  specification_version: 4
123
126
  summary: FantasticStay API Wrapper.
124
127
  test_files: []