forked from buildlyio/buildly-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from buildly-release-management/master
Add Subscription Intergration
- Loading branch information
Showing
9 changed files
with
155 additions
and
5 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
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,19 @@ | ||
# Generated by Django 2.2.28 on 2023-02-15 14:43 | ||
|
||
import django.contrib.postgres.fields.jsonb | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0013_auto_20230207_1403'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='subscription', | ||
name='stripe_product_info', | ||
field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, 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 2.2.28 on 2023-03-01 06:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0014_subscription_stripe_product_info'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='coreuser', | ||
name='coupon', | ||
field=models.CharField(blank=True, max_length=48, 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 2.2.28 on 2023-03-01 13:10 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0015_coreuser_coupon'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='coreuser', | ||
old_name='coupon', | ||
new_name='coupon_code', | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title></title> | ||
</head> | ||
<body style="margin:0px;"> | ||
<div style="background-color: #f5f5f5; padding: 30px 0px 30px 0px; display: run-in; text-align: center;"><img align="center" alt="Buildly" src="" width="312.5" style="max-width: 625px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" /></div> | ||
<p><br/><br/></p> | ||
<table align="center" style="width: 719px;"> | ||
<tbody> | ||
<tr style="height: 104px;"> | ||
<td style="width: 691px; height: 104px;"> | ||
<h1 style="text-align: center;"><span style="color: #151f56;"><strong><span style="font-size: 40px; font-family: roboto,helvetica neue,helvetica,arial,sans-serif;">Subscription successful!</span></strong></span></h1> | ||
<p style="padding-top: 20px; padding-bottom: 10px; text-align: center; font-family: roboto,helvetica neue,helvetica,arial,sans-serif; color: #737581;"><span style="font-size: 12pt; font-family: roboto,helvetica neue,helvetica,arial,sans-serif; color: #737581;">You have successfully subscribed to<span style="font-family: roboto,helvetica neue,helvetica,arial,sans-serif; color: #151f56;"><strong> Insights </strong></span> on Buildly!<br />Click the button below to return to the app</span></p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" style="width: 160px;"> | ||
<tbody> | ||
<tr style="height: 20px;"> | ||
<td style="font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18pt; padding: 12pt; background-color: #ff9f00; color: #ffffff; font-weight: bold; text-align: center;"><a href="{{ frontend_link }}" target="_blank" style="font-weight: bold; letter-spacing: normal; line-height: 100%; text-align: center; text-decoration: none; color: #ffffff;">Buildly Insights</a></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" style="width: 719px;"> | ||
<tbody> | ||
<tr style="height: 35px;"> | ||
<td style="width: 691px; height: 35px;"> | ||
<p><span style="color: #737581; font-size: 12pt; font-family: roboto,helvetica neue,helvetica,arial,sans-serif;"><i>Package</i></span></p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>{{ product_name }}</td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td>{{ product_description }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</body> | ||
</html> |
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,11 @@ | ||
Subscription successful! | ||
|
||
You have successfully subscribed to Insights on Buildly. | ||
|
||
Go to {{ frontend_link }} to access the app. | ||
|
||
Package! | ||
|
||
{{ product_name }} | ||
|
||
{{ product_description }} |