seamapi 1.12.0 → 1.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 837d72ec97572eca355537a57a80276bde1ef105fc3ad1038c52c3cd5090a086
4
- data.tar.gz: 220a03349e5c4ed09d619ec2e222a5cac4e33128eab002dab62783d51ba6e73e
3
+ metadata.gz: 73bba18dbdf9351d8a533d80ee8557daf82a7f70ac54913f43e451b00112233d
4
+ data.tar.gz: 32cb605049a568bc4ddcdddbf8ea7805a597bb35e2975df8218200ba3cc391ec
5
5
  SHA512:
6
- metadata.gz: e61f15928955816db590a16b5fd6d9a57da8511e128f95b52bac539ca8c32df3900c1cbd6f6d307213636c8396dced1b1a19a4a8831a43d1b498b9a5f2cb015f
7
- data.tar.gz: 8aa606f36a269a3b2e85af016681d0a090b7c7f38e5457a53696a57edbcef5b5eaca8558836d1a6d13f3ea329edaacae1a093763702cfdc1168b6ab55c78123c
6
+ metadata.gz: 8918125f1d62599c7bccc41dd7be97cab6153c0c00edeed5176d263072560ccbafde19b694d5a312887765e4a930ad5bce8b6069009ffb9415ca8f048293b949
7
+ data.tar.gz: 8b7cae02aa8cfb8fc757a44b8e8affeeccb354a2935a5f358a4eb008d45b6c0520d44ccdb07e77404aa7d5ad12ec1356f89afc89e5bd3b29c0c5a2564f716654
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seamapi (1.12.0)
4
+ seamapi (1.12.1)
5
5
  http (~> 5.0.0)
6
6
 
7
7
  GEM
@@ -13,15 +13,15 @@ module Seam
13
13
  )
14
14
  end
15
15
 
16
- def list(device_or_id)
16
+ def list(device_or_id = nil, access_code_ids: nil)
17
17
  device_id = device_or_id.is_a?(Seam::Device) ? device_or_id.device_id : device_or_id
18
18
 
19
19
  request_seam_object(
20
- :get,
20
+ :post,
21
21
  "/access_codes/list",
22
22
  Seam::AccessCode,
23
23
  "access_codes",
24
- params: {device_id: device_id}
24
+ body: {device_id: device_id, access_code_ids: access_code_ids}.compact
25
25
  )
26
26
  end
27
27
 
@@ -50,7 +50,7 @@ module Seam
50
50
  action_attempt
51
51
  end
52
52
 
53
- def update(access_code_id: nil, name: nil, code: nil, starts_at: nil, ends_at: nil)
53
+ def update(access_code_id: nil, name: nil, code: nil, starts_at: nil, ends_at: nil, type: nil)
54
54
  action_attempt = request_seam_object(
55
55
  :post,
56
56
  "/access_codes/update",
@@ -61,7 +61,8 @@ module Seam
61
61
  name: name,
62
62
  code: code,
63
63
  starts_at: starts_at,
64
- ends_at: ends_at
64
+ ends_at: ends_at,
65
+ type: type
65
66
  }.compact
66
67
  )
67
68
  action_attempt.wait_until_finished
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "1.12.0"
4
+ VERSION = "1.12.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seamapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seam Labs, Inc.