Pay Ins orders can have the following states:
Pending: when an order is created this has the pending state while the transaction isn't completed or fails.
Completed: an order has the completed state if the payment has been succesfully made.
Error: an order has the error state if the payment is rejected by the bank.
Canceled: an order in the pending state can be cancelled by the client
States only for CC Pay Ins.
As CC Pay Ins allows refunding there are states for this operation:
Refunded: an order is refunded when the total amount of the payment is given back.
Partially refunded: an order is in the state partially refunded if only a part of the payment is given back.