-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Customer Detail + Event Stream View (#173)
* new plan + cancel subscription * edit plan scaffolding * added new customer summary endpoints * event preview redesign * fixes for customer summary series * changed customer with revenue view calculations * add number active subscriptions to plans * update customer with revenue view to pass floats * customers table fix * improve auth settings * codestyle and test fixes * update get access to support free qty checking * changed to total * lay framework for accepting payment providers apart from stripe Co-authored-by: Diego Escobedo <[email protected]>
- Loading branch information
1 parent
41bbfe7
commit f5cb2c6
Showing
42 changed files
with
1,374 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
metering_billing/migrations/0025_customer_billing_address_customer_email.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.0.5 on 2022-09-30 19:44 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("metering_billing", "0024_alter_billingplan_components_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="customer", | ||
name="billing_address", | ||
field=models.CharField(blank=True, max_length=500, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="customer", | ||
name="email", | ||
field=models.EmailField(blank=True, max_length=100, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.0.5 on 2022-10-01 01:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("metering_billing", "0025_customer_billing_address_customer_email"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="user", | ||
name="email", | ||
field=models.EmailField(max_length=254, unique=True), | ||
), | ||
] |
54 changes: 54 additions & 0 deletions
54
...ling/migrations/0027_rename_payment_intent_id_invoice_external_payment_obj_id_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Generated by Django 4.0.5 on 2022-10-01 16:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("metering_billing", "0026_alter_user_email"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="invoice", | ||
old_name="payment_intent_id", | ||
new_name="external_payment_obj_id", | ||
), | ||
migrations.RemoveField( | ||
model_name="invoice", | ||
name="status", | ||
), | ||
migrations.AddField( | ||
model_name="customer", | ||
name="payment_provider", | ||
field=models.CharField( | ||
blank=True, choices=[("stripe", "Stripe")], max_length=100, null=True | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="invoice", | ||
name="cust_connected_to_payment_provider", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name="invoice", | ||
name="org_connected_to_cust_payment_provider", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name="invoice", | ||
name="payment_status", | ||
field=models.CharField( | ||
choices=[("draft", "Draft"), ("paid", "Paid"), ("unpaid", "Unpaid")], | ||
default="unpaid", | ||
max_length=40, | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="organization", | ||
name="payment_provider_ids", | ||
field=models.JSONField(blank=True, default=dict, null=True), | ||
), | ||
] |
Oops, something went wrong.