paytechuz 0.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of paytechuz might be problematic. Click here for more details.

@@ -1,13 +1,10 @@
1
- """
2
- Initial migration for PaymentTransaction model.
3
- """
1
+ # payments/migrations/0001_initial.py
2
+
4
3
  from django.db import migrations, models
5
4
 
6
5
 
7
6
  class Migration(migrations.Migration):
8
- """
9
- Initial migration for PaymentTransaction model.
10
- """
7
+
11
8
  initial = True
12
9
 
13
10
  dependencies = []
@@ -20,33 +17,27 @@ class Migration(migrations.Migration):
20
17
  ('gateway', models.CharField(choices=[('payme', 'Payme'), ('click', 'Click')], max_length=10)),
21
18
  ('transaction_id', models.CharField(max_length=255)),
22
19
  ('account_id', models.CharField(max_length=255)),
23
- ('amount', models.DecimalField(decimal_places=2, max_digits=15)),
24
- ('state', models.IntegerField(choices=[(0, 'Created'), (1, 'Initiating'), (2, 'Successfully'), (-2, 'Cancelled after successful performed'), (-1, 'Cancelled during initiation')], default=0)),
25
- ('reason', models.IntegerField(blank=True, null=True, help_text='Reason for cancellation')),
20
+ ('amount', models.DecimalField(max_digits=15, decimal_places=2)),
21
+ ('state', models.IntegerField(choices=[
22
+ (0, 'Created'),
23
+ (1, 'Initiating'),
24
+ (2, 'Successfully'),
25
+ (-2, 'Cancelled after successful performed'),
26
+ (-1, 'Cancelled during initiation'),
27
+ ], default=0)),
28
+ ('reason', models.IntegerField(blank=True, null=True)),
26
29
  ('extra_data', models.JSONField(blank=True, default=dict)),
27
30
  ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
28
31
  ('updated_at', models.DateTimeField(auto_now=True, db_index=True)),
29
- ('performed_at', models.DateTimeField(blank=True, db_index=True, null=True)),
30
- ('cancelled_at', models.DateTimeField(blank=True, db_index=True, null=True)),
32
+ ('performed_at', models.DateTimeField(blank=True, null=True, db_index=True)),
33
+ ('cancelled_at', models.DateTimeField(blank=True, null=True, db_index=True)),
31
34
  ],
32
35
  options={
33
36
  'verbose_name': 'Payment Transaction',
34
37
  'verbose_name_plural': 'Payment Transactions',
35
- 'db_table': 'payments',
36
38
  'ordering': ['-created_at'],
37
- 'managed': False,
39
+ 'db_table': 'payments',
40
+ 'unique_together': {('gateway', 'transaction_id')},
38
41
  },
39
42
  ),
40
- migrations.AddIndex(
41
- model_name='paymenttransaction',
42
- index=models.Index(fields=['account_id'], name='payments_account_d4c2a8_idx'),
43
- ),
44
- migrations.AddIndex(
45
- model_name='paymenttransaction',
46
- index=models.Index(fields=['state'], name='payments_state_e0ceac_idx'),
47
- ),
48
- migrations.AlterUniqueTogether(
49
- name='paymenttransaction',
50
- unique_together={('gateway', 'transaction_id')},
51
- ),
52
43
  ]
@@ -54,13 +54,6 @@ class PaymentTransaction(models.Model):
54
54
  ordering = ["-created_at"]
55
55
  db_table = "payments"
56
56
  unique_together = [['gateway', 'transaction_id']]
57
- indexes = [
58
- models.Index(fields=['account_id']),
59
- models.Index(fields=['state']),
60
- ]
61
- # This is important - it tells Django not to manage this model
62
- # which means no migrations will be created for it
63
- managed = False
64
57
 
65
58
  def __str__(self):
66
59
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: paytechuz
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Unified Python package for Uzbekistan payment gateways
5
5
  Home-page: https://github.com/Muhammadali-Akbarov/paytechuz
6
6
  Author: Muhammadali Akbarov
@@ -20,17 +20,17 @@ paytechuz/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
20
20
  paytechuz/integrations/django/__init__.py,sha256=fNs4c2IWpCe78-_Yvgz59TdKbHiYRYDkLR33QOBf-Ok,356
21
21
  paytechuz/integrations/django/admin.py,sha256=6fs6GiKcdc-hGlLxJ0BthY7TFo_2RVVJRhQwhxMroCY,2664
22
22
  paytechuz/integrations/django/apps.py,sha256=Q9wG2osL7_Ip2BcAkq7lmmhu4UKJAg6UtSsSq_RgHlc,640
23
- paytechuz/integrations/django/models.py,sha256=D_k9u8LIhLZMfYnZmpPln8hDl825fHy8x2zTAAxFSFA,5973
23
+ paytechuz/integrations/django/models.py,sha256=x3cVLY812Xts5oNk4VmCzK3zjb0FXQON9WV41PCtxaw,5696
24
24
  paytechuz/integrations/django/signals.py,sha256=VtNYEAnu13wi9PqadEaCU9LY_k2tY26AS4bnPIAqw7M,1319
25
25
  paytechuz/integrations/django/views.py,sha256=nP2HRMx02tMbdv_KfDqIA5vQAwZ6TUuZazrZ2zoNfqQ,3029
26
26
  paytechuz/integrations/django/webhooks.py,sha256=cP_Jc3VlyyvyzDbBd2yEVHikw60th1_-L9_vtsRfwgs,31335
27
- paytechuz/integrations/django/migrations/0001_initial.py,sha256=V6qFqnG3iinl71YL0xXJXs_2sAfDO05eZMN0HstwPVU,2360
27
+ paytechuz/integrations/django/migrations/0001_initial.py,sha256=SWHIUuwq91crzaxa9v1UK0kay8CxsjUo6t4bqg7j0Gw,1896
28
28
  paytechuz/integrations/django/migrations/__init__.py,sha256=KLQ5NdjOMLDS21-u3b_g08G1MjPMMhG95XI_N8m4FSo,41
29
29
  paytechuz/integrations/fastapi/__init__.py,sha256=DLnhAZQZf2ghu8BuFFfE7FzbNKWQQ2SLG8qxldRuwR4,565
30
30
  paytechuz/integrations/fastapi/models.py,sha256=eWGUpiKufj47AK8Hld4A91jRDj0ZKQzAf95CyUozmvo,4638
31
31
  paytechuz/integrations/fastapi/routes.py,sha256=D17QeyY4-aX6tCNmk5h3UiavukvVrE5e6JOFCy4t_n8,36629
32
32
  paytechuz/integrations/fastapi/schemas.py,sha256=CkNohj22mQQje8Pu_IkTQwUPAoYHNOKXlGjqaRX_SGQ,3784
33
- paytechuz-0.2.2.dist-info/METADATA,sha256=ReMyrQEv06grF0XDl6yhn1Z362ql-HRciqUSyaKh9CQ,4149
34
- paytechuz-0.2.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
35
- paytechuz-0.2.2.dist-info/top_level.txt,sha256=oloyKGNVj9Z2h3wpKG5yPyTlpdpWW0-CWr-j-asCWBc,10
36
- paytechuz-0.2.2.dist-info/RECORD,,
33
+ paytechuz-0.2.3.dist-info/METADATA,sha256=9zyaV32b1j39ohRhGYw8M3qK0S5q8fDSxBYPzkOPJWM,4149
34
+ paytechuz-0.2.3.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
35
+ paytechuz-0.2.3.dist-info/top_level.txt,sha256=oloyKGNVj9Z2h3wpKG5yPyTlpdpWW0-CWr-j-asCWBc,10
36
+ paytechuz-0.2.3.dist-info/RECORD,,