documente_shared 0.1.93__tar.gz → 0.1.95__tar.gz
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 documente_shared might be problematic. Click here for more details.
- {documente_shared-0.1.93 → documente_shared-0.1.95}/PKG-INFO +1 -1
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/document.py +8 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/processing_case.py +8 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/enums/processing_case.py +4 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/documente_client.py +7 -2
- {documente_shared-0.1.93 → documente_shared-0.1.95}/pyproject.toml +1 -1
- {documente_shared-0.1.93 → documente_shared-0.1.95}/README.md +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/dates.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/files.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/payloads.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/query_params.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/timezone.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/constants.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/document_metadata.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/in_memory_result.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/processing_case_filters.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/processing_case_item.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/processing_case_item_filters.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/processing_event.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/scaling.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/enums/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/enums/common.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/enums/document.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/interfaces/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/interfaces/scaling.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/repositories/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/repositories/document.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/repositories/processing_case.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/repositories/processing_case_item.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/lambdas.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/repositories/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/repositories/dynamo_document.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/repositories/dynamo_processing_case.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/repositories/dynamo_processing_case_item.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/repositories/http_document_processing.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/repositories/http_processing_case.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/repositories/http_processing_case_item.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/services/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/services/http_scaling.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/sqs_queue.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/presentation/__init__.py +0 -0
- {documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/presentation/presenters.py +0 -0
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/document.py
RENAMED
|
@@ -75,6 +75,14 @@ class DocumentProcessing(object):
|
|
|
75
75
|
@property
|
|
76
76
|
def is_inreview(self) -> bool:
|
|
77
77
|
return self.status == DocumentProcessingStatus.IN_REVIEW
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def is_circular(self) -> bool:
|
|
81
|
+
return self.category and self.category.is_circular
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def is_desgravamen(self) -> bool:
|
|
85
|
+
return self.category and self.category.is_desgravamen
|
|
78
86
|
|
|
79
87
|
@property
|
|
80
88
|
def is_valid(self) -> bool:
|
|
@@ -31,6 +31,14 @@ class ProcessingCase(object):
|
|
|
31
31
|
def is_procesable(self) -> bool:
|
|
32
32
|
return self.items and len(self.items) > 0
|
|
33
33
|
|
|
34
|
+
@property
|
|
35
|
+
def is_bcp_microcredito(self) -> bool:
|
|
36
|
+
return self.case_type and self.case_type.is_bcp_microcredito
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
def is_univida_soat(self) -> bool:
|
|
40
|
+
return self.case_type and self.case_type.is_univida_soat
|
|
41
|
+
|
|
34
42
|
def pending(self, timezone: tzinfo = la_paz_tz):
|
|
35
43
|
self.status = ProcessingStatus.PENDING
|
|
36
44
|
self.started_at = None
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/enums/processing_case.py
RENAMED
|
@@ -9,6 +9,10 @@ class ProcessingCaseType(BaseEnum):
|
|
|
9
9
|
def is_bcp_microcredito(self):
|
|
10
10
|
return self == ProcessingCaseType.BCP_MICROCREDITO
|
|
11
11
|
|
|
12
|
+
@property
|
|
13
|
+
def is_univida_soat(self):
|
|
14
|
+
return self == ProcessingCaseType.UNIVIDA_SOAT
|
|
15
|
+
|
|
12
16
|
|
|
13
17
|
class ProcessingDocumentType(BaseEnum):
|
|
14
18
|
REVIEW_CHECKLIST = 'REVISION_CHECKLIST'
|
|
@@ -7,16 +7,21 @@ from typing import Optional
|
|
|
7
7
|
class DocumenteClientMixin(object):
|
|
8
8
|
api_url: str
|
|
9
9
|
api_key: str
|
|
10
|
+
tenant: Optional[str] = None
|
|
10
11
|
session: Optional[Session] = None
|
|
11
12
|
|
|
12
13
|
def __post_init__(self):
|
|
13
|
-
self.session
|
|
14
|
+
if self.session is None:
|
|
15
|
+
self.session = Session()
|
|
14
16
|
self.session.headers.update(self.get_common_headers())
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
def get_common_headers(self) -> dict:
|
|
18
|
-
|
|
20
|
+
common_headers = {
|
|
19
21
|
"X-Api-Key": self.api_key,
|
|
20
22
|
"Content-Type": "application/json"
|
|
21
23
|
}
|
|
24
|
+
if self.tenant:
|
|
25
|
+
common_headers.update({"X-Tenant": self.tenant})
|
|
26
|
+
return common_headers
|
|
22
27
|
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/payloads.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/query_params.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/application/timezone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/entities/scaling.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/enums/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/enums/document.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/interfaces/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/interfaces/scaling.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/repositories/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/domain/repositories/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/dynamo_table.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/lambdas.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/presentation/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.93 → documente_shared-0.1.95}/documente_shared/presentation/presenters.py
RENAMED
|
File without changes
|