rconomic 0.3 → 0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. data/README.md +2 -1
  2. data/lib/economic/cash_book_entry.rb +42 -36
  3. data/lib/economic/creditor.rb +67 -0
  4. data/lib/economic/creditor_contact.rb +62 -0
  5. data/lib/economic/creditor_entry.rb +26 -0
  6. data/lib/economic/current_invoice.rb +30 -10
  7. data/lib/economic/current_invoice_line.rb +2 -0
  8. data/lib/economic/debtor_entry.rb +27 -0
  9. data/lib/economic/economic.wsdl +23134 -17255
  10. data/lib/economic/entity/handle.rb +1 -1
  11. data/lib/economic/entity.rb +8 -4
  12. data/lib/economic/entry.rb +26 -0
  13. data/lib/economic/proxies/cash_book_entry_proxy.rb +53 -15
  14. data/lib/economic/proxies/creditor_contact_proxy.rb +64 -0
  15. data/lib/economic/proxies/creditor_entry_proxy.rb +42 -0
  16. data/lib/economic/proxies/creditor_proxy.rb +73 -0
  17. data/lib/economic/proxies/current_invoice_proxy.rb +2 -1
  18. data/lib/economic/proxies/debtor_entry_proxy.rb +32 -0
  19. data/lib/economic/proxies/entity_proxy.rb +2 -2
  20. data/lib/economic/proxies/entry_proxy.rb +63 -0
  21. data/lib/economic/proxies/invoice_proxy.rb +2 -1
  22. data/lib/economic/session.rb +21 -4
  23. data/lib/economic/support/string.rb +5 -0
  24. data/lib/rconomic/version.rb +1 -1
  25. data/lib/rconomic.rb +10 -0
  26. data/rconomic.gemspec +6 -1
  27. data/spec/economic/creditor_contact_spec.rb +106 -0
  28. data/spec/economic/creditor_spec.rb +52 -0
  29. data/spec/economic/current_invoice_spec.rb +14 -0
  30. data/spec/economic/debtor_entry_spec.rb +20 -0
  31. data/spec/economic/debtor_spec.rb +12 -0
  32. data/spec/economic/entity/handle_spec.rb +21 -0
  33. data/spec/economic/entity_spec.rb +31 -0
  34. data/spec/economic/entry_spec.rb +20 -0
  35. data/spec/economic/proxies/cash_book_entry_proxy_spec.rb +35 -2
  36. data/spec/economic/proxies/creditor_contact_proxy_spec.rb +55 -0
  37. data/spec/economic/proxies/creditor_entry_proxy_spec.rb +49 -0
  38. data/spec/economic/proxies/creditor_proxy_spec.rb +81 -0
  39. data/spec/economic/proxies/current_invoice_line_proxy_spec.rb +1 -1
  40. data/spec/economic/proxies/current_invoice_proxy_spec.rb +3 -3
  41. data/spec/economic/proxies/debtor_entry_proxy_spec.rb +47 -0
  42. data/spec/economic/proxies/entry_proxy_spec.rb +73 -0
  43. data/spec/economic/proxies/invoice_proxy_spec.rb +3 -3
  44. data/spec/fixtures/cash_book_entry_create_creditor_invoice/success.xml +11 -0
  45. data/spec/fixtures/cash_book_entry_create_creditor_payment/success.xml +11 -0
  46. data/spec/fixtures/cash_book_entry_get_data/success.xml +4 -4
  47. data/spec/fixtures/cash_book_entry_set_due_date/success.xml +6 -0
  48. data/spec/fixtures/cash_book_get_all/multiple.xml +2 -2
  49. data/spec/fixtures/cash_book_get_entries/success.xml +4 -4
  50. data/spec/fixtures/creditor_contact_get_data/success.xml +22 -0
  51. data/spec/fixtures/creditor_entry_find_by_invoice_number/many.xml +15 -0
  52. data/spec/fixtures/creditor_entry_find_by_invoice_number/single.xml +12 -0
  53. data/spec/fixtures/creditor_entry_get_data/success.xml +32 -0
  54. data/spec/fixtures/creditor_entry_match_entries/success.xml +5 -0
  55. data/spec/fixtures/creditor_find_by_number/found.xml +10 -0
  56. data/spec/fixtures/creditor_find_by_number/not_found.xml +7 -0
  57. data/spec/fixtures/creditor_get_all/multiple.xml +15 -0
  58. data/spec/fixtures/creditor_get_all/single.xml +12 -0
  59. data/spec/fixtures/creditor_get_data/success.xml +49 -0
  60. data/spec/fixtures/creditor_get_data_array/multiple.xml +93 -0
  61. data/spec/fixtures/current_invoice_book_with_number/success.xml +10 -0
  62. data/spec/fixtures/current_invoice_get_data_array/multiple.xml +4 -4
  63. data/spec/fixtures/debtor_entry_find_by_invoice_number/many.xml +15 -0
  64. data/spec/fixtures/debtor_entry_find_by_invoice_number/single.xml +12 -0
  65. data/spec/fixtures/debtor_entry_match_entries/success.xml +6 -0
  66. data/spec/fixtures/debtor_get_data_array/multiple.xml +4 -4
  67. data/spec/fixtures/entry_find_by_date_interval/many.xml +15 -0
  68. data/spec/fixtures/entry_find_by_date_interval/none.xml +9 -0
  69. data/spec/fixtures/entry_find_by_date_interval/single.xml +12 -0
  70. data/spec/fixtures/entry_find_by_serial_number_interval/many.xml +15 -0
  71. data/spec/fixtures/entry_find_by_serial_number_interval/none.xml +9 -0
  72. data/spec/fixtures/entry_find_by_serial_number_interval/single.xml +12 -0
  73. data/spec/fixtures/entry_get_data/success.xml +40 -0
  74. data/spec/fixtures/entry_get_last_used_serial_number/success.xml +8 -0
  75. data/spec/spec_helper.rb +22 -2
  76. metadata +68 -11
  77. data/Gemfile.lock +0 -61
  78. data/spec/fixtures/wsdl.xml +0 -56596
@@ -0,0 +1,73 @@
1
+ require './spec/spec_helper'
2
+
3
+ describe Economic::EntryProxy do
4
+ let(:session) { make_session }
5
+ subject { Economic::EntryProxy.new(session) }
6
+
7
+ describe "new" do
8
+ it "stores session" do
9
+ subject.session.should === session
10
+ end
11
+ end
12
+
13
+ describe "#find_by_date_interval" do
14
+ it 'should be able to find multiple entries' do
15
+ from_date = Date.new
16
+ to_date = Date.new
17
+ savon.expects("Entry_FindByDateInterval").
18
+ with('fromDate' => from_date, 'toDate' => to_date).
19
+ returns(:many)
20
+ subject.find_by_date_interval(from_date, to_date).should == [1, 2]
21
+ end
22
+
23
+ it 'should handle a single serial number in the response' do
24
+ savon.stubs("Entry_FindByDateInterval").returns(:single)
25
+ subject.find_by_date_interval(Date.new, Date.new).should == [1]
26
+ end
27
+
28
+ it 'should handle an empty response' do
29
+ savon.stubs("Entry_FindByDateInterval").returns(:none)
30
+ subject.find_by_date_interval(Date.new, Date.new).should == []
31
+ end
32
+ end
33
+
34
+ describe "#find_by_serial_number_interval" do
35
+ it 'should be able to find multiple entries' do
36
+ savon.expects("Entry_FindBySerialNumberInterval").
37
+ with('minNumber' => 123, 'maxNumber' => 456).
38
+ returns(:many)
39
+ subject.find_by_serial_number_interval(123, 456).should == [1, 2]
40
+ end
41
+
42
+ it 'should handle a single serial number in the response' do
43
+ savon.stubs("Entry_FindBySerialNumberInterval").returns(:single)
44
+ subject.find_by_serial_number_interval(123, 456).should == [1]
45
+ end
46
+
47
+ it 'should handle an empty response' do
48
+ savon.stubs("Entry_FindBySerialNumberInterval").returns(:none)
49
+ subject.find_by_serial_number_interval(123, 456).should == []
50
+ end
51
+ end
52
+
53
+ describe "#get_last_used_serial_number" do
54
+ it 'returns the number' do
55
+ savon.expects("Entry_GetLastUsedSerialNumber").returns(:success)
56
+ subject.get_last_used_serial_number.should == 123
57
+ end
58
+ end
59
+
60
+ describe "#find" do
61
+ it 'should get a entry by serial number' do
62
+ savon.expects("Entry_GetData").with('entityHandle' => { 'SerialNumber' => '123' }).returns(:success)
63
+ subject.find('123').should be_instance_of(Economic::Entry)
64
+ end
65
+ end
66
+
67
+ describe "#entity_class" do
68
+ it "should return Economic::Entry" do
69
+ Economic::EntryProxy.entity_class.should == Economic::Entry
70
+ end
71
+ end
72
+ end
73
+
@@ -45,7 +45,7 @@ describe Economic::InvoiceProxy do
45
45
  it "should be able to return a single current invoice" do
46
46
  from = Time.now - 60
47
47
  unto = Time.now
48
- savon.expects('Invoice_FindByDateInterval').with('first' => from.iso8601, 'last' => unto.iso8601).returns(:single)
48
+ savon.expects('Invoice_FindByDateInterval').with('first' => from.iso8601, 'last' => unto.iso8601, :order! => ['first', 'last']).returns(:single)
49
49
  savon.expects('Invoice_GetData').returns(:success)
50
50
  results = subject.find_by_date_interval(from, unto)
51
51
  results.size.should == 1
@@ -55,7 +55,7 @@ describe Economic::InvoiceProxy do
55
55
  it "should be able to return multiple invoices" do
56
56
  from = Time.now - 60
57
57
  unto = Time.now
58
- savon.expects('Invoice_FindByDateInterval').with('first' => from.iso8601, 'last' => unto.iso8601).returns(:many)
58
+ savon.expects('Invoice_FindByDateInterval').with('first' => from.iso8601, 'last' => unto.iso8601, :order! => ['first', 'last']).returns(:many)
59
59
  savon.expects('Invoice_GetData').returns(:success)
60
60
  savon.expects('Invoice_GetData').returns(:success)
61
61
  results = subject.find_by_date_interval(from, unto)
@@ -66,7 +66,7 @@ describe Economic::InvoiceProxy do
66
66
  it "should be able to return nothing" do
67
67
  from = Time.now - 60
68
68
  unto = Time.now
69
- savon.expects('Invoice_FindByDateInterval').with('first' => from.iso8601, 'last' => unto.iso8601).returns(:none)
69
+ savon.expects('Invoice_FindByDateInterval').with('first' => from.iso8601, 'last' => unto.iso8601, :order! => ['first', 'last']).returns(:none)
70
70
  results = subject.find_by_date_interval(from, unto)
71
71
  results.size.should == 0
72
72
  end
@@ -0,0 +1,11 @@
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
+ <CashBookEntry_CreateCreditorInvoiceResponse xmlns="http://e-conomic.com">
5
+ <CashBookEntry_CreateCreditorInvoiceResult>
6
+ <Id1>int</Id1>
7
+ <Id2>int</Id2>
8
+ </CashBookEntry_CreateCreditorInvoiceResult>
9
+ </CashBookEntry_CreateCreditorInvoiceResponse>
10
+ </soap:Body>
11
+ </soap:Envelope>
@@ -0,0 +1,11 @@
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
+ <CashBookEntry_CreateCreditorPaymentResponse xmlns="http://e-conomic.com">
5
+ <CashBookEntry_CreateCreditorPaymentResult>
6
+ <Id1>int</Id1>
7
+ <Id2>int</Id2>
8
+ </CashBookEntry_CreateCreditorPaymentResult>
9
+ </CashBookEntry_CreateCreditorPaymentResponse>
10
+ </soap:Body>
11
+ </soap:Envelope>
@@ -4,11 +4,11 @@
4
4
  <CashBookEntry_GetDataResponse xmlns="http://e-conomic.com">
5
5
  <CashBookEntry_GetDataResult>
6
6
  <Handle>
7
- <Id1>int</Id1>
8
- <Id2>int</Id2>
7
+ <Id1>1</Id1>
8
+ <Id2>2</Id2>
9
9
  </Handle>
10
- <Id1>int</Id1>
11
- <Id2>int</Id2>
10
+ <Id1>1</Id1>
11
+ <Id2>2</Id2>
12
12
  <Type>DebtorPayment or CreditorInvoice or CreditorPayment or FinanceVoucher or ManualDebtorInvoice</Type>
13
13
  <CashBookHandle>
14
14
  <Number>int</Number>
@@ -0,0 +1,6 @@
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
+ <CashBookEntry_SetDueDateResponse xmlns="http://e-conomic.com" />
5
+ </soap:Body>
6
+ </soap:Envelope>
@@ -4,10 +4,10 @@
4
4
  <CashBook_GetAllResponse xmlns="http://e-conomic.com">
5
5
  <CashBook_GetAllResult>
6
6
  <CashBookHandle>
7
- <Number>int</Number>
7
+ <Number>1</Number>
8
8
  </CashBookHandle>
9
9
  <CashBookHandle>
10
- <Number>int</Number>
10
+ <Number>2</Number>
11
11
  </CashBookHandle>
12
12
  </CashBook_GetAllResult>
13
13
  </CashBook_GetAllResponse>
@@ -4,12 +4,12 @@
4
4
  <CashBook_GetEntriesResponse xmlns="http://e-conomic.com">
5
5
  <CashBook_GetEntriesResult>
6
6
  <CashBookEntryHandle>
7
- <Id1>int</Id1>
8
- <Id2>int</Id2>
7
+ <Id1>1</Id1>
8
+ <Id2>2</Id2>
9
9
  </CashBookEntryHandle>
10
10
  <CashBookEntryHandle>
11
- <Id1>int</Id1>
12
- <Id2>int</Id2>
11
+ <Id1>11</Id1>
12
+ <Id2>12</Id2>
13
13
  </CashBookEntryHandle>
14
14
  </CashBook_GetEntriesResult>
15
15
  </CashBook_GetEntriesResponse>
@@ -0,0 +1,22 @@
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_GetDataResponse xmlns="http://e-conomic.com">
5
+ <CreditorContact_GetDataResult>
6
+ <Handle>
7
+ <Id>int</Id>
8
+ </Handle>
9
+ <Id>int</Id>
10
+ <CreditorHandle>
11
+ <Number>string</Number>
12
+ </CreditorHandle>
13
+ <Name>string</Name>
14
+ <Number>int</Number>
15
+ <TelephoneNumber>string</TelephoneNumber>
16
+ <Email>string</Email>
17
+ <Comments>string</Comments>
18
+ <ExternalId>string</ExternalId>
19
+ </CreditorContact_GetDataResult>
20
+ </CreditorContact_GetDataResponse>
21
+ </soap:Body>
22
+ </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
+ <CreditorEntry_FindByInvoiceNumberResponse xmlns="http://e-conomic.com">
5
+ <CreditorEntry_FindByInvoiceNumberResult>
6
+ <CreditorEntryHandle>
7
+ <SerialNumber>1</SerialNumber>
8
+ </CreditorEntryHandle>
9
+ <CreditorEntryHandle>
10
+ <SerialNumber>2</SerialNumber>
11
+ </CreditorEntryHandle>
12
+ </CreditorEntry_FindByInvoiceNumberResult>
13
+ </CreditorEntry_FindByInvoiceNumberResponse>
14
+ </soap:Body>
15
+ </soap:Envelope>
@@ -0,0 +1,12 @@
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
+ <CreditorEntry_FindByInvoiceNumberResponse xmlns="http://e-conomic.com">
5
+ <CreditorEntry_FindByInvoiceNumberResult>
6
+ <CreditorEntryHandle>
7
+ <SerialNumber>1</SerialNumber>
8
+ </CreditorEntryHandle>
9
+ </CreditorEntry_FindByInvoiceNumberResult>
10
+ </CreditorEntry_FindByInvoiceNumberResponse>
11
+ </soap:Body>
12
+ </soap:Envelope>
@@ -0,0 +1,32 @@
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
+ <CreditorEntry_GetDataResponse xmlns="http://e-conomic.com">
5
+ <CreditorEntry_GetDataResult>
6
+ <Handle>
7
+ <SerialNumber>int</SerialNumber>
8
+ </Handle>
9
+ <SerialNumber>int</SerialNumber>
10
+ <Type>DebtorInvoice or DebtorPayment or CreditorInvoice or CreditorPayment or JournalEntry or Reminder or OpeningEntry or TransferredOpeningEntry or SystemEntry or ManualDebtorInvoice</Type>
11
+ <Date>dateTime</Date>
12
+ <CreditorHandle>
13
+ <Number>string</Number>
14
+ </CreditorHandle>
15
+ <AccountHandle>
16
+ <Number>int</Number>
17
+ </AccountHandle>
18
+ <VoucherNumber>int</VoucherNumber>
19
+ <Text>string</Text>
20
+ <AmountDefaultCurrency>decimal</AmountDefaultCurrency>
21
+ <CurrencyHandle>
22
+ <Code>string</Code>
23
+ </CurrencyHandle>
24
+ <Amount>decimal</Amount>
25
+ <InvoiceNumber>string</InvoiceNumber>
26
+ <DueDate>dateTime</DueDate>
27
+ <Remainder>decimal</Remainder>
28
+ <RemainderDefaultCurrency>decimal</RemainderDefaultCurrency>
29
+ </CreditorEntry_GetDataResult>
30
+ </CreditorEntry_GetDataResponse>
31
+ </soap:Body>
32
+ </soap:Envelope>
@@ -0,0 +1,5 @@
1
+ <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/">
2
+ <soap:Body>
3
+ <CreditorEntry_MatchEntriesResponse xmlns="http://e-conomic.com" />
4
+ </soap:Body>
5
+ </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
+ <Creditor_FindByNumberResponse xmlns="http://e-conomic.com">
5
+ <Creditor_FindByNumberResult>
6
+ <Number>1</Number>
7
+ </Creditor_FindByNumberResult>
8
+ </Creditor_FindByNumberResponse>
9
+ </soap:Body>
10
+ </soap:Envelope>
@@ -0,0 +1,7 @@
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
+ <Creditor_FindByNumberResponse xmlns="http://e-conomic.com" />
5
+ </soap:Body>
6
+ </soap:Envelope>
7
+
@@ -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
+ <Creditor_GetAllResponse xmlns="http://e-conomic.com">
5
+ <Creditor_GetAllResult>
6
+ <CreditorHandle>
7
+ <Number>string</Number>
8
+ </CreditorHandle>
9
+ <CreditorHandle>
10
+ <Number>string</Number>
11
+ </CreditorHandle>
12
+ </Creditor_GetAllResult>
13
+ </Creditor_GetAllResponse>
14
+ </soap:Body>
15
+ </soap:Envelope>
@@ -0,0 +1,12 @@
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
+ <Creditor_GetAllResponse xmlns="http://e-conomic.com">
5
+ <Creditor_GetAllResult>
6
+ <CreditorHandle>
7
+ <Number>1</Number>
8
+ </CreditorHandle>
9
+ </Creditor_GetAllResult>
10
+ </Creditor_GetAllResponse>
11
+ </soap:Body>
12
+ </soap:Envelope>
@@ -0,0 +1,49 @@
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
+ <Creditor_GetDataResponse xmlns="http://e-conomic.com">
5
+ <Creditor_GetDataResult>
6
+ <Handle>
7
+ <Number>string</Number>
8
+ </Handle>
9
+ <Number>string</Number>
10
+ <CreditorGroupHandle>
11
+ <Number>int</Number>
12
+ </CreditorGroupHandle>
13
+ <Name>string</Name>
14
+ <VatZone>HomeCountry or EU or Abroad</VatZone>
15
+ <CurrencyHandle>
16
+ <Code>string</Code>
17
+ </CurrencyHandle>
18
+ <TermOfPaymentHandle>
19
+ <Id>int</Id>
20
+ </TermOfPaymentHandle>
21
+ <IsAccessible>boolean</IsAccessible>
22
+ <CINumber>string</CINumber>
23
+ <Email>string</Email>
24
+ <Address>string</Address>
25
+ <PostalCode>string</PostalCode>
26
+ <City>string</City>
27
+ <Country>string</Country>
28
+ <BankAccount>string</BankAccount>
29
+ <AttentionHandle>
30
+ <Id>int</Id>
31
+ </AttentionHandle>
32
+ <YourReferenceHandle>
33
+ <Id>int</Id>
34
+ </YourReferenceHandle>
35
+ <OurReferenceHandle>
36
+ <Number>int</Number>
37
+ </OurReferenceHandle>
38
+ <DefaultPaymentTypeHandle>
39
+ <Number>string</Number>
40
+ </DefaultPaymentTypeHandle>
41
+ <DefaultPaymentCreditorId>string</DefaultPaymentCreditorId>
42
+ <County>string</County>
43
+ <AutoContraAccountHandle>
44
+ <Number>int</Number>
45
+ </AutoContraAccountHandle>
46
+ </Creditor_GetDataResult>
47
+ </Creditor_GetDataResponse>
48
+ </soap:Body>
49
+ </soap:Envelope>
@@ -0,0 +1,93 @@
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
+ <Creditor_GetDataArrayResponse xmlns="http://e-conomic.com">
5
+ <Creditor_GetDataArrayResult>
6
+ <CreditorData>
7
+ <Handle>
8
+ <Number>1</Number>
9
+ </Handle>
10
+ <Number>1</Number>
11
+ <CreditorGroupHandle>
12
+ <Number>int</Number>
13
+ </CreditorGroupHandle>
14
+ <Name>string</Name>
15
+ <VatZone>HomeCountry or EU or Abroad</VatZone>
16
+ <CurrencyHandle>
17
+ <Code>string</Code>
18
+ </CurrencyHandle>
19
+ <TermOfPaymentHandle>
20
+ <Id>int</Id>
21
+ </TermOfPaymentHandle>
22
+ <IsAccessible>boolean</IsAccessible>
23
+ <CINumber>string</CINumber>
24
+ <Email>string</Email>
25
+ <Address>string</Address>
26
+ <PostalCode>string</PostalCode>
27
+ <City>string</City>
28
+ <Country>string</Country>
29
+ <BankAccount>string</BankAccount>
30
+ <AttentionHandle>
31
+ <Id>int</Id>
32
+ </AttentionHandle>
33
+ <YourReferenceHandle>
34
+ <Id>int</Id>
35
+ </YourReferenceHandle>
36
+ <OurReferenceHandle>
37
+ <Number>int</Number>
38
+ </OurReferenceHandle>
39
+ <DefaultPaymentTypeHandle>
40
+ <Number>string</Number>
41
+ </DefaultPaymentTypeHandle>
42
+ <DefaultPaymentCreditorId>string</DefaultPaymentCreditorId>
43
+ <County>string</County>
44
+ <AutoContraAccountHandle>
45
+ <Number>int</Number>
46
+ </AutoContraAccountHandle>
47
+ </CreditorData>
48
+ <CreditorData>
49
+ <Handle>
50
+ <Number>2</Number>
51
+ </Handle>
52
+ <Number>2</Number>
53
+ <CreditorGroupHandle>
54
+ <Number>int</Number>
55
+ </CreditorGroupHandle>
56
+ <Name>string</Name>
57
+ <VatZone>HomeCountry or EU or Abroad</VatZone>
58
+ <CurrencyHandle>
59
+ <Code>string</Code>
60
+ </CurrencyHandle>
61
+ <TermOfPaymentHandle>
62
+ <Id>int</Id>
63
+ </TermOfPaymentHandle>
64
+ <IsAccessible>boolean</IsAccessible>
65
+ <CINumber>string</CINumber>
66
+ <Email>string</Email>
67
+ <Address>string</Address>
68
+ <PostalCode>string</PostalCode>
69
+ <City>string</City>
70
+ <Country>string</Country>
71
+ <BankAccount>string</BankAccount>
72
+ <AttentionHandle>
73
+ <Id>int</Id>
74
+ </AttentionHandle>
75
+ <YourReferenceHandle>
76
+ <Id>int</Id>
77
+ </YourReferenceHandle>
78
+ <OurReferenceHandle>
79
+ <Number>int</Number>
80
+ </OurReferenceHandle>
81
+ <DefaultPaymentTypeHandle>
82
+ <Number>string</Number>
83
+ </DefaultPaymentTypeHandle>
84
+ <DefaultPaymentCreditorId>string</DefaultPaymentCreditorId>
85
+ <County>string</County>
86
+ <AutoContraAccountHandle>
87
+ <Number>int</Number>
88
+ </AutoContraAccountHandle>
89
+ </CreditorData>
90
+ </Creditor_GetDataArrayResult>
91
+ </Creditor_GetDataArrayResponse>
92
+ </soap:Body>
93
+ </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
+ <CurrentInvoice_BookWithNumberResponse xmlns="http://e-conomic.com">
5
+ <CurrentInvoice_BookWithNumberResult>
6
+ <Number>123</Number>
7
+ </CurrentInvoice_BookWithNumberResult>
8
+ </CurrentInvoice_BookWithNumberResponse>
9
+ </soap:Body>
10
+ </soap:Envelope>
@@ -5,9 +5,9 @@
5
5
  <CurrentInvoice_GetDataArrayResult>
6
6
  <CurrentInvoiceData>
7
7
  <Handle>
8
- <Id>int</Id>
8
+ <Id>1</Id>
9
9
  </Handle>
10
- <Id>int</Id>
10
+ <Id>1</Id>
11
11
  <DebtorHandle>
12
12
  <Number>string</Number>
13
13
  </DebtorHandle>
@@ -71,9 +71,9 @@
71
71
  </CurrentInvoiceData>
72
72
  <CurrentInvoiceData>
73
73
  <Handle>
74
- <Id>int</Id>
74
+ <Id>2</Id>
75
75
  </Handle>
76
- <Id>int</Id>
76
+ <Id>2</Id>
77
77
  <DebtorHandle>
78
78
  <Number>string</Number>
79
79
  </DebtorHandle>
@@ -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
+ <DebtorEntry_FindByInvoiceNumberResponse xmlns="http://e-conomic.com">
5
+ <DebtorEntry_FindByInvoiceNumberResult>
6
+ <DebtorEntryHandle>
7
+ <SerialNumber>1</SerialNumber>
8
+ </DebtorEntryHandle>
9
+ <DebtorEntryHandle>
10
+ <SerialNumber>2</SerialNumber>
11
+ </DebtorEntryHandle>
12
+ </DebtorEntry_FindByInvoiceNumberResult>
13
+ </DebtorEntry_FindByInvoiceNumberResponse>
14
+ </soap:Body>
15
+ </soap:Envelope>
@@ -0,0 +1,12 @@
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
+ <DebtorEntry_FindByInvoiceNumberResponse xmlns="http://e-conomic.com">
5
+ <DebtorEntry_FindByInvoiceNumberResult>
6
+ <DebtorEntryHandle>
7
+ <SerialNumber>1</SerialNumber>
8
+ </DebtorEntryHandle>
9
+ </DebtorEntry_FindByInvoiceNumberResult>
10
+ </DebtorEntry_FindByInvoiceNumberResponse>
11
+ </soap:Body>
12
+ </soap:Envelope>
@@ -0,0 +1,6 @@
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
+ <DebtorEntry_MatchEntriesResponse xmlns="http://e-conomic.com" />
5
+ </soap:Body>
6
+ </soap:Envelope>
@@ -5,9 +5,9 @@
5
5
  <Debtor_GetDataArrayResult>
6
6
  <DebtorData>
7
7
  <Handle>
8
- <Number>string</Number>
8
+ <Number>1</Number>
9
9
  </Handle>
10
- <Number>string</Number>
10
+ <Number>1</Number>
11
11
  <DebtorGroupHandle>
12
12
  <Number>int</Number>
13
13
  </DebtorGroupHandle>
@@ -52,9 +52,9 @@
52
52
  </DebtorData>
53
53
  <DebtorData>
54
54
  <Handle>
55
- <Number>string</Number>
55
+ <Number>2</Number>
56
56
  </Handle>
57
- <Number>string</Number>
57
+ <Number>2</Number>
58
58
  <DebtorGroupHandle>
59
59
  <Number>int</Number>
60
60
  </DebtorGroupHandle>
@@ -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
+ <Entry_FindByDateIntervalResponse xmlns="http://e-conomic.com">
5
+ <Entry_FindByDateIntervalResult>
6
+ <EntryHandle>
7
+ <SerialNumber>1</SerialNumber>
8
+ </EntryHandle>
9
+ <EntryHandle>
10
+ <SerialNumber>2</SerialNumber>
11
+ </EntryHandle>
12
+ </Entry_FindByDateIntervalResult>
13
+ </Entry_FindByDateIntervalResponse>
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
+ <Entry_FindByDateIntervalResponse xmlns="http://e-conomic.com">
5
+ <Entry_FindByDateIntervalResult>
6
+ </Entry_FindByDateIntervalResult>
7
+ </Entry_FindByDateIntervalResponse>
8
+ </soap:Body>
9
+ </soap:Envelope>
@@ -0,0 +1,12 @@
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
+ <Entry_FindByDateIntervalResponse xmlns="http://e-conomic.com">
5
+ <Entry_FindByDateIntervalResult>
6
+ <EntryHandle>
7
+ <SerialNumber>1</SerialNumber>
8
+ </EntryHandle>
9
+ </Entry_FindByDateIntervalResult>
10
+ </Entry_FindByDateIntervalResponse>
11
+ </soap:Body>
12
+ </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
+ <Entry_FindBySerialNumberIntervalResponse xmlns="http://e-conomic.com">
5
+ <Entry_FindBySerialNumberIntervalResult>
6
+ <EntryHandle>
7
+ <SerialNumber>1</SerialNumber>
8
+ </EntryHandle>
9
+ <EntryHandle>
10
+ <SerialNumber>2</SerialNumber>
11
+ </EntryHandle>
12
+ </Entry_FindBySerialNumberIntervalResult>
13
+ </Entry_FindBySerialNumberIntervalResponse>
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
+ <Entry_FindBySerialNumberIntervalResponse xmlns="http://e-conomic.com">
5
+ <Entry_FindBySerialNumberIntervalResult>
6
+ </Entry_FindBySerialNumberIntervalResult>
7
+ </Entry_FindBySerialNumberIntervalResponse>
8
+ </soap:Body>
9
+ </soap:Envelope>