rconomic 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.travis.yml +0 -1
- data/Gemfile +0 -1
- data/lib/economic/account.rb +3 -5
- data/lib/economic/cash_book.rb +1 -1
- data/lib/economic/cash_book_entry.rb +92 -94
- data/lib/economic/creditor.rb +1 -1
- data/lib/economic/creditor_contact.rb +15 -17
- data/lib/economic/creditor_entry.rb +0 -1
- data/lib/economic/current_invoice.rb +32 -35
- data/lib/economic/current_invoice_line.rb +14 -2
- data/lib/economic/debtor.rb +60 -37
- data/lib/economic/debtor_contact.rb +26 -20
- data/lib/economic/endpoint.rb +72 -0
- data/lib/economic/entity/handle.rb +35 -21
- data/lib/economic/entity/mapper.rb +41 -0
- data/lib/economic/entity.rb +58 -34
- data/lib/economic/invoice.rb +15 -2
- data/lib/economic/proxies/account_proxy.rb +2 -3
- data/lib/economic/proxies/actions/find_by_ci_number.rb +4 -2
- data/lib/economic/proxies/actions/find_by_date_interval.rb +0 -1
- data/lib/economic/proxies/actions/find_by_name.rb +5 -1
- data/lib/economic/proxies/cash_book_entry_proxy.rb +1 -1
- data/lib/economic/proxies/entity_proxy.rb +15 -8
- data/lib/economic/session.rb +27 -31
- data/lib/rconomic/version.rb +1 -1
- data/rconomic.gemspec +1 -5
- data/spec/economic/cash_book_entry_spec.rb +27 -5
- data/spec/economic/cash_book_spec.rb +6 -6
- data/spec/economic/creditor_contact_spec.rb +24 -15
- data/spec/economic/creditor_spec.rb +9 -9
- data/spec/economic/current_invoice_line_spec.rb +7 -7
- data/spec/economic/current_invoice_spec.rb +82 -33
- data/spec/economic/debtor_contact_spec.rb +25 -15
- data/spec/economic/debtor_entry_spec.rb +3 -3
- data/spec/economic/debtor_spec.rb +49 -15
- data/spec/economic/endpoint_spec.rb +71 -0
- data/spec/economic/entity/handle_spec.rb +42 -49
- data/spec/economic/entity/mapper_spec.rb +54 -0
- data/spec/economic/entity_spec.rb +78 -72
- data/spec/economic/entry_spec.rb +3 -3
- data/spec/economic/invoice_spec.rb +37 -18
- data/spec/economic/proxies/actions/find_by_name_spec.rb +15 -12
- data/spec/economic/proxies/cash_book_entry_proxy_spec.rb +26 -24
- data/spec/economic/proxies/cash_book_proxy_spec.rb +23 -21
- data/spec/economic/proxies/creditor_contact_proxy_spec.rb +12 -16
- data/spec/economic/proxies/creditor_entry_proxy_spec.rb +18 -14
- data/spec/economic/proxies/creditor_proxy_spec.rb +23 -26
- data/spec/economic/proxies/current_invoice_line_proxy_spec.rb +17 -20
- data/spec/economic/proxies/current_invoice_proxy_spec.rb +38 -41
- data/spec/economic/proxies/debtor_contact_proxy_spec.rb +12 -15
- data/spec/economic/proxies/debtor_entry_proxy_spec.rb +18 -14
- data/spec/economic/proxies/debtor_proxy_spec.rb +31 -34
- data/spec/economic/proxies/entry_proxy_spec.rb +26 -22
- data/spec/economic/proxies/invoice_proxy_spec.rb +18 -21
- data/spec/economic/session_spec.rb +57 -44
- data/spec/fixtures/{spec_entity_create_from_data → account_create_from_data}/success.xml +5 -5
- data/spec/fixtures/{spec_entity_delete → account_delete}/success.xml +1 -1
- data/spec/fixtures/{spec_entity_get_data → account_get_data}/success.xml +5 -5
- data/spec/fixtures/{spec_entity_update_from_data → account_update_from_data}/success.xml +5 -5
- data/spec/fixtures/cash_book_entry_create_creditor_invoice/success.xml +2 -2
- data/spec/fixtures/cash_book_entry_create_creditor_payment/success.xml +2 -2
- data/spec/fixtures/creditor_contact_create_from_data/success.xml +10 -0
- data/spec/fixtures/debtor_contact_create_from_data/success.xml +10 -0
- data/spec/fixtures/debtor_create_from_data/success.xml +57 -0
- data/spec/spec_helper.rb +10 -104
- data/spec/support/api_requests.rb +20 -0
- data/spec/support/factories.rb +65 -0
- data/spec/support/fixtures.rb +9 -0
- metadata +27 -31
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
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
3
|
<soap:Body>
|
4
|
-
<
|
4
|
+
<Account_DeleteResponse xmlns="http://e-conomic.com" />
|
5
5
|
</soap:Body>
|
6
6
|
</soap:Envelope>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
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
3
|
<soap:Body>
|
4
|
-
<
|
5
|
-
<
|
4
|
+
<Account_GetDataResponse xmlns="http://e-conomic.com">
|
5
|
+
<Account_GetDataResult>
|
6
6
|
<Foo>bar</Foo>
|
7
7
|
<Baz>qux</Baz>
|
8
|
-
</
|
9
|
-
</
|
8
|
+
</Account_GetDataResult>
|
9
|
+
</Account_GetDataResponse>
|
10
10
|
</soap:Body>
|
11
|
-
</soap:Envelope>
|
11
|
+
</soap:Envelope>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
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
3
|
<soap:Body>
|
4
|
-
<
|
5
|
-
<
|
4
|
+
<Account_UpdateFromDataResponse xmlns="http://e-conomic.com">
|
5
|
+
<Account_UpdateFromDataResult>
|
6
6
|
<Number>42</Number>
|
7
|
-
</
|
8
|
-
</
|
7
|
+
</Account_UpdateFromDataResult>
|
8
|
+
</Account_UpdateFromDataResponse>
|
9
9
|
</soap:Body>
|
10
|
-
</soap:Envelope>
|
10
|
+
</soap:Envelope>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<soap:Body>
|
4
4
|
<CashBookEntry_CreateCreditorInvoiceResponse xmlns="http://e-conomic.com">
|
5
5
|
<CashBookEntry_CreateCreditorInvoiceResult>
|
6
|
-
<Id1>
|
7
|
-
<Id2>
|
6
|
+
<Id1>13</Id1>
|
7
|
+
<Id2>14</Id2>
|
8
8
|
</CashBookEntry_CreateCreditorInvoiceResult>
|
9
9
|
</CashBookEntry_CreateCreditorInvoiceResponse>
|
10
10
|
</soap:Body>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<soap:Body>
|
4
4
|
<CashBookEntry_CreateCreditorPaymentResponse xmlns="http://e-conomic.com">
|
5
5
|
<CashBookEntry_CreateCreditorPaymentResult>
|
6
|
-
<Id1>
|
7
|
-
<Id2>
|
6
|
+
<Id1>13</Id1>
|
7
|
+
<Id2>14</Id2>
|
8
8
|
</CashBookEntry_CreateCreditorPaymentResult>
|
9
9
|
</CashBookEntry_CreateCreditorPaymentResponse>
|
10
10
|
</soap:Body>
|
@@ -0,0 +1,10 @@
|
|
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_CreateFromDataResponse xmlns="http://e-conomic.com">
|
5
|
+
<CreditorContact_CreateFromDataResult>
|
6
|
+
<Id>42</Id>
|
7
|
+
</CreditorContact_CreateFromDataResult>
|
8
|
+
</CreditorContact_CreateFromDataResponse>
|
9
|
+
</soap:Body>
|
10
|
+
</soap:Envelope>
|
@@ -0,0 +1,10 @@
|
|
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_CreateFromDataResponse xmlns="http://e-conomic.com">
|
5
|
+
<DebtorContact_CreateFromDataResult>
|
6
|
+
<Id>int</Id>
|
7
|
+
</DebtorContact_CreateFromDataResult>
|
8
|
+
</DebtorContact_CreateFromDataResponse>
|
9
|
+
</soap:Body>
|
10
|
+
</soap:Envelope>
|
@@ -0,0 +1,57 @@
|
|
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
|
+
<Debtor_CreateFromData xmlns="http://e-conomic.com">
|
5
|
+
<data>
|
6
|
+
<Handle>
|
7
|
+
<Number>string</Number>
|
8
|
+
</Handle>
|
9
|
+
<Number>string</Number>
|
10
|
+
<DebtorGroupHandle>
|
11
|
+
<Number>int</Number>
|
12
|
+
</DebtorGroupHandle>
|
13
|
+
<Name>string</Name>
|
14
|
+
<VatZone>HomeCountry or EU or Abroad</VatZone>
|
15
|
+
<ExtendedVatZone>
|
16
|
+
<Number>string</Number>
|
17
|
+
</ExtendedVatZone>
|
18
|
+
<CurrencyHandle>
|
19
|
+
<Code>string</Code>
|
20
|
+
</CurrencyHandle>
|
21
|
+
<PriceGroupHandle>
|
22
|
+
<Number>int</Number>
|
23
|
+
</PriceGroupHandle>
|
24
|
+
<IsAccessible>boolean</IsAccessible>
|
25
|
+
<Ean>string</Ean>
|
26
|
+
<PublicEntryNumber>string</PublicEntryNumber>
|
27
|
+
<Email>string</Email>
|
28
|
+
<TelephoneAndFaxNumber>string</TelephoneAndFaxNumber>
|
29
|
+
<Website>string</Website>
|
30
|
+
<Address>string</Address>
|
31
|
+
<PostalCode>string</PostalCode>
|
32
|
+
<City>string</City>
|
33
|
+
<Country>string</Country>
|
34
|
+
<CreditMaximum>decimal</CreditMaximum>
|
35
|
+
<VatNumber>string</VatNumber>
|
36
|
+
<County>string</County>
|
37
|
+
<CINumber>string</CINumber>
|
38
|
+
<TermOfPaymentHandle>
|
39
|
+
<Id>int</Id>
|
40
|
+
</TermOfPaymentHandle>
|
41
|
+
<LayoutHandle>
|
42
|
+
<Id>int</Id>
|
43
|
+
</LayoutHandle>
|
44
|
+
<AttentionHandle>
|
45
|
+
<Id>int</Id>
|
46
|
+
</AttentionHandle>
|
47
|
+
<YourReferenceHandle>
|
48
|
+
<Id>int</Id>
|
49
|
+
</YourReferenceHandle>
|
50
|
+
<OurReferenceHandle>
|
51
|
+
<Number>int</Number>
|
52
|
+
</OurReferenceHandle>
|
53
|
+
<Balance>decimal</Balance>
|
54
|
+
</data>
|
55
|
+
</Debtor_CreateFromData>
|
56
|
+
</soap:Body>
|
57
|
+
</soap:Envelope>
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'savon'
|
2
|
-
require
|
2
|
+
require "savon/mock/spec_helper"
|
3
3
|
|
4
4
|
if ENV['TRAVIS'] == "true"
|
5
5
|
require 'coveralls'
|
@@ -9,115 +9,21 @@ end
|
|
9
9
|
require './lib/rconomic'
|
10
10
|
|
11
11
|
RSpec.configure do |config|
|
12
|
-
config.
|
13
|
-
config.include Savon::Spec::Macros
|
12
|
+
config.include Savon::SpecHelper
|
14
13
|
|
15
14
|
config.before :each do
|
16
15
|
# Ensure we don't actually send requests over the network
|
17
|
-
HTTPI.
|
18
|
-
HTTPI.
|
16
|
+
expect(HTTPI).to receive(:get).never
|
17
|
+
expect(HTTPI).to receive(:post).never
|
18
|
+
savon.mock!
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
Savon.configure do |config|
|
24
|
-
config.logger = Logger.new(File.join('spec', 'debug.log'))
|
25
|
-
end
|
26
|
-
|
27
|
-
Savon::Spec::Fixture.path = File.expand_path("../fixtures", __FILE__)
|
28
|
-
|
29
|
-
# Stub the WSDL instead of fetching it over the wire
|
30
|
-
module Savon
|
31
|
-
module Wasabi
|
32
|
-
class Document < ::Wasabi::Document
|
33
|
-
def resolve_document
|
34
|
-
File.read(File.expand_path('../../lib/economic/economic.wsdl', __FILE__))
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
|
41
|
-
class Savon::Spec::Mock
|
42
|
-
# Fix issue with savon_specs #with method, so that it allows other values than the expected.
|
43
|
-
# Without this, savon_spec 0.1.6 doesn't work with savon 0.9.3.
|
44
|
-
#
|
45
|
-
# savon.expects('Connect').with(has_entries(:agreementNumber => 123456)).returns(:success)
|
46
|
-
#
|
47
|
-
# would trigger a irrelevant
|
48
|
-
#
|
49
|
-
# Mocha::ExpectationError: unexpected invocation: #<AnyInstance:Savon::SOAP::XML>.body=(nil)
|
50
|
-
def with(soap_body)
|
51
|
-
if mock_method == :expects
|
52
|
-
Savon::SOAP::XML.any_instance.stubs(:body=)
|
53
|
-
Savon::SOAP::XML.any_instance.expects(:body=).with(soap_body)
|
54
|
-
end
|
55
|
-
self
|
21
|
+
config.after :each do
|
22
|
+
savon.unmock!
|
56
23
|
end
|
57
|
-
end
|
58
|
-
|
59
|
-
def make_session
|
60
|
-
Economic::Session.new(123456, 'api', 'passw0rd')
|
61
|
-
end
|
62
24
|
|
63
|
-
def make_current_invoice(properties = {})
|
64
|
-
invoice = make_debtor.current_invoices.build
|
65
|
-
|
66
|
-
# Assign specified properties
|
67
|
-
properties.each { |key, value|
|
68
|
-
invoice.send("#{key}=", value)
|
69
|
-
}
|
70
|
-
|
71
|
-
# Use defaults for the rest of the properties
|
72
|
-
invoice.date ||= Time.now
|
73
|
-
invoice.due_date ||= Time.now + 15
|
74
|
-
invoice.exchange_rate ||= 100
|
75
|
-
invoice.is_vat_included ||= false
|
76
|
-
|
77
|
-
invoice
|
78
|
-
end
|
79
|
-
|
80
|
-
def make_debtor(properties = {})
|
81
|
-
debtor = Economic::Debtor.new
|
82
|
-
|
83
|
-
# Assign specified properties
|
84
|
-
properties.each { |key, value|
|
85
|
-
debtor.send("#{key}=", value)
|
86
|
-
}
|
87
|
-
|
88
|
-
# Use defaults for the rest of the properties
|
89
|
-
debtor.session ||= make_session
|
90
|
-
debtor.handle ||= { :number => 42 }
|
91
|
-
debtor.number ||= 42
|
92
|
-
debtor.debtor_group_handle || { :number => 1 }
|
93
|
-
debtor.name ||= 'Bob'
|
94
|
-
debtor.vat_zone ||= 'HomeCountry' # HomeCountry, EU, Abroad
|
95
|
-
debtor.currency_handle ||= { :code => 'DKK' }
|
96
|
-
debtor.price_group_handle ||= { :number => 1 }
|
97
|
-
debtor.is_accessible ||= true
|
98
|
-
debtor.ci_number ||= '12345678'
|
99
|
-
debtor.term_of_payment_handle ||= { :id => 1 }
|
100
|
-
debtor.layout_handle ||= { :id => 16 }
|
101
|
-
|
102
|
-
debtor
|
103
25
|
end
|
104
26
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
# Assign specified properties
|
109
|
-
properties.each { |key, value|
|
110
|
-
creditor.send("#{key}=", value)
|
111
|
-
}
|
112
|
-
|
113
|
-
# Use defaults for the rest of the properties
|
114
|
-
creditor.session ||= make_session
|
115
|
-
creditor.handle ||= { :number => 42 }
|
116
|
-
creditor.number ||= 42
|
117
|
-
creditor.name ||= 'Bob'
|
118
|
-
creditor.vat_zone ||= 'HomeCountry' # HomeCountry, EU, Abroad
|
119
|
-
creditor.is_accessible ||= true
|
120
|
-
creditor.ci_number ||= '12345678'
|
121
|
-
|
122
|
-
creditor
|
123
|
-
end
|
27
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
28
|
+
# spec/support/ and its subdirectories.
|
29
|
+
Dir[File.expand_path("spec/support/**/*.rb")].each {|f| require f}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Set up an expectation that a specific operation must be called with specific
|
2
|
+
# data in the message body, returning a specific response.
|
3
|
+
def mock_request(operation, data, response)
|
4
|
+
operation = Economic::Support::String.underscore(operation)
|
5
|
+
response = if response.is_a?(Symbol)
|
6
|
+
fixture(operation, response)
|
7
|
+
elsif response.is_a?(Hash)
|
8
|
+
{:code => 200}.merge(response)
|
9
|
+
end
|
10
|
+
|
11
|
+
mock = savon.expects(operation.intern)
|
12
|
+
mock.with(:message => data) if data
|
13
|
+
mock.returns(response)
|
14
|
+
end
|
15
|
+
|
16
|
+
# Set up a fake request so that when operation is called with data in the
|
17
|
+
# message body it returns the desired response.
|
18
|
+
def stub_request(operation, data, response)
|
19
|
+
mock_request(operation, data || :any, response)
|
20
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
def make_creditor(properties = {})
|
2
|
+
creditor = Economic::Creditor.new
|
3
|
+
|
4
|
+
# Assign specified properties
|
5
|
+
properties.each { |key, value|
|
6
|
+
creditor.send("#{key}=", value)
|
7
|
+
}
|
8
|
+
|
9
|
+
# Use defaults for the rest of the properties
|
10
|
+
creditor.session ||= make_session
|
11
|
+
creditor.handle ||= { :number => 42 }
|
12
|
+
creditor.number ||= 42
|
13
|
+
creditor.name ||= 'Bob'
|
14
|
+
creditor.vat_zone ||= 'HomeCountry' # HomeCountry, EU, Abroad
|
15
|
+
creditor.is_accessible ||= true
|
16
|
+
creditor.ci_number ||= '12345678'
|
17
|
+
|
18
|
+
creditor
|
19
|
+
end
|
20
|
+
|
21
|
+
def make_current_invoice(properties = {})
|
22
|
+
invoice = make_debtor.current_invoices.build
|
23
|
+
|
24
|
+
# Assign specified properties
|
25
|
+
properties.each { |key, value|
|
26
|
+
invoice.send("#{key}=", value)
|
27
|
+
}
|
28
|
+
|
29
|
+
# Use defaults for the rest of the properties
|
30
|
+
invoice.date ||= Time.now
|
31
|
+
invoice.due_date ||= Time.now + 15
|
32
|
+
invoice.exchange_rate ||= 100
|
33
|
+
invoice.is_vat_included ||= false
|
34
|
+
|
35
|
+
invoice
|
36
|
+
end
|
37
|
+
|
38
|
+
def make_debtor(properties = {})
|
39
|
+
debtor = Economic::Debtor.new
|
40
|
+
|
41
|
+
# Assign specified properties
|
42
|
+
properties.each { |key, value|
|
43
|
+
debtor.send("#{key}=", value)
|
44
|
+
}
|
45
|
+
|
46
|
+
# Use defaults for the rest of the properties
|
47
|
+
debtor.session ||= make_session
|
48
|
+
debtor.handle ||= { :number => 42 }
|
49
|
+
debtor.number ||= 42
|
50
|
+
debtor.debtor_group_handle || { :number => 1 }
|
51
|
+
debtor.name ||= 'Bob'
|
52
|
+
debtor.vat_zone ||= 'HomeCountry' # HomeCountry, EU, Abroad
|
53
|
+
debtor.currency_handle ||= { :code => 'DKK' }
|
54
|
+
debtor.price_group_handle ||= { :number => 1 }
|
55
|
+
debtor.is_accessible ||= true
|
56
|
+
debtor.ci_number ||= '12345678'
|
57
|
+
debtor.term_of_payment_handle ||= { :id => 1 }
|
58
|
+
debtor.layout_handle ||= { :id => 16 }
|
59
|
+
|
60
|
+
debtor
|
61
|
+
end
|
62
|
+
|
63
|
+
def make_session
|
64
|
+
Economic::Session.new(123456, 'api', 'passw0rd')
|
65
|
+
end
|
metadata
CHANGED
@@ -1,47 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rconomic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
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-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '2.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
- - '='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.4.4
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.4.4
|
41
|
-
description: ! " Ruby wrapper for the e-conomic SOAP API, that aims
|
42
|
-
at making working with the API bearable.\n\n E-conomic is a web-based
|
43
|
-
accounting system. For their marketing speak, see http://www.e-conomic.co.uk/about/.
|
44
|
-
More details about their API at http://www.e-conomic.co.uk/integration/integration-partner/.\n"
|
26
|
+
version: '2.2'
|
27
|
+
description: |2
|
28
|
+
Ruby wrapper for the e-conomic SOAP API, that aims at making working with the API bearable.
|
29
|
+
|
30
|
+
E-conomic is a web-based accounting system. For their marketing speak, see http://www.e-conomic.co.uk/about/. More details about their API at http://www.e-conomic.co.uk/integration/integration-partner/.
|
45
31
|
email: jakob@mentalized.net
|
46
32
|
executables: []
|
47
33
|
extensions: []
|
@@ -65,8 +51,10 @@ files:
|
|
65
51
|
- lib/economic/debtor_contact.rb
|
66
52
|
- lib/economic/debtor_entry.rb
|
67
53
|
- lib/economic/economic.wsdl
|
54
|
+
- lib/economic/endpoint.rb
|
68
55
|
- lib/economic/entity.rb
|
69
56
|
- lib/economic/entity/handle.rb
|
57
|
+
- lib/economic/entity/mapper.rb
|
70
58
|
- lib/economic/entry.rb
|
71
59
|
- lib/economic/invoice.rb
|
72
60
|
- lib/economic/proxies/account_proxy.rb
|
@@ -102,7 +90,9 @@ files:
|
|
102
90
|
- spec/economic/debtor_contact_spec.rb
|
103
91
|
- spec/economic/debtor_entry_spec.rb
|
104
92
|
- spec/economic/debtor_spec.rb
|
93
|
+
- spec/economic/endpoint_spec.rb
|
105
94
|
- spec/economic/entity/handle_spec.rb
|
95
|
+
- spec/economic/entity/mapper_spec.rb
|
106
96
|
- spec/economic/entity_spec.rb
|
107
97
|
- spec/economic/entry_spec.rb
|
108
98
|
- spec/economic/invoice_spec.rb
|
@@ -120,6 +110,10 @@ files:
|
|
120
110
|
- spec/economic/proxies/entry_proxy_spec.rb
|
121
111
|
- spec/economic/proxies/invoice_proxy_spec.rb
|
122
112
|
- spec/economic/session_spec.rb
|
113
|
+
- spec/fixtures/account_create_from_data/success.xml
|
114
|
+
- spec/fixtures/account_delete/success.xml
|
115
|
+
- spec/fixtures/account_get_data/success.xml
|
116
|
+
- spec/fixtures/account_update_from_data/success.xml
|
123
117
|
- spec/fixtures/cash_book_book/success.xml
|
124
118
|
- spec/fixtures/cash_book_entry_create_creditor_invoice/success.xml
|
125
119
|
- spec/fixtures/cash_book_entry_create_creditor_payment/success.xml
|
@@ -134,6 +128,7 @@ files:
|
|
134
128
|
- spec/fixtures/cash_book_get_entries/success.xml
|
135
129
|
- spec/fixtures/cash_book_get_name/success.xml
|
136
130
|
- spec/fixtures/connect/success.xml
|
131
|
+
- spec/fixtures/creditor_contact_create_from_data/success.xml
|
137
132
|
- spec/fixtures/creditor_contact_find_by_name/multiple.xml
|
138
133
|
- spec/fixtures/creditor_contact_find_by_name/none.xml
|
139
134
|
- spec/fixtures/creditor_contact_get_data/success.xml
|
@@ -160,9 +155,11 @@ files:
|
|
160
155
|
- spec/fixtures/current_invoice_get_data_array/multiple.xml
|
161
156
|
- spec/fixtures/current_invoice_get_data_array/single.xml
|
162
157
|
- spec/fixtures/current_invoice_line_get_data/success.xml
|
158
|
+
- spec/fixtures/debtor_contact_create_from_data/success.xml
|
163
159
|
- spec/fixtures/debtor_contact_find_by_name/multiple.xml
|
164
160
|
- spec/fixtures/debtor_contact_find_by_name/none.xml
|
165
161
|
- spec/fixtures/debtor_contact_get_data/success.xml
|
162
|
+
- spec/fixtures/debtor_create_from_data/success.xml
|
166
163
|
- spec/fixtures/debtor_entry_find_by_invoice_number/many.xml
|
167
164
|
- spec/fixtures/debtor_entry_find_by_invoice_number/single.xml
|
168
165
|
- spec/fixtures/debtor_entry_match_entries/success.xml
|
@@ -190,11 +187,10 @@ files:
|
|
190
187
|
- spec/fixtures/invoice_get_data_array/single.xml
|
191
188
|
- spec/fixtures/invoice_get_pdf/success.xml
|
192
189
|
- spec/fixtures/invoice_get_remainder/success.xml
|
193
|
-
- spec/fixtures/spec_entity_create_from_data/success.xml
|
194
|
-
- spec/fixtures/spec_entity_delete/success.xml
|
195
|
-
- spec/fixtures/spec_entity_get_data/success.xml
|
196
|
-
- spec/fixtures/spec_entity_update_from_data/success.xml
|
197
190
|
- spec/spec_helper.rb
|
191
|
+
- spec/support/api_requests.rb
|
192
|
+
- spec/support/factories.rb
|
193
|
+
- spec/support/fixtures.rb
|
198
194
|
homepage: https://github.com/lokalebasen/rconomic
|
199
195
|
licenses: []
|
200
196
|
metadata: {}
|
@@ -204,17 +200,17 @@ require_paths:
|
|
204
200
|
- lib
|
205
201
|
required_ruby_version: !ruby/object:Gem::Requirement
|
206
202
|
requirements:
|
207
|
-
- -
|
203
|
+
- - '>='
|
208
204
|
- !ruby/object:Gem::Version
|
209
205
|
version: '0'
|
210
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
207
|
requirements:
|
212
|
-
- -
|
208
|
+
- - '>='
|
213
209
|
- !ruby/object:Gem::Version
|
214
210
|
version: '0'
|
215
211
|
requirements: []
|
216
212
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.0.
|
213
|
+
rubygems_version: 2.0.6
|
218
214
|
signing_key:
|
219
215
|
specification_version: 4
|
220
216
|
summary: Wrapper for e-conomic.dk's SOAP API.
|