Commit graph

98 commits

Author SHA1 Message Date
Pēteris Caune
1b1899052c
Make payments_subscription.user_id not nullable 2023-11-22 10:17:01 +02:00
Pēteris Caune
4fa91e8336
Fix merge oops
Add back database fields that are present in migrations
but not in the model itself
2023-11-01 09:38:50 +02:00
Pēteris Caune
5afc2ea20c
Improve type hints 2023-10-26 08:35:06 +03:00
Pēteris Caune
343e55bd4f
Improve type hints 2023-10-25 18:12:12 +03:00
Pēteris Caune
a308997b3a
Remove most of the hc.payments stuff
Why remove:

* For self-hosters, payment-related features are unused and dead weight
* For SaaS (any would-be Healthchecks.io competitors), the existing
  payment handling logic is not very useful either, as it would need to
  be heavily modified to match their business model, pricing, chosen
  payment gateway
* For the hosted service (Healthchecks.io), the up-to-date billing code
  lives in a private fork of this repo. Maintenance is easier if this
  repo does not have an older, diverging version of the same
  functionality

A few payment-related bits are staying at least for time being:

* the "USE_PAYMENTS" setting
* the hc.payments.models.Subscription model
* tiny stubs for the "Pricing" and "Billing" pages

They are used in various places in the code and templates,
and I think ripping them out in one go would be too disruptive.
2023-10-19 14:17:44 +03:00
Pēteris Caune
fa2e456353
Fix mypy warning 2023-10-19 10:56:59 +03:00
Pēteris Caune
03f46630eb
Format with black 2022-10-17 17:02:11 +03:00
Pēteris Caune
161430fb10
Sort imports and add "from __future__ import annotations" 2022-10-17 16:52:15 +03:00
Pēteris Caune
78652b5659
Upgrade Django version to 3.2 2021-04-07 11:39:11 +03:00
Pēteris Caune
155a1f132b
Simplify super() calls in tests 2020-11-16 11:20:01 +02:00
Pēteris Caune
00790dc33c
Member.rw flag. Read-only users cannot edit check's name/desc/tags or schedule 2020-08-26 12:16:43 +03:00
Pēteris Caune
8c13457037
Use separate counters for SMS and phone calls. 2020-08-03 17:52:09 +03:00
Pēteris Caune
95279f6f3f
Billing page allows setting up a subscription before a payment method is added. 2020-05-29 15:08:00 +03:00
Pēteris Caune
c057dbfb2c
Cleanup. 2020-04-20 11:54:27 +03:00
Pēteris Caune
f42b2b144a
New feature: Project Settings > Transfer Ownership (WIP, missing tests) 2020-04-12 14:46:12 +03:00
Pēteris Caune
a982ad7123
Tooltips and updated FAQ in the pricing page. 2020-04-07 14:35:21 +03:00
Pēteris Caune
f1880657fd
Added "Supporter" billing plan. 2020-04-07 12:32:20 +03:00
Pēteris Caune
8c7d3570a5
Remove unused imports, cleanup. 2020-04-07 10:08:20 +03:00
Pēteris Caune
3e25e5c242
Set the correct SMS limit when cancelling a paid plan. 2020-03-09 09:50:48 +02:00
Pēteris Caune
4bcfba728e
Use unittest.mock 2020-03-01 22:30:12 +02:00
Pēteris Caune
9c3f7101db
Don't use request.project in the pricing page cc: #336 2020-02-26 10:27:45 +02:00
Pēteris Caune
f51a0a257e
Don't delete customer data in braintree when closing account.
Need customer data to stay in braintree until the end of each month for tax reports.
2020-02-03 11:11:21 +02:00
Pēteris Caune
b0db5181d8
Don't validate plan_id if it has not changed from the old value (when updating payment method). 2019-10-02 17:28:20 +03:00
Pēteris Caune
ca5e19fd2d
Don't throw an exception if user's current project is unset. 2019-09-18 14:56:58 +03:00
Pēteris Caune
accdfb637b
Remove PDF invoice generation bits - these are unlikely to ever be useful in the open source version. 2019-09-15 18:39:32 +03:00
Pēteris Caune
2489f86b38
Delete customer from Braintree when closing account. 2019-08-19 11:47:36 +03:00
Pēteris Caune
fa16bd4e42
Prepare for 3DS 2 2019-08-18 18:16:37 +03:00
Pēteris Caune
4c39aeea83
Make sure account limits are reset when user cancels their subscription. 2019-08-12 16:10:49 +03:00
Pēteris Caune
e386ccaa0a
Don't mention whatsapp in the pricing page if it's not enabled in settings. 2019-07-04 09:39:31 +03:00
Pēteris Caune
080e44f7ba
Show refunded transactions correctly in the billing history. 2019-06-04 23:38:21 +03:00
Pēteris Caune
cdfc9840a7
Source formatted with Black 2019-05-15 14:27:50 +03:00
Pēteris Caune
6d7942d7f9
Admin improvements. 2019-01-28 13:05:40 +02:00
Pēteris Caune
eaf49f2367
Don't switch projects when viewing the "Account Settings" page 2019-01-22 16:23:51 +02:00
Pēteris Caune
b013a92c43
Move project-specific settings to a new "Project Settings" page 2019-01-22 15:44:54 +02:00
Pēteris Caune
3c1964b493
Prepare for the removal of Member.team_id 2019-01-21 21:35:32 +02:00
Pēteris Caune
664aad916a
Remove Profile.team_name (use Project.name instead) and Profile.current_team (use Profile.current_project instead) 2019-01-19 17:56:16 +02:00
Pēteris Caune
f357cd3305
Prepare for removing Check.user_id, Channel.user_id, Profile.current_team_id 2019-01-14 21:13:57 +02:00
Pēteris Caune
82b644ae0a
Project.num_checks_available() method. 2019-01-14 12:55:54 +02:00
Pēteris Caune
e21801f44e
Admin tweaks. 2018-12-14 11:12:13 +02:00
Pēteris Caune
1a9f7e17f8
Cancelling a plan clears out Subscription.plan_name 2018-12-14 11:05:57 +02:00
Pēteris Caune
9e9c504e2d
Update plan names, nicer "Change Plan" form. 2018-09-25 13:12:21 +03:00
Pēteris Caune
eafb5d6096
Increase check limits for paid accounts. 2018-05-09 21:04:07 +03:00
Pēteris Caune
8a68ea50dc
Fix tests. Fix "View Profile" link in Subscriptions admin 2018-05-09 18:56:33 +03:00
Pēteris Caune
521b089501 Remove First & Last name from Billing Details, to limit the amount of personal data we potentially store. 2018-05-02 21:41:39 +03:00
Pēteris Caune
ef6e1870d9
Preliminary Django 2 support 2018-04-24 22:38:02 +03:00
Pēteris Caune
9bc0f1b82a
Dropping Python 2 support 2018-04-24 21:04:33 +03:00
Pēteris Caune
9fb7ca7103
Users can specify a separate email address that will receive invoices. 2018-04-24 16:06:03 +03:00
Pēteris Caune
01fef3d054 Pricing updates. 2018-03-04 20:26:30 +02:00
Pēteris Caune
3efd70e50c Adding "Standard (3 years)" plan. 2018-01-18 15:52:01 +02:00
Pēteris Caune
c4b316003d Replace healthchecks.io branding with generic branding. 2018-01-13 19:21:43 +02:00