overture8 / mangoex

Elixir wrapper for the MangoPay API
3 stars 3 forks source link

[user] create legal user #7

Closed artmoni closed 7 years ago

artmoni commented 7 years ago

create and update a legal user. LegalPersonType is require on creation so we can pattern match but not on update so maybe another best way to do this. Any idea?

artmoni commented 7 years ago

Another solution would be to have both create_natural_user and create_legal_user then deprecate create_user which redirect to create_natural_user. and same for update.

artmoni commented 7 years ago

replaced by new PR with better migration support