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,161 @@
1
+ module Ruconomic
2
+ module API
3
+ module AccountingYear
4
+ extend Ruconomic::WebService
5
+
6
+ # Creates a new AccountingYear from a data object.
7
+ # Parameters: data: The data object that specifies the properties of the new AccountingYear.
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=AccountingYear_CreateFromData
11
+ # @return [Hash] The body content of the SOAP response.
12
+ def self.create_from_data
13
+ response = invoke('AccountingYear_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 AccountingYear from data objects.
19
+ # Parameters: dataArray: The array of data objects that specifies the properties of the new AccountingYear.
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=AccountingYear_CreateFromDataArray
23
+ # @return [Hash] The body content of the SOAP response.
24
+ def self.create_from_data_array
25
+ response = invoke('AccountingYear_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
+ # Returns an AccountingYear data object for a given accounting year.
31
+ # Parameters: accountingYearHandle: A handle for the accounting year.
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=AccountingYear_GetData
35
+ # @return [Hash] The body content of the SOAP response.
36
+ def self.get_data
37
+ response = invoke('AccountingYear_GetData') 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
+ # Returns AccountingYear data objects for a given set of accounting year handles.
43
+ # Parameters: accountingYearHandles: An array of the accounting year handles.
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=AccountingYear_GetDataArray
47
+ # @return [Hash] The body content of the SOAP response.
48
+ def self.get_data_array
49
+ response = invoke('AccountingYear_GetDataArray') 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
+ # Gets the year of an accounting year.
55
+ # Parameters: accountingYearHandle: Handle for the accounting year.
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=AccountingYear_GetYear
59
+ # @return [Hash] The body content of the SOAP response.
60
+ def self.get_year
61
+ response = invoke('AccountingYear_GetYear') 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
+ # Gets the from-date of the accounting year.
67
+ # Parameters: accountingYearHandle: Handle for the accounting year.
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=AccountingYear_GetFromDate
71
+ # @return [Hash] The body content of the SOAP response.
72
+ def self.get_from_date
73
+ response = invoke('AccountingYear_GetFromDate') 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
+ # Gets the to-date of the accounting year.
79
+ # Parameters: accountingYearHandle: Handle for the accounting year.
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=AccountingYear_GetToDate
83
+ # @return [Hash] The body content of the SOAP response.
84
+ def self.get_to_date
85
+ response = invoke('AccountingYear_GetToDate') 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
+ # Gets the isClosed boolean of the accounting year.
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=AccountingYear_GetIsClosed
94
+ # @return [Hash] The body content of the SOAP response.
95
+ def self.get_is_closed
96
+ response = invoke('AccountingYear_GetIsClosed') 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
+ # Creates a new accounting year.
102
+ # Parameters: fromDate: The from date of the new accounting year. toDate: The to date of the new accounting year.
103
+ #
104
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
105
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingYear_Create
106
+ # @return [Hash] The body content of the SOAP response.
107
+ def self.create
108
+ response = invoke('AccountingYear_Create') do |message|
109
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
110
+ end
111
+ end
112
+
113
+ # Deletes an accounting year.
114
+ # Parameters: accountingYearHandle: Handle for the accounting year.
115
+ #
116
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
117
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingYear_Delete
118
+ # @return [Hash] The body content of the SOAP response.
119
+ def self.delete
120
+ response = invoke('AccountingYear_Delete') do |message|
121
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
122
+ end
123
+ end
124
+
125
+ # Returns handles for all accounting years.
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=AccountingYear_GetAll
129
+ # @return [Hash] The body content of the SOAP response.
130
+ def self.get_all
131
+ response = invoke('AccountingYear_GetAll') 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 an array of handles for the accounting years within the given time interval.
137
+ # Parameters: fromDate: First day in interval. toDate: Last day in interval.
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=AccountingYear_FindByDate
141
+ # @return [Hash] The body content of the SOAP response.
142
+ def self.find_by_date
143
+ response = invoke('AccountingYear_FindByDate') 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 handles for all accounting periods.
149
+ #
150
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
151
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=AccountingYear_GetPeriods
152
+ # @return [Hash] The body content of the SOAP response.
153
+ def self.get_periods
154
+ response = invoke('AccountingYear_GetPeriods') do |message|
155
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
156
+ end
157
+ end
158
+
159
+ end
160
+ end
161
+ end
@@ -0,0 +1,90 @@
1
+ module Ruconomic
2
+ module API
3
+ module Activity
4
+ extend Ruconomic::WebService
5
+
6
+ # Returns an Activity data object for a given Activity.
7
+ # Parameters: entityHandle: A handle for the Activity.
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=Activity_GetData
11
+ # @return [Hash] The body content of the SOAP response.
12
+ def self.get_data
13
+ response = invoke('Activity_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 Activity data objects for a given set of Activity handles.
19
+ # Parameters: entityHandles: An array of the Activity 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=Activity_GetDataArray
23
+ # @return [Hash] The body content of the SOAP response.
24
+ def self.get_data_array
25
+ response = invoke('Activity_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 activities.
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=Activity_GetAll
34
+ # @return [Hash] The body content of the SOAP response.
35
+ def self.get_all
36
+ response = invoke('Activity_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
+ # Returns a handle for the activity with the given number.
42
+ # Parameters: number: The number to search for.
43
+ #
44
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
45
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Activity_FindByNumber
46
+ # @return [Hash] The body content of the SOAP response.
47
+ def self.find_by_number
48
+ response = invoke('Activity_FindByNumber') do |message|
49
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
50
+ end
51
+ end
52
+
53
+ # Returns an array with handles for the activities corresponding to the given numbers. If an activity with a given number does not exist or if no number is given then the array contains null at that index.
54
+ # Parameters: numbers: The numbers to search for.
55
+ #
56
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
57
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Activity_FindByNumberList
58
+ # @return [Hash] The body content of the SOAP response.
59
+ def self.find_by_number_list
60
+ response = invoke('Activity_FindByNumberList') do |message|
61
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
62
+ end
63
+ end
64
+
65
+ # Gets the number of the activity.
66
+ # Parameters: activityHandle: Handle for the activity.
67
+ #
68
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
69
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Activity_GetNumber
70
+ # @return [Hash] The body content of the SOAP response.
71
+ def self.get_number
72
+ response = invoke('Activity_GetNumber') do |message|
73
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
74
+ end
75
+ end
76
+
77
+ # Gets the name of the activity.
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=Activity_GetName
81
+ # @return [Hash] The body content of the SOAP response.
82
+ def self.get_name
83
+ response = invoke('Activity_GetName') 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
+ end
89
+ end
90
+ end
@@ -0,0 +1,103 @@
1
+ module Ruconomic
2
+ module API
3
+ module BankPaymentType
4
+ extend Ruconomic::WebService
5
+
6
+ # Returns a bank payment type data object for a given bank payment type.
7
+ # Parameters: entityHandle: A handle for the bank payment type.
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=BankPaymentType_GetData
11
+ # @return [Hash] The body content of the SOAP response.
12
+ def self.get_data
13
+ response = invoke('BankPaymentType_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 bank payment type data objects for a given set of bank payment type handles.
19
+ # Parameters: entityHandles: An array of the bank payment type 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=BankPaymentType_GetDataArray
23
+ # @return [Hash] The body content of the SOAP response.
24
+ def self.get_data_array
25
+ response = invoke('BankPaymentType_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
+ # Return handles for all bank payment types.
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=BankPaymentType_GetAll
34
+ # @return [Hash] The body content of the SOAP response.
35
+ def self.get_all
36
+ response = invoke('BankPaymentType_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
+ # Returns handles for the bank payment types with the given name.
42
+ # Parameters: name: The name to search for.
43
+ #
44
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
45
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=BankPaymentType_FindByName
46
+ # @return [Hash] The body content of the SOAP response.
47
+ def self.find_by_name
48
+ response = invoke('BankPaymentType_FindByName') do |message|
49
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
50
+ end
51
+ end
52
+
53
+ # Returns a handle for the bank payment type with the given number.
54
+ # Parameters: number: The number to search for.
55
+ #
56
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
57
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=BankPaymentType_FindByNumber
58
+ # @return [Hash] The body content of the SOAP response.
59
+ def self.find_by_number
60
+ response = invoke('BankPaymentType_FindByNumber') do |message|
61
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
62
+ end
63
+ end
64
+
65
+ # Returns an array with handles for the bank payment types corresponding to the given bank payment type numbers. If a bank payment type with a given number does not exist or if no number is given then the array contains nothing at that index.
66
+ # Parameters: numbers: The numbers to search for.
67
+ #
68
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
69
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=BankPaymentType_FindByNumberList
70
+ # @return [Hash] The body content of the SOAP response.
71
+ def self.find_by_number_list
72
+ response = invoke('BankPaymentType_FindByNumberList') do |message|
73
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
74
+ end
75
+ end
76
+
77
+ # Gets the number of a bank payment type.
78
+ # Parameters: bankPaymentTypeHandle: Handle for the bank payment type.
79
+ #
80
+ # @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
81
+ # @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=BankPaymentType_GetNumber
82
+ # @return [Hash] The body content of the SOAP response.
83
+ def self.get_number
84
+ response = invoke('BankPaymentType_GetNumber') do |message|
85
+ raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
86
+ end
87
+ end
88
+
89
+ # Gets the name of a bank payment type.
90
+ # Parameters: bankPaymentTypeHandle: Handle for the bank payment type.
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=BankPaymentType_GetName
94
+ # @return [Hash] The body content of the SOAP response.
95
+ def self.get_name
96
+ response = invoke('BankPaymentType_GetName') 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
+ end
102
+ end
103
+ end