ruconomic 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +100 -0
  6. data/Rakefile +2 -0
  7. data/lib/ruconomic/api/account.rb +520 -0
  8. data/lib/ruconomic/api/accounting_period.rb +113 -0
  9. data/lib/ruconomic/api/accounting_year.rb +161 -0
  10. data/lib/ruconomic/api/activity.rb +90 -0
  11. data/lib/ruconomic/api/bank_payment_type.rb +103 -0
  12. data/lib/ruconomic/api/budget_figure.rb +343 -0
  13. data/lib/ruconomic/api/cash_book.rb +232 -0
  14. data/lib/ruconomic/api/cash_book_entry.rb +716 -0
  15. data/lib/ruconomic/api/company.rb +294 -0
  16. data/lib/ruconomic/api/cost_type.rb +138 -0
  17. data/lib/ruconomic/api/cost_type_group.rb +115 -0
  18. data/lib/ruconomic/api/creditor.rb +688 -0
  19. data/lib/ruconomic/api/creditor_contact.rb +269 -0
  20. data/lib/ruconomic/api/creditor_entry.rb +235 -0
  21. data/lib/ruconomic/api/creditor_group.rb +208 -0
  22. data/lib/ruconomic/api/currency.rb +67 -0
  23. data/lib/ruconomic/api/current_invoice.rb +1110 -0
  24. data/lib/ruconomic/api/current_invoice_line.rb +440 -0
  25. data/lib/ruconomic/api/current_supplier_invoice.rb +115 -0
  26. data/lib/ruconomic/api/current_supplier_invoice_line.rb +92 -0
  27. data/lib/ruconomic/api/debtor.rb +978 -0
  28. data/lib/ruconomic/api/debtor_contact.rb +328 -0
  29. data/lib/ruconomic/api/debtor_entry.rb +223 -0
  30. data/lib/ruconomic/api/debtor_group.rb +232 -0
  31. data/lib/ruconomic/api/delivery_location.rb +341 -0
  32. data/lib/ruconomic/api/department.rb +197 -0
  33. data/lib/ruconomic/api/distribution_key.rb +187 -0
  34. data/lib/ruconomic/api/document_archive_category.rb +163 -0
  35. data/lib/ruconomic/api/employee.rb +421 -0
  36. data/lib/ruconomic/api/employee_group.rb +199 -0
  37. data/lib/ruconomic/api/entry.rb +318 -0
  38. data/lib/ruconomic/api/extended_vat_zone.rb +79 -0
  39. data/lib/ruconomic/api/inventory_location.rb +91 -0
  40. data/lib/ruconomic/api/invoice.rb +655 -0
  41. data/lib/ruconomic/api/invoice_line.rb +248 -0
  42. data/lib/ruconomic/api/key_figure_code.rb +103 -0
  43. data/lib/ruconomic/api/mileage_entry.rb +319 -0
  44. data/lib/ruconomic/api/order.rb +1169 -0
  45. data/lib/ruconomic/api/order_line.rb +451 -0
  46. data/lib/ruconomic/api/price_group.rb +200 -0
  47. data/lib/ruconomic/api/product.rb +533 -0
  48. data/lib/ruconomic/api/product_group.rb +271 -0
  49. data/lib/ruconomic/api/product_price.rb +164 -0
  50. data/lib/ruconomic/api/project.rb +449 -0
  51. data/lib/ruconomic/api/project_group.rb +113 -0
  52. data/lib/ruconomic/api/quotation.rb +1145 -0
  53. data/lib/ruconomic/api/quotation_line.rb +451 -0
  54. data/lib/ruconomic/api/report_code.rb +78 -0
  55. data/lib/ruconomic/api/report_code_set.rb +89 -0
  56. data/lib/ruconomic/api/scanned_document.rb +175 -0
  57. data/lib/ruconomic/api/subscriber.rb +475 -0
  58. data/lib/ruconomic/api/subscription.rb +375 -0
  59. data/lib/ruconomic/api/subscription_line.rb +307 -0
  60. data/lib/ruconomic/api/sum_interval.rb +164 -0
  61. data/lib/ruconomic/api/template_collection.rb +78 -0
  62. data/lib/ruconomic/api/term_of_payment.rb +307 -0
  63. data/lib/ruconomic/api/time_entry.rb +258 -0
  64. data/lib/ruconomic/api/unit.rb +187 -0
  65. data/lib/ruconomic/api/vat_account.rb +151 -0
  66. data/lib/ruconomic/api.rb +79 -0
  67. data/lib/ruconomic/fault.rb +17 -0
  68. data/lib/ruconomic/soap/document.rb +79 -0
  69. data/lib/ruconomic/soap/node.rb +24 -0
  70. data/lib/ruconomic/soap.rb +7 -0
  71. data/lib/ruconomic/version.rb +3 -0
  72. data/lib/ruconomic/web_service.rb +50 -0
  73. data/lib/ruconomic.rb +42 -0
  74. data/ruconomic.gemspec +27 -0
  75. metadata +202 -0
@@ -0,0 +1,520 @@
1
+ module Ruconomic
2
+ module API
3
+ module Account
4
+ extend Ruconomic::WebService
5
+
6
+ # Creates a new account from a data object.
7
+ # Parameters: data: The data object that specifies the properties of the new account.
8
+ #
9
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
10
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_CreateFromData
11
+ # @return [Hash] The body content of the SOAP response.
12
+ def self.create_from_data
13
+ response = invoke('Account_CreateFromData') do |message|
14
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
15
+ end
16
+ end
17
+
18
+ # Creates new accounts from data objects.
19
+ # Parameters: dataArray: The array of data objects that specifies the properties of the new accounts.
20
+ #
21
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
22
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_CreateFromDataArray
23
+ # @return [Hash] The body content of the SOAP response.
24
+ def self.create_from_data_array
25
+ response = invoke('Account_CreateFromDataArray') do |message|
26
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
27
+ end
28
+ end
29
+
30
+ # Update accounts from data objects.
31
+ # Parameters: dataArray: The array of data objects.
32
+ #
33
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
34
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_UpdateFromDataArray
35
+ # @return [Hash] The body content of the SOAP response.
36
+ def self.update_from_data_array
37
+ response = invoke('Account_UpdateFromDataArray') do |message|
38
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
39
+ end
40
+ end
41
+
42
+ # Updates an account from a data object.
43
+ # Parameters: data: The data object.
44
+ #
45
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
46
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_UpdateFromData
47
+ # @return [Hash] The body content of the SOAP response.
48
+ def self.update_from_data
49
+ response = invoke('Account_UpdateFromData') do |message|
50
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
51
+ end
52
+ end
53
+
54
+ # Returns an account data object for a given account.
55
+ # Parameters: entityHandle: A handle for the account.
56
+ #
57
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
58
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetData
59
+ # @return [Hash] The body content of the SOAP response.
60
+ def self.get_data
61
+ response = invoke('Account_GetData') do |message|
62
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
63
+ end
64
+ end
65
+
66
+ # Returns account data objects for a given set of account handles.
67
+ # Parameters: entityHandles: An array of the account handles.
68
+ #
69
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
70
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetDataArray
71
+ # @return [Hash] The body content of the SOAP response.
72
+ def self.get_data_array
73
+ response = invoke('Account_GetDataArray') do |message|
74
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
75
+ end
76
+ end
77
+
78
+ # Creates a new account.
79
+ # Parameters: number: The number of the new account. name: The name of the new account. type: The type of the new account.
80
+ #
81
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
82
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_Create
83
+ # @return [Hash] The body content of the SOAP response.
84
+ def self.create
85
+ response = invoke('Account_Create') do |message|
86
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
87
+ end
88
+ end
89
+
90
+ # Return handles for all accounts.
91
+ #
92
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
93
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetAll
94
+ # @return [Hash] The body content of the SOAP response.
95
+ def self.get_all
96
+ response = invoke('Account_GetAll') do |message|
97
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
98
+ end
99
+ end
100
+
101
+ # Return handles for all accounts from date. fromDate is based on CET. includeCalculatedProperties is reserved for future usage and should be set to false for now.
102
+ #
103
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
104
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetAllUpdated
105
+ # @return [Hash] The body content of the SOAP response.
106
+ def self.get_all_updated
107
+ response = invoke('Account_GetAllUpdated') do |message|
108
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
109
+ end
110
+ end
111
+
112
+ # Returns a handle for the account with the given number.
113
+ # Parameters: number: The number to search for.
114
+ #
115
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
116
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_FindByNumber
117
+ # @return [Hash] The body content of the SOAP response.
118
+ def self.find_by_number
119
+ response = invoke('Account_FindByNumber') do |message|
120
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
121
+ end
122
+ end
123
+
124
+ # Returns an array with handles for the accounts corresponding to the given account numbers. If an account with a given number does not exist or if no number is given then the array contains nothing at that index.
125
+ # Parameters: numbers: The numbers to search for.
126
+ #
127
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
128
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_FindByNumberList
129
+ # @return [Hash] The body content of the SOAP response.
130
+ def self.find_by_number_list
131
+ response = invoke('Account_FindByNumberList') do |message|
132
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
133
+ end
134
+ end
135
+
136
+ # Returns handles for the accounts with the given name.
137
+ # Parameters: name: The name to search for.
138
+ #
139
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
140
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_FindByName
141
+ # @return [Hash] The body content of the SOAP response.
142
+ def self.find_by_name
143
+ response = invoke('Account_FindByName') do |message|
144
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
145
+ end
146
+ end
147
+
148
+ # Returns entry totals for the specified accounts and date interval.
149
+ # Parameters: accounts: The accounts for which to return entry totals. first: Start date of interval. last: End date of interval.
150
+ #
151
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
152
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetEntryTotalsByDate
153
+ # @return [Hash] The body content of the SOAP response.
154
+ def self.get_entry_totals_by_date
155
+ response = invoke('Account_GetEntryTotalsByDate') do |message|
156
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
157
+ end
158
+ end
159
+
160
+ # Deletes an account.
161
+ # Parameters: accountHandle: Handle for the account.
162
+ #
163
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
164
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_Delete
165
+ # @return [Hash] The body content of the SOAP response.
166
+ def self.delete
167
+ response = invoke('Account_Delete') do |message|
168
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
169
+ end
170
+ end
171
+
172
+ # Returns an array with handles for the budget figures for the given account.
173
+ #
174
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
175
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetBudgetFigures
176
+ # @return [Hash] The body content of the SOAP response.
177
+ def self.get_budget_figures
178
+ response = invoke('Account_GetBudgetFigures') do |message|
179
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
180
+ end
181
+ end
182
+
183
+ # Returns an array with handles for the budget figures within the given time interval.
184
+ # Parameters: fromDate: First day in the interval. toDate: Last day in the interval.
185
+ #
186
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
187
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetBudgetFiguresByDate
188
+ # @return [Hash] The body content of the SOAP response.
189
+ def self.get_budget_figures_by_date
190
+ response = invoke('Account_GetBudgetFiguresByDate') do |message|
191
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
192
+ end
193
+ end
194
+
195
+ # Returns a handle for the entries within the given time interval.
196
+ # Parameters: First : First day in interval. Last : Last day in interval.
197
+ #
198
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
199
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetEntriesByDate
200
+ # @return [Hash] The body content of the SOAP response.
201
+ def self.get_entries_by_date
202
+ response = invoke('Account_GetEntriesByDate') do |message|
203
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
204
+ end
205
+ end
206
+
207
+ # Returns an array with handles for the entries with serial numbers in the given interval.
208
+ # Parameters: minNumber: The start of the interval. maxNumber: The end of the interval.
209
+ #
210
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
211
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetEntriesByNumber
212
+ # @return [Hash] The body content of the SOAP response.
213
+ def self.get_entries_by_number
214
+ response = invoke('Account_GetEntriesByNumber') do |message|
215
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
216
+ end
217
+ end
218
+
219
+ # Returns an array with handles for the sum interval for the given account.
220
+ #
221
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
222
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetSumIntervals
223
+ # @return [Hash] The body content of the SOAP response.
224
+ def self.get_sum_intervals
225
+ response = invoke('Account_GetSumIntervals') do |message|
226
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
227
+ end
228
+ end
229
+
230
+ # Gets the number of an account.
231
+ # Parameters: accountHandle: Handle for the account.
232
+ #
233
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
234
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetNumber
235
+ # @return [Hash] The body content of the SOAP response.
236
+ def self.get_number
237
+ response = invoke('Account_GetNumber') do |message|
238
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
239
+ end
240
+ end
241
+
242
+ # Gets the name of an account.
243
+ # Parameters: accountHandle: Handle for the account.
244
+ #
245
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
246
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetName
247
+ # @return [Hash] The body content of the SOAP response.
248
+ def self.get_name
249
+ response = invoke('Account_GetName') do |message|
250
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
251
+ end
252
+ end
253
+
254
+ # Sets the name of an account.
255
+ # Parameters: accountHandle: Handle for the account. value: The new name of the account.
256
+ #
257
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
258
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetName
259
+ # @return [Hash] The body content of the SOAP response.
260
+ def self.set_name
261
+ response = invoke('Account_SetName') do |message|
262
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
263
+ end
264
+ end
265
+
266
+ # Gets the account type of an account.
267
+ # Parameters: accountHandle: Handle for the account.
268
+ #
269
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
270
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetType
271
+ # @return [Hash] The body content of the SOAP response.
272
+ def self.get_type
273
+ response = invoke('Account_GetType') do |message|
274
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
275
+ end
276
+ end
277
+
278
+ # Sets the account type of an account. This also updates the property TotalFrom.
279
+ # Parameters: accountHandle: Handle for the account. valueHandle: New account type of the account.
280
+ #
281
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
282
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetType
283
+ # @return [Hash] The body content of the SOAP response.
284
+ def self.set_type
285
+ response = invoke('Account_SetType') do |message|
286
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
287
+ end
288
+ end
289
+
290
+ # Gets whether an account is a debit or credit account.
291
+ # Parameters: accountHandle: Handle for the account.
292
+ #
293
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
294
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetDebitCredit
295
+ # @return [Hash] The body content of the SOAP response.
296
+ def self.get_debit_credit
297
+ response = invoke('Account_GetDebitCredit') do |message|
298
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
299
+ end
300
+ end
301
+
302
+ # Sets whether an account is a debit or credit account.
303
+ # Parameters: accountHandle: Handle for the account. value: Value that indicates whether the account should be a debit or credit account.
304
+ #
305
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
306
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetDebitCredit
307
+ # @return [Hash] The body content of the SOAP response.
308
+ def self.set_debit_credit
309
+ response = invoke('Account_SetDebitCredit') do |message|
310
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
311
+ end
312
+ end
313
+
314
+ # Gets whether an account is accessible.
315
+ # Parameters: accountHandle: Handle for the account.
316
+ #
317
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
318
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetIsAccessible
319
+ # @return [Hash] The body content of the SOAP response.
320
+ def self.get_is_accessible
321
+ response = invoke('Account_GetIsAccessible') do |message|
322
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
323
+ end
324
+ end
325
+
326
+ # Sets whether an account is accessible.
327
+ # Parameters: accountHandle: Handle for the account. value: Value that indicates whether the account should be accessible.
328
+ #
329
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
330
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetIsAccessible
331
+ # @return [Hash] The body content of the SOAP response.
332
+ def self.set_is_accessible
333
+ response = invoke('Account_SetIsAccessible') do |message|
334
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
335
+ end
336
+ end
337
+
338
+ # Gets whether an account is blocked for direct entries.
339
+ # Parameters: accountHandle: Handle for the account.
340
+ #
341
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
342
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetBlockDirectEntries
343
+ # @return [Hash] The body content of the SOAP response.
344
+ def self.get_block_direct_entries
345
+ response = invoke('Account_GetBlockDirectEntries') do |message|
346
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
347
+ end
348
+ end
349
+
350
+ # Sets whether an account is blocked for direct entries.
351
+ # Parameters: accountHandle: Handle for the account. value: Value that indicates whether the account should be blocked for direct entries.
352
+ #
353
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
354
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetBlockDirectEntries
355
+ # @return [Hash] The body content of the SOAP response.
356
+ def self.set_block_direct_entries
357
+ response = invoke('Account_SetBlockDirectEntries') do |message|
358
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
359
+ end
360
+ end
361
+
362
+ # Gets a handle for the VAT account of an account.
363
+ # Parameters: accountHandle: Handle for the account.
364
+ #
365
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
366
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetVatAccount
367
+ # @return [Hash] The body content of the SOAP response.
368
+ def self.get_vat_account
369
+ response = invoke('Account_GetVatAccount') do |message|
370
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
371
+ end
372
+ end
373
+
374
+ # Sets the VAT account of an account.
375
+ # Parameters: accountHandle: Handle for the account. vatAccountHandle: Handle for the new VAT account of the account.
376
+ #
377
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
378
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetVatAccount
379
+ # @return [Hash] The body content of the SOAP response.
380
+ def self.set_vat_account
381
+ response = invoke('Account_SetVatAccount') do |message|
382
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
383
+ end
384
+ end
385
+
386
+ # Gets a handle for the contra account of an account.
387
+ # Parameters: accountHandle: Handle for the account.
388
+ #
389
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
390
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetContraAccount
391
+ # @return [Hash] The body content of the SOAP response.
392
+ def self.get_contra_account
393
+ response = invoke('Account_GetContraAccount') do |message|
394
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
395
+ end
396
+ end
397
+
398
+ # Sets the contra account of an account.
399
+ # Parameters: accountHandle: Handle for the account. valueHandle: Handle for the new contra account of the account.
400
+ #
401
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
402
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetContraAccount
403
+ # @return [Hash] The body content of the SOAP response.
404
+ def self.set_contra_account
405
+ response = invoke('Account_SetContraAccount') do |message|
406
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
407
+ end
408
+ end
409
+
410
+ # Gets a handle for the opening account of an account.
411
+ # Parameters: accountHandle: Handle for the account.
412
+ #
413
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
414
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetOpeningAccount
415
+ # @return [Hash] The body content of the SOAP response.
416
+ def self.get_opening_account
417
+ response = invoke('Account_GetOpeningAccount') do |message|
418
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
419
+ end
420
+ end
421
+
422
+ # Sets the opening account of an account.
423
+ # Parameters: accountHandle: Handle for the account. valueHandle: Handle for the new opening account of the account.
424
+ #
425
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
426
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetOpeningAccount
427
+ # @return [Hash] The body content of the SOAP response.
428
+ def self.set_opening_account
429
+ response = invoke('Account_SetOpeningAccount') do |message|
430
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
431
+ end
432
+ end
433
+
434
+ # Gets a handle for the first account to sum from if the type of the account is AccountType.TotalFrom.
435
+ # Parameters: accountHandle: Handle for the account.
436
+ #
437
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
438
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetTotalFrom
439
+ # @return [Hash] The body content of the SOAP response.
440
+ def self.get_total_from
441
+ response = invoke('Account_GetTotalFrom') do |message|
442
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
443
+ end
444
+ end
445
+
446
+ # Sets a handle for the first account to sum from if the type of the account is AccountType.TotalFrom. This is only used if the account has account type TotalFrom.
447
+ # Parameters: accountHandle: Handle for the account. valueHandle: Handle for the new 'total from'-account.
448
+ #
449
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
450
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetTotalFrom
451
+ # @return [Hash] The body content of the SOAP response.
452
+ def self.set_total_from
453
+ response = invoke('Account_SetTotalFrom') do |message|
454
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
455
+ end
456
+ end
457
+
458
+ # Gets the balance of an account.
459
+ # Parameters: accountHandle: Handle for the account.
460
+ #
461
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
462
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetBalance
463
+ # @return [Hash] The body content of the SOAP response.
464
+ def self.get_balance
465
+ response = invoke('Account_GetBalance') do |message|
466
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
467
+ end
468
+ end
469
+
470
+ # Gets a handle for the department of an account. The department is only accessible when there is access to the Dimension add-on module.
471
+ # Parameters: accountHandle: Handle for the account.
472
+ #
473
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
474
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetDepartment
475
+ # @return [Hash] The body content of the SOAP response.
476
+ def self.get_department
477
+ response = invoke('Account_GetDepartment') do |message|
478
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
479
+ end
480
+ end
481
+
482
+ # Sets the department of an account. The department is only accessible when there is access to the Dimension add-on module. The department cannot be set when the distribution key is set.
483
+ # Parameters: accountHandle: Handle for the account. value: Handle for the new department of the account.
484
+ #
485
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
486
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetDepartment
487
+ # @return [Hash] The body content of the SOAP response.
488
+ def self.set_department
489
+ response = invoke('Account_SetDepartment') do |message|
490
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
491
+ end
492
+ end
493
+
494
+ # Gets a handle for the distribution key of an account. The distribution key is only accessible when there is access to the Dimension add-on module.
495
+ # Parameters: acccountHandle: Handle for the account.
496
+ #
497
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
498
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_GetDistributionKey
499
+ # @return [Hash] The body content of the SOAP response.
500
+ def self.get_distribution_key
501
+ response = invoke('Account_GetDistributionKey') do |message|
502
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
503
+ end
504
+ end
505
+
506
+ # Sets the distribution key of an account. The distribution key is only accessible when there is access to the Dimension add-on module. The distribution key cannot be set when the department is set.
507
+ # Parameters: accountHandle: Handle for the account. value: Handle for the new distribution key of the account.
508
+ #
509
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
510
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Account_SetDistributionKey
511
+ # @return [Hash] The body content of the SOAP response.
512
+ def self.set_distribution_key
513
+ response = invoke('Account_SetDistributionKey') do |message|
514
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
515
+ end
516
+ end
517
+
518
+ end
519
+ end
520
+ end
@@ -0,0 +1,113 @@
1
+ module Ruconomic
2
+ module API
3
+ module AccountingPeriod
4
+ extend Ruconomic::WebService
5
+
6
+ # Returns an AccountingPeriod data object for a given accounting period.
7
+ # Parameters: accountingPeriodHandle: A handle for the accounting period.
8
+ #
9
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
10
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetData
11
+ # @return [Hash] The body content of the SOAP response.
12
+ def self.get_data
13
+ response = invoke('AccountingPeriod_GetData') do |message|
14
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
15
+ end
16
+ end
17
+
18
+ # Returns AccountingPeriod data objects for a given set of accounting period handles.
19
+ # Parameters: accountingPeriodHandles: An array of the accounting period handles.
20
+ #
21
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
22
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetDataArray
23
+ # @return [Hash] The body content of the SOAP response.
24
+ def self.get_data_array
25
+ response = invoke('AccountingPeriod_GetDataArray') do |message|
26
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
27
+ end
28
+ end
29
+
30
+ # Returns handles for all accounting periods.
31
+ #
32
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
33
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetAll
34
+ # @return [Hash] The body content of the SOAP response.
35
+ def self.get_all
36
+ response = invoke('AccountingPeriod_GetAll') do |message|
37
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
38
+ end
39
+ end
40
+
41
+ # Return handles for all accounting periods from date. fromDate is based on CET. includeCalculatedProperties is reserved for future usage and should be set to false for now.
42
+ #
43
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
44
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetAllUpdated
45
+ # @return [Hash] The body content of the SOAP response.
46
+ def self.get_all_updated
47
+ response = invoke('AccountingPeriod_GetAllUpdated') do |message|
48
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
49
+ end
50
+ end
51
+
52
+ # Gets the period of an accounting period.
53
+ # Parameters: accountingPeriodHandle: Handle for the accounting period.
54
+ #
55
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
56
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetPeriod
57
+ # @return [Hash] The body content of the SOAP response.
58
+ def self.get_period
59
+ response = invoke('AccountingPeriod_GetPeriod') do |message|
60
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
61
+ end
62
+ end
63
+
64
+ # Gets a handle for the accounting year of an accounting period.
65
+ # Parameters: accountingPeriodHandle: Handle for the accountingPeriod.
66
+ #
67
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
68
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetAccountingYear
69
+ # @return [Hash] The body content of the SOAP response.
70
+ def self.get_accounting_year
71
+ response = invoke('AccountingPeriod_GetAccountingYear') do |message|
72
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
73
+ end
74
+ end
75
+
76
+ # Gets the from-date of the accounting period.
77
+ # Parameters: accountingPeriodHandle: Handle for the accounting period.
78
+ #
79
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
80
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetFromDate
81
+ # @return [Hash] The body content of the SOAP response.
82
+ def self.get_from_date
83
+ response = invoke('AccountingPeriod_GetFromDate') do |message|
84
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
85
+ end
86
+ end
87
+
88
+ # Gets the to-date of the accounting period.
89
+ # Parameters: accountingPeriodHandle: Handle for the accounting period.
90
+ #
91
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
92
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetToDate
93
+ # @return [Hash] The body content of the SOAP response.
94
+ def self.get_to_date
95
+ response = invoke('AccountingPeriod_GetToDate') do |message|
96
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
97
+ end
98
+ end
99
+
100
+ # Gets the status of the accounting period.
101
+ #
102
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
103
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingPeriod_GetStatus
104
+ # @return [Hash] The body content of the SOAP response.
105
+ def self.get_status
106
+ response = invoke('AccountingPeriod_GetStatus') do |message|
107
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
108
+ end
109
+ end
110
+
111
+ end
112
+ end
113
+ end