picqer / moneybird-php-client

PHP Client for Moneybird V2
MIT License
82 stars 77 forks source link

Mark as sent equivalent #81

Closed sDeVette closed 7 years ago

sDeVette commented 7 years ago

As I'm switching over from the v1 of the API with the youngguns wrapper, I'm looking for a markAsSent equivalent. Right now the Invoices get marked as a concept because I'm sending the PDF's with a custom email, together with other attachments. I've tried to set the sent_at property but it doesn't have the required effect. Any help would be greatly appreciated!

hiranthi commented 7 years ago

You can use $invoice->sendInvoice('Manual');

The 'Manual' stands for that you're sending the invoice manually (delivery methods). Other options are Post (Moneybird will send the document through post, although this one seems to be vanishing, the option can't be used when adding invoices manually anymore) and Email (the default).

casperbakker commented 7 years ago

Thanks @hiranthi for helping out!