rconomic 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +1 -2
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/economic/account.rb +2 -2
- data/lib/economic/cash_book.rb +1 -1
- data/lib/economic/cash_book_entry.rb +33 -36
- data/lib/economic/creditor.rb +2 -2
- data/lib/economic/creditor_contact.rb +3 -3
- data/lib/economic/current_invoice.rb +26 -25
- data/lib/economic/current_invoice_line.rb +17 -17
- data/lib/economic/debtor.rb +3 -3
- data/lib/economic/debtor_contact.rb +4 -4
- data/lib/economic/debtor_entry.rb +1 -2
- data/lib/economic/entity/handle.rb +30 -8
- data/lib/economic/entity.rb +23 -3
- data/lib/economic/entry.rb +1 -2
- data/lib/economic/invoice.rb +2 -2
- data/lib/economic/proxies/actions/find_by_ci_number.rb +25 -0
- data/lib/economic/proxies/actions/find_by_date_interval.rb +27 -0
- data/lib/economic/proxies/actions/find_by_handle_with_number.rb +12 -0
- data/lib/economic/proxies/actions/find_by_number.rb +21 -0
- data/lib/economic/proxies/creditor_contact_proxy.rb +1 -1
- data/lib/economic/proxies/creditor_proxy.rb +6 -53
- data/lib/economic/proxies/current_invoice_line_proxy.rb +1 -1
- data/lib/economic/proxies/current_invoice_proxy.rb +2 -17
- data/lib/economic/proxies/debtor_contact_proxy.rb +2 -2
- data/lib/economic/proxies/debtor_proxy.rb +6 -53
- data/lib/economic/proxies/entity_proxy.rb +27 -11
- data/lib/economic/proxies/invoice_proxy.rb +4 -26
- data/lib/rconomic/version.rb +1 -1
- data/spec/economic/cash_book_entry_spec.rb +8 -0
- data/spec/economic/current_invoice_line_spec.rb +27 -0
- data/spec/economic/current_invoice_spec.rb +24 -1
- data/spec/economic/entity/handle_spec.rb +53 -3
- data/spec/economic/entity_spec.rb +41 -13
- data/spec/economic/proxies/cash_book_entry_proxy_spec.rb +0 -7
- data/spec/economic/proxies/current_invoice_proxy_spec.rb +4 -9
- data/spec/economic/proxies/debtor_proxy_spec.rb +1 -1
- data/spec/economic/proxies/invoice_proxy_spec.rb +4 -9
- data/spec/fixtures/invoice_get_data_array/multiple.xml +143 -0
- data/spec/fixtures/invoice_get_data_array/single.xml +75 -0
- metadata +64 -80
@@ -0,0 +1,143 @@
|
|
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
|
+
<Invoice_GetDataArrayResponse xmlns="http://e-conomic.com">
|
5
|
+
<Invoice_GetDataArrayResult>
|
6
|
+
<InvoiceData>
|
7
|
+
<Handle>
|
8
|
+
<Number>1</Number>
|
9
|
+
</Handle>
|
10
|
+
<Number>1</Number>
|
11
|
+
<DebtorHandle>
|
12
|
+
<Number>string</Number>
|
13
|
+
</DebtorHandle>
|
14
|
+
<ProjectHandle>
|
15
|
+
<Number>int</Number>
|
16
|
+
</ProjectHandle>
|
17
|
+
<DebtorName>string</DebtorName>
|
18
|
+
<DebtorAddress>string</DebtorAddress>
|
19
|
+
<DebtorPostalCode>string</DebtorPostalCode>
|
20
|
+
<DebtorCity>string</DebtorCity>
|
21
|
+
<DebtorCountry>string</DebtorCountry>
|
22
|
+
<DebtorEan>string</DebtorEan>
|
23
|
+
<PublicEntryNumber>string</PublicEntryNumber>
|
24
|
+
<AttentionHandle>
|
25
|
+
<Id>int</Id>
|
26
|
+
</AttentionHandle>
|
27
|
+
<YourReferenceHandle>
|
28
|
+
<Id>int</Id>
|
29
|
+
</YourReferenceHandle>
|
30
|
+
<OurReferenceHandle>
|
31
|
+
<Number>int</Number>
|
32
|
+
</OurReferenceHandle>
|
33
|
+
<OurReference2Handle>
|
34
|
+
<Number>int</Number>
|
35
|
+
</OurReference2Handle>
|
36
|
+
<TermOfPaymentHandle>
|
37
|
+
<Id>int</Id>
|
38
|
+
</TermOfPaymentHandle>
|
39
|
+
<CurrencyHandle>
|
40
|
+
<Code>string</Code>
|
41
|
+
</CurrencyHandle>
|
42
|
+
<IsVatIncluded>boolean</IsVatIncluded>
|
43
|
+
<LayoutHandle>
|
44
|
+
<Id>int</Id>
|
45
|
+
</LayoutHandle>
|
46
|
+
<DeliveryLocationHandle>
|
47
|
+
<Id>int</Id>
|
48
|
+
</DeliveryLocationHandle>
|
49
|
+
<DeliveryAddress>string</DeliveryAddress>
|
50
|
+
<DeliveryPostalCode>string</DeliveryPostalCode>
|
51
|
+
<DeliveryCity>string</DeliveryCity>
|
52
|
+
<DeliveryCountry>string</DeliveryCountry>
|
53
|
+
<TermsOfDelivery>string</TermsOfDelivery>
|
54
|
+
<DeliveryDate>dateTime</DeliveryDate>
|
55
|
+
<Date>dateTime</Date>
|
56
|
+
<DueDate>dateTime</DueDate>
|
57
|
+
<Heading>string</Heading>
|
58
|
+
<TextLine1>string</TextLine1>
|
59
|
+
<TextLine2>string</TextLine2>
|
60
|
+
<OtherReference>string</OtherReference>
|
61
|
+
<OrderNumber>int</OrderNumber>
|
62
|
+
<NetAmount>decimal</NetAmount>
|
63
|
+
<VatAmount>decimal</VatAmount>
|
64
|
+
<GrossAmount>decimal</GrossAmount>
|
65
|
+
<Remainder>decimal</Remainder>
|
66
|
+
<RemainderDefaultCurrency>decimal</RemainderDefaultCurrency>
|
67
|
+
<RoundingAmount>decimal</RoundingAmount>
|
68
|
+
<DebtorCounty>string</DebtorCounty>
|
69
|
+
<DeliveryCounty>string</DeliveryCounty>
|
70
|
+
<NetAmountDefaultCurrency>decimal</NetAmountDefaultCurrency>
|
71
|
+
<DeductionAmount>decimal</DeductionAmount>
|
72
|
+
</InvoiceData>
|
73
|
+
<InvoiceData>
|
74
|
+
<Handle>
|
75
|
+
<Number>2</Number>
|
76
|
+
</Handle>
|
77
|
+
<Number>2</Number>
|
78
|
+
<DebtorHandle>
|
79
|
+
<Number>string</Number>
|
80
|
+
</DebtorHandle>
|
81
|
+
<ProjectHandle>
|
82
|
+
<Number>int</Number>
|
83
|
+
</ProjectHandle>
|
84
|
+
<DebtorName>string</DebtorName>
|
85
|
+
<DebtorAddress>string</DebtorAddress>
|
86
|
+
<DebtorPostalCode>string</DebtorPostalCode>
|
87
|
+
<DebtorCity>string</DebtorCity>
|
88
|
+
<DebtorCountry>string</DebtorCountry>
|
89
|
+
<DebtorEan>string</DebtorEan>
|
90
|
+
<PublicEntryNumber>string</PublicEntryNumber>
|
91
|
+
<AttentionHandle>
|
92
|
+
<Id>int</Id>
|
93
|
+
</AttentionHandle>
|
94
|
+
<YourReferenceHandle>
|
95
|
+
<Id>int</Id>
|
96
|
+
</YourReferenceHandle>
|
97
|
+
<OurReferenceHandle>
|
98
|
+
<Number>int</Number>
|
99
|
+
</OurReferenceHandle>
|
100
|
+
<OurReference2Handle>
|
101
|
+
<Number>int</Number>
|
102
|
+
</OurReference2Handle>
|
103
|
+
<TermOfPaymentHandle>
|
104
|
+
<Id>int</Id>
|
105
|
+
</TermOfPaymentHandle>
|
106
|
+
<CurrencyHandle>
|
107
|
+
<Code>string</Code>
|
108
|
+
</CurrencyHandle>
|
109
|
+
<IsVatIncluded>boolean</IsVatIncluded>
|
110
|
+
<LayoutHandle>
|
111
|
+
<Id>int</Id>
|
112
|
+
</LayoutHandle>
|
113
|
+
<DeliveryLocationHandle>
|
114
|
+
<Id>int</Id>
|
115
|
+
</DeliveryLocationHandle>
|
116
|
+
<DeliveryAddress>string</DeliveryAddress>
|
117
|
+
<DeliveryPostalCode>string</DeliveryPostalCode>
|
118
|
+
<DeliveryCity>string</DeliveryCity>
|
119
|
+
<DeliveryCountry>string</DeliveryCountry>
|
120
|
+
<TermsOfDelivery>string</TermsOfDelivery>
|
121
|
+
<DeliveryDate>dateTime</DeliveryDate>
|
122
|
+
<Date>dateTime</Date>
|
123
|
+
<DueDate>dateTime</DueDate>
|
124
|
+
<Heading>string</Heading>
|
125
|
+
<TextLine1>string</TextLine1>
|
126
|
+
<TextLine2>string</TextLine2>
|
127
|
+
<OtherReference>string</OtherReference>
|
128
|
+
<OrderNumber>int</OrderNumber>
|
129
|
+
<NetAmount>decimal</NetAmount>
|
130
|
+
<VatAmount>decimal</VatAmount>
|
131
|
+
<GrossAmount>decimal</GrossAmount>
|
132
|
+
<Remainder>decimal</Remainder>
|
133
|
+
<RemainderDefaultCurrency>decimal</RemainderDefaultCurrency>
|
134
|
+
<RoundingAmount>decimal</RoundingAmount>
|
135
|
+
<DebtorCounty>string</DebtorCounty>
|
136
|
+
<DeliveryCounty>string</DeliveryCounty>
|
137
|
+
<NetAmountDefaultCurrency>decimal</NetAmountDefaultCurrency>
|
138
|
+
<DeductionAmount>decimal</DeductionAmount>
|
139
|
+
</InvoiceData>
|
140
|
+
</Invoice_GetDataArrayResult>
|
141
|
+
</Invoice_GetDataArrayResponse>
|
142
|
+
</soap:Body>
|
143
|
+
</soap:Envelope>
|
@@ -0,0 +1,75 @@
|
|
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
|
+
<Invoice_GetDataArrayResponse xmlns="http://e-conomic.com">
|
5
|
+
<Invoice_GetDataArrayResult>
|
6
|
+
<InvoiceData>
|
7
|
+
<Handle>
|
8
|
+
<Id>int</Id>
|
9
|
+
</Handle>
|
10
|
+
<Id>int</Id>
|
11
|
+
<DebtorHandle>
|
12
|
+
<Number>string</Number>
|
13
|
+
</DebtorHandle>
|
14
|
+
<ProjectHandle>
|
15
|
+
<Number>int</Number>
|
16
|
+
</ProjectHandle>
|
17
|
+
<DebtorName>string</DebtorName>
|
18
|
+
<DebtorAddress>string</DebtorAddress>
|
19
|
+
<DebtorPostalCode>string</DebtorPostalCode>
|
20
|
+
<DebtorCity>string</DebtorCity>
|
21
|
+
<DebtorCountry>string</DebtorCountry>
|
22
|
+
<DebtorEan>string</DebtorEan>
|
23
|
+
<PublicEntryNumber>string</PublicEntryNumber>
|
24
|
+
<AttentionHandle>
|
25
|
+
<Id>int</Id>
|
26
|
+
</AttentionHandle>
|
27
|
+
<YourReferenceHandle>
|
28
|
+
<Id>int</Id>
|
29
|
+
</YourReferenceHandle>
|
30
|
+
<OurReferenceHandle>
|
31
|
+
<Number>int</Number>
|
32
|
+
</OurReferenceHandle>
|
33
|
+
<OurReference2Handle>
|
34
|
+
<Number>int</Number>
|
35
|
+
</OurReference2Handle>
|
36
|
+
<Date>dateTime</Date>
|
37
|
+
<TermOfPaymentHandle>
|
38
|
+
<Id>int</Id>
|
39
|
+
</TermOfPaymentHandle>
|
40
|
+
<DueDate>dateTime</DueDate>
|
41
|
+
<CurrencyHandle>
|
42
|
+
<Code>string</Code>
|
43
|
+
</CurrencyHandle>
|
44
|
+
<ExchangeRate>decimal</ExchangeRate>
|
45
|
+
<IsVatIncluded>boolean</IsVatIncluded>
|
46
|
+
<LayoutHandle>
|
47
|
+
<Id>int</Id>
|
48
|
+
</LayoutHandle>
|
49
|
+
<DeliveryLocationHandle>
|
50
|
+
<Id>int</Id>
|
51
|
+
</DeliveryLocationHandle>
|
52
|
+
<DeliveryAddress>string</DeliveryAddress>
|
53
|
+
<DeliveryPostalCode>string</DeliveryPostalCode>
|
54
|
+
<DeliveryCity>string</DeliveryCity>
|
55
|
+
<DeliveryCountry>string</DeliveryCountry>
|
56
|
+
<TermsOfDelivery>string</TermsOfDelivery>
|
57
|
+
<DeliveryDate>dateTime</DeliveryDate>
|
58
|
+
<Heading>string</Heading>
|
59
|
+
<TextLine1>string</TextLine1>
|
60
|
+
<TextLine2>string</TextLine2>
|
61
|
+
<OtherReference>string</OtherReference>
|
62
|
+
<NetAmount>decimal</NetAmount>
|
63
|
+
<VatAmount>decimal</VatAmount>
|
64
|
+
<GrossAmount>decimal</GrossAmount>
|
65
|
+
<Margin>decimal</Margin>
|
66
|
+
<MarginAsPercent>decimal</MarginAsPercent>
|
67
|
+
<RoundingAmount>decimal</RoundingAmount>
|
68
|
+
<DebtorCounty>string</DebtorCounty>
|
69
|
+
<DeliveryCounty>string</DeliveryCounty>
|
70
|
+
<DeductionAmount>decimal</DeductionAmount>
|
71
|
+
</InvoiceData>
|
72
|
+
</Invoice_GetDataArrayResult>
|
73
|
+
</Invoice_GetDataArrayResponse>
|
74
|
+
</soap:Body>
|
75
|
+
</soap:Envelope>
|
metadata
CHANGED
@@ -1,77 +1,66 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rconomic
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
version: "0.4"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.1
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- Jakob Skjerning
|
13
8
|
autorequire:
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-04-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
20
14
|
name: savon
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
- - "="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 49
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
- 9
|
31
|
-
- 5
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
32
19
|
version: 0.9.5
|
33
20
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: gyoku
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.9.5
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: gyoku
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
48
33
|
version: 0.4.4
|
49
34
|
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: activesupport
|
53
35
|
prerelease: false
|
54
|
-
|
55
|
-
|
56
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.4.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
57
45
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 3
|
62
|
-
- 0
|
63
|
-
version: "3.0"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
64
48
|
type: :runtime
|
65
|
-
|
66
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: ! " Ruby wrapper for the e-conomic SOAP API, that aims
|
56
|
+
at making working with the API bearable.\n\n E-conomic is a web-based
|
57
|
+
accounting system. For their marketing speak, see http://www.e-conomic.co.uk/about/.
|
58
|
+
More details about their API at http://www.e-conomic.co.uk/integration/integration-partner/.\n"
|
67
59
|
email: jakob@mentalized.net
|
68
60
|
executables: []
|
69
|
-
|
70
61
|
extensions: []
|
71
|
-
|
72
62
|
extra_rdoc_files: []
|
73
|
-
|
74
|
-
files:
|
63
|
+
files:
|
75
64
|
- .travis.yml
|
76
65
|
- Gemfile
|
77
66
|
- Guardfile
|
@@ -95,6 +84,10 @@ files:
|
|
95
84
|
- lib/economic/entry.rb
|
96
85
|
- lib/economic/invoice.rb
|
97
86
|
- lib/economic/proxies/account_proxy.rb
|
87
|
+
- lib/economic/proxies/actions/find_by_ci_number.rb
|
88
|
+
- lib/economic/proxies/actions/find_by_date_interval.rb
|
89
|
+
- lib/economic/proxies/actions/find_by_handle_with_number.rb
|
90
|
+
- lib/economic/proxies/actions/find_by_number.rb
|
98
91
|
- lib/economic/proxies/cash_book_entry_proxy.rb
|
99
92
|
- lib/economic/proxies/cash_book_proxy.rb
|
100
93
|
- lib/economic/proxies/creditor_contact_proxy.rb
|
@@ -199,6 +192,8 @@ files:
|
|
199
192
|
- spec/fixtures/invoice_find_by_date_interval/none.xml
|
200
193
|
- spec/fixtures/invoice_find_by_date_interval/single.xml
|
201
194
|
- spec/fixtures/invoice_get_data/success.xml
|
195
|
+
- spec/fixtures/invoice_get_data_array/multiple.xml
|
196
|
+
- spec/fixtures/invoice_get_data_array/single.xml
|
202
197
|
- spec/fixtures/invoice_get_pdf/success.xml
|
203
198
|
- spec/fixtures/invoice_get_remainder/success.xml
|
204
199
|
- spec/fixtures/spec_entity_create_from_data/success.xml
|
@@ -208,36 +203,25 @@ files:
|
|
208
203
|
- spec/spec_helper.rb
|
209
204
|
homepage: https://github.com/lokalebasen/rconomic
|
210
205
|
licenses: []
|
211
|
-
|
206
|
+
metadata: {}
|
212
207
|
post_install_message:
|
213
208
|
rdoc_options: []
|
214
|
-
|
215
|
-
require_paths:
|
209
|
+
require_paths:
|
216
210
|
- lib
|
217
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
none: false
|
228
|
-
requirements:
|
229
|
-
- - ">="
|
230
|
-
- !ruby/object:Gem::Version
|
231
|
-
hash: 3
|
232
|
-
segments:
|
233
|
-
- 0
|
234
|
-
version: "0"
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ! '>='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
235
221
|
requirements: []
|
236
|
-
|
237
222
|
rubyforge_project:
|
238
|
-
rubygems_version:
|
223
|
+
rubygems_version: 2.0.3
|
239
224
|
signing_key:
|
240
|
-
specification_version:
|
225
|
+
specification_version: 4
|
241
226
|
summary: Wrapper for e-conomic.dk's SOAP API.
|
242
227
|
test_files: []
|
243
|
-
|