rconomic 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +1 -2
- data/Gemfile +1 -0
- data/README.md +6 -1
- data/lib/economic/account.rb +5 -7
- data/lib/economic/cash_book.rb +8 -10
- data/lib/economic/cash_book_entry.rb +1 -1
- data/lib/economic/creditor.rb +1 -1
- data/lib/economic/creditor_contact.rb +2 -2
- data/lib/economic/current_invoice.rb +10 -13
- data/lib/economic/current_invoice_line.rb +3 -3
- data/lib/economic/debtor.rb +1 -1
- data/lib/economic/debtor_contact.rb +2 -2
- data/lib/economic/entity.rb +19 -19
- data/lib/economic/invoice.rb +6 -6
- data/lib/economic/proxies/account_proxy.rb +4 -6
- data/lib/economic/proxies/actions/find_by_ci_number.rb +3 -5
- data/lib/economic/proxies/actions/find_by_date_interval.rb +4 -7
- data/lib/economic/proxies/actions/find_by_name.rb +71 -0
- data/lib/economic/proxies/actions/find_by_number.rb +3 -5
- data/lib/economic/proxies/cash_book_entry_proxy.rb +16 -13
- data/lib/economic/proxies/cash_book_proxy.rb +7 -23
- data/lib/economic/proxies/creditor_contact_proxy.rb +6 -49
- data/lib/economic/proxies/creditor_entry_proxy.rb +13 -19
- data/lib/economic/proxies/creditor_proxy.rb +6 -8
- data/lib/economic/proxies/current_invoice_line_proxy.rb +3 -9
- data/lib/economic/proxies/current_invoice_proxy.rb +12 -20
- data/lib/economic/proxies/debtor_contact_proxy.rb +6 -49
- data/lib/economic/proxies/debtor_entry_proxy.rb +9 -14
- data/lib/economic/proxies/debtor_proxy.rb +1 -1
- data/lib/economic/proxies/entity_proxy.rb +21 -20
- data/lib/economic/proxies/entry_proxy.rb +14 -20
- data/lib/economic/session.rb +21 -12
- data/lib/economic/support/string.rb +5 -1
- data/lib/rconomic.rb +2 -1
- data/lib/rconomic/version.rb +1 -1
- data/rconomic.gemspec +0 -2
- data/spec/economic/current_invoice_spec.rb +1 -1
- data/spec/economic/entity_spec.rb +4 -3
- data/spec/economic/proxies/actions/find_by_name_spec.rb +48 -0
- data/spec/economic/proxies/cash_book_proxy_spec.rb +30 -5
- data/spec/economic/proxies/creditor_contact_proxy_spec.rb +10 -0
- data/spec/economic/proxies/current_invoice_line_proxy_spec.rb +3 -3
- data/spec/economic/proxies/current_invoice_proxy_spec.rb +5 -5
- data/spec/economic/proxies/debtor_contact_proxy_spec.rb +10 -1
- data/spec/economic/proxies/debtor_entry_proxy_spec.rb +2 -2
- data/spec/economic/proxies/invoice_proxy_spec.rb +3 -3
- data/spec/economic/session_spec.rb +44 -3
- data/spec/fixtures/cash_book_get_data/success.xml +14 -0
- data/spec/fixtures/cash_book_get_data_array/multiple.xml +23 -0
- data/spec/fixtures/creditor_contact_find_by_name/multiple.xml +15 -0
- data/spec/fixtures/creditor_contact_find_by_name/none.xml +9 -0
- data/spec/fixtures/debtor_contact_find_by_name/multiple.xml +15 -0
- data/spec/fixtures/debtor_contact_find_by_name/none.xml +9 -0
- data/spec/spec_helper.rb +6 -0
- metadata +10 -16
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
3
|
+
<soap:Body>
|
4
|
+
<CashBook_GetDataResponse xmlns="http://e-conomic.com">
|
5
|
+
<CashBook_GetDataResult>
|
6
|
+
<Handle>
|
7
|
+
<Number>42</Number>
|
8
|
+
</Handle>
|
9
|
+
<Number>42</Number>
|
10
|
+
<Name>Name of cash book</Name>
|
11
|
+
</CashBook_GetDataResult>
|
12
|
+
</CashBook_GetDataResponse>
|
13
|
+
</soap:Body>
|
14
|
+
</soap:Envelope>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
3
|
+
<soap:Body>
|
4
|
+
<CashBook_GetDataArrayResponse xmlns="http://e-conomic.com">
|
5
|
+
<CashBook_GetDataArrayResult>
|
6
|
+
<CashBookData>
|
7
|
+
<Handle>
|
8
|
+
<Number>42</Number>
|
9
|
+
</Handle>
|
10
|
+
<Number>42</Number>
|
11
|
+
<Name>A cash book</Name>
|
12
|
+
</CashBookData>
|
13
|
+
<CashBookData>
|
14
|
+
<Handle>
|
15
|
+
<Number>37</Number>
|
16
|
+
</Handle>
|
17
|
+
<Number>37</Number>
|
18
|
+
<Name>Another cash book</Name>
|
19
|
+
</CashBookData>
|
20
|
+
</CashBook_GetDataArrayResult>
|
21
|
+
</CashBook_GetDataArrayResponse>
|
22
|
+
</soap:Body>
|
23
|
+
</soap:Envelope>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
3
|
+
<soap:Body>
|
4
|
+
<CreditorContact_FindByNameResponse xmlns="http://e-conomic.com">
|
5
|
+
<CreditorContact_FindByNameResult>
|
6
|
+
<CreditorContactHandle>
|
7
|
+
<Id>42</Id>
|
8
|
+
</CreditorContactHandle>
|
9
|
+
<CreditorContactHandle>
|
10
|
+
<Id>37</Id>
|
11
|
+
</CreditorContactHandle>
|
12
|
+
</CreditorContact_FindByNameResult>
|
13
|
+
</CreditorContact_FindByNameResponse>
|
14
|
+
</soap:Body>
|
15
|
+
</soap:Envelope>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
3
|
+
<soap:Body>
|
4
|
+
<CreditorContact_FindByNameResponse xmlns="http://e-conomic.com">
|
5
|
+
<CreditorContact_FindByNameResult>
|
6
|
+
</CreditorContact_FindByNameResult>
|
7
|
+
</CreditorContact_FindByNameResponse>
|
8
|
+
</soap:Body>
|
9
|
+
</soap:Envelope>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
3
|
+
<soap:Body>
|
4
|
+
<DebtorContact_FindByNameResponse xmlns="http://e-conomic.com">
|
5
|
+
<DebtorContact_FindByNameResult>
|
6
|
+
<DebtorContactHandle>
|
7
|
+
<Id>42</Id>
|
8
|
+
</DebtorContactHandle>
|
9
|
+
<DebtorContactHandle>
|
10
|
+
<Id>37</Id>
|
11
|
+
</DebtorContactHandle>
|
12
|
+
</DebtorContact_FindByNameResult>
|
13
|
+
</DebtorContact_FindByNameResponse>
|
14
|
+
</soap:Body>
|
15
|
+
</soap:Envelope>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
3
|
+
<soap:Body>
|
4
|
+
<DebtorContact_FindByNameResponse xmlns="http://e-conomic.com">
|
5
|
+
<DebtorContact_FindByNameResult>
|
6
|
+
</DebtorContact_FindByNameResult>
|
7
|
+
</DebtorContact_FindByNameResponse>
|
8
|
+
</soap:Body>
|
9
|
+
</soap:Envelope>
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rconomic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Skjerning
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.4.4
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: activesupport
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '3.0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '3.0'
|
55
41
|
description: ! " Ruby wrapper for the e-conomic SOAP API, that aims
|
56
42
|
at making working with the API bearable.\n\n E-conomic is a web-based
|
57
43
|
accounting system. For their marketing speak, see http://www.e-conomic.co.uk/about/.
|
@@ -87,6 +73,7 @@ files:
|
|
87
73
|
- lib/economic/proxies/actions/find_by_ci_number.rb
|
88
74
|
- lib/economic/proxies/actions/find_by_date_interval.rb
|
89
75
|
- lib/economic/proxies/actions/find_by_handle_with_number.rb
|
76
|
+
- lib/economic/proxies/actions/find_by_name.rb
|
90
77
|
- lib/economic/proxies/actions/find_by_number.rb
|
91
78
|
- lib/economic/proxies/cash_book_entry_proxy.rb
|
92
79
|
- lib/economic/proxies/cash_book_proxy.rb
|
@@ -119,6 +106,7 @@ files:
|
|
119
106
|
- spec/economic/entity_spec.rb
|
120
107
|
- spec/economic/entry_spec.rb
|
121
108
|
- spec/economic/invoice_spec.rb
|
109
|
+
- spec/economic/proxies/actions/find_by_name_spec.rb
|
122
110
|
- spec/economic/proxies/cash_book_entry_proxy_spec.rb
|
123
111
|
- spec/economic/proxies/cash_book_proxy_spec.rb
|
124
112
|
- spec/economic/proxies/creditor_contact_proxy_spec.rb
|
@@ -141,9 +129,13 @@ files:
|
|
141
129
|
- spec/fixtures/cash_book_entry_get_data/success.xml
|
142
130
|
- spec/fixtures/cash_book_entry_set_due_date/success.xml
|
143
131
|
- spec/fixtures/cash_book_get_all/multiple.xml
|
132
|
+
- spec/fixtures/cash_book_get_data/success.xml
|
133
|
+
- spec/fixtures/cash_book_get_data_array/multiple.xml
|
144
134
|
- spec/fixtures/cash_book_get_entries/success.xml
|
145
135
|
- spec/fixtures/cash_book_get_name/success.xml
|
146
136
|
- spec/fixtures/connect/success.xml
|
137
|
+
- spec/fixtures/creditor_contact_find_by_name/multiple.xml
|
138
|
+
- spec/fixtures/creditor_contact_find_by_name/none.xml
|
147
139
|
- spec/fixtures/creditor_contact_get_data/success.xml
|
148
140
|
- spec/fixtures/creditor_entry_find_by_invoice_number/many.xml
|
149
141
|
- spec/fixtures/creditor_entry_find_by_invoice_number/single.xml
|
@@ -168,6 +160,8 @@ files:
|
|
168
160
|
- spec/fixtures/current_invoice_get_data_array/multiple.xml
|
169
161
|
- spec/fixtures/current_invoice_get_data_array/single.xml
|
170
162
|
- spec/fixtures/current_invoice_line_get_data/success.xml
|
163
|
+
- spec/fixtures/debtor_contact_find_by_name/multiple.xml
|
164
|
+
- spec/fixtures/debtor_contact_find_by_name/none.xml
|
171
165
|
- spec/fixtures/debtor_contact_get_data/success.xml
|
172
166
|
- spec/fixtures/debtor_entry_find_by_invoice_number/many.xml
|
173
167
|
- spec/fixtures/debtor_entry_find_by_invoice_number/single.xml
|