prici-io / prici

manage plans and pricing for any SaaS application
https://prici.io
MIT License
37 stars 5 forks source link

feature: a plan fields and plans can also have a reset mode #37

Closed davidmeirlevy closed 5 months ago

davidmeirlevy commented 6 months ago

Currently, account plans have reset modes - monthly, yearly, and manually.

But sometimes, certain feature counters (for example - storage) shouldn't reset at the reset action.

this mission is to add a "resetMode" to the plan fields' entity and store it on the account plan state when its created. the default is empty (undefined), so the reset mode of the field is the same as the account plan reset mode.