rconomic 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +64 -14
  3. data/.rubocop_todo.yml +110 -0
  4. data/.travis.yml +13 -0
  5. data/CHANGELOG.md +1 -1
  6. data/Gemfile +2 -0
  7. data/Guardfile +2 -0
  8. data/Rakefile +2 -0
  9. data/lib/economic/account.rb +2 -0
  10. data/lib/economic/cash_book.rb +2 -0
  11. data/lib/economic/cash_book_entry.rb +2 -0
  12. data/lib/economic/company.rb +2 -0
  13. data/lib/economic/creditor.rb +2 -0
  14. data/lib/economic/creditor_contact.rb +2 -0
  15. data/lib/economic/creditor_entry.rb +2 -0
  16. data/lib/economic/current_invoice.rb +2 -0
  17. data/lib/economic/current_invoice_line.rb +2 -0
  18. data/lib/economic/debtor.rb +2 -0
  19. data/lib/economic/debtor_contact.rb +2 -0
  20. data/lib/economic/debtor_entry.rb +2 -0
  21. data/lib/economic/economic.wsdl +11484 -9793
  22. data/lib/economic/endpoint.rb +3 -2
  23. data/lib/economic/entity/handle.rb +8 -4
  24. data/lib/economic/entity/mapper.rb +2 -0
  25. data/lib/economic/entity.rb +2 -0
  26. data/lib/economic/entry.rb +2 -0
  27. data/lib/economic/invoice.rb +2 -0
  28. data/lib/economic/order.rb +16 -1
  29. data/lib/economic/order_line.rb +55 -0
  30. data/lib/economic/product.rb +2 -0
  31. data/lib/economic/proxies/account_proxy.rb +2 -0
  32. data/lib/economic/proxies/actions/debtor_contact/all.rb +3 -1
  33. data/lib/economic/proxies/actions/find_by_ci_number.rb +2 -0
  34. data/lib/economic/proxies/actions/find_by_date_interval.rb +2 -0
  35. data/lib/economic/proxies/actions/find_by_handle_with_number.rb +2 -0
  36. data/lib/economic/proxies/actions/find_by_name.rb +3 -1
  37. data/lib/economic/proxies/actions/find_by_number.rb +2 -0
  38. data/lib/economic/proxies/actions/find_by_telephone_and_fax_number.rb +2 -0
  39. data/lib/economic/proxies/cash_book_entry_proxy.rb +4 -2
  40. data/lib/economic/proxies/cash_book_proxy.rb +4 -2
  41. data/lib/economic/proxies/company_proxy.rb +2 -0
  42. data/lib/economic/proxies/creditor_contact_proxy.rb +2 -0
  43. data/lib/economic/proxies/creditor_entry_proxy.rb +4 -2
  44. data/lib/economic/proxies/creditor_proxy.rb +2 -0
  45. data/lib/economic/proxies/current_invoice_line_proxy.rb +2 -0
  46. data/lib/economic/proxies/current_invoice_proxy.rb +2 -0
  47. data/lib/economic/proxies/debtor_contact_proxy.rb +2 -0
  48. data/lib/economic/proxies/debtor_entry_proxy.rb +2 -0
  49. data/lib/economic/proxies/debtor_proxy.rb +2 -0
  50. data/lib/economic/proxies/entity_proxy.rb +42 -20
  51. data/lib/economic/proxies/entry_proxy.rb +4 -2
  52. data/lib/economic/proxies/invoice_proxy.rb +2 -0
  53. data/lib/economic/proxies/order_line_proxy.rb +33 -0
  54. data/lib/economic/proxies/order_proxy.rb +27 -0
  55. data/lib/economic/proxies/product_proxy.rb +2 -0
  56. data/lib/economic/session.rb +2 -0
  57. data/lib/economic/support/string.rb +2 -0
  58. data/lib/rconomic/version.rb +3 -1
  59. data/lib/rconomic.rb +4 -0
  60. data/rconomic.gemspec +4 -3
  61. data/spec/economic/account_spec.rb +2 -0
  62. data/spec/economic/cash_book_entry_spec.rb +2 -0
  63. data/spec/economic/cash_book_spec.rb +2 -0
  64. data/spec/economic/company_spec.rb +2 -0
  65. data/spec/economic/creditor_contact_spec.rb +2 -0
  66. data/spec/economic/creditor_entry_spec.rb +2 -0
  67. data/spec/economic/creditor_spec.rb +2 -0
  68. data/spec/economic/current_invoice_line_spec.rb +2 -0
  69. data/spec/economic/current_invoice_spec.rb +2 -0
  70. data/spec/economic/debtor_contact_spec.rb +2 -0
  71. data/spec/economic/debtor_entry_spec.rb +2 -0
  72. data/spec/economic/debtor_spec.rb +3 -1
  73. data/spec/economic/endpoint_spec.rb +2 -0
  74. data/spec/economic/entity/handle_spec.rb +2 -0
  75. data/spec/economic/entity/mapper_spec.rb +2 -0
  76. data/spec/economic/entity_spec.rb +2 -0
  77. data/spec/economic/entry_spec.rb +2 -0
  78. data/spec/economic/invoice_spec.rb +3 -1
  79. data/spec/economic/order_line_spec.rb +22 -0
  80. data/spec/economic/order_spec.rb +36 -0
  81. data/spec/economic/product_spec.rb +2 -0
  82. data/spec/economic/proxies/account_proxy_spec.rb +2 -0
  83. data/spec/economic/proxies/actions/debtor_contact/all_spec.rb +2 -0
  84. data/spec/economic/proxies/actions/find_by_name_spec.rb +2 -0
  85. data/spec/economic/proxies/cash_book_entry_proxy_spec.rb +2 -0
  86. data/spec/economic/proxies/cash_book_proxy_spec.rb +2 -0
  87. data/spec/economic/proxies/company_proxy_spec.rb +2 -0
  88. data/spec/economic/proxies/creditor_contact_proxy_spec.rb +2 -0
  89. data/spec/economic/proxies/creditor_entry_proxy_spec.rb +2 -0
  90. data/spec/economic/proxies/creditor_proxy_spec.rb +2 -0
  91. data/spec/economic/proxies/current_invoice_line_proxy_spec.rb +2 -0
  92. data/spec/economic/proxies/current_invoice_proxy_spec.rb +2 -0
  93. data/spec/economic/proxies/debtor_contact_proxy_spec.rb +2 -0
  94. data/spec/economic/proxies/debtor_entry_proxy_spec.rb +2 -0
  95. data/spec/economic/proxies/debtor_proxy_spec.rb +2 -0
  96. data/spec/economic/proxies/entry_proxy_spec.rb +2 -0
  97. data/spec/economic/proxies/invoice_proxy_spec.rb +2 -0
  98. data/spec/economic/proxies/order_line_proxy_spec.rb +63 -0
  99. data/spec/economic/proxies/order_proxy_spec.rb +65 -0
  100. data/spec/economic/proxies/product_proxy_spec.rb +2 -0
  101. data/spec/economic/session_spec.rb +3 -1
  102. data/spec/fixtures/order_cancel_sent_status/success.xml +6 -0
  103. data/spec/fixtures/order_find_by_other_reference/multiple.xml +15 -0
  104. data/spec/fixtures/order_find_by_other_reference/none.xml +9 -0
  105. data/spec/fixtures/order_find_by_other_reference/single.xml +12 -0
  106. data/spec/fixtures/order_get_all/success.xml +15 -0
  107. data/spec/fixtures/order_get_all_current/success.xml +12 -0
  108. data/spec/fixtures/order_get_data_array/multiple.xml +5 -5
  109. data/spec/fixtures/order_line_find_by_order_list/multiple.xml +17 -0
  110. data/spec/fixtures/order_line_find_by_order_list/none.xml +9 -0
  111. data/spec/fixtures/order_line_find_by_order_list/single.xml +13 -0
  112. data/spec/fixtures/order_line_get_data/success.xml +42 -0
  113. data/spec/fixtures/order_line_get_data_array/multiple.xml +79 -0
  114. data/spec/fixtures/order_line_get_data_array/single.xml +44 -0
  115. data/spec/fixtures/order_register_as_sent/success.xml +6 -0
  116. data/spec/spec_helper.rb +2 -0
  117. data/spec/support/api_requests.rb +2 -0
  118. data/spec/support/factories.rb +2 -0
  119. data/spec/support/fixtures.rb +2 -0
  120. metadata +20 -2
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CreditorEntry do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Creditor do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CurrentInvoiceLine do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CurrentInvoice do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::DebtorContact do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::DebtorEntry do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Debtor do
@@ -147,7 +149,7 @@ describe Economic::Debtor do
147
149
  subject.currency_handle = Economic::Entity::Handle.new(:code => "BTC")
148
150
  subject.price_group_handle = Economic::Entity::Handle.new(:number => 37)
149
151
  subject.term_of_payment_handle = Economic::Entity::Handle.new(:id => 314)
150
- subject.layout_handle = Economic::Entity::Handle.new({:id => 21})
152
+ subject.layout_handle = Economic::Entity::Handle.new(:id => 21)
151
153
 
152
154
  subject.save
153
155
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Endpoint do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Entity::Handle do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Entity::Mapper do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  class Account < Economic::Entity
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Entry do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Invoice do
@@ -8,7 +10,7 @@ describe Economic::Invoice do
8
10
  expect(Economic::Invoice.ancestors).to include(Economic::Entity)
9
11
  end
10
12
 
11
- describe '#remainder' do
13
+ describe "#remainder" do
12
14
  it "should get the remainder" do
13
15
  mock_request("Invoice_GetRemainder", {"invoiceHandle" => {"Number" => 512}}, :success)
14
16
  expect(subject.remainder).to eq(512.32)
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "./spec/spec_helper"
4
+
5
+ describe Economic::OrderLine do
6
+ let(:session) { make_session }
7
+ subject { Economic::OrderLine.new(:session => session, :number => 512) }
8
+
9
+ it "inherits from Economic::Entity" do
10
+ expect(Economic::OrderLine.ancestors).to include(Economic::Entity)
11
+ end
12
+
13
+ describe ".proxy" do
14
+ it "should return a OrderProxy" do
15
+ expect(subject.proxy).to be_instance_of(Economic::OrderLineProxy)
16
+ end
17
+
18
+ it "should return a proxy owned by session" do
19
+ expect(subject.proxy.session).to eq(session)
20
+ end
21
+ end
22
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Order do
@@ -36,6 +38,18 @@ describe Economic::Order do
36
38
  end
37
39
  end
38
40
 
41
+ describe "#cancel_sent_status" do
42
+ it "updates the order" do
43
+ mock_request("Order_CancelSentStatus", {"orderHandle" => {"Number" => 512}}, :success)
44
+ subject.cancel_sent_status
45
+ end
46
+
47
+ it "decodes the base64Binary encoded data" do
48
+ stub_request("Order_CancelSentStatus", nil, :success)
49
+ expect(subject.cancel_sent_status).to eq({})
50
+ end
51
+ end
52
+
39
53
  describe "#attention" do
40
54
  let(:contact) {
41
55
  Economic::DebtorContact.new.tap do |c|
@@ -57,6 +71,28 @@ describe Economic::Order do
57
71
  end
58
72
  end
59
73
 
74
+ describe "#order_lines" do
75
+ let(:proxy) { instance_double(Economic::OrderLineProxy) }
76
+
77
+ it "calls the correct proxy" do
78
+ expect(Economic::OrderLineProxy).to receive(:new) { proxy }
79
+ expect(proxy).to receive(:find_by_order).with("Number" => 512) { [] }
80
+ subject.order_lines
81
+ end
82
+ end
83
+
84
+ describe "#register_as_sent" do
85
+ it "updates the order" do
86
+ mock_request("Order_RegisterAsSent", {"orderHandle" => {"Number" => 512}}, :success)
87
+ subject.register_as_sent
88
+ end
89
+
90
+ it "decodes the base64Binary encoded data" do
91
+ stub_request("Order_RegisterAsSent", nil, :success)
92
+ expect(subject.register_as_sent).to eq({})
93
+ end
94
+ end
95
+
60
96
  describe "#debtor" do
61
97
  let(:debtor) {
62
98
  Economic::Debtor.new.tap do |c|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Product do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::AccountProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Proxies::Actions::DebtorContact::All do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Proxies::Actions::FindByName do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CashBookEntryProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CashBookProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CompanyProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CreditorContactProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CreditorEntryProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CreditorProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CurrentInvoiceLineProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::CurrentInvoiceProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::DebtorContactProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::DebtorEntryProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::DebtorProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::EntryProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::InvoiceProxy do
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "./spec/spec_helper"
4
+
5
+ describe Economic::OrderLineProxy do
6
+ let(:session) { make_session }
7
+ subject { Economic::OrderLineProxy.new(session) }
8
+
9
+ describe ".new" do
10
+ it "stores session" do
11
+ expect(subject.session).to equal(session)
12
+ end
13
+ end
14
+
15
+ describe ".build" do
16
+ it "instantiates a new Order" do
17
+ expect(subject.build).to be_instance_of(Economic::OrderLine)
18
+ end
19
+
20
+ it "assigns the session to the Order" do
21
+ expect(subject.build.session).to equal(session)
22
+ end
23
+
24
+ it "should not build a partial Order" do
25
+ expect(subject.build).to_not be_partial
26
+ end
27
+ end
28
+
29
+ describe ".find" do
30
+ it "gets order data from API" do
31
+ mock_request("OrderLine_GetData", {"entityHandle" => {"Id" => 42}}, :success)
32
+ subject.find(42)
33
+ end
34
+
35
+ it "returns Order object" do
36
+ stub_request("OrderLine_GetData", nil, :success)
37
+ expect(subject.find(42)).to be_instance_of(Economic::OrderLine)
38
+ end
39
+ end
40
+
41
+ describe ".find_by_order" do
42
+ it "returns orderline for order" do
43
+ stub_request("OrderLine_FindByOrderList", nil, :single)
44
+ mock_request("OrderLine_GetDataArray", :any, :single)
45
+ results = subject.find_by_order(31)
46
+ expect(results.size).to eq(1)
47
+ expect(results.first).to be_instance_of(Economic::OrderLine)
48
+ end
49
+
50
+ it "returns orderlines for order" do
51
+ stub_request("OrderLine_FindByOrderList", nil, :multiple)
52
+ mock_request("OrderLine_GetDataArray", :any, :multiple)
53
+ results = subject.find_by_order(31)
54
+ expect(results.size).to eq(2)
55
+ expect(results.first).to be_instance_of(Economic::OrderLine)
56
+ end
57
+
58
+ it "returns empty array when orderlines for an order" do
59
+ stub_request("OrderLine_FindByOrderList", nil, :none)
60
+ expect(subject.find_by_order(31)).to eq([])
61
+ end
62
+ end
63
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::OrderProxy do
@@ -36,6 +38,69 @@ describe Economic::OrderProxy do
36
38
  end
37
39
  end
38
40
 
41
+ describe ".find_by_other_reference" do
42
+ it "returns matching order" do
43
+ stub_request("Order_FindByOtherReference", nil, :single)
44
+ mock_request("Order_GetDataArray", :any, :single)
45
+ results = subject.find_by_other_reference("some reference")
46
+ expect(results.size).to eq(1)
47
+ expect(results.first).to be_instance_of(Economic::Order)
48
+ end
49
+
50
+ it "returns matching orders" do
51
+ stub_request("Order_FindByOtherReference", nil, :multiple)
52
+ mock_request("Order_GetDataArray", :any, :multiple)
53
+ results = subject.find_by_other_reference("some reference")
54
+ expect(results.size).to eq(2)
55
+ expect(results.first).to be_instance_of(Economic::Order)
56
+ end
57
+
58
+ it "returns empty array when no matches" do
59
+ stub_request("Order_FindByOtherReference", nil, :none)
60
+ expect(subject.find_by_other_reference("some reference")).to eq([])
61
+ end
62
+ end
63
+
64
+ describe ".all" do
65
+ it "gets order data from API" do
66
+ mock_request("Order_GetAll", nil, :success)
67
+ mock_request("Order_GetDataArray", :any, :single)
68
+ subject.all
69
+ end
70
+
71
+ it "returns Order object" do
72
+ stub_request("Order_GetAll", nil, :success)
73
+ mock_request("Order_GetDataArray", :any, :single)
74
+ expect(subject.all.first).to be_instance_of(Economic::Order)
75
+ end
76
+ end
77
+
78
+ describe ".current" do
79
+ it "gets current order data from API" do
80
+ mock_request("Order_GetAllCurrent", nil, :success)
81
+ mock_request("Order_GetData", :any, :success)
82
+ subject.current
83
+ end
84
+
85
+ it "returns Order objects" do
86
+ stub_request("Order_GetAllCurrent", nil, :success)
87
+ mock_request("Order_GetData", :any, :success)
88
+ expect(subject.current.first).to be_instance_of(Economic::Order)
89
+ end
90
+
91
+ it "replaces the already fetched orders" do
92
+ stub_request("Order_GetAll", nil, :success)
93
+ stub_request("Order_GetDataArray", :any, :multiple)
94
+ subject.all
95
+
96
+ stub_request("Order_GetAllCurrent", nil, :success)
97
+ mock_request("Order_GetData", :any, :success)
98
+ newly_fetched_objects = subject.current
99
+
100
+ expect(newly_fetched_objects.size).to eq(1)
101
+ end
102
+ end
103
+
39
104
  describe ".find_by_date_interval" do
40
105
  let(:from) { Time.now - 60 }
41
106
  let(:unto) { Time.now }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::ProductProxy do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./spec/spec_helper"
2
4
 
3
5
  describe Economic::Session do
@@ -9,7 +11,7 @@ describe Economic::Session do
9
11
  it "yields the endpoint if a block is given" do
10
12
  endpoint_mock = double("Endpoint")
11
13
  allow(Economic::Endpoint).to receive(:new).and_return(endpoint_mock)
12
- expect {|b|
14
+ expect { |b|
13
15
  Economic::Session.new(&b)
14
16
  }.to yield_with_args(endpoint_mock)
15
17
  end
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <Order_CancelSentStatusResponse xmlns="http://e-conomic.com" />
5
+ </soap12:Body>
6
+ </soap12:Envelope>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <Order_FindByOtherReferenceResponse xmlns="http://e-conomic.com">
5
+ <Order_FindByOtherReferenceResult>
6
+ <OrderHandle>
7
+ <Id>2</Id>
8
+ </OrderHandle>
9
+ <OrderHandle>
10
+ <Id>3</Id>
11
+ </OrderHandle>
12
+ </Order_FindByOtherReferenceResult>
13
+ </Order_FindByOtherReferenceResponse>
14
+ </soap12:Body>
15
+ </soap12:Envelope>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <Order_FindByOtherReferenceResponse xmlns="http://e-conomic.com">
5
+ <Order_FindByOtherReferenceResult>
6
+ </Order_FindByOtherReferenceResult>
7
+ </Order_FindByOtherReferenceResponse>
8
+ </soap12:Body>
9
+ </soap12:Envelope>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <Order_FindByOtherReferenceResponse xmlns="http://e-conomic.com">
5
+ <Order_FindByOtherReferenceResult>
6
+ <OrderHandle>
7
+ <Id>2</Id>
8
+ </OrderHandle>
9
+ </Order_FindByOtherReferenceResult>
10
+ </Order_FindByOtherReferenceResponse>
11
+ </soap12:Body>
12
+ </soap12:Envelope>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <Order_GetAllResponse xmlns="http://e-conomic.com">
5
+ <Order_GetAllResult>
6
+ <OrderHandle>
7
+ <Id>int</Id>
8
+ </OrderHandle>
9
+ <OrderHandle>
10
+ <Id>int</Id>
11
+ </OrderHandle>
12
+ </Order_GetAllResult>
13
+ </Order_GetAllResponse>
14
+ </soap12:Body>
15
+ </soap12:Envelope>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <Order_GetAllCurrentResponse xmlns="http://e-conomic.com">
5
+ <Order_GetAllCurrentResult>
6
+ <OrderHandle>
7
+ <Id>42</Id>
8
+ </OrderHandle>
9
+ </Order_GetAllCurrentResult>
10
+ </Order_GetAllCurrentResponse>
11
+ </soap12:Body>
12
+ </soap12:Envelope>
@@ -5,9 +5,9 @@
5
5
  <Order_GetDataArrayResult>
6
6
  <OrderData>
7
7
  <Handle>
8
- <Id>int</Id>
8
+ <Id>42</Id>
9
9
  </Handle>
10
- <Id>int</Id>
10
+ <Id>42</Id>
11
11
  <DebtorHandle>
12
12
  <Number>string</Number>
13
13
  </DebtorHandle>
@@ -73,9 +73,9 @@
73
73
  </OrderData>
74
74
  <OrderData>
75
75
  <Handle>
76
- <Id>int</Id>
76
+ <Id>37</Id>
77
77
  </Handle>
78
- <Id>int</Id>
78
+ <Id>37</Id>
79
79
  <DebtorHandle>
80
80
  <Number>string</Number>
81
81
  </DebtorHandle>
@@ -142,4 +142,4 @@
142
142
  </Order_GetDataArrayResult>
143
143
  </Order_GetDataArrayResponse>
144
144
  </soap:Body>
145
- </soap:Envelope>
145
+ </soap:Envelope>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <OrderLine_FindByOrderListResponse xmlns="http://e-conomic.com">
5
+ <OrderLine_FindByOrderListResult>
6
+ <OrderLineHandle>
7
+ <Id>int</Id>
8
+ <Number>int</Number>
9
+ </OrderLineHandle>
10
+ <OrderLineHandle>
11
+ <Id>int</Id>
12
+ <Number>int</Number>
13
+ </OrderLineHandle>
14
+ </OrderLine_FindByOrderListResult>
15
+ </OrderLine_FindByOrderListResponse>
16
+ </soap12:Body>
17
+ </soap12:Envelope>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <OrderLine_FindByOrderListResponse xmlns="http://e-conomic.com">
5
+ <OrderLine_FindByOrderListResult>
6
+ </OrderLine_FindByOrderListResult>
7
+ </OrderLine_FindByOrderListResponse>
8
+ </soap12:Body>
9
+ </soap12:Envelope>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
3
+ <soap12:Body>
4
+ <OrderLine_FindByOrderListResponse xmlns="http://e-conomic.com">
5
+ <OrderLine_FindByOrderListResult>
6
+ <OrderLineHandle>
7
+ <Id>int</Id>
8
+ <Number>int</Number>
9
+ </OrderLineHandle>
10
+ </OrderLine_FindByOrderListResult>
11
+ </OrderLine_FindByOrderListResponse>
12
+ </soap12:Body>
13
+ </soap12:Envelope>