I need to know what the possible values are for the Invoice status fields and what those values mean.
These are the fields given by the API:
PayStatus looks easy, boolean where 1 = paid in full
CreditStatus seems to set to 1 whenever the invoice has at least 1 payment on it that is of type "Credit"
PayPlanStatus I have no idea - it seems to be set to 1 on every invoice in my database
RefundStatus is also a bit confusting - it is null / 0 on almost every order, but it is 2 on other orders (I could assume these orders all have refunds applied) but I don’t see any Invoices with this field set to 1.