mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
integration of 3D secure v2 for eboutic bank payment
This commit is contained in:
55
counter/migrations/0019_billinginfo.py
Normal file
55
counter/migrations/0019_billinginfo.py
Normal file
@ -0,0 +1,55 @@
|
||||
# Generated by Django 3.2.15 on 2022-11-14 13:26
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import django_countries.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("counter", "0018_producttype_priority"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="BillingInfo",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("first_name", models.CharField(max_length=30)),
|
||||
("last_name", models.CharField(max_length=30)),
|
||||
(
|
||||
"address_1",
|
||||
models.CharField(max_length=50, verbose_name="address line 1"),
|
||||
),
|
||||
(
|
||||
"address_2",
|
||||
models.CharField(
|
||||
blank=True,
|
||||
max_length=50,
|
||||
null=True,
|
||||
verbose_name="address line 2",
|
||||
),
|
||||
),
|
||||
("zip_code", models.CharField(max_length=16, verbose_name="zip code")),
|
||||
("city", models.CharField(max_length=50, verbose_name="city")),
|
||||
("country", django_countries.fields.CountryField(max_length=2)),
|
||||
(
|
||||
"customer",
|
||||
models.OneToOneField(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="billing_infos",
|
||||
to="counter.customer",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user