invofox-api-ruby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -0
- data/lib/invofox/resources/document.rb +13 -0
- data/lib/invofox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b00b513fe176cfdbcb4d62613895e50b3eeecf33f1b8f9b07ed29de98c6c7a36
|
4
|
+
data.tar.gz: b40d4e0c9f8e8f41591c08f88fee0a7d16748c25fd25522668ee8c3c9311e25a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 210d9cf33066ee484f40acb375c1820abb16436e9951cf23afbc559402c189958bbdef6ff565f30d465f9c7a7b5cc12309743376c66a491ad84b2959166f10bd
|
7
|
+
data.tar.gz: 8548ec572c3c1276f4ca11117528142a227da74dfcf566944204983a8305c4d975e579cf74b29fb6d1755b59fe0fed9dfc0b6c9c6c400d2aecca9f73b2f635d7
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
invofox-api-ruby (0.1.
|
4
|
+
invofox-api-ruby (0.1.1)
|
5
5
|
rest-client (~> 2.0.2)
|
6
6
|
|
7
7
|
GEM
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
json (2.6.2)
|
21
21
|
mime-types (3.5.2)
|
22
22
|
mime-types-data (~> 3.2015)
|
23
|
-
mime-types-data (3.2024.
|
23
|
+
mime-types-data (3.2024.0305)
|
24
24
|
netrc (0.11.0)
|
25
25
|
parallel (1.22.1)
|
26
26
|
parser (3.1.2.1)
|
data/README.md
CHANGED
@@ -33,6 +33,7 @@ You can set a `logger` as well.
|
|
33
33
|
Changelog
|
34
34
|
---------
|
35
35
|
|
36
|
+
* v.0.1.1 Added support for documents' update_type endpoint.
|
36
37
|
* v.0.1.0 First vull version, including resource wrapping for companies (get, create and update), documents (get, bulk and update) and load batches (get), plus logger integration.
|
37
38
|
|
38
39
|
About Invofox
|
@@ -63,5 +63,18 @@ class Invofox::Document < Invofox::Resource
|
|
63
63
|
response_body['result']
|
64
64
|
end
|
65
65
|
end
|
66
|
+
|
67
|
+
def update_type(id:, type:)
|
68
|
+
Invofox.api_call(
|
69
|
+
clazz: self,
|
70
|
+
method: :put,
|
71
|
+
path: "/documents/#{id}/type",
|
72
|
+
params: {
|
73
|
+
type: type
|
74
|
+
}
|
75
|
+
) do |response_body|
|
76
|
+
response_body['result']
|
77
|
+
end
|
78
|
+
end
|
66
79
|
end
|
67
80
|
end
|
data/lib/invofox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invofox-api-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Bellonch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|