ruconomic 0.9.0
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.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +100 -0
- data/Rakefile +2 -0
- data/lib/ruconomic/api/account.rb +520 -0
- data/lib/ruconomic/api/accounting_period.rb +113 -0
- data/lib/ruconomic/api/accounting_year.rb +161 -0
- data/lib/ruconomic/api/activity.rb +90 -0
- data/lib/ruconomic/api/bank_payment_type.rb +103 -0
- data/lib/ruconomic/api/budget_figure.rb +343 -0
- data/lib/ruconomic/api/cash_book.rb +232 -0
- data/lib/ruconomic/api/cash_book_entry.rb +716 -0
- data/lib/ruconomic/api/company.rb +294 -0
- data/lib/ruconomic/api/cost_type.rb +138 -0
- data/lib/ruconomic/api/cost_type_group.rb +115 -0
- data/lib/ruconomic/api/creditor.rb +688 -0
- data/lib/ruconomic/api/creditor_contact.rb +269 -0
- data/lib/ruconomic/api/creditor_entry.rb +235 -0
- data/lib/ruconomic/api/creditor_group.rb +208 -0
- data/lib/ruconomic/api/currency.rb +67 -0
- data/lib/ruconomic/api/current_invoice.rb +1110 -0
- data/lib/ruconomic/api/current_invoice_line.rb +440 -0
- data/lib/ruconomic/api/current_supplier_invoice.rb +115 -0
- data/lib/ruconomic/api/current_supplier_invoice_line.rb +92 -0
- data/lib/ruconomic/api/debtor.rb +978 -0
- data/lib/ruconomic/api/debtor_contact.rb +328 -0
- data/lib/ruconomic/api/debtor_entry.rb +223 -0
- data/lib/ruconomic/api/debtor_group.rb +232 -0
- data/lib/ruconomic/api/delivery_location.rb +341 -0
- data/lib/ruconomic/api/department.rb +197 -0
- data/lib/ruconomic/api/distribution_key.rb +187 -0
- data/lib/ruconomic/api/document_archive_category.rb +163 -0
- data/lib/ruconomic/api/employee.rb +421 -0
- data/lib/ruconomic/api/employee_group.rb +199 -0
- data/lib/ruconomic/api/entry.rb +318 -0
- data/lib/ruconomic/api/extended_vat_zone.rb +79 -0
- data/lib/ruconomic/api/inventory_location.rb +91 -0
- data/lib/ruconomic/api/invoice.rb +655 -0
- data/lib/ruconomic/api/invoice_line.rb +248 -0
- data/lib/ruconomic/api/key_figure_code.rb +103 -0
- data/lib/ruconomic/api/mileage_entry.rb +319 -0
- data/lib/ruconomic/api/order.rb +1169 -0
- data/lib/ruconomic/api/order_line.rb +451 -0
- data/lib/ruconomic/api/price_group.rb +200 -0
- data/lib/ruconomic/api/product.rb +533 -0
- data/lib/ruconomic/api/product_group.rb +271 -0
- data/lib/ruconomic/api/product_price.rb +164 -0
- data/lib/ruconomic/api/project.rb +449 -0
- data/lib/ruconomic/api/project_group.rb +113 -0
- data/lib/ruconomic/api/quotation.rb +1145 -0
- data/lib/ruconomic/api/quotation_line.rb +451 -0
- data/lib/ruconomic/api/report_code.rb +78 -0
- data/lib/ruconomic/api/report_code_set.rb +89 -0
- data/lib/ruconomic/api/scanned_document.rb +175 -0
- data/lib/ruconomic/api/subscriber.rb +475 -0
- data/lib/ruconomic/api/subscription.rb +375 -0
- data/lib/ruconomic/api/subscription_line.rb +307 -0
- data/lib/ruconomic/api/sum_interval.rb +164 -0
- data/lib/ruconomic/api/template_collection.rb +78 -0
- data/lib/ruconomic/api/term_of_payment.rb +307 -0
- data/lib/ruconomic/api/time_entry.rb +258 -0
- data/lib/ruconomic/api/unit.rb +187 -0
- data/lib/ruconomic/api/vat_account.rb +151 -0
- data/lib/ruconomic/api.rb +79 -0
- data/lib/ruconomic/fault.rb +17 -0
- data/lib/ruconomic/soap/document.rb +79 -0
- data/lib/ruconomic/soap/node.rb +24 -0
- data/lib/ruconomic/soap.rb +7 -0
- data/lib/ruconomic/version.rb +3 -0
- data/lib/ruconomic/web_service.rb +50 -0
- data/lib/ruconomic.rb +42 -0
- data/ruconomic.gemspec +27 -0
- metadata +202 -0
@@ -0,0 +1,307 @@
|
|
1
|
+
module Ruconomic
|
2
|
+
module API
|
3
|
+
module TermOfPayment
|
4
|
+
extend Ruconomic::WebService
|
5
|
+
|
6
|
+
# Creates a new term of payment from a data object.
|
7
|
+
# Parameters: data: The data object that specifies the properties of the new term of payment.
|
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=TermOfPayment_CreateFromData
|
11
|
+
# @return [Hash] The body content of the SOAP response.
|
12
|
+
def self.create_from_data
|
13
|
+
response = invoke('TermOfPayment_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 terms of payment from data objects.
|
19
|
+
# Parameters: dataArray: The array of data objects that specifies the properties of the new terms of payment.
|
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=TermOfPayment_CreateFromDataArray
|
23
|
+
# @return [Hash] The body content of the SOAP response.
|
24
|
+
def self.create_from_data_array
|
25
|
+
response = invoke('TermOfPayment_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 termn of payments 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=TermOfPayment_UpdateFromDataArray
|
35
|
+
# @return [Hash] The body content of the SOAP response.
|
36
|
+
def self.update_from_data_array
|
37
|
+
response = invoke('TermOfPayment_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 a term of payment 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=TermOfPayment_UpdateFromData
|
47
|
+
# @return [Hash] The body content of the SOAP response.
|
48
|
+
def self.update_from_data
|
49
|
+
response = invoke('TermOfPayment_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 term of payment data object for a given term of payment.
|
55
|
+
# Parameters: entityHandle: A handle for the term of payment.
|
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=TermOfPayment_GetData
|
59
|
+
# @return [Hash] The body content of the SOAP response.
|
60
|
+
def self.get_data
|
61
|
+
response = invoke('TermOfPayment_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 term of paryment data objects for a given set of term of payment handles.
|
67
|
+
# Parameters: entityHandles: An array of the term of payment 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=TermOfPayment_GetDataArray
|
71
|
+
# @return [Hash] The body content of the SOAP response.
|
72
|
+
def self.get_data_array
|
73
|
+
response = invoke('TermOfPayment_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 term of payment. If the type is PaidInCash or Factoring then the contra account(s) are set to the first enterable account.
|
79
|
+
# Parameters: name: The name of the new term of payment. type: The type of the new term of payment. days: The number of days until payment is due if the type is Net or InvoiceMonth or InvoiceWeekStartingMonday or InvoiceWeekStartingSunday.
|
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=TermOfPayment_Create
|
83
|
+
# @return [Hash] The body content of the SOAP response.
|
84
|
+
def self.create
|
85
|
+
response = invoke('TermOfPayment_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
|
+
# Returns handles for all term of payments.
|
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=TermOfPayment_GetAll
|
94
|
+
# @return [Hash] The body content of the SOAP response.
|
95
|
+
def self.get_all
|
96
|
+
response = invoke('TermOfPayment_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
|
+
# Returns a handle for the term of payment with a given name.
|
102
|
+
# Parameters: name: The name to search for.
|
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=TermOfPayment_FindByName
|
106
|
+
# @return [Hash] The body content of the SOAP response.
|
107
|
+
def self.find_by_name
|
108
|
+
response = invoke('TermOfPayment_FindByName') 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 a term of peyment.
|
114
|
+
# ParametersL termOfPaymentHandle: Handle for the term of payment.
|
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=TermOfPayment_Delete
|
118
|
+
# @return [Hash] The body content of the SOAP response.
|
119
|
+
def self.delete
|
120
|
+
response = invoke('TermOfPayment_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
|
+
# Gets the name of a term of payment.
|
126
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
127
|
+
#
|
128
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
129
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetName
|
130
|
+
# @return [Hash] The body content of the SOAP response.
|
131
|
+
def self.get_name
|
132
|
+
response = invoke('TermOfPayment_GetName') do |message|
|
133
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
# Sets the name of a term of payment.
|
138
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment. value: The new name of the term of payment.
|
139
|
+
#
|
140
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
141
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_SetName
|
142
|
+
# @return [Hash] The body content of the SOAP response.
|
143
|
+
def self.set_name
|
144
|
+
response = invoke('TermOfPayment_SetName') do |message|
|
145
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# Gets the type of a term of payment.
|
150
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
151
|
+
#
|
152
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
153
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetType
|
154
|
+
# @return [Hash] The body content of the SOAP response.
|
155
|
+
def self.get_type
|
156
|
+
response = invoke('TermOfPayment_GetType') do |message|
|
157
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Gets the number of days before payment is due for a term of payment if the type is TermOfPaymentType.Net or TermOfPaymentType.InvoiceMonth or TermOfPaymentType.InvoiceWeekStartingMonday or TermOfPaymentType.InvoiceWeekStartingSunday.
|
162
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
163
|
+
#
|
164
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
165
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetDays
|
166
|
+
# @return [Hash] The body content of the SOAP response.
|
167
|
+
def self.get_days
|
168
|
+
response = invoke('TermOfPayment_GetDays') do |message|
|
169
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Gets the description of a term of payment.
|
174
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
175
|
+
#
|
176
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
177
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetDescription
|
178
|
+
# @return [Hash] The body content of the SOAP response.
|
179
|
+
def self.get_description
|
180
|
+
response = invoke('TermOfPayment_GetDescription') do |message|
|
181
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
# Sets the description of a term of payment.
|
186
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment. value: The description of the term of payment.
|
187
|
+
#
|
188
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
189
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_SetDescription
|
190
|
+
# @return [Hash] The body content of the SOAP response.
|
191
|
+
def self.set_description
|
192
|
+
response = invoke('TermOfPayment_SetDescription') do |message|
|
193
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
# Gets the first contra account for a term of payment if the type is TermOfPaymentType.PaidInCash or TermOfPaymentType.Factoring.
|
198
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
199
|
+
#
|
200
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
201
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetContraAccount
|
202
|
+
# @return [Hash] The body content of the SOAP response.
|
203
|
+
def self.get_contra_account
|
204
|
+
response = invoke('TermOfPayment_GetContraAccount') do |message|
|
205
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
# Sets the first contra account for a term of payment if the type is TermOfPaymentType.PaidInCash or TermOfPaymentType.Factoring.
|
210
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment. value: The first contra account.
|
211
|
+
#
|
212
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
213
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_SetContraAccount
|
214
|
+
# @return [Hash] The body content of the SOAP response.
|
215
|
+
def self.set_contra_account
|
216
|
+
response = invoke('TermOfPayment_SetContraAccount') do |message|
|
217
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Gets the second contra account for a term of payment if the type is TermOfPaymentType.Factoring.
|
222
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
223
|
+
#
|
224
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
225
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetContraAccount2
|
226
|
+
# @return [Hash] The body content of the SOAP response.
|
227
|
+
def self.get_contra_account2
|
228
|
+
response = invoke('TermOfPayment_GetContraAccount2') do |message|
|
229
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
# Sets the second contra account for a term of payment if the type is TermOfPaymentType.Factoring.
|
234
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment. value: The second contra account.
|
235
|
+
#
|
236
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
237
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_SetContraAccount2
|
238
|
+
# @return [Hash] The body content of the SOAP response.
|
239
|
+
def self.set_contra_account2
|
240
|
+
response = invoke('TermOfPayment_SetContraAccount2') do |message|
|
241
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# Gets the debtor for a term of payment if the type is TermOfPaymentType.Creditcard.
|
246
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
247
|
+
#
|
248
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
249
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetDebtor
|
250
|
+
# @return [Hash] The body content of the SOAP response.
|
251
|
+
def self.get_debtor
|
252
|
+
response = invoke('TermOfPayment_GetDebtor') do |message|
|
253
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# Sets the debtor for a term of payment if the type is TermOfPaymentType.Creditcard.
|
258
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment. value: The debtor.
|
259
|
+
#
|
260
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
261
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_SetDebtor
|
262
|
+
# @return [Hash] The body content of the SOAP response.
|
263
|
+
def self.set_debtor
|
264
|
+
response = invoke('TermOfPayment_SetDebtor') do |message|
|
265
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
# Gets the distribution in percent for the first contra account if the type of the term of payment is TermOfPaymentType.Factoring.
|
270
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
271
|
+
#
|
272
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
273
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetDistributionInPercent
|
274
|
+
# @return [Hash] The body content of the SOAP response.
|
275
|
+
def self.get_distribution_in_percent
|
276
|
+
response = invoke('TermOfPayment_GetDistributionInPercent') do |message|
|
277
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
# Sets the distribution in percent of the first contra account for a term of payment if the type is TermOfPaymentType.Factoring.
|
282
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment. value: A value between 0 and 100.
|
283
|
+
#
|
284
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
285
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_SetDistributionInPercent
|
286
|
+
# @return [Hash] The body content of the SOAP response.
|
287
|
+
def self.set_distribution_in_percent
|
288
|
+
response = invoke('TermOfPayment_SetDistributionInPercent') do |message|
|
289
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
# Gets the distribution in percent for the second contra account if the type of the term of payment is TermOfPaymentType.Factoring.
|
294
|
+
# Parameters: termOfPaymentHandle: Handle for the term of payment.
|
295
|
+
#
|
296
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
297
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TermOfPayment_GetDistributionInPercent2
|
298
|
+
# @return [Hash] The body content of the SOAP response.
|
299
|
+
def self.get_distribution_in_percent2
|
300
|
+
response = invoke('TermOfPayment_GetDistributionInPercent2') do |message|
|
301
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
@@ -0,0 +1,258 @@
|
|
1
|
+
module Ruconomic
|
2
|
+
module API
|
3
|
+
module TimeEntry
|
4
|
+
extend Ruconomic::WebService
|
5
|
+
|
6
|
+
# Creates a new time entry from a data object.
|
7
|
+
# Parameters: data: The data object that specifies the properties of the new time entry.
|
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=TimeEntry_CreateFromData
|
11
|
+
# @return [Hash] The body content of the SOAP response.
|
12
|
+
def self.create_from_data
|
13
|
+
response = invoke('TimeEntry_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 time entries from data objects.
|
19
|
+
# Parameters: dataArray: The array of data objects that specifies the properties of the new time entries.
|
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=TimeEntry_CreateFromDataArray
|
23
|
+
# @return [Hash] The body content of the SOAP response.
|
24
|
+
def self.create_from_data_array
|
25
|
+
response = invoke('TimeEntry_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 time entries 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=TimeEntry_UpdateFromDataArray
|
35
|
+
# @return [Hash] The body content of the SOAP response.
|
36
|
+
def self.update_from_data_array
|
37
|
+
response = invoke('TimeEntry_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 a time entry 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=TimeEntry_UpdateFromData
|
47
|
+
# @return [Hash] The body content of the SOAP response.
|
48
|
+
def self.update_from_data
|
49
|
+
response = invoke('TimeEntry_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 a time entry data object for a given time entry.
|
55
|
+
# Parameters: entityHandle: A handle for the time entry.
|
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=TimeEntry_GetData
|
59
|
+
# @return [Hash] The body content of the SOAP response.
|
60
|
+
def self.get_data
|
61
|
+
response = invoke('TimeEntry_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 time entries data objects for a given set of time entry handles.
|
67
|
+
# Parameters: entityHandles: An array of the time entries 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=TimeEntry_GetDataArray
|
71
|
+
# @return [Hash] The body content of the SOAP response.
|
72
|
+
def self.get_data_array
|
73
|
+
response = invoke('TimeEntry_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 time entry.
|
79
|
+
# Parameters: project: The project of the new time entry. activity: The activity of the new time entry. employee: The employee of the new time entry. date: The date of the new time entry. text: The text of the new time entry. numberOfHours: The number of hours of the new time entry.
|
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=TimeEntry_Create
|
83
|
+
# @return [Hash] The body content of the SOAP response.
|
84
|
+
def self.create
|
85
|
+
response = invoke('TimeEntry_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
|
+
# Returns handles for all time entries.
|
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=TimeEntry_GetAll
|
94
|
+
# @return [Hash] The body content of the SOAP response.
|
95
|
+
def self.get_all
|
96
|
+
response = invoke('TimeEntry_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 time entries 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=TimeEntry_GetAllUpdated
|
105
|
+
# @return [Hash] The body content of the SOAP response.
|
106
|
+
def self.get_all_updated
|
107
|
+
response = invoke('TimeEntry_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 an array of handles for the TimeEntry entries with numbers in the given interval.
|
113
|
+
# Parameters: fromDate: The beginning of the interval. toDate: the end of the interval.
|
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=TimeEntry_FindApprovedByDate
|
117
|
+
# @return [Hash] The body content of the SOAP response.
|
118
|
+
def self.find_approved_by_date
|
119
|
+
response = invoke('TimeEntry_FindApprovedByDate') 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
|
+
# Deletes a time entry.
|
125
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
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=TimeEntry_Delete
|
129
|
+
# @return [Hash] The body content of the SOAP response.
|
130
|
+
def self.delete
|
131
|
+
response = invoke('TimeEntry_Delete') 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
|
+
# Gets handle for the project of a time entry. To set, use UpdateFromData or UpdateFromDataArray.
|
137
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
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=TimeEntry_GetProject
|
141
|
+
# @return [Hash] The body content of the SOAP response.
|
142
|
+
def self.get_project
|
143
|
+
response = invoke('TimeEntry_GetProject') 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
|
+
# Gets handle for the activity of a time entry. To set, use UpdateFromData or UpdateFromDataArray.
|
149
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
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=TimeEntry_GetActivity
|
153
|
+
# @return [Hash] The body content of the SOAP response.
|
154
|
+
def self.get_activity
|
155
|
+
response = invoke('TimeEntry_GetActivity') 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
|
+
# Gets a handle for the employee of a time entry. To set, use UpdateFromData or UpdateFromDataArray.
|
161
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
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=TimeEntry_GetEmployee
|
165
|
+
# @return [Hash] The body content of the SOAP response.
|
166
|
+
def self.get_employee
|
167
|
+
response = invoke('TimeEntry_GetEmployee') 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
|
+
# Gets the date of a time entry. To set, use UpdateFromData or UpdateFromDataArray.
|
173
|
+
# Parameters: ctimeEntryHandle: Handle for the time entry.
|
174
|
+
#
|
175
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
176
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TimeEntry_GetDate
|
177
|
+
# @return [Hash] The body content of the SOAP response.
|
178
|
+
def self.get_date
|
179
|
+
response = invoke('TimeEntry_GetDate') do |message|
|
180
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
# Gets the text of a time entry.
|
185
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
186
|
+
#
|
187
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
188
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TimeEntry_GetText
|
189
|
+
# @return [Hash] The body content of the SOAP response.
|
190
|
+
def self.get_text
|
191
|
+
response = invoke('TimeEntry_GetText') do |message|
|
192
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Sets the text of a time entry.
|
197
|
+
# Parameters: timeEntryHandle: Handle for the time entry. value: new text value.
|
198
|
+
#
|
199
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
200
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TimeEntry_SetText
|
201
|
+
# @return [Hash] The body content of the SOAP response.
|
202
|
+
def self.set_text
|
203
|
+
response = invoke('TimeEntry_SetText') do |message|
|
204
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Gets the number of hours of a time entry. To set, use UpdateFromData or UpdateFromDataArray.
|
209
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
210
|
+
#
|
211
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
212
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TimeEntry_GetNumberOfHours
|
213
|
+
# @return [Hash] The body content of the SOAP response.
|
214
|
+
def self.get_number_of_hours
|
215
|
+
response = invoke('TimeEntry_GetNumberOfHours') do |message|
|
216
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# Gets the sales price of the time entry.
|
221
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
222
|
+
#
|
223
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
224
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TimeEntry_GetSalesPrice
|
225
|
+
# @return [Hash] The body content of the SOAP response.
|
226
|
+
def self.get_sales_price
|
227
|
+
response = invoke('TimeEntry_GetSalesPrice') do |message|
|
228
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
# Gets the cost price of the time entry.
|
233
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
234
|
+
#
|
235
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
236
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TimeEntry_GetCostPrice
|
237
|
+
# @return [Hash] The body content of the SOAP response.
|
238
|
+
def self.get_cost_price
|
239
|
+
response = invoke('TimeEntry_GetCostPrice') do |message|
|
240
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
# Gets whether the time entry is approved.
|
245
|
+
# Parameters: timeEntryHandle: Handle for the time entry.
|
246
|
+
#
|
247
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
248
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TimeEntry_GetApproved
|
249
|
+
# @return [Hash] The body content of the SOAP response.
|
250
|
+
def self.get_approved
|
251
|
+
response = invoke('TimeEntry_GetApproved') do |message|
|
252
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|