Module: Ruconomic::API::TermOfPayment

Extended by:
WebService
Defined in:
lib/ruconomic/api/term_of_payment.rb

Class Method Summary collapse

Class Method Details

.createHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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. 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.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


84
85
86
87
88
# File 'lib/ruconomic/api/term_of_payment.rb', line 84

def self.create
  response = invoke('TermOfPayment_Create') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.create_from_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Creates a new term of payment from a data object. Parameters: data: The data object that specifies the properties of the new term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


12
13
14
15
16
# File 'lib/ruconomic/api/term_of_payment.rb', line 12

def self.create_from_data
  response = invoke('TermOfPayment_CreateFromData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.create_from_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Creates new terms of payment from data objects. Parameters: dataArray: The array of data objects that specifies the properties of the new terms of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


24
25
26
27
28
# File 'lib/ruconomic/api/term_of_payment.rb', line 24

def self.create_from_data_array
  response = invoke('TermOfPayment_CreateFromDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.deleteHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Deletes a term of peyment. ParametersL termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


119
120
121
122
123
# File 'lib/ruconomic/api/term_of_payment.rb', line 119

def self.delete
  response = invoke('TermOfPayment_Delete') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.find_by_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns a handle for the term of payment with a given name. Parameters: name: The name to search for.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


107
108
109
110
111
# File 'lib/ruconomic/api/term_of_payment.rb', line 107

def self.find_by_name
  response = invoke('TermOfPayment_FindByName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_allHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns handles for all term of payments.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


95
96
97
98
99
# File 'lib/ruconomic/api/term_of_payment.rb', line 95

def self.get_all
  response = invoke('TermOfPayment_GetAll') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_contra_accountHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the first contra account for a term of payment if the type is TermOfPaymentType.PaidInCash or TermOfPaymentType.Factoring. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


203
204
205
206
207
# File 'lib/ruconomic/api/term_of_payment.rb', line 203

def self.
  response = invoke('TermOfPayment_GetContraAccount') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_contra_account2Hash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the second contra account for a term of payment if the type is TermOfPaymentType.Factoring. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


227
228
229
230
231
# File 'lib/ruconomic/api/term_of_payment.rb', line 227

def self.get_contra_account2
  response = invoke('TermOfPayment_GetContraAccount2') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns an term of payment data object for a given term of payment. Parameters: entityHandle: A handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


60
61
62
63
64
# File 'lib/ruconomic/api/term_of_payment.rb', line 60

def self.get_data
  response = invoke('TermOfPayment_GetData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns term of paryment data objects for a given set of term of payment handles. Parameters: entityHandles: An array of the term of payment handles.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


72
73
74
75
76
# File 'lib/ruconomic/api/term_of_payment.rb', line 72

def self.get_data_array
  response = invoke('TermOfPayment_GetDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_daysHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


167
168
169
170
171
# File 'lib/ruconomic/api/term_of_payment.rb', line 167

def self.get_days
  response = invoke('TermOfPayment_GetDays') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_debtorHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the debtor for a term of payment if the type is TermOfPaymentType.Creditcard. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


251
252
253
254
255
# File 'lib/ruconomic/api/term_of_payment.rb', line 251

def self.get_debtor
  response = invoke('TermOfPayment_GetDebtor') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_descriptionHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the description of a term of payment. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


179
180
181
182
183
# File 'lib/ruconomic/api/term_of_payment.rb', line 179

def self.get_description
  response = invoke('TermOfPayment_GetDescription') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_distribution_in_percentHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the distribution in percent for the first contra account if the type of the term of payment is TermOfPaymentType.Factoring. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


275
276
277
278
279
# File 'lib/ruconomic/api/term_of_payment.rb', line 275

def self.get_distribution_in_percent
  response = invoke('TermOfPayment_GetDistributionInPercent') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_distribution_in_percent2Hash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the distribution in percent for the second contra account if the type of the term of payment is TermOfPaymentType.Factoring. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


299
300
301
302
303
# File 'lib/ruconomic/api/term_of_payment.rb', line 299

def self.get_distribution_in_percent2
  response = invoke('TermOfPayment_GetDistributionInPercent2') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the name of a term of payment. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


131
132
133
134
135
# File 'lib/ruconomic/api/term_of_payment.rb', line 131

def self.get_name
  response = invoke('TermOfPayment_GetName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_typeHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the type of a term of payment. Parameters: termOfPaymentHandle: Handle for the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


155
156
157
158
159
# File 'lib/ruconomic/api/term_of_payment.rb', line 155

def self.get_type
  response = invoke('TermOfPayment_GetType') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.set_contra_accountHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Sets the first contra account for a term of payment if the type is TermOfPaymentType.PaidInCash or TermOfPaymentType.Factoring. Parameters: termOfPaymentHandle: Handle for the term of payment. value: The first contra account.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


215
216
217
218
219
# File 'lib/ruconomic/api/term_of_payment.rb', line 215

def self.
  response = invoke('TermOfPayment_SetContraAccount') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.set_contra_account2Hash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Sets the second contra account for a term of payment if the type is TermOfPaymentType.Factoring. Parameters: termOfPaymentHandle: Handle for the term of payment. value: The second contra account.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


239
240
241
242
243
# File 'lib/ruconomic/api/term_of_payment.rb', line 239

def self.set_contra_account2
  response = invoke('TermOfPayment_SetContraAccount2') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.set_debtorHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Sets the debtor for a term of payment if the type is TermOfPaymentType.Creditcard. Parameters: termOfPaymentHandle: Handle for the term of payment. value: The debtor.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


263
264
265
266
267
# File 'lib/ruconomic/api/term_of_payment.rb', line 263

def self.set_debtor
  response = invoke('TermOfPayment_SetDebtor') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.set_descriptionHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Sets the description of a term of payment. Parameters: termOfPaymentHandle: Handle for the term of payment. value: The description of the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


191
192
193
194
195
# File 'lib/ruconomic/api/term_of_payment.rb', line 191

def self.set_description
  response = invoke('TermOfPayment_SetDescription') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.set_distribution_in_percentHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Sets the distribution in percent of the first contra account for a term of payment if the type is TermOfPaymentType.Factoring. Parameters: termOfPaymentHandle: Handle for the term of payment. value: A value between 0 and 100.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


287
288
289
290
291
# File 'lib/ruconomic/api/term_of_payment.rb', line 287

def self.set_distribution_in_percent
  response = invoke('TermOfPayment_SetDistributionInPercent') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.set_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Sets the name of a term of payment. Parameters: termOfPaymentHandle: Handle for the term of payment. value: The new name of the term of payment.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


143
144
145
146
147
# File 'lib/ruconomic/api/term_of_payment.rb', line 143

def self.set_name
  response = invoke('TermOfPayment_SetName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.update_from_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Updates a term of payment from a data object. Parameters: data: The data object.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


48
49
50
51
52
# File 'lib/ruconomic/api/term_of_payment.rb', line 48

def self.update_from_data
  response = invoke('TermOfPayment_UpdateFromData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.update_from_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Update termn of payments from data objects. Parameters: dataArray: The array of data objects.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


36
37
38
39
40
# File 'lib/ruconomic/api/term_of_payment.rb', line 36

def self.update_from_data_array
  response = invoke('TermOfPayment_UpdateFromDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end