InvoiceState
1 #Status
2 member :status, :string
3 #Invoice id
4 member :invoice_id, :string
5 #Invoice state
6 member :state, :integer
Invoice states:
0 = PENDING / NOT YET SENT
1 = SENT FROM MAVENTA
2 = REJECTED BY CUSTOMER (only possible for email and internally sent invoices)
3 = APPROVED BY CUSTOMER (only possible for email and internally sent invoices)
4 = OVERDUE
5 = PAID (marked by customer, only possible for internally sent invoices)
6 = PAYMENT RECEIVED (marked by sender for archiving)
12 = WAITING SIGN (will not be sent until invoice is signed, not yet in use)
99 = SEND ERROR (invoice could not be delivered, fix customer information and try sending again)