ruconomic 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,451 @@
|
|
1
|
+
module Ruconomic
|
2
|
+
module API
|
3
|
+
module OrderLine
|
4
|
+
extend Ruconomic::WebService
|
5
|
+
|
6
|
+
# Creates a new order line from a data object.
|
7
|
+
# Parameters: data: The data object that specifies the properties of the new order line.
|
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=OrderLine_CreateFromData
|
11
|
+
# @return [Hash] The body content of the SOAP response.
|
12
|
+
def self.create_from_data
|
13
|
+
response = invoke('OrderLine_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 order lines from data objects.
|
19
|
+
# Parameters: dataArray: The array of data objects that specifies the properties of the new order lines.
|
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=OrderLine_CreateFromDataArray
|
23
|
+
# @return [Hash] The body content of the SOAP response.
|
24
|
+
def self.create_from_data_array
|
25
|
+
response = invoke('OrderLine_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 order lines 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=OrderLine_UpdateFromDataArray
|
35
|
+
# @return [Hash] The body content of the SOAP response.
|
36
|
+
def self.update_from_data_array
|
37
|
+
response = invoke('OrderLine_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 order line 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=OrderLine_UpdateFromData
|
47
|
+
# @return [Hash] The body content of the SOAP response.
|
48
|
+
def self.update_from_data
|
49
|
+
response = invoke('OrderLine_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 order line data object for a given order line.
|
55
|
+
# Parameters: entityHandle: A handle for the order line.
|
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=OrderLine_GetData
|
59
|
+
# @return [Hash] The body content of the SOAP response.
|
60
|
+
def self.get_data
|
61
|
+
response = invoke('OrderLine_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 order line data objects for a given set of order line handles.
|
67
|
+
# Parameters: entityHandles: An array of the order line 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=OrderLine_GetDataArray
|
71
|
+
# @return [Hash] The body content of the SOAP response.
|
72
|
+
def self.get_data_array
|
73
|
+
response = invoke('OrderLine_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
|
+
# Gets the number of an order line.
|
79
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
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=OrderLine_GetNumber
|
83
|
+
# @return [Hash] The body content of the SOAP response.
|
84
|
+
def self.get_number
|
85
|
+
response = invoke('OrderLine_GetNumber') 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 a handle for the order of an order line.
|
91
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
92
|
+
#
|
93
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
94
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetOrder
|
95
|
+
# @return [Hash] The body content of the SOAP response.
|
96
|
+
def self.get_order
|
97
|
+
response = invoke('OrderLine_GetOrder') do |message|
|
98
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# Gets the description of an order line.
|
103
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
104
|
+
#
|
105
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
106
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetDescription
|
107
|
+
# @return [Hash] The body content of the SOAP response.
|
108
|
+
def self.get_description
|
109
|
+
response = invoke('OrderLine_GetDescription') do |message|
|
110
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# Sets the description of an order line.
|
115
|
+
# Parameters: orderLineHandle: Handle for the order line. value: The new description of the order line.
|
116
|
+
#
|
117
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
118
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetDescription
|
119
|
+
# @return [Hash] The body content of the SOAP response.
|
120
|
+
def self.set_description
|
121
|
+
response = invoke('OrderLine_SetDescription') do |message|
|
122
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# Gets the delivery date of an order line.
|
127
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
128
|
+
#
|
129
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
130
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetDeliveryDate
|
131
|
+
# @return [Hash] The body content of the SOAP response.
|
132
|
+
def self.get_delivery_date
|
133
|
+
response = invoke('OrderLine_GetDeliveryDate') do |message|
|
134
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# Sets the delivery date of an order line.
|
139
|
+
# Parameters: orderLineHandle: Handle for the order line. value: The new delivery date of the order line.
|
140
|
+
#
|
141
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
142
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetDeliveryDate
|
143
|
+
# @return [Hash] The body content of the SOAP response.
|
144
|
+
def self.set_delivery_date
|
145
|
+
response = invoke('OrderLine_SetDeliveryDate') do |message|
|
146
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Gets handle for primary unit of an order line.
|
151
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
152
|
+
#
|
153
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
154
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetUnit
|
155
|
+
# @return [Hash] The body content of the SOAP response.
|
156
|
+
def self.get_unit
|
157
|
+
response = invoke('OrderLine_GetUnit') do |message|
|
158
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Sets primary unit of an order line.
|
163
|
+
# Parameters: orderLineHandle: Handle for the order line. valueHandle: Handle for new primary unit of the order line.
|
164
|
+
#
|
165
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
166
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetUnit
|
167
|
+
# @return [Hash] The body content of the SOAP response.
|
168
|
+
def self.set_unit
|
169
|
+
response = invoke('OrderLine_SetUnit') do |message|
|
170
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
# Sets product of an order line. Setting the product also sets the unit cost price to the cost price of the product. The product must be set before setting the quantity and the unit net price.
|
175
|
+
# Parameters: orderLineHandle: Handle for the order line. valueHandle: Handle for new product of the order line.
|
176
|
+
#
|
177
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
178
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetProduct
|
179
|
+
# @return [Hash] The body content of the SOAP response.
|
180
|
+
def self.set_product
|
181
|
+
response = invoke('OrderLine_SetProduct') do |message|
|
182
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# Gets handle for product of an order line.
|
187
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
188
|
+
#
|
189
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
190
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetProduct
|
191
|
+
# @return [Hash] The body content of the SOAP response.
|
192
|
+
def self.get_product
|
193
|
+
response = invoke('OrderLine_GetProduct') do |message|
|
194
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# Gets primary quantity of an order line.
|
199
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
200
|
+
#
|
201
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
202
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetQuantity
|
203
|
+
# @return [Hash] The body content of the SOAP response.
|
204
|
+
def self.get_quantity
|
205
|
+
response = invoke('OrderLine_GetQuantity') do |message|
|
206
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Sets primary quantity of an order line. The product of the order line must be set before setting this property.
|
211
|
+
# Parameters: orderLineHandle: Handle for the order line. valueHandle: Handle for primary quantity of the order line.
|
212
|
+
#
|
213
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
214
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetQuantity
|
215
|
+
# @return [Hash] The body content of the SOAP response.
|
216
|
+
def self.set_quantity
|
217
|
+
response = invoke('OrderLine_SetQuantity') do |message|
|
218
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# Gets price per unit without VAT of an order line (in the currency of the order).
|
223
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
224
|
+
#
|
225
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
226
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetUnitNetPrice
|
227
|
+
# @return [Hash] The body content of the SOAP response.
|
228
|
+
def self.get_unit_net_price
|
229
|
+
response = invoke('OrderLine_GetUnitNetPrice') do |message|
|
230
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# Sets price per unit without VAT of an order line (in the currency of the order). The product of the order line must be set before setting this property.
|
235
|
+
# Parameters: orderLineHandle: Handle for the order line. value: The new price per unit without VAT of the order line.
|
236
|
+
#
|
237
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
238
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetUnitNetPrice
|
239
|
+
# @return [Hash] The body content of the SOAP response.
|
240
|
+
def self.set_unit_net_price
|
241
|
+
response = invoke('OrderLine_SetUnitNetPrice') do |message|
|
242
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
# Gets discount of an order line as percent.
|
247
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
248
|
+
#
|
249
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
250
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetDiscountAsPercent
|
251
|
+
# @return [Hash] The body content of the SOAP response.
|
252
|
+
def self.get_discount_as_percent
|
253
|
+
response = invoke('OrderLine_GetDiscountAsPercent') do |message|
|
254
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
# Sets discount of an order line as percent.
|
259
|
+
# Parameters: orderLineHandle: Handle for the order line. value: The new discount as percent of the order line.
|
260
|
+
#
|
261
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
262
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetDiscountAsPercent
|
263
|
+
# @return [Hash] The body content of the SOAP response.
|
264
|
+
def self.set_discount_as_percent
|
265
|
+
response = invoke('OrderLine_SetDiscountAsPercent') do |message|
|
266
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
# Gets the cost price per unit witout VAT of an order line (in the default currency).
|
271
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
272
|
+
#
|
273
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
274
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetUnitCostPrice
|
275
|
+
# @return [Hash] The body content of the SOAP response.
|
276
|
+
def self.get_unit_cost_price
|
277
|
+
response = invoke('OrderLine_GetUnitCostPrice') do |message|
|
278
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
# Gets the total amount without VAT of an order line (in the currency of the order).
|
283
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
284
|
+
#
|
285
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
286
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetTotalNetAmount
|
287
|
+
# @return [Hash] The body content of the SOAP response.
|
288
|
+
def self.get_total_net_amount
|
289
|
+
response = invoke('OrderLine_GetTotalNetAmount') do |message|
|
290
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
# Gets the margin of an order line (in the currency of the order).
|
295
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
296
|
+
#
|
297
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
298
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetTotalMargin
|
299
|
+
# @return [Hash] The body content of the SOAP response.
|
300
|
+
def self.get_total_margin
|
301
|
+
response = invoke('OrderLine_GetTotalMargin') do |message|
|
302
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
# Gets the margin as percent of an order line.
|
307
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
308
|
+
#
|
309
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
310
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetMarginAsPercent
|
311
|
+
# @return [Hash] The body content of the SOAP response.
|
312
|
+
def self.get_margin_as_percent
|
313
|
+
response = invoke('OrderLine_GetMarginAsPercent') do |message|
|
314
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
# Gets a handle for the department of an order line. The department is only accessible when there is access to the Dimension add-on module.
|
319
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
320
|
+
#
|
321
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
322
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetDepartment
|
323
|
+
# @return [Hash] The body content of the SOAP response.
|
324
|
+
def self.get_department
|
325
|
+
response = invoke('OrderLine_GetDepartment') do |message|
|
326
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# Sets the department of an order line. 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.
|
331
|
+
# Parameters: orderLineHandle: Handle for the order line. value: Handle for the new department of the order line.
|
332
|
+
#
|
333
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
334
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetDepartment
|
335
|
+
# @return [Hash] The body content of the SOAP response.
|
336
|
+
def self.set_department
|
337
|
+
response = invoke('OrderLine_SetDepartment') do |message|
|
338
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# Sets the distribution key of an order line. 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.
|
343
|
+
# Parameters: orderLineHandle: Handle for the order line. value: Handle for the new distribution key of the order line.
|
344
|
+
#
|
345
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
346
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetDistributionKey
|
347
|
+
# @return [Hash] The body content of the SOAP response.
|
348
|
+
def self.set_distribution_key
|
349
|
+
response = invoke('OrderLine_SetDistributionKey') do |message|
|
350
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
# Gets a handle for the distribution key of an order line. The distribution key is only accessible when there is access to the Dimension add-on module.
|
355
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
356
|
+
#
|
357
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
358
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetDistributionKey
|
359
|
+
# @return [Hash] The body content of the SOAP response.
|
360
|
+
def self.get_distribution_key
|
361
|
+
response = invoke('OrderLine_GetDistributionKey') do |message|
|
362
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
# Creates a new order line.
|
367
|
+
# Parameters: orderHandle: Handle for a order.
|
368
|
+
#
|
369
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
370
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_Create
|
371
|
+
# @return [Hash] The body content of the SOAP response.
|
372
|
+
def self.create
|
373
|
+
response = invoke('OrderLine_Create') do |message|
|
374
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
# Returns handles for all order lines.
|
379
|
+
#
|
380
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
381
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetAll
|
382
|
+
# @return [Hash] The body content of the SOAP response.
|
383
|
+
def self.get_all
|
384
|
+
response = invoke('OrderLine_GetAll') do |message|
|
385
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
# Returns handles for order lines that uses a given product.
|
390
|
+
# Parameters: product: The product to search for.
|
391
|
+
#
|
392
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
393
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_FindByProduct
|
394
|
+
# @return [Hash] The body content of the SOAP response.
|
395
|
+
def self.find_by_product
|
396
|
+
response = invoke('OrderLine_FindByProduct') do |message|
|
397
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
401
|
+
# Returns handles for order lines that uses a given set of products.
|
402
|
+
# Parameters: products: The products to search for.
|
403
|
+
#
|
404
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
405
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_FindByProductList
|
406
|
+
# @return [Hash] The body content of the SOAP response.
|
407
|
+
def self.find_by_product_list
|
408
|
+
response = invoke('OrderLine_FindByProductList') do |message|
|
409
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
# Deletes an order line.
|
414
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
415
|
+
#
|
416
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
417
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_Delete
|
418
|
+
# @return [Hash] The body content of the SOAP response.
|
419
|
+
def self.delete
|
420
|
+
response = invoke('OrderLine_Delete') do |message|
|
421
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
425
|
+
# Gets a handle for the inventory location of an order line. The inventory location is only accessible when there is access to the Stock add-on module.
|
426
|
+
# Parameters: orderLineHandle: Handle for the order line.
|
427
|
+
#
|
428
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
429
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_GetInventoryLocation
|
430
|
+
# @return [Hash] The body content of the SOAP response.
|
431
|
+
def self.get_inventory_location
|
432
|
+
response = invoke('OrderLine_GetInventoryLocation') do |message|
|
433
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
# Sets the inventory location of a order line. The inventory location is only accessible when there is access to the Stock add-on module.
|
438
|
+
# Parameters: orderLineHandle: Handle for the order line. value: Handle for the new inventory location of the order line.
|
439
|
+
#
|
440
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
441
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=OrderLine_SetInventoryLocation
|
442
|
+
# @return [Hash] The body content of the SOAP response.
|
443
|
+
def self.set_inventory_location
|
444
|
+
response = invoke('OrderLine_SetInventoryLocation') do |message|
|
445
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
end
|
450
|
+
end
|
451
|
+
end
|
@@ -0,0 +1,200 @@
|
|
1
|
+
module Ruconomic
|
2
|
+
module API
|
3
|
+
module PriceGroup
|
4
|
+
extend Ruconomic::WebService
|
5
|
+
|
6
|
+
# Creates a new PriceGroup from a data object.
|
7
|
+
# Parameters: data: The data object that specifies the properties of the new PriceGroup.
|
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=PriceGroup_CreateFromData
|
11
|
+
# @return [Hash] The body content of the SOAP response.
|
12
|
+
def self.create_from_data
|
13
|
+
response = invoke('PriceGroup_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 PriceGroups from data objects.
|
19
|
+
# Parameters: dataArray: The array of data objects that specifies the properties of the new PriceGroups.
|
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=PriceGroup_CreateFromDataArray
|
23
|
+
# @return [Hash] The body content of the SOAP response.
|
24
|
+
def self.create_from_data_array
|
25
|
+
response = invoke('PriceGroup_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 PriceGroups 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=PriceGroup_UpdateFromDataArray
|
35
|
+
# @return [Hash] The body content of the SOAP response.
|
36
|
+
def self.update_from_data_array
|
37
|
+
response = invoke('PriceGroup_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 PriceGroup 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=PriceGroup_UpdateFromData
|
47
|
+
# @return [Hash] The body content of the SOAP response.
|
48
|
+
def self.update_from_data
|
49
|
+
response = invoke('PriceGroup_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 PriceGroup data object for a given PriceGroup.
|
55
|
+
# Parameters: entityHandle: A handle for the PriceGroup.
|
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=PriceGroup_GetData
|
59
|
+
# @return [Hash] The body content of the SOAP response.
|
60
|
+
def self.get_data
|
61
|
+
response = invoke('PriceGroup_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 PriceGroup data objects for a given set of PriceGroup handles.
|
67
|
+
# Parameters: entityHandles: An array of the PriceGroup 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=PriceGroup_GetDataArray
|
71
|
+
# @return [Hash] The body content of the SOAP response.
|
72
|
+
def self.get_data_array
|
73
|
+
response = invoke('PriceGroup_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 PriceGroup.
|
79
|
+
# Parameters: name: The name of the new PriceGroup.
|
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=PriceGroup_Create
|
83
|
+
# @return [Hash] The body content of the SOAP response.
|
84
|
+
def self.create
|
85
|
+
response = invoke('PriceGroup_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
|
+
# Gets the number of a price group.
|
91
|
+
# Parameters: PriceGroupHandle: Handle for the price group.
|
92
|
+
#
|
93
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
94
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=PriceGroup_GetNumber
|
95
|
+
# @return [Hash] The body content of the SOAP response.
|
96
|
+
def self.get_number
|
97
|
+
response = invoke('PriceGroup_GetNumber') do |message|
|
98
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# Gets the name of a price group.
|
103
|
+
# Parameters: priceGroupHandle: Handle for the price group.
|
104
|
+
#
|
105
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
106
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=PriceGroup_GetName
|
107
|
+
# @return [Hash] The body content of the SOAP response.
|
108
|
+
def self.get_name
|
109
|
+
response = invoke('PriceGroup_GetName') do |message|
|
110
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# Sets the name of a price group.
|
115
|
+
# Parameters: priceGroupHandle: Handle for the price group. value: The new name of the price group.
|
116
|
+
#
|
117
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
118
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=PriceGroup_SetName
|
119
|
+
# @return [Hash] The body content of the SOAP response.
|
120
|
+
def self.set_name
|
121
|
+
response = invoke('PriceGroup_SetName') do |message|
|
122
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# Return handles for all price groups.
|
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=PriceGroup_GetAll
|
130
|
+
# @return [Hash] The body content of the SOAP response.
|
131
|
+
def self.get_all
|
132
|
+
response = invoke('PriceGroup_GetAll') 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
|
+
# Returns a handle for the price group with the given number.
|
138
|
+
# Parameters: number: The number to search for.
|
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=PriceGroup_FindByNumber
|
142
|
+
# @return [Hash] The body content of the SOAP response.
|
143
|
+
def self.find_by_number
|
144
|
+
response = invoke('PriceGroup_FindByNumber') 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
|
+
# Returns an array with handles for price groups corresponding to the given price group numbers. If a price group with a given number does not exist or if no number is given then the array contains nothing at that index.
|
150
|
+
# Parameters: numbers: The numbers to search for.
|
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=PriceGroup_FindByNumberList
|
154
|
+
# @return [Hash] The body content of the SOAP response.
|
155
|
+
def self.find_by_number_list
|
156
|
+
response = invoke('PriceGroup_FindByNumberList') 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
|
+
# Returns handles for the price groups with the given name.
|
162
|
+
# Parameters: name: The name to search for.
|
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=PriceGroup_FindByName
|
166
|
+
# @return [Hash] The body content of the SOAP response.
|
167
|
+
def self.find_by_name
|
168
|
+
response = invoke('PriceGroup_FindByName') 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
|
+
# Deletes a PriceGroup.
|
174
|
+
# Parameters: priceGroupHandle: Handle for the PriceGroup.
|
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=PriceGroup_Delete
|
178
|
+
# @return [Hash] The body content of the SOAP response.
|
179
|
+
def self.delete
|
180
|
+
response = invoke('PriceGroup_Delete') 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
|
+
# Returns the price for the product in the PriceGroup.
|
186
|
+
# If no special price is found then the sales price is returned instead.
|
187
|
+
# Parameters: productHandle: The product to return the price for.
|
188
|
+
#
|
189
|
+
# @note TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
190
|
+
# @see https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=PriceGroup_GetPrice
|
191
|
+
# @return [Hash] The body content of the SOAP response.
|
192
|
+
def self.get_price
|
193
|
+
response = invoke('PriceGroup_GetPrice') do |message|
|
194
|
+
raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/e-conomic#contributing"
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|