rewrite Deposit func

return attribute state

fix  bug when done_at is nil
 modify Deposits api document