Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Merge branch 'master' into adyen_integration

Maciej Korycinski17d5f0e908f2
diff --cc saleor/order/migrations/0088_auto_20200812_1101.py
index fbea19cb4f,0000000000..b47fbdd5f7
mode 100644,000000..100644
--- a/saleor/order/migrations/0088_auto_20200812_1101.py
+++ b/saleor/order/migrations/0088_auto_20200812_1101.py
@@@ -1,49 -1,0 +1,49 @@@
- # Generated by Django 3.0.8 on 2020-07-28 12:02
++# Generated by Django 3.1 on 2020-08-12 11:01
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
- ("order", "0086_auto_20200716_1226"),
++ ("order", "0087_auto_20200810_1415"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="orderevent",
+ name="type",
+ field=models.CharField(
+ choices=[
+ ("DRAFT_CREATED", "draft_created"),
+ ("DRAFT_ADDED_PRODUCTS", "draft_added_products"),
+ ("DRAFT_REMOVED_PRODUCTS", "draft_removed_products"),
+ ("PLACED", "placed"),
+ ("PLACED_FROM_DRAFT", "placed_from_draft"),
+ ("OVERSOLD_ITEMS", "oversold_items"),
+ ("CANCELED", "canceled"),
+ ("ORDER_MARKED_AS_PAID", "order_marked_as_paid"),
+ ("ORDER_FULLY_PAID", "order_fully_paid"),
+ ("UPDATED_ADDRESS", "updated_address"),
+ ("EMAIL_SENT", "email_sent"),
+ ("PAYMENT_AUTHORIZED", "payment_authorized"),
+ ("PAYMENT_CAPTURED", "payment_captured"),
+ ("EXTERNAL_SERVICE_NOTIFICATION", "external_service_notification"),
+ ("PAYMENT_REFUNDED", "payment_refunded"),
+ ("PAYMENT_VOIDED", "payment_voided"),
+ ("PAYMENT_FAILED", "payment_failed"),
+ ("INVOICE_REQUESTED", "invoice_requested"),
+ ("INVOICE_GENERATED", "invoice_generated"),
+ ("INVOICE_UPDATED", "invoice_updated"),
+ ("INVOICE_SENT", "invoice_sent"),
+ ("FULFILLMENT_CANCELED", "fulfillment_canceled"),
+ ("FULFILLMENT_RESTOCKED_ITEMS", "fulfillment_restocked_items"),
+ ("FULFILLMENT_FULFILLED_ITEMS", "fulfillment_fulfilled_items"),
+ ("TRACKING_UPDATED", "tracking_updated"),
+ ("NOTE_ADDED", "note_added"),
+ ("OTHER", "other"),
+ ],
+ max_length=255,
+ ),
+ ),
+ ]
diff --cc saleor/payment/migrations/0019_auto_20200812_1101.py
index b014064fc4,0000000000..6248d5ee14
mode 100644,000000..100644
--- a/saleor/payment/migrations/0019_auto_20200812_1101.py
+++ b/saleor/payment/migrations/0019_auto_20200812_1101.py
@@@ -1,64 -1,0 +1,69 @@@
- # Generated by Django 3.1 on 2020-08-10 13:10
++# Generated by Django 3.1 on 2020-08-12 11:01
+
- import django.contrib.postgres.fields.jsonb
+import django.core.serializers.json
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
- ("payment", "0017_payment_payment_method_type"),
++ ("payment", "0018_auto_20200810_1415"),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="payment",
+ name="return_url",
+ field=models.URLField(blank=True, null=True),
+ ),
+ migrations.AddField(
+ model_name="transaction",
+ name="action_required_data",
- field=django.contrib.postgres.fields.jsonb.JSONField(
++ field=models.JSONField(
+ blank=True,
+ default=dict,
+ encoder=django.core.serializers.json.DjangoJSONEncoder,
+ ),
+ ),
++ migrations.AddField(
++ model_name="transaction",
++ name="already_processed",
++ field=models.BooleanField(default=False),
++ ),
+ migrations.AlterField(
+ model_name="payment",
+ name="charge_status",
+ field=models.CharField(
+ choices=[
+ ("not-charged", "Not charged"),
+ ("pending", "Pending"),
+ ("partially-charged", "Partially charged"),
+ ("fully-charged", "Fully charged"),
+ ("partially-refunded", "Partially refunded"),
+ ("fully-refunded", "Fully refunded"),
+ ("refused", "Refused"),
+ ("cancelled", "Cancelled"),
+ ],
+ default="not-charged",
+ max_length=20,
+ ),
+ ),
+ migrations.AlterField(
+ model_name="transaction",
+ name="kind",
+ field=models.CharField(
+ choices=[
+ ("auth", "Authorization"),
+ ("pending", "Pending"),
++ ("action_to_confirm", "Action to confirm"),
+ ("refund", "Refund"),
+ ("refund_ongoing", "Refund in progress"),
+ ("capture", "Capture"),
+ ("void", "Void"),
+ ("confirm", "Confirm"),
+ ("cancel", "Cancel"),
+ ],
+ max_length=25,
+ ),
+ ),
+ ]