invofox-api-ruby 0.1.5 → 0.1.6
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/Gemfile.lock +1 -1
- 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: '09b93437ed2e9c8b33197deb7a12532679f752c68f3e76334e1673d75dbde952'
|
|
4
|
+
data.tar.gz: af0b1f44118d7c75218190913a2d48a25f8ea697240b7dff505dde5e489e5285
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11754d4c55fcaf3538f80f4d45e59eed2677019441df7fd9a94764d1ee4fae4f31ae1e5c4a53cc707bc318baa045dd2d0fb6141aab5fb0b3b1bc30ce589ada7f
|
|
7
|
+
data.tar.gz: dc6ae033bf91b65aea2fdf280c295a34e3a90ffc78ee440c5cd61350e9b88a0e04bf94c1ef36291d36b82940275e14ae323593be11b1eb5f17c240b2b67016e3
|
data/Gemfile.lock
CHANGED
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.5 Added support for document's update_public_state endpoint.
|
|
36
37
|
* v.0.1.5 Fixes an issue sending booleans in POST and PUT requests.
|
|
37
38
|
* v.0.1.4 Ensure using JSON as content type.
|
|
38
39
|
* v.0.1.3 Increase timeout to 5m.
|
|
@@ -64,6 +64,19 @@ class Invofox::Document < Invofox::Resource
|
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
def update_public_state(id:, public_state:)
|
|
68
|
+
Invofox.api_call(
|
|
69
|
+
clazz: self,
|
|
70
|
+
method: :put,
|
|
71
|
+
path: "/documents/#{id}/publicState",
|
|
72
|
+
params: {
|
|
73
|
+
publicState: public_state
|
|
74
|
+
}
|
|
75
|
+
) do |response_body|
|
|
76
|
+
response_body['result']
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
67
80
|
def update_type(id:, type:)
|
|
68
81
|
Invofox.api_call(
|
|
69
82
|
clazz: self,
|
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.6
|
|
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-05-
|
|
11
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|