ruconomic 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/ruconomic/api/template_collection.rb +17 -9
- data/lib/ruconomic/api/term_of_payment.rb +13 -7
- data/lib/ruconomic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb902947e3b5414f57010df1dc31127aed184614
|
4
|
+
data.tar.gz: 87f09f63623909cab905065794fbb15e380fe8f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6e0388fcf788bb93cad0a0d1dcaf93e1cad8cf03b2718675907e48b30eb47b913f3acff60c1b2e0c1fbd371e058dd4338ef2d1361bbe8e86543b91639a46ded
|
7
|
+
data.tar.gz: e2ac077e0fd0e8be96f2fb587e4a1e6f0cca7dc3207d29fe5c1df48161caf5940344fe79b4cffe15d437900291e4432b29773c7aa04af3cd0a0bc8e9f7bd93a6
|
data/CHANGELOG.md
CHANGED
@@ -6,13 +6,18 @@ module Ruconomic
|
|
6
6
|
# Returns an template collection data object for a given template collection.
|
7
7
|
# Parameters: entityHandle: A handle for the template collection.
|
8
8
|
#
|
9
|
-
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
|
10
|
-
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TemplateCollection_GetData
|
11
9
|
# @return [Hash] The body content of the SOAP response.
|
12
|
-
def self.get_data
|
10
|
+
def self.get_data(id)
|
13
11
|
response = invoke('TemplateCollection_GetData') do |message|
|
14
|
-
|
12
|
+
message.add 'entityHandle' do |handle|
|
13
|
+
handle.add 'Id', id
|
14
|
+
end
|
15
15
|
end
|
16
|
+
|
17
|
+
response.to_hash.dig(
|
18
|
+
:template_collection_get_data_response,
|
19
|
+
:template_collection_get_data_result
|
20
|
+
)
|
16
21
|
end
|
17
22
|
|
18
23
|
# Returns template collection data objects for a given set of template collection handles.
|
@@ -29,13 +34,16 @@ module Ruconomic
|
|
29
34
|
|
30
35
|
# Returns handles for all template collections.
|
31
36
|
#
|
32
|
-
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
|
33
37
|
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TemplateCollection_GetAll
|
34
|
-
# @return
|
38
|
+
# @return array The body content of the SOAP response.
|
35
39
|
def self.get_all
|
36
|
-
response = invoke('TemplateCollection_GetAll')
|
37
|
-
|
38
|
-
|
40
|
+
response = invoke('TemplateCollection_GetAll')
|
41
|
+
|
42
|
+
response.to_hash.dig(
|
43
|
+
:template_collection_get_all_response,
|
44
|
+
:template_collection_get_all_result,
|
45
|
+
:template_collection_handle
|
46
|
+
).map { |result| result[:id] }
|
39
47
|
end
|
40
48
|
|
41
49
|
# Returns handles for the template collections with the given name.
|
@@ -54,13 +54,17 @@ module Ruconomic
|
|
54
54
|
# Returns an term of payment data object for a given term of payment.
|
55
55
|
# Parameters: entityHandle: A handle for the term of payment.
|
56
56
|
#
|
57
|
-
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
|
58
57
|
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetData
|
59
58
|
# @return [Hash] The body content of the SOAP response.
|
60
|
-
def self.get_data
|
59
|
+
def self.get_data(handle)
|
61
60
|
response = invoke('TermOfPayment_GetData') do |message|
|
62
|
-
|
61
|
+
message.add_handle('entityHandle', handle, "Id")
|
63
62
|
end
|
63
|
+
|
64
|
+
response.to_hash.dig(
|
65
|
+
:term_of_payment_get_data_response,
|
66
|
+
:term_of_payment_get_data_result
|
67
|
+
)
|
64
68
|
end
|
65
69
|
|
66
70
|
# Returns term of paryment data objects for a given set of term of payment handles.
|
@@ -89,13 +93,15 @@ module Ruconomic
|
|
89
93
|
|
90
94
|
# Returns handles for all term of payments.
|
91
95
|
#
|
92
|
-
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
|
93
96
|
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetAll
|
94
97
|
# @return [Hash] The body content of the SOAP response.
|
95
98
|
def self.get_all
|
96
|
-
response = invoke('TermOfPayment_GetAll')
|
97
|
-
|
98
|
-
|
99
|
+
response = invoke('TermOfPayment_GetAll')
|
100
|
+
response.to_hash.dig(
|
101
|
+
:term_of_payment_get_all_response,
|
102
|
+
:term_of_payment_get_all_result,
|
103
|
+
:term_of_payment_handle
|
104
|
+
).map { |result| result[:id] }
|
99
105
|
end
|
100
106
|
|
101
107
|
# Returns a handle for the term of payment with a given name.
|
data/lib/ruconomic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruconomic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tonni Tølbøll Lund Aagesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|