-
-
Notifications
You must be signed in to change notification settings - Fork 156
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 #671 from srahulbadami/stripeIntegration
Added Stripe Integration/ Bug Hunt Winner Selection Logic & Winner Payment Logic
- Loading branch information
Showing
33 changed files
with
4,037 additions
and
302 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
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,35 @@ | ||
# Generated by Django 3.0.8 on 2020-08-18 09:16 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('website', '0058_userprofile_description'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Wallet', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('current_balance', models.DecimalField(decimal_places=2, default=0, max_digits=6)), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Transaction', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('value', models.DecimalField(decimal_places=2, max_digits=6)), | ||
('running_balance', models.DecimalField(decimal_places=2, max_digits=6)), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('wallet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Wallet')), | ||
], | ||
), | ||
] |
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 3.0.8 on 2020-08-19 06:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('website', '0059_transaction_wallet'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='wallet', | ||
name='account_id', | ||
field=models.TextField(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,23 @@ | ||
# Generated by Django 3.0.8 on 2020-08-19 08:44 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('website', '0060_wallet_account_id'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Payment', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('value', models.DecimalField(decimal_places=2, max_digits=6)), | ||
('active', models.BooleanField(default=True)), | ||
('wallet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Wallet')), | ||
], | ||
), | ||
] |
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 3.0.8 on 2020-08-22 09:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('website', '0061_payment'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='company', | ||
name='is_active', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
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,28 @@ | ||
# Generated by Django 3.0.8 on 2020-08-26 03:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('website', '0062_company_is_active'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='hunt', | ||
name='prize_runner', | ||
field=models.DecimalField(decimal_places=2, default=0, max_digits=6), | ||
), | ||
migrations.AddField( | ||
model_name='hunt', | ||
name='prize_second_runner', | ||
field=models.DecimalField(decimal_places=2, default=0, max_digits=6), | ||
), | ||
migrations.AddField( | ||
model_name='hunt', | ||
name='prize_winner', | ||
field=models.DecimalField(decimal_places=2, default=0, max_digits=6), | ||
), | ||
] |
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 3.0.8 on 2020-08-26 16:41 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('website', '0063_auto_20200826_0351'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='issue', | ||
name='hunt', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='website.Hunt'), | ||
), | ||
] |
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 3.0.8 on 2020-08-26 18:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('website', '0064_issue_hunt'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='issue', | ||
name='score', | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='issue', | ||
name='verified', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
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,28 @@ | ||
# Generated by Django 3.0.8 on 2020-08-27 17:33 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('website', '0065_auto_20200826_1809'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='hunt', | ||
name='result_published', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.CreateModel( | ||
name='Winner', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
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,40 @@ | ||
# Generated by Django 3.0.8 on 2020-08-27 17:38 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('website', '0066_auto_20200827_1733'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='winner', | ||
name='user', | ||
), | ||
migrations.AddField( | ||
model_name='winner', | ||
name='prize_distributed', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='winner', | ||
name='runner', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='runner', to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AddField( | ||
model_name='winner', | ||
name='second_runner', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='second_runner', to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AddField( | ||
model_name='winner', | ||
name='winner', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='winner', to=settings.AUTH_USER_MODEL), | ||
), | ||
] |
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 3.0.8 on 2020-08-28 15:35 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('website', '0067_auto_20200827_1738'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='winner', | ||
name='hunt', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='website.Hunt'), | ||
), | ||
] |
Oops, something went wrong.