forked from fossasia/eventyay-tickets
-
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.
Organiser profile billing settings option missing (fossasia#411)
* Implement billing settings form for organizer * Fix flake8 in pipeline * implement create and save payment_information * Fix isort, flake8 in pipeline * implement payment-information-v1 * src/pretix/control/views/organizer_views/organizer_view.py * Code refactoring * Code refactoring * Remove payment_information attribute * Implement tax validation * Update code * Update code * Fix flake8 in pipeline * Add pyvat package * Fix flake8 in pipeline * Latest code * Fix flake8 in pipeline * Add logger error * Fix flake8 in pipeline * Fix conflict pretix base migration * Update pretix base migration * Add logging information and modify error logging * Add comment,save tax_id, show error and sucess message * Update code * Fix flake8 in pipeline * move validation to clean method and move get_country_name to countries helper
- Loading branch information
Showing
14 changed files
with
1,065 additions
and
3 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
49 changes: 49 additions & 0 deletions
49
...etix/base/migrations/0003_alter_cachedcombinedticket_id_alter_cachedticket_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,49 @@ | ||
# Generated by Django 5.1.2 on 2024-10-31 09:30 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("pretixbase", "0003_event_is_video_creation_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="OrganizerBillingModel", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, primary_key=True, serialize=False | ||
), | ||
), | ||
("primary_contact_name", models.CharField(max_length=255)), | ||
("primary_contact_email", models.EmailField(max_length=255)), | ||
("company_or_organization_name", models.CharField(max_length=255)), | ||
("address_line_1", models.CharField(max_length=255)), | ||
("address_line_2", models.CharField(max_length=255)), | ||
("city", models.CharField(max_length=255)), | ||
("zip_code", models.CharField(max_length=255)), | ||
("country", models.CharField(max_length=255)), | ||
("preferred_language", models.CharField(max_length=255)), | ||
("tax_id", models.CharField(max_length=255)), | ||
("stripe_customer_id", models.CharField(max_length=255, null=True)), | ||
( | ||
"stripe_payment_method_id", | ||
models.CharField(max_length=255, null=True), | ||
), | ||
("stripe_setup_intent_id", models.CharField(max_length=255, null=True)), | ||
( | ||
"organizer", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="billing", | ||
to="pretixbase.organizer", | ||
), | ||
), | ||
], | ||
), | ||
] |
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
Oops, something went wrong.