wave icon indicating copy to clipboard operation
wave copied to clipboard

Add billing dates to subscriptions

Open thinkverse opened this issue 2 years ago • 0 comments

Currently the next and last billing dates aren't added to the subscriptions. There should be a next_bill_date attribute, but that isn't in the migration and is not set when a new subscription is added. This PR resolves this issue by adding two new attributes to the subscriptions, namely the last_payment_at and next_payment_at fields.

With those, we can track when the last payment was made and when to expect the next one. Also included a fix for cancelled_at which was never set when a subscription was canceled.

Screen Shot 2022-05-12 at 3 32 30 AM

thinkverse avatar May 12 '22 01:05 thinkverse