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 +4 -4
- data/lib/complyance_sdk/models/gets_document_type_v2.rb +0 -11
- data/lib/complyance_sdk/version.rb +1 -1
- data/lib/complyance_sdk.rb +30 -7
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a17c205dde2d1e8cec241e0b05d3564ccffdfb0f76c4f1d448d7d951a7e722a2
|
|
4
|
+
data.tar.gz: '08303bab30b0d77f6d2837d93b89a8e528ad8463b358acdd325f263bbf5f8495'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/complyance_sdk.rb
CHANGED
|
@@ -319,22 +319,45 @@ module ComplyanceSDK
|
|
|
319
319
|
push_to_unify(request)
|
|
320
320
|
end
|
|
321
321
|
|
|
322
|
-
# Get
|
|
322
|
+
# Get retrieval status by document ID.
|
|
323
323
|
#
|
|
324
|
-
# @param
|
|
325
|
-
# @return [
|
|
326
|
-
def
|
|
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
|
-
|
|
334
|
-
|
|
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
|
-
|
|
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
|
+
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-
|
|
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.
|
|
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
|