seam 2.126.0 → 2.127.0

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: abcfbd9c6bd2590ac1525d31c607ae3cc8f60636a57d74640163d49d5c31472c
4
- data.tar.gz: 9773ac6047e26295a104b939fedef8c2e4b4f77190da9732a8351cdfbd507635
3
+ metadata.gz: 27eae396d9a9c4bc535cdca60a97804ea62da26edb49526d703313c07f77c556
4
+ data.tar.gz: f490c1404fe361d1053c72b50200c0182ff160dec599ce9143f4369b0bfaba68
5
5
  SHA512:
6
- metadata.gz: 79182e8b2e0b5dea4bd5b0bac2282dbe4c776283303a7d678459b737c28ca3fd56928348c68df0637040df257aa49f023f38339371e6b353081375ad17668dd5
7
- data.tar.gz: f7d8e3e6acedf6c5c9be07c61572d3eb9d49662d36055030a87a7c1121b8b7338b9a003e02d677e4a87468595764ebbcfe686f5137fe29452e4171fc9c5e3ed9
6
+ metadata.gz: f1e13209e29204c52d36695c0c3a23e6e8a85bb086691b6732fb934993917b6fd0436029dc10c7481bf655b72449fa9b1e13f7a5f8ecb0d9baf087eecc5cd547
7
+ data.tar.gz: a1739c5864d167545307b8854f085a2fd11f2665580ad65f76726242e3d46d566854b9a801339f064492a078e3ff30bccf813001d7d7ee7a2ca343a53644f402
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.126.0)
4
+ seam (2.127.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -14,10 +14,12 @@ module Seam
14
14
  @unmanaged ||= Seam::Clients::AccessMethodsUnmanaged.new(client: @client, defaults: @defaults)
15
15
  end
16
16
 
17
- def assign_card(access_method_id:, card_number:)
17
+ def assign_card(access_method_id:, card_number:, wait_for_action_attempt: nil)
18
18
  res = @client.post("/access_methods/assign_card", {access_method_id: access_method_id, card_number: card_number}.compact)
19
19
 
20
- Seam::Resources::AccessMethod.load_from_response(res.body["access_method"])
20
+ wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
21
+
22
+ Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
21
23
  end
22
24
 
23
25
  def delete(access_method_id: nil, access_grant_id: nil, reservation_key: nil)
@@ -74,8 +74,8 @@ module Seam
74
74
  nil
75
75
  end
76
76
 
77
- def update(acs_entrance_ids: nil, customer_data: nil, customer_key: nil, device_ids: nil, name: nil, space_id: nil, space_key: nil)
78
- res = @client.post("/spaces/update", {acs_entrance_ids: acs_entrance_ids, customer_data: customer_data, customer_key: customer_key, device_ids: device_ids, name: name, space_id: space_id, space_key: space_key}.compact)
77
+ def update(acs_entrance_ids: nil, customer_data: nil, device_ids: nil, name: nil, space_id: nil, space_key: nil)
78
+ res = @client.post("/spaces/update", {acs_entrance_ids: acs_entrance_ids, customer_data: customer_data, device_ids: device_ids, name: name, space_id: space_id, space_key: space_key}.compact)
79
79
 
80
80
  Seam::Resources::Space.load_from_response(res.body["space"])
81
81
  end
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "2.126.0"
4
+ VERSION = "2.127.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seam
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.126.0
4
+ version: 2.127.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seam Labs, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-10 00:00:00.000000000 Z
11
+ date: 2026-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday