[MPP-1306] remove passerelle compat
This commit is contained in:
parent
34452fa2ac
commit
96b39c8071
|
@ -16,14 +16,13 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import json
|
||||
from django.core.validators import MaxValueValidator, MinValueValidator
|
||||
from django.db import models
|
||||
from django.utils.encoding import force_text
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from passerelle.base.models import BaseResource
|
||||
from passerelle.compat import json_loads
|
||||
from passerelle.utils.api import endpoint
|
||||
from decimal import Decimal
|
||||
|
||||
|
@ -61,7 +60,7 @@ class ExtraFees(BaseResource):
|
|||
def default_compute(self, request, **kwargs):
|
||||
nb_documents = 0
|
||||
nb_letter = 0
|
||||
data = json_loads(request.body)
|
||||
data = json.loads(request.body)
|
||||
postage_fee = Decimal(self.belgium_postage_fee)
|
||||
for basket_item in data['data']:
|
||||
try:
|
||||
|
@ -81,7 +80,7 @@ class ExtraFees(BaseResource):
|
|||
return {'data': [{'subject': force_text(_('Postage')), 'amount': str(postage_fee)}]}
|
||||
|
||||
def namur_compute(self, request, **kwargs):
|
||||
data = json_loads(request.body)
|
||||
data = json.loads(request.body)
|
||||
# EXCEPTIONS :
|
||||
# duplicata-de-livret-de-mariage (frais port 8 ou 13)
|
||||
# demande-de-changement-d-adresse-domicile (frais port 0)
|
||||
|
|
Loading…
Reference in New Issue