Class: Elmas::ReceivablesList

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/elmas/resources/receivables_list.rb

Overview

We can use the AgingReceivablesList to change the status of SalesInvoices from Open to ‘Verwerkt’ while at the same time sending a PDF of the invoice to the end user by e-mail.

This endpoint only supports the POST method.

Instance Attribute Summary

Attributes included from Resource

#attributes, #response, #url

Instance Method Summary collapse

Methods included from Resource

#delete, #find, #find_all, #find_by, #get, #id, #id?, #initialize, #method_missing, #save, #valid?

Methods included from Elmas::Resource::Sanitizer

#sanitize, #sanitize_date_time, #sanitize_has_many, #sanitize_relationship

Methods included from Elmas::Resource::UriMethods

#apply_filters, #apply_order, #apply_select, #base_filter, #basic_identifier_uri, #query_attribute, #sanitize_value, #uri

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Elmas::Resource

Instance Method Details

#base_pathObject



17
18
19
# File 'lib/elmas/resources/receivables_list.rb', line 17

def base_path
  "read/financial/ReceivablesList"
end

#mandatory_attributesObject



21
22
23
# File 'lib/elmas/resources/receivables_list.rb', line 21

def mandatory_attributes
  []
end

#other_attributesObject



26
27
28
29
# File 'lib/elmas/resources/receivables_list.rb', line 26

def other_attributes
  %i[description hid account_code account_id account_name amount amount_in_transit currency_code description due_date entry_number id
     invoice_date invoice_number journal_code journal_description your_ref]
end

#valid_actionsObject



13
14
15
# File 'lib/elmas/resources/receivables_list.rb', line 13

def valid_actions
  [:get]
end