Class: Elmas::PrintedSalesInvoice
- Inherits:
-
Object
- Object
- Elmas::PrintedSalesInvoice
- Includes:
- Resource
- Defined in:
- lib/elmas/resources/printed_sales_invoice.rb
Overview
We can use the PrintedSalesInvoice 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=SalesInvoicePrintedSalesInvoices.
- #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/printed_sales_invoice.rb', line 17 def base_path "salesinvoice/PrintedSalesInvoices" end |
#mandatory_attributes ⇒ Object
21 22 23 |
# File 'lib/elmas/resources/printed_sales_invoice.rb', line 21 def mandatory_attributes %i[invoice_ID] end |
#other_attributes ⇒ Object
https//start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SalesInvoicePrintedSalesInvoices
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/elmas/resources/printed_sales_invoice.rb', line 26 def other_attributes %i[ division document document_creation_error document_creation_success document_layout email_creation_error email_creation_success email_layout extra_text invoice_date postbox_message_creation_error postbox_message_creation_success postbox_sender reporting_period reporting_year send_email_to_customer sender_email_address send_invoice_to_customer_postbox send_output_based_on_account ] end |
#valid_actions ⇒ Object
13 14 15 |
# File 'lib/elmas/resources/printed_sales_invoice.rb', line 13 def valid_actions %i[post] end |