rconomic 0.2.1 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/Gemfile +8 -1
- data/Gemfile.lock +8 -1
- data/Guardfile +6 -0
- data/README.md +39 -14
- data/lib/economic/account.rb +25 -0
- data/lib/economic/cash_book.rb +39 -0
- data/lib/economic/cash_book_entry.rb +111 -0
- data/lib/economic/current_invoice.rb +33 -2
- data/lib/economic/current_invoice_line.rb +1 -1
- data/lib/economic/debtor.rb +2 -1
- data/lib/economic/debtor_contact.rb +1 -1
- data/lib/economic/entity/handle.rb +66 -0
- data/lib/economic/entity.rb +39 -36
- data/lib/economic/invoice.rb +58 -0
- data/lib/economic/proxies/account_proxy.rb +22 -0
- data/lib/economic/proxies/cash_book_entry_proxy.rb +53 -0
- data/lib/economic/proxies/cash_book_proxy.rb +47 -0
- data/lib/economic/proxies/current_invoice_line_proxy.rb +7 -1
- data/lib/economic/proxies/current_invoice_proxy.rb +18 -1
- data/lib/economic/proxies/debtor_contact_proxy.rb +36 -10
- data/lib/economic/proxies/debtor_proxy.rb +32 -1
- data/lib/economic/proxies/entity_proxy.rb +30 -3
- data/lib/economic/proxies/invoice_proxy.rb +31 -0
- data/lib/economic/session.rb +18 -1
- data/lib/economic/support/string.rb +19 -0
- data/lib/rconomic/version.rb +1 -1
- data/lib/rconomic.rb +10 -2
- data/spec/economic/cash_book_entry_spec.rb +20 -0
- data/spec/economic/cash_book_spec.rb +34 -0
- data/spec/economic/current_invoice_spec.rb +44 -1
- data/spec/economic/debtor_contact_spec.rb +2 -2
- data/spec/economic/debtor_spec.rb +6 -0
- data/spec/economic/entity/handle_spec.rb +116 -0
- data/spec/economic/entity_spec.rb +26 -22
- data/spec/economic/invoice_spec.rb +68 -0
- data/spec/economic/proxies/cash_book_entry_proxy_spec.rb +62 -0
- data/spec/economic/proxies/cash_book_proxy_spec.rb +54 -0
- data/spec/economic/proxies/current_invoice_line_proxy_spec.rb +1 -1
- data/spec/economic/proxies/current_invoice_proxy_spec.rb +66 -2
- data/spec/economic/proxies/debtor_proxy_spec.rb +39 -1
- data/spec/economic/proxies/invoice_proxy_spec.rb +75 -0
- data/spec/economic/session_spec.rb +11 -1
- data/spec/fixtures/cash_book_book/success.xml +10 -0
- data/spec/fixtures/cash_book_entry_create_debtor_payment/success.xml +11 -0
- data/spec/fixtures/cash_book_entry_create_finance_voucher/success.xml +11 -0
- data/spec/fixtures/cash_book_entry_create_from_data/success.xml +11 -0
- data/spec/fixtures/cash_book_entry_get_data/success.xml +73 -0
- data/spec/fixtures/cash_book_get_all/multiple.xml +15 -0
- data/spec/fixtures/cash_book_get_entries/success.xml +17 -0
- data/spec/fixtures/cash_book_get_name/success.xml +8 -0
- data/spec/fixtures/current_invoice_book/success.xml +10 -0
- data/spec/fixtures/current_invoice_find_by_date_interval/many.xml +15 -0
- data/spec/fixtures/current_invoice_find_by_date_interval/none.xml +8 -0
- data/spec/fixtures/current_invoice_find_by_date_interval/single.xml +12 -0
- data/spec/fixtures/current_invoice_get_all/multiple.xml +15 -0
- data/spec/fixtures/current_invoice_get_all/none.xml +8 -0
- data/spec/fixtures/current_invoice_get_all/single.xml +12 -0
- data/spec/fixtures/current_invoice_get_data_array/multiple.xml +141 -0
- data/spec/fixtures/current_invoice_get_data_array/single.xml +75 -0
- data/spec/fixtures/debtor_find_by_number/found.xml +10 -0
- data/spec/fixtures/debtor_find_by_number/not_found.xml +7 -0
- data/spec/fixtures/debtor_get_all/multiple.xml +15 -0
- data/spec/fixtures/debtor_get_all/single.xml +12 -0
- data/spec/fixtures/debtor_get_data_array/multiple.xml +103 -0
- data/spec/fixtures/invoice_find_by_date_interval/many.xml +15 -0
- data/spec/fixtures/invoice_find_by_date_interval/none.xml +9 -0
- data/spec/fixtures/invoice_find_by_date_interval/single.xml +12 -0
- data/spec/fixtures/invoice_get_data/success.xml +74 -0
- data/spec/fixtures/invoice_get_pdf/success.xml +8 -0
- data/spec/fixtures/invoice_get_remainder/success.xml +8 -0
- data/spec/fixtures/spec_entity_delete/success.xml +6 -0
- metadata +54 -6
@@ -0,0 +1,74 @@
|
|
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_GetDataResponse xmlns="http://e-conomic.com">
|
5
|
+
<Invoice_GetDataResult>
|
6
|
+
<Handle>
|
7
|
+
<Number>int</Number>
|
8
|
+
</Handle>
|
9
|
+
<Number>int</Number>
|
10
|
+
<DebtorHandle>
|
11
|
+
<Number>string</Number>
|
12
|
+
</DebtorHandle>
|
13
|
+
<ProjectHandle>
|
14
|
+
<Number>int</Number>
|
15
|
+
</ProjectHandle>
|
16
|
+
<DebtorName>string</DebtorName>
|
17
|
+
<DebtorAddress>string</DebtorAddress>
|
18
|
+
<DebtorPostalCode>string</DebtorPostalCode>
|
19
|
+
<DebtorCity>string</DebtorCity>
|
20
|
+
<DebtorCountry>string</DebtorCountry>
|
21
|
+
<DebtorEan>string</DebtorEan>
|
22
|
+
<PublicEntryNumber>string</PublicEntryNumber>
|
23
|
+
<AttentionHandle>
|
24
|
+
<Id>int</Id>
|
25
|
+
</AttentionHandle>
|
26
|
+
<YourReferenceHandle>
|
27
|
+
<Id>int</Id>
|
28
|
+
</YourReferenceHandle>
|
29
|
+
<OurReferenceHandle>
|
30
|
+
<Number>int</Number>
|
31
|
+
</OurReferenceHandle>
|
32
|
+
<OurReference2Handle>
|
33
|
+
<Number>int</Number>
|
34
|
+
</OurReference2Handle>
|
35
|
+
<TermOfPaymentHandle>
|
36
|
+
<Id>int</Id>
|
37
|
+
</TermOfPaymentHandle>
|
38
|
+
<CurrencyHandle>
|
39
|
+
<Code>string</Code>
|
40
|
+
</CurrencyHandle>
|
41
|
+
<IsVatIncluded>boolean</IsVatIncluded>
|
42
|
+
<LayoutHandle>
|
43
|
+
<Id>int</Id>
|
44
|
+
</LayoutHandle>
|
45
|
+
<DeliveryLocationHandle>
|
46
|
+
<Id>int</Id>
|
47
|
+
</DeliveryLocationHandle>
|
48
|
+
<DeliveryAddress>string</DeliveryAddress>
|
49
|
+
<DeliveryPostalCode>string</DeliveryPostalCode>
|
50
|
+
<DeliveryCity>string</DeliveryCity>
|
51
|
+
<DeliveryCountry>string</DeliveryCountry>
|
52
|
+
<TermsOfDelivery>string</TermsOfDelivery>
|
53
|
+
<DeliveryDate>dateTime</DeliveryDate>
|
54
|
+
<Date>dateTime</Date>
|
55
|
+
<DueDate>dateTime</DueDate>
|
56
|
+
<Heading>string</Heading>
|
57
|
+
<TextLine1>string</TextLine1>
|
58
|
+
<TextLine2>string</TextLine2>
|
59
|
+
<OtherReference>string</OtherReference>
|
60
|
+
<OrderNumber>int</OrderNumber>
|
61
|
+
<NetAmount>decimal</NetAmount>
|
62
|
+
<VatAmount>decimal</VatAmount>
|
63
|
+
<GrossAmount>decimal</GrossAmount>
|
64
|
+
<Remainder>decimal</Remainder>
|
65
|
+
<RemainderDefaultCurrency>decimal</RemainderDefaultCurrency>
|
66
|
+
<RoundingAmount>decimal</RoundingAmount>
|
67
|
+
<DebtorCounty>string</DebtorCounty>
|
68
|
+
<DeliveryCounty>string</DeliveryCounty>
|
69
|
+
<NetAmountDefaultCurrency>decimal</NetAmountDefaultCurrency>
|
70
|
+
<DeductionAmount>decimal</DeductionAmount>
|
71
|
+
</Invoice_GetDataResult>
|
72
|
+
</Invoice_GetDataResponse>
|
73
|
+
</soap:Body>
|
74
|
+
</soap:Envelope>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
3
|
+
<soap:Body>
|
4
|
+
<Invoice_GetPdfResponse xmlns="http://e-conomic.com">
|
5
|
+
<Invoice_GetPdfResult>VGhpcyBpcyBub3QgcmVhbGx5IFBERiBkYXRh\n</Invoice_GetPdfResult>
|
6
|
+
</Invoice_GetPdfResponse>
|
7
|
+
</soap:Body>
|
8
|
+
</soap:Envelope>
|
@@ -0,0 +1,8 @@
|
|
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_GetRemainderResponse xmlns="http://e-conomic.com">
|
5
|
+
<Invoice_GetRemainderResult>512.32</Invoice_GetRemainderResult>
|
6
|
+
</Invoice_GetRemainderResponse>
|
7
|
+
</soap:Body>
|
8
|
+
</soap:Envelope>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
3
|
+
<soap:Body>
|
4
|
+
<SpecEntity_DeleteResponse xmlns="http://e-conomic.com" />
|
5
|
+
</soap:Body>
|
6
|
+
</soap:Envelope>
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rconomic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.2.1
|
8
|
+
- 3
|
9
|
+
version: "0.3"
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Jakob Skjerning
|
@@ -15,7 +14,8 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-11-10 00:00:00 +01:00
|
18
|
+
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: savon
|
@@ -60,47 +60,95 @@ files:
|
|
60
60
|
- .travis.yml
|
61
61
|
- Gemfile
|
62
62
|
- Gemfile.lock
|
63
|
+
- Guardfile
|
63
64
|
- LICENSE
|
64
65
|
- README.md
|
65
66
|
- Rakefile
|
67
|
+
- lib/economic/account.rb
|
68
|
+
- lib/economic/cash_book.rb
|
69
|
+
- lib/economic/cash_book_entry.rb
|
66
70
|
- lib/economic/current_invoice.rb
|
67
71
|
- lib/economic/current_invoice_line.rb
|
68
72
|
- lib/economic/debtor.rb
|
69
73
|
- lib/economic/debtor_contact.rb
|
70
74
|
- lib/economic/economic.wsdl
|
71
75
|
- lib/economic/entity.rb
|
76
|
+
- lib/economic/entity/handle.rb
|
77
|
+
- lib/economic/invoice.rb
|
78
|
+
- lib/economic/proxies/account_proxy.rb
|
79
|
+
- lib/economic/proxies/cash_book_entry_proxy.rb
|
80
|
+
- lib/economic/proxies/cash_book_proxy.rb
|
72
81
|
- lib/economic/proxies/current_invoice_line_proxy.rb
|
73
82
|
- lib/economic/proxies/current_invoice_proxy.rb
|
74
83
|
- lib/economic/proxies/debtor_contact_proxy.rb
|
75
84
|
- lib/economic/proxies/debtor_proxy.rb
|
76
85
|
- lib/economic/proxies/entity_proxy.rb
|
86
|
+
- lib/economic/proxies/invoice_proxy.rb
|
77
87
|
- lib/economic/session.rb
|
88
|
+
- lib/economic/support/string.rb
|
78
89
|
- lib/rconomic.rb
|
79
90
|
- lib/rconomic/version.rb
|
80
91
|
- rconomic.gemspec
|
92
|
+
- spec/economic/cash_book_entry_spec.rb
|
93
|
+
- spec/economic/cash_book_spec.rb
|
81
94
|
- spec/economic/current_invoice_line_spec.rb
|
82
95
|
- spec/economic/current_invoice_spec.rb
|
83
96
|
- spec/economic/debtor_contact_spec.rb
|
84
97
|
- spec/economic/debtor_spec.rb
|
98
|
+
- spec/economic/entity/handle_spec.rb
|
85
99
|
- spec/economic/entity_spec.rb
|
100
|
+
- spec/economic/invoice_spec.rb
|
101
|
+
- spec/economic/proxies/cash_book_entry_proxy_spec.rb
|
102
|
+
- spec/economic/proxies/cash_book_proxy_spec.rb
|
86
103
|
- spec/economic/proxies/current_invoice_line_proxy_spec.rb
|
87
104
|
- spec/economic/proxies/current_invoice_proxy_spec.rb
|
88
105
|
- spec/economic/proxies/debtor_contact_proxy_spec.rb
|
89
106
|
- spec/economic/proxies/debtor_proxy_spec.rb
|
107
|
+
- spec/economic/proxies/invoice_proxy_spec.rb
|
90
108
|
- spec/economic/session_spec.rb
|
109
|
+
- spec/fixtures/cash_book_book/success.xml
|
110
|
+
- spec/fixtures/cash_book_entry_create_debtor_payment/success.xml
|
111
|
+
- spec/fixtures/cash_book_entry_create_finance_voucher/success.xml
|
112
|
+
- spec/fixtures/cash_book_entry_create_from_data/success.xml
|
113
|
+
- spec/fixtures/cash_book_entry_get_data/success.xml
|
114
|
+
- spec/fixtures/cash_book_get_all/multiple.xml
|
115
|
+
- spec/fixtures/cash_book_get_entries/success.xml
|
116
|
+
- spec/fixtures/cash_book_get_name/success.xml
|
91
117
|
- spec/fixtures/connect/success.xml
|
118
|
+
- spec/fixtures/current_invoice_book/success.xml
|
92
119
|
- spec/fixtures/current_invoice_create_from_data/success.xml
|
120
|
+
- spec/fixtures/current_invoice_find_by_date_interval/many.xml
|
121
|
+
- spec/fixtures/current_invoice_find_by_date_interval/none.xml
|
122
|
+
- spec/fixtures/current_invoice_find_by_date_interval/single.xml
|
123
|
+
- spec/fixtures/current_invoice_get_all/multiple.xml
|
124
|
+
- spec/fixtures/current_invoice_get_all/none.xml
|
125
|
+
- spec/fixtures/current_invoice_get_all/single.xml
|
93
126
|
- spec/fixtures/current_invoice_get_data/success.xml
|
127
|
+
- spec/fixtures/current_invoice_get_data_array/multiple.xml
|
128
|
+
- spec/fixtures/current_invoice_get_data_array/single.xml
|
94
129
|
- spec/fixtures/current_invoice_line_get_data/success.xml
|
95
130
|
- spec/fixtures/debtor_contact_get_data/success.xml
|
96
131
|
- spec/fixtures/debtor_find_by_ci_number/many.xml
|
132
|
+
- spec/fixtures/debtor_find_by_number/found.xml
|
133
|
+
- spec/fixtures/debtor_find_by_number/not_found.xml
|
134
|
+
- spec/fixtures/debtor_get_all/multiple.xml
|
135
|
+
- spec/fixtures/debtor_get_all/single.xml
|
97
136
|
- spec/fixtures/debtor_get_data/success.xml
|
137
|
+
- spec/fixtures/debtor_get_data_array/multiple.xml
|
98
138
|
- spec/fixtures/debtor_get_next_available_number/success.xml
|
139
|
+
- spec/fixtures/invoice_find_by_date_interval/many.xml
|
140
|
+
- spec/fixtures/invoice_find_by_date_interval/none.xml
|
141
|
+
- spec/fixtures/invoice_find_by_date_interval/single.xml
|
142
|
+
- spec/fixtures/invoice_get_data/success.xml
|
143
|
+
- spec/fixtures/invoice_get_pdf/success.xml
|
144
|
+
- spec/fixtures/invoice_get_remainder/success.xml
|
99
145
|
- spec/fixtures/spec_entity_create_from_data/success.xml
|
146
|
+
- spec/fixtures/spec_entity_delete/success.xml
|
100
147
|
- spec/fixtures/spec_entity_get_data/success.xml
|
101
148
|
- spec/fixtures/spec_entity_update_from_data/success.xml
|
102
149
|
- spec/fixtures/wsdl.xml
|
103
150
|
- spec/spec_helper.rb
|
151
|
+
has_rdoc: true
|
104
152
|
homepage: https://github.com/lokalebasen/rconomic
|
105
153
|
licenses: []
|
106
154
|
|
@@ -130,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
178
|
requirements: []
|
131
179
|
|
132
180
|
rubyforge_project:
|
133
|
-
rubygems_version: 1.
|
181
|
+
rubygems_version: 1.4.2
|
134
182
|
signing_key:
|
135
183
|
specification_version: 3
|
136
184
|
summary: Wrapper for e-conomic.dk's SOAP API.
|