MishkaPay.Ash.Customer.Sync (Mishka Pay v0.0.1)

Copy Markdown View Source

The :register, :sync, :edit and :remove actions of the :customer kind (MishkaPay.Ash.Resource): asks the provider before the action's transaction starts, writes the customer as the provider answered it, and fires mishka_pay:customer:changed after. A customer the provider cannot give is an error on the action, and nothing is written; one the provider deleted, by :remove or elsewhere, keeps its row with :deleted_at.