io-complyance-unify-sdk 3.0.4 → 3.0.5

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: fcbf249819956c8ccdf4aaeb286137cce81d9f9aab04dcd9b1d039c5a4f78e6a
4
- data.tar.gz: 5c8ac3e408def62a43560a49b4166f4f648401bc8dfc10152eb4d16f962b8c44
3
+ metadata.gz: a17c205dde2d1e8cec241e0b05d3564ccffdfb0f76c4f1d448d7d951a7e722a2
4
+ data.tar.gz: '08303bab30b0d77f6d2837d93b89a8e528ad8463b358acdd325f263bbf5f8495'
5
5
  SHA512:
6
- metadata.gz: d735fd7c1465fb452e85f668c444d897b7d8a3a32bf74632417ade48ff474d1cb599b18b612555efb54b0acbcb6c32ec5d197d9575da869418b73e0902d8a13f
7
- data.tar.gz: 4107ae4fe9fe00349bf0207cfde2b21063ba1edf2889eab712cdf3388cdfebe07546498aeda51c770625233efc84a5af70077538c645a14af2f03af9bf915fa9
6
+ metadata.gz: 3c1f721296777aa911e387a81c5f98b0e28f29b165b1d71880f031680776cae972ee0b285e46d306ef92ac44e52230e6389bfb4a3471a4514e55083dc878d8d3
7
+ data.tar.gz: 7251eff95ab1ec7638cc27b595e920d0af262d1b95c69d08e596a35973726331817be62c824c75e1fa0eee0fd8987191ff36112c80bdafe47977b6d65600f186
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ComplyanceSDK
4
- VERSION = "3.0.4"
4
+ VERSION = "3.0.5"
5
5
  end
@@ -319,22 +319,45 @@ module ComplyanceSDK
319
319
  push_to_unify(request)
320
320
  end
321
321
 
322
- # Get the status of a submission
322
+ # Get retrieval status by document ID.
323
323
  #
324
- # @param submission_id [String] The submission ID
325
- # @return [ComplyanceSDK::Models::UnifyResponse] The response object
326
- def get_status(submission_id)
324
+ # @param document_id [String] The document ID
325
+ # @return [Hash] Raw retrieval response hash
326
+ def get_document_status(document_id)
327
327
  unless configured?
328
328
  raise ComplyanceSDK::Exceptions::ConfigurationError.new(
329
329
  "SDK must be configured before making API calls"
330
330
  )
331
331
  end
332
332
 
333
- response_data = with_retry("get_status", { submission_id: submission_id }) do
334
- http_client.get("/api/v1/submissions/#{submission_id}")
333
+ normalized = document_id.to_s.strip
334
+ if normalized.empty?
335
+ raise ComplyanceSDK::Exceptions::ValidationError.new(
336
+ "Document ID is required",
337
+ suggestion: "Provide a valid documentId to fetch retrieval status."
338
+ )
335
339
  end
336
340
 
337
- ComplyanceSDK::Models::UnifyResponse.from_h(response_data)
341
+ with_retry("get_document_status", { document_id: normalized }) do
342
+ http_client.get("/api/v3/documents/#{URI.encode_www_form_component(normalized)}/status")
343
+ end
344
+ end
345
+
346
+ # Deprecated submissionId polling endpoint.
347
+ #
348
+ # @param submission_id [String] The submission ID
349
+ # @return [Hash]
350
+ def get_submission_status(submission_id)
351
+ _unused = submission_id
352
+ raise ComplyanceSDK::Exceptions::ValidationError.new(
353
+ "submissionId status retrieval is no longer supported",
354
+ suggestion: "Use get_document_status(document_id) for polling status and trace endpoints."
355
+ )
356
+ end
357
+
358
+ # @deprecated Use get_document_status(document_id).
359
+ def get_status(submission_id)
360
+ get_submission_status(submission_id)
338
361
  end
339
362
 
340
363
  # Process a document asynchronously using background jobs
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: io-complyance-unify-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Complyance Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-04-14 00:00:00.000000000 Z
11
+ date: 2026-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday