anaf-web_services 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -2
- data/README.md +8 -1
- data/lib/anaf/web_services/vat_registry.rb +2 -2
- data/lib/anaf/web_services/version.rb +1 -1
- data/lib/anaf/web_services.rb +1 -0
- 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: 3ece423043302125d41bc7368423ae8495b2085dbf80c995e83479fe0c26f004
|
4
|
+
data.tar.gz: 496546e3c7f3b4b75f4e2c8a1be23cdea37dbe303070093f5ed2d07c4541916c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4137c7b57648c8364a30be2475659b9d9aa0e116a3f2056f3ac44f88fc71c9bec6a915d8f3d7b72990acdce84145b42350367af7e30518f8b975ee4a69b060a
|
7
|
+
data.tar.gz: cae4cc8386a3f80d76f5bd6b71e648474d26d93ed15d3d4c08ad5eb6e818a94dfafa577eb4980cd2c405a648d0a79738023433560676041aece9156ab439fd7e
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
anaf-web_services (0.
|
4
|
+
anaf-web_services (0.3.0)
|
5
5
|
faraday (>= 1.0.0, < 3.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -96,6 +96,7 @@ GEM
|
|
96
96
|
hashdiff (>= 0.4.0, < 2.0.0)
|
97
97
|
|
98
98
|
PLATFORMS
|
99
|
+
arm64-darwin-22
|
99
100
|
x86_64-darwin-21
|
100
101
|
x86_64-linux
|
101
102
|
|
@@ -109,4 +110,4 @@ DEPENDENCIES
|
|
109
110
|
webmock (~> 3.18, >= 3.18.1)
|
110
111
|
|
111
112
|
BUNDLED WITH
|
112
|
-
2.
|
113
|
+
2.4.22
|
data/README.md
CHANGED
@@ -40,7 +40,14 @@ The APIs operate based on this **CUI** number.
|
|
40
40
|
|
41
41
|
This API returns some information about the companies but is mainly focused on the VAT status of the company, if it's VAT liable or not.
|
42
42
|
|
43
|
-
For more details about the underlying API see
|
43
|
+
For more details about the underlying API see the official documentation for the corresponding version, but it's only in Romanian.
|
44
|
+
|
45
|
+
#### API versions
|
46
|
+
|
47
|
+
| GEM | ANAF API | Docs |
|
48
|
+
|-------|----------|-------------------------------------------------------------------------------|
|
49
|
+
| 0.2.0 | V6 | https://static.anaf.ro/static/10/Anaf/Informatii_R/doc_WS_V6.txt |
|
50
|
+
| 0.3.0 | V8 | https://static.anaf.ro/static/10/Anaf/Informatii_R/Servicii_web/doc_WS_V8.txt |
|
44
51
|
|
45
52
|
#### Get a company by CUI
|
46
53
|
|
@@ -6,7 +6,7 @@ module ANAF
|
|
6
6
|
module WebServices
|
7
7
|
class VatRegistry # :nodoc:
|
8
8
|
BASE_URL = 'https://webservicesp.anaf.ro'
|
9
|
-
PATH = '/PlatitorTvaRest/api/
|
9
|
+
PATH = '/PlatitorTvaRest/api/v8/ws/tva'
|
10
10
|
|
11
11
|
attr_reader :ids
|
12
12
|
|
@@ -26,7 +26,7 @@ module ANAF
|
|
26
26
|
rescue JSON::ParserError
|
27
27
|
raise InvalidRequest, response.body
|
28
28
|
rescue Faraday::TimeoutError, Faraday::ConnectionFailed
|
29
|
-
|
29
|
+
raise TimeoutError
|
30
30
|
end
|
31
31
|
|
32
32
|
def request_body
|
data/lib/anaf/web_services.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anaf-web_services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mariusz Siklodi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
75
|
+
rubygems_version: 3.4.19
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Ruby Client library for ANAF API
|