Skip to content

Commit

Permalink
Add new service codes in Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Serrones committed Aug 18, 2020
1 parent 62f8876 commit b542c91
Showing 1 changed file with 69 additions and 25 deletions.
94 changes: 69 additions & 25 deletions correios/models/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,27 +480,71 @@
'category': 'CARTA_REGISTRADA',
'display_name': 'Carta Comercial',
},
"04812": {
"id": 124899,
"description": "PAC CONTRATO - UO",
"category": "PAC",
"display_name": "PAC",
"max_weight": 30000,
"symbol": "standard",
"default_extra_services": [EXTRA_SERVICE_RR],
"min_declared_value": Decimal("19.50"),
"max_declared_value": Decimal("3000.00"),
'04812': {
'id': 124899,
'description': 'PAC CONTRATO - UO',
'category': 'PAC',
'display_name': 'PAC',
'max_weight': 30000,
'symbol': 'standard',
'default_extra_services': [EXTRA_SERVICE_RR],
'min_declared_value': Decimal('19.50'),
'max_declared_value': Decimal('3000.00'),
},
'04316': {
'id': 124900,
'description': 'SEDEX CONTRATO - UO',
'category': 'SEDEX',
'max_weight': 30000,
'display_name': 'SEDEX',
'symbol': 'express',
'default_extra_services': [EXTRA_SERVICE_RR],
'min_declared_value': Decimal('19.50'),
'max_declared_value': Decimal('10000.00'),
},
'03298': {
'id': 124884,
'description': 'PAC',
'category': 'PAC',
'display_name': 'PAC',
'max_weight': 30000,
'symbol': "standard",
'default_extra_services': [EXTRA_SERVICE_RR],
'min_declared_value': Decimal("18.00"),
'max_declared_value': Decimal("3000.00"),
},
"04316": {
"id": 124900,
"description": "SEDEX CONTRATO - UO",
"category": "SEDEX",
"max_weight": 30000,
"display_name": "SEDEX",
"symbol": "express",
"default_extra_services": [EXTRA_SERVICE_RR],
"min_declared_value": Decimal("19.50"),
"max_declared_value": Decimal("10000.00"),
'03220': {
'id': 124849,
'description': 'SEDEX CONTRATO AGENCIA',
'category': 'SEDEX',
'max_weight': 30000,
'display_name': 'SEDEX',
'symbol': "express",
'default_extra_services': [EXTRA_SERVICE_RR],
'min_declared_value': Decimal("18.00"),
'max_declared_value': Decimal("10000.00"),
},
'03336': {
'id': 124899,
'description': 'PAC CONTRATO - UO',
'category': 'PAC',
'display_name': 'PAC',
'max_weight': 30000,
'symbol': 'standard',
'default_extra_services': [EXTRA_SERVICE_RR],
'min_declared_value': Decimal('19.50'),
'max_declared_value': Decimal('3000.00'),
},
'03280': {
'id': 124900,
'description': 'SEDEX CONTRATO - UO',
'category': 'SEDEX',
'max_weight': 30000,
'display_name': 'SEDEX',
'symbol': 'express',
'default_extra_services': [EXTRA_SERVICE_RR],
'min_declared_value': Decimal('19.50'),
'max_declared_value': Decimal('10000.00'),
},
} # type: Dict[str, dict]

Expand All @@ -509,12 +553,12 @@
SERVICE_SEDEX10 = '40215'
SERVICE_SEDEX12 = '40169'
SERVICE_E_SEDEX = '81019'
SERVICE_PAC_INDUSTRIAL = "04812"
SERVICE_SEDEX_INDUSTRIAL = "04316"
SERVICE_PAC_INDUSTRIAL = '04812'
SERVICE_SEDEX_INDUSTRIAL = '04316'

INSURANCE_VALUE_THRESHOLD_PAC = Decimal("50.00") # R$
INSURANCE_VALUE_THRESHOLD_SEDEX = Decimal("75.00") # R$
INSURANCE_PERCENTUAL_COST = Decimal("0.007") # 0.7%
INSURANCE_VALUE_THRESHOLD_PAC = Decimal('50.00') # R$
INSURANCE_VALUE_THRESHOLD_SEDEX = Decimal('75.00') # R$
INSURANCE_PERCENTUAL_COST = Decimal('0.007') # 0.7%

REGIONAL_DIRECTIONS = {
1: {'code': "AC", 'name': "AC - ADMINISTRAÇAO CENTRAL"},
Expand Down

0 comments on commit b542c91

Please sign in to comment.