Added support for all actions on invoices, this includes the following:
bookkeep: Bookkeeps an invoic
cancel: Cancels an invoice (same as “Makulerad” in the GUI)
credit: Creates a credit invoice from the provided invoice. The created credit invoice will be referenced in the property CreditInvoiceReference.
email: Sends an e-mail to the customer with an attached PDF document of the invoice. You can use the properties in the EmailInformation to customize the e-mail message on each invoice.
einvoice: Sends an e-invoice to the customer with an attached PDF document of the invoice. Note that this action also sets the property Sent as true.
print: This action returns a PDF document with the current template that is used by the specific document. Note that this action also sets the property Sent as true.
printreminder: This action returns a PDF document with the current reminder template that is used by the specific document. Note that this action also sets the property Sent as true.
externalprint: This action is used to set the field Sent as true from an external system without generating a PDF.
preview: This action returns a PDF document with the current template that is used by the specific document. Unliike the action print, this action doesn’t set the property Sent as true.
preview: This action returns a PDF document with the current template that is used by the specific document. Unliike the action print, this action doesn’t set the property Sent as true.
Checklist
[X] Code compiles correctly
[X] Created tests which fail without the change (if possible)
[X] Extended the README / documentation, if necessary
Description
Added support for all actions on invoices, this includes the following:
bookkeep:
Bookkeeps an invoiccancel:
Cancels an invoice (same as “Makulerad” in the GUI)credit:
Creates a credit invoice from the provided invoice. The created credit invoice will be referenced in the property CreditInvoiceReference.email:
Sends an e-mail to the customer with an attached PDF document of the invoice. You can use the properties in the EmailInformation to customize the e-mail message on each invoice.einvoice:
Sends an e-invoice to the customer with an attached PDF document of the invoice. Note that this action also sets the property Sent as true.print:
This action returns a PDF document with the current template that is used by the specific document. Note that this action also sets the property Sent as true.printreminder:
This action returns a PDF document with the current reminder template that is used by the specific document. Note that this action also sets the property Sent as true.externalprint:
This action is used to set the field Sent as true from an external system without generating a PDF. preview: This action returns a PDF document with the current template that is used by the specific document. Unliike the action print, this action doesn’t set the property Sent as true.preview
: This action returns a PDF document with the current template that is used by the specific document. Unliike the action print, this action doesn’t set the property Sent as true.Checklist