Class: Elmas::AgingReceivablesList
- Inherits:
-
Object
- Object
- Elmas::AgingReceivablesList
- Includes:
- Resource
- Defined in:
- lib/elmas/resources/aging_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
Instance Method Summary collapse
- #base_path ⇒ Object
- #mandatory_attributes ⇒ Object
-
#other_attributes ⇒ Object
https//start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SalesInvoiceAgingReceivablesLists.
- #valid_actions ⇒ Object
Methods included from Resource
#delete, #find, #find_all, #find_by, #get, #id, #id?, #initialize, #method_missing, #save, #valid?
Methods included from Resource::Sanitizer
#sanitize, #sanitize_date_time, #sanitize_has_many, #sanitize_relationship
Methods included from 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_path ⇒ Object
17 18 19 |
# File 'lib/elmas/resources/aging_receivables_list.rb', line 17 def base_path "read/financial/AgingReceivablesList" end |
#mandatory_attributes ⇒ Object
21 22 23 |
# File 'lib/elmas/resources/aging_receivables_list.rb', line 21 def mandatory_attributes [] end |
#other_attributes ⇒ Object
https//start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SalesInvoiceAgingReceivablesLists
26 27 28 29 30 31 32 |
# File 'lib/elmas/resources/aging_receivables_list.rb', line 26 def other_attributes %i[ account_id account_code account_name age_group1 age_group1_amount age_group1_description age_group2 age_group2_amount age_group2_description age_group3 age_group3_amount age_group3_description age_group4 age_group4_amount age_group4_description currency_code total_amount ] end |
#valid_actions ⇒ Object
13 14 15 |
# File 'lib/elmas/resources/aging_receivables_list.rb', line 13 def valid_actions %i[get] end |