-
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 #47 from Build-Squad/GEN-90-Refactor-Services-Pack…
…ages-POST-PATCH-APIs GEN 90 / 91 Update Create API for Services and UI Modal for Service
- Loading branch information
Showing
16 changed files
with
941 additions
and
616 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/api/marketplace/accounts/migrations/0006_alter_twitteraccount_joined_at.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
35 changes: 35 additions & 0 deletions
35
...ce/packages/migrations/0003_remove_service_end_date_remove_service_start_date_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,35 @@ | ||
# Generated by Django 4.2.7 on 2023-12-19 07:41 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('packages', '0002_service_end_date_service_start_date_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='service', | ||
name='end_date', | ||
), | ||
migrations.RemoveField( | ||
model_name='service', | ||
name='start_date', | ||
), | ||
migrations.RemoveField( | ||
model_name='servicemaster', | ||
name='is_duration_based', | ||
), | ||
migrations.AddField( | ||
model_name='package', | ||
name='type', | ||
field=models.CharField(choices=[('package', 'package'), ('service', 'service')], default='package', max_length=50), | ||
), | ||
migrations.AddField( | ||
model_name='service', | ||
name='is_duration_based', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
...lace/packages/migrations/0004_alter_package_publish_date_alter_package_status_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,28 @@ | ||
# Generated by Django 4.2.7 on 2023-12-20 05:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('packages', '0003_remove_service_end_date_remove_service_start_date_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='package', | ||
name='publish_date', | ||
field=models.DateTimeField(blank=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='package', | ||
name='status', | ||
field=models.CharField(choices=[('draft', 'draft'), ('published', 'published')], default='draft', max_length=50), | ||
), | ||
migrations.AlterField( | ||
model_name='package', | ||
name='type', | ||
field=models.CharField(choices=[('package', 'package'), ('service', 'service')], default='service', max_length=50), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
src/api/marketplace/packages/migrations/0005_remove_package_currency_remove_package_price.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,21 @@ | ||
# Generated by Django 4.2.7 on 2023-12-20 06:38 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('packages', '0004_alter_package_publish_date_alter_package_status_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='package', | ||
name='currency', | ||
), | ||
migrations.RemoveField( | ||
model_name='package', | ||
name='price', | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
src/api/marketplace/packages/migrations/0006_service_platform_fees_service_platform_price.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.2.7 on 2023-12-20 10:40 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('packages', '0005_remove_package_currency_remove_package_price'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='service', | ||
name='platform_fees', | ||
field=models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='service', | ||
name='platform_price', | ||
field=models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True), | ||
), | ||
] |
26 changes: 26 additions & 0 deletions
26
src/api/marketplace/packages/migrations/0007_remove_service_is_duration_based_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,26 @@ | ||
# Generated by Django 4.2.7 on 2023-12-21 05:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('packages', '0006_service_platform_fees_service_platform_price'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='service', | ||
name='is_duration_based', | ||
), | ||
migrations.RemoveField( | ||
model_name='service', | ||
name='platform_price', | ||
), | ||
migrations.AddField( | ||
model_name='servicemaster', | ||
name='is_duration_based', | ||
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
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
Oops, something went wrong.