Right now {Account,ID,Transfer}Batch have new and add_{account,id,batch} functions that return {:ok, batch} | {:error, reason}.
We should also add their bang versions (new! and add_{account,id,batch}!) which return the batch or raise, since they can be handy to pipe many additions to the batch one after the other.
Right now
{Account,ID,Transfer}Batch
havenew
andadd_{account,id,batch}
functions that return{:ok, batch} | {:error, reason}
.We should also add their bang versions (
new!
andadd_{account,id,batch}!
) which return the batch or raise, since they can be handy to pipe many additions to the batch one after the other.