django-cfg 1.2.25__py3-none-any.whl → 1.2.27__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.
- django_cfg/__init__.py +1 -1
- django_cfg/apps/payments/config/providers.py +6 -16
- django_cfg/models/payments.py +1 -0
- {django_cfg-1.2.25.dist-info → django_cfg-1.2.27.dist-info}/METADATA +1 -1
- {django_cfg-1.2.25.dist-info → django_cfg-1.2.27.dist-info}/RECORD +8 -8
- {django_cfg-1.2.25.dist-info → django_cfg-1.2.27.dist-info}/WHEEL +0 -0
- {django_cfg-1.2.25.dist-info → django_cfg-1.2.27.dist-info}/entry_points.txt +0 -0
- {django_cfg-1.2.25.dist-info → django_cfg-1.2.27.dist-info}/licenses/LICENSE +0 -0
django_cfg/__init__.py
CHANGED
@@ -7,23 +7,13 @@ Defines configuration classes for different payment providers.
|
|
7
7
|
from typing import Dict, Any, Optional
|
8
8
|
from pydantic import BaseModel, Field, SecretStr
|
9
9
|
|
10
|
+
# Import the base PaymentProviderConfig from models.payments
|
11
|
+
from django_cfg.models.payments import PaymentProviderConfig as BasePaymentProviderConfig
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
api_key: SecretStr = Field(description="Provider API key")
|
16
|
-
timeout: int = Field(default=30, description="Request timeout in seconds")
|
17
|
-
max_retries: int = Field(default=3, description="Maximum retry attempts")
|
18
|
-
|
19
|
-
def get_config_dict(self) -> Dict[str, Any]:
|
20
|
-
"""Get configuration as dictionary for provider initialization."""
|
21
|
-
return {
|
22
|
-
'api_key': self.api_key.get_secret_value(),
|
23
|
-
'sandbox': self.sandbox,
|
24
|
-
'timeout': self.timeout,
|
25
|
-
'max_retries': self.max_retries
|
26
|
-
}
|
13
|
+
|
14
|
+
class PaymentProviderConfig(BasePaymentProviderConfig):
|
15
|
+
"""Extended base configuration for payment providers."""
|
16
|
+
pass
|
27
17
|
|
28
18
|
|
29
19
|
class NowPaymentsConfig(PaymentProviderConfig):
|
django_cfg/models/payments.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: django-cfg
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.27
|
4
4
|
Summary: 🚀 Next-gen Django configuration: type-safety, AI features, blazing-fast setup, and automated best practices — all in one.
|
5
5
|
Project-URL: Homepage, https://djangocfg.com
|
6
6
|
Project-URL: Documentation, https://docs.djangocfg.com
|
@@ -1,5 +1,5 @@
|
|
1
1
|
django_cfg/README.md,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
django_cfg/__init__.py,sha256=
|
2
|
+
django_cfg/__init__.py,sha256=v23PCbYq4o9lgmLhEJ-3nYe-uzQvAf0g03Y-Mfmaark,1631
|
3
3
|
django_cfg/apps.py,sha256=k84brkeXJI7EgKZLEpTkM9YFZofKI4PzhFOn1cl9Msc,1656
|
4
4
|
django_cfg/config.py,sha256=ME-JKaVzcdmaGhuc1YTkEWoMKSaUasNf1SBlNz-NfrM,1399
|
5
5
|
django_cfg/urls.py,sha256=bpRFjMonQuk4UCUMxx4ueBX3YDNB7HXKFwEghQ3KR3o,793
|
@@ -277,7 +277,7 @@ django_cfg/apps/payments/admin/subscriptions_admin.py,sha256=mJRSyDd761f0LA64AnG
|
|
277
277
|
django_cfg/apps/payments/admin/tariffs_admin.py,sha256=6UiQyRRIKrDdmpi2IZOpDpLeJLHrebOGNc3OizlikLI,6422
|
278
278
|
django_cfg/apps/payments/config/__init__.py,sha256=JPvd_Skh5fsm4ii2vrvh4hYPjGH1fCNCpwEwJI_s3mE,1397
|
279
279
|
django_cfg/apps/payments/config/module.py,sha256=lMl_Zd3dKUQOXkrgcEdw46BOTIoIi-pRVnLPs5hEWZs,2826
|
280
|
-
django_cfg/apps/payments/config/providers.py,sha256=
|
280
|
+
django_cfg/apps/payments/config/providers.py,sha256=QMdPOsUWMkMgZYuq3P-2z0uuUVjBKt8IJePBgDABaCE,4379
|
281
281
|
django_cfg/apps/payments/config/settings.py,sha256=hiXbUnaALFD5k8yOkrVLOKVZ90pOIpGcw0opmuoAYTk,3846
|
282
282
|
django_cfg/apps/payments/config/utils.py,sha256=iHylQn8UFyvl_hGf2mdqlc0HmYIeT39qGOnixJuwK2g,1285
|
283
283
|
django_cfg/apps/payments/management/__init__.py,sha256=4DfL_LIMoYeHTC7YG9ssIB9QjZ9MHRajthdwkYLaCko,50
|
@@ -466,7 +466,7 @@ django_cfg/models/jwt.py,sha256=3R_dpLmVZIcH4zdtwA4qKnuCB8RZQACrgsbbgWY2q4c,9025
|
|
466
466
|
django_cfg/models/limits.py,sha256=nUfvyPykwKR38ZOlIFqlNGRmfV8RO5hiUrhDH6FCHJw,7449
|
467
467
|
django_cfg/models/logging.py,sha256=4vZF-G9rPmXMxxtUx_ad7Esvgbe8a_5Dl692Yg0fL4A,10636
|
468
468
|
django_cfg/models/ngrok.py,sha256=MVgcKWx0DRSW0QcwhiSx2vVwTSG49vbVrzPkZqDK-zw,3575
|
469
|
-
django_cfg/models/payments.py,sha256=
|
469
|
+
django_cfg/models/payments.py,sha256=TxWfrOM6BacIc7AuoeQs8V75_zc0Z71n7vWZwcd5MG8,16461
|
470
470
|
django_cfg/models/revolution.py,sha256=16fQ09iovrmlepNcTr2J0hZ-ShdMnMSQ2rTXa60yrus,8134
|
471
471
|
django_cfg/models/security.py,sha256=Xv19ZVOIenB_-f0wB6fm-Ap4j9kA43bSFaT2XenpSqc,4685
|
472
472
|
django_cfg/models/services.py,sha256=fj9JjrJFrlL4DMnMbx_D8JiiZpz4E5uBqmhquAxau7c,13159
|
@@ -607,8 +607,8 @@ django_cfg/utils/path_resolution.py,sha256=C9As6p4Q9l3VeoVkFDRPQWGrzAWf8O8UxLVka
|
|
607
607
|
django_cfg/utils/smart_defaults.py,sha256=MxbUZwn_xbh48li7uLI6W4D9WCD2P2WO48dv85Fra5E,23057
|
608
608
|
django_cfg/utils/toolkit.py,sha256=Td8_iXNaftonF_xdZP4Y3uO65nuA_4_zditn5Q_Pfcw,23310
|
609
609
|
django_cfg/utils/version_check.py,sha256=jI4v3YMdQriUEeb_TvRl511sDghy6I75iKRDUaNpucs,4800
|
610
|
-
django_cfg-1.2.
|
611
|
-
django_cfg-1.2.
|
612
|
-
django_cfg-1.2.
|
613
|
-
django_cfg-1.2.
|
614
|
-
django_cfg-1.2.
|
610
|
+
django_cfg-1.2.27.dist-info/METADATA,sha256=NNK1jiulE41b2ii8tOQ28TciygkBIvJdwY5XRp8ffKQ,38867
|
611
|
+
django_cfg-1.2.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
612
|
+
django_cfg-1.2.27.dist-info/entry_points.txt,sha256=Ucmde4Z2wEzgb4AggxxZ0zaYDb9HpyE5blM3uJ0_VNg,56
|
613
|
+
django_cfg-1.2.27.dist-info/licenses/LICENSE,sha256=xHuytiUkSZCRG3N11nk1X6q1_EGQtv6aL5O9cqNRhKE,1071
|
614
|
+
django_cfg-1.2.27.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|