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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c235ca841bd9bb5eb9ef10540da92c49fe38a1b
4
- data.tar.gz: aba80a90157ac2b1bf6619badf5ec82ee3600003
3
+ metadata.gz: cb902947e3b5414f57010df1dc31127aed184614
4
+ data.tar.gz: 87f09f63623909cab905065794fbb15e380fe8f4
5
5
  SHA512:
6
- metadata.gz: 6fd8fdfba4165ac8c0775272ad75a83d816e3fee2c92a0241c3b612696b12939241f1ce64c3a7710bb6cbff7f0826684cc3938012d9e693fe9d82dc6c9ea9c5e
7
- data.tar.gz: 283c3e9dbb3926e104c362e7d423f72d41df9dcf6ccd0c59a6e929975a9d1594cda2fa9f0d013c8c136f5e1c2883a029f29c26ce4a7d2869164f4a1cf9ac4d04
6
+ metadata.gz: e6e0388fcf788bb93cad0a0d1dcaf93e1cad8cf03b2718675907e48b30eb47b913f3acff60c1b2e0c1fbd371e058dd4338ef2d1361bbe8e86543b91639a46ded
7
+ data.tar.gz: e2ac077e0fd0e8be96f2fb587e4a1e6f0cca7dc3207d29fe5c1df48161caf5940344fe79b4cffe15d437900291e4432b29773c7aa04af3cd0a0bc8e9f7bd93a6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ # 0.9.11
4
+
5
+ - TemplateCollection: get all
6
+ - TemplateCollection: get data
7
+ - TermOfPayment: get all
8
+ - TermOfPayment: get data
9
+
3
10
  # 0.9.10
4
11
 
5
12
  - CurrentInvoice: get all
@@ -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
- raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
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 [Hash] The body content of the SOAP response.
38
+ # @return array The body content of the SOAP response.
35
39
  def self.get_all
36
- response = invoke('TemplateCollection_GetAll') do |message|
37
- raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
38
- end
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
- raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
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') do |message|
97
- raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
98
- end
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.
@@ -1,3 +1,3 @@
1
1
  module Ruconomic
2
- VERSION = "0.9.10"
2
+ VERSION = "0.9.11"
3
3
  end
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.10
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-04-03 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb