djaodjin / djaodjin-saas

Django application for software-as-service and subscription businesses
Other
564 stars 124 forks source link

Notify when use charge is above limit #278

Closed smirolo closed 10 months ago

smirolo commented 1 year ago

When implementing usage-based pricing, we want to notify users (i.e. send a Signal) that a profile has crossed a threshold limit.

This could be implemented with a limit field on the UseCharge model and some code in record_use_charge.