io-complyance-unify-sdk 3.0.3 → 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: f5a097537bd9a2401186ed088f23221a2ed302594f21e2b6401c13aad24e3c62
4
- data.tar.gz: 4ad97b29657ff1ae39a9d1adeb5c638dbe56043134fe9d5ab5bdc4c673acb7f3
3
+ metadata.gz: a17c205dde2d1e8cec241e0b05d3564ccffdfb0f76c4f1d448d7d951a7e722a2
4
+ data.tar.gz: '08303bab30b0d77f6d2837d93b89a8e528ad8463b358acdd325f263bbf5f8495'
5
5
  SHA512:
6
- metadata.gz: e4501ae49ea1caacb5f55a6493d2629ea1955846398b6b9356174b30d8474cc54af94e5920bd924a5b10799dbaec9d585736d8e409462e147431df069883df85
7
- data.tar.gz: 052e6ff63675d2d061ff0effe191840fcadecaa19fef5e775e90e04f7c7a857d21f6bb48f412678896b644f2cfb2be347922dd260de3556d384d00d6a0c09f6e
6
+ metadata.gz: 3c1f721296777aa911e387a81c5f98b0e28f29b165b1d71880f031680776cae972ee0b285e46d306ef92ac44e52230e6389bfb4a3471a4514e55083dc878d8d3
7
+ data.tar.gz: 7251eff95ab1ec7638cc27b595e920d0af262d1b95c69d08e596a35973726331817be62c824c75e1fa0eee0fd8987191ff36112c80bdafe47977b6d65600f186
@@ -85,17 +85,6 @@ module ComplyanceSDK
85
85
  CONSOLIDATED = GetsDocumentModifier::CONSOLIDATED
86
86
  end
87
87
 
88
- module VARIANT
89
- STANDARD = GetsDocumentVariant::STANDARD
90
- ADVANCE = GetsDocumentVariant::ADVANCE
91
- REFUND = GetsDocumentVariant::REFUND
92
- PARTIAL = GetsDocumentVariant::PARTIAL
93
- PARTIAL_CONSTRUCTION = GetsDocumentVariant::PARTIAL_CONSTRUCTION
94
- PARTIAL_FINAL_CONSTRUCTION = GetsDocumentVariant::PARTIAL_FINAL_CONSTRUCTION
95
- FINAL_CONSTRUCTION = GetsDocumentVariant::FINAL_CONSTRUCTION
96
- CORRECTIVE = GetsDocumentVariant::CORRECTIVE
97
- end
98
-
99
88
  class GetsDocumentTypeV2
100
89
  attr_accessor :base, :modifiers, :variant
101
90
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ComplyanceSDK
4
- VERSION = "3.0.3"
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.3
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
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
315
  - !ruby/object:Gem::Version
316
316
  version: '0'
317
317
  requirements: []
318
- rubygems_version: 3.3.3
318
+ rubygems_version: 3.4.19
319
319
  signing_key:
320
320
  specification_version: 4
321
321
  summary: Ruby SDK for Complyance Unified e-invoicing platform